aboutsummaryrefslogtreecommitdiffstats
path: root/shells/scponly
diff options
context:
space:
mode:
authorbapt <bapt@FreeBSD.org>2014-06-12 01:42:36 +0800
committerbapt <bapt@FreeBSD.org>2014-06-12 01:42:36 +0800
commit34700b93ee12d30f10194a378e6b917bcae13469 (patch)
tree8b56f25125b5be6dd05af340e094bb197df7f3bc /shells/scponly
parent4b5e6a9e5b199a91b87ca581df1d6829198009a8 (diff)
downloadfreebsd-ports-gnome-34700b93ee12d30f10194a378e6b917bcae13469.tar.gz
freebsd-ports-gnome-34700b93ee12d30f10194a378e6b917bcae13469.tar.zst
freebsd-ports-gnome-34700b93ee12d30f10194a378e6b917bcae13469.zip
Add an @shell keyword to handle adding and remove a shell path in /etc/shell
Bump port revision of all ports that were doing it wrong prior to the keyword CR: D208 Reviewed by: antoine With hat: portmgr
Diffstat (limited to 'shells/scponly')
-rw-r--r--shells/scponly/pkg-plist4
1 files changed, 1 insertions, 3 deletions
diff --git a/shells/scponly/pkg-plist b/shells/scponly/pkg-plist
index 744216e6a3cf..dee68060efd7 100644
--- a/shells/scponly/pkg-plist
+++ b/shells/scponly/pkg-plist
@@ -1,6 +1,4 @@
-bin/scponly
-@exec echo "Updating /etc/shells"; cp /etc/shells /etc/shells.bak; (grep -v %D/%F /etc/shells.bak; echo %D/%F) >/etc/shells; rm -f /etc/shells.bak
-@unexec echo "Updating /etc/shells"; cp /etc/shells /etc/shells.bak; (grep -v %D/%F /etc/shells.bak) >/etc/shells; rm -f /etc/shells.bak
+@shell bin/scponly
%%CHROOT%%@exec echo ""
%%CHROOT%%@exec echo "To setup chroot cage, run the following commands:"
%%CHROOT%%@exec echo " 1) cd %%PREFIX%%/%%EXAMPLESDIR%%/ && /bin/sh setup_chroot.sh"