Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 11 Jun 2014 17:42:36 +0000 (UTC)
From:      Baptiste Daroussin <bapt@FreeBSD.org>
To:        ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-head@freebsd.org
Subject:   svn commit: r357511 - in head: Keywords Mk/Scripts shells/44bsd-csh shells/bash shells/ch shells/esh shells/fd shells/fish shells/jailkit shells/ksh93 shells/lshell shells/mksh shells/osh shells/pd...
Message-ID:  <201406111742.s5BHgaKF003196@svn.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: bapt
Date: Wed Jun 11 17:42:36 2014
New Revision: 357511
URL: http://svnweb.freebsd.org/changeset/ports/357511
QAT: https://qat.redports.org/buildarchive/r357511/

Log:
  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

Added:
  head/Keywords/shell.yaml   (contents, props changed)
Modified:
  head/Keywords/pkg_install.awk
  head/Mk/Scripts/check-stagedir.sh
  head/shells/44bsd-csh/Makefile
  head/shells/44bsd-csh/pkg-plist
  head/shells/bash/pkg-plist
  head/shells/ch/pkg-plist
  head/shells/esh/pkg-plist
  head/shells/fd/pkg-plist
  head/shells/fish/pkg-plist
  head/shells/jailkit/Makefile
  head/shells/jailkit/pkg-plist
  head/shells/ksh93/pkg-plist
  head/shells/lshell/pkg-plist
  head/shells/mksh/pkg-plist
  head/shells/osh/Makefile
  head/shells/osh/pkg-plist
  head/shells/pdksh/Makefile
  head/shells/pdksh/pkg-plist
  head/shells/rssh/Makefile
  head/shells/rssh/pkg-plist
  head/shells/sash/pkg-plist
  head/shells/scponly/pkg-plist
  head/shells/v7sh/Makefile
  head/shells/v7sh/pkg-plist
  head/shells/vshnu/pkg-plist
  head/shells/zsh/pkg-plist

Modified: head/Keywords/pkg_install.awk
==============================================================================
--- head/Keywords/pkg_install.awk	Wed Jun 11 17:09:55 2014	(r357510)
+++ head/Keywords/pkg_install.awk	Wed Jun 11 17:42:36 2014	(r357511)
@@ -14,6 +14,14 @@
 #  @exec if ! [ -f %D/etc/somefile.conf ]; then cp %D/etc/somefile.conf.sample %D/etc/somefile.conf; fi
 #  @comment end @sample somefile.conf.sample
 # 
+##
+#  @shell bin/shell
+# ->
+#  @comment begin @shell bin/shell
+#  @exec cp /etc/shells /etc/shells.bak; (grep -v %D/%F /etc/shells.bak; echo %D/%F) >/etc/shells; rm -f /etc/shells.bak
+#  @unexec cp /etc/shells /etc/shells.bak; (grep -v %D/%F /etc/shells.bak) >/etc/shells; rm -f /etc/shells.bak
+#  @comment end @shell bin/shell
+
 $1 == "@sample" {
   sample_file=$2
   # Take out .sample
@@ -25,6 +33,17 @@ $1 == "@sample" {
   print "@comment end " $0
   next
 }
+
+$1 == "@shell" {
+	shell_file=$2
+	print "@comment begin " $0
+	print shell_file
+	print "@exec cp /etc/shells /etc/shells.bak; (grep -v %D/%F /etc/shells.bak; echo %D/%F) >/etc/shells; rm -f /etc/shells.bak"
+	print "@unexec cp /etc/shells /etc/shells.bak; (grep -v %D/%F /etc/shells.bak) >/etc/shells; rm -f /etc/shells.bak"
+	print "@comment end " $0
+	next
+}
+
 # Print everything else as-is
 {
   print $0

Added: head/Keywords/shell.yaml
==============================================================================
--- /dev/null	00:00:00 1970	(empty, because file is newly added)
+++ head/Keywords/shell.yaml	Wed Jun 11 17:42:36 2014	(r357511)
@@ -0,0 +1,22 @@
+# $FreeBSD$
+#
+# MAINTAINER: portmgr@FreeBSD.org
+#
+# @shell bin/shell
+#
+# Handle adding and remove a path to a shell binary into /etc/shells
+# it replaces the following code:
+#
+# bin/shell
+# @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
+
+actions: [file]
+post-install: |
+        cp /etc/shells /etc/shells.bak
+        (grep -v %D/%@ /etc/shells.bak; echo %D/%@) > /etc/shells
+        rm -f /etc/shells.bak
+pre-deinstall: |
+        cp /etc/shells /etc/shells.bak
+        grep -v %D/%@ /etc/shells.bak > /etc/shells
+        rm -f /etc/shells.bak

Modified: head/Mk/Scripts/check-stagedir.sh
==============================================================================
--- head/Mk/Scripts/check-stagedir.sh	Wed Jun 11 17:09:55 2014	(r357510)
+++ head/Mk/Scripts/check-stagedir.sh	Wed Jun 11 17:42:36 2014	(r357511)
@@ -64,7 +64,7 @@ parse_plist() {
 			esac
 		;;
 		# Handle [file] Keywords
-		@info\ *)
+		@info\ *|@shell\ *)
 			set -- $line
 			shift
 			echo "${comment}${cwd}/$@"

Modified: head/shells/44bsd-csh/Makefile
==============================================================================
--- head/shells/44bsd-csh/Makefile	Wed Jun 11 17:09:55 2014	(r357510)
+++ head/shells/44bsd-csh/Makefile	Wed Jun 11 17:42:36 2014	(r357511)
@@ -2,7 +2,7 @@
 # $FreeBSD$
 PORTNAME=	44bsd-csh
 PORTVERSION=	20001106
-PORTREVISION=	3
+PORTREVISION=	4
 CATEGORIES=	shells
 MASTER_SITES=	${MASTER_SITE_LOCAL}
 MASTER_SITE_SUBDIR=	cy

Modified: head/shells/44bsd-csh/pkg-plist
==============================================================================
--- head/shells/44bsd-csh/pkg-plist	Wed Jun 11 17:09:55 2014	(r357510)
+++ head/shells/44bsd-csh/pkg-plist	Wed Jun 11 17:42:36 2014	(r357511)
@@ -1,4 +1,2 @@
-bin/44bsd-csh
+@shell bin/44bsd-csh
 man/man1/44bsd-csh.1.gz
-@exec echo "updating /etc/shells"; cp /etc/shells /etc/shells.bak; (grep -v %D/%F /etc/shells.bak; echo %D/%F) >/etc/shells
-@unexec echo "updating /etc/shells"; cp /etc/shells /etc/shells.bak; (grep -v %D/%F /etc/shells.bak) >/etc/shells

Modified: head/shells/bash/pkg-plist
==============================================================================
--- head/shells/bash/pkg-plist	Wed Jun 11 17:09:55 2014	(r357510)
+++ head/shells/bash/pkg-plist	Wed Jun 11 17:42:36 2014	(r357511)
@@ -1,9 +1,5 @@
-bin/bash
-@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
-bin/rbash
-@exec cp /etc/shells /etc/shells.bak; (grep -v %D/%F /etc/shells.bak; echo %D/%F) >/etc/shells; rm -f /etc/shells.bak
-@unexec cp /etc/shells /etc/shells.bak; (grep -v %D/%F /etc/shells.bak) >/etc/shells; rm -f /etc/shells.bak
+@shell bin/bash
+@shell bin/rbash
 bin/bashbug
 man/man1/bash.1.gz
 man/man1/bashbug.1.gz

Modified: head/shells/ch/pkg-plist
==============================================================================
--- head/shells/ch/pkg-plist	Wed Jun 11 17:09:55 2014	(r357510)
+++ head/shells/ch/pkg-plist	Wed Jun 11 17:42:36 2014	(r357511)
@@ -1,6 +1,4 @@
-@exec cp /etc/shells /etc/shells.bak; (grep -v %D/bin/ch /etc/shells.bak; echo %D/bin/ch) >/etc/shells; rm -f /etc/shells.bak
-@unexec cp /etc/shells /etc/shells.bak; (grep -v %D/bin/ch /etc/shells.bak) >/etc/shells; rm -f /etc/shells.bak
-bin/ch
+@shell bin/ch
 %%DATADIR%%/docs/images/softIntegration.gif
 %%DATADIR%%/docs/README
 %%DATADIR%%/docs/index.html

Modified: head/shells/esh/pkg-plist
==============================================================================
--- head/shells/esh/pkg-plist	Wed Jun 11 17:09:55 2014	(r357510)
+++ head/shells/esh/pkg-plist	Wed Jun 11 17:42:36 2014	(r357511)
@@ -1,3 +1 @@
-bin/esh
-@exec echo "updating /etc/shells"; cp /etc/shells /etc/shells.bak; (grep -v %D/%F /etc/shells.bak; echo %D/%F) >/etc/shells
-@unexec echo "updating /etc/shells"; cp /etc/shells /etc/shells.bak; (grep -v %D/%F /etc/shells.bak) >/etc/shells
+@shell bin/esh

Modified: head/shells/fd/pkg-plist
==============================================================================
--- head/shells/fd/pkg-plist	Wed Jun 11 17:09:55 2014	(r357510)
+++ head/shells/fd/pkg-plist	Wed Jun 11 17:42:36 2014	(r357511)
@@ -1,15 +1,11 @@
 bin/fd
 bin/fd-cat.C
 bin/fd-cat.ja
-bin/fdsh
-@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/fdsh
 bin/fd-dict.tbl
 bin/fd-unicd.tbl
 etc/fd2rc.dist
-@unexec if cmp -s %D/etc/fd2rc %D/etc/fd2rc.sample; then rm -f %D/etc/fd2rc; fi
-etc/fd2rc.sample
-@exec [ ! -f %B/fd2rc ] && cp %B/%f %B/fd2rc
+@sample etc/fd2rc.sample
 man/ja/man1/fd.1.gz
 man/ja/man1/fdsh.1.gz
 man/man1/fd.1.gz

Modified: head/shells/fish/pkg-plist
==============================================================================
--- head/shells/fish/pkg-plist	Wed Jun 11 17:09:55 2014	(r357510)
+++ head/shells/fish/pkg-plist	Wed Jun 11 17:42:36 2014	(r357511)
@@ -1,4 +1,4 @@
-bin/fish
+@shell bin/fish
 bin/fish_indent
 bin/fish_pager
 bin/fishd
@@ -572,5 +572,3 @@ man/man1/mimedb.1.gz
 @dirrm %%DATADIR%%/completions
 @dirrm %%DATADIR%%
 @dirrm %%ETCDIR%%
-@exec cp /etc/shells /etc/shells.bak; (grep -v %D/bin/fish /etc/shells.bak; echo %D/bin/fish) > /etc/shells; rm -f /etc/shells.bak
-@unexec cp /etc/shells /etc/shells.bak; (grep -v %D/bin/fish /etc/shells.bak) > /etc/shells; rm -f /etc/shells.bak

Modified: head/shells/jailkit/Makefile
==============================================================================
--- head/shells/jailkit/Makefile	Wed Jun 11 17:09:55 2014	(r357510)
+++ head/shells/jailkit/Makefile	Wed Jun 11 17:42:36 2014	(r357511)
@@ -3,6 +3,7 @@
 
 PORTNAME=	jailkit
 PORTVERSION=	2.15
+PORTREVISION=	1
 CATEGORIES=	shells
 MASTER_SITES=	http://olivier.sessink.nl/jailkit/ \
 		http://www.sfr-fresh.com/unix/privat/

Modified: head/shells/jailkit/pkg-plist
==============================================================================
--- head/shells/jailkit/pkg-plist	Wed Jun 11 17:09:55 2014	(r357510)
+++ head/shells/jailkit/pkg-plist	Wed Jun 11 17:42:36 2014	(r357511)
@@ -20,7 +20,7 @@ man/man8/jk_socketd.8.gz
 man/man8/jk_uchroot.8.gz
 man/man8/jk_update.8.gz
 sbin/jk_chrootlaunch
-sbin/jk_chrootsh
+@shell sbin/jk_chrootsh
 sbin/jk_cp
 sbin/jk_init
 sbin/jk_check
@@ -30,8 +30,6 @@ sbin/jk_list
 sbin/jk_update
 sbin/jk_lsh
 sbin/jk_socketd
-@exec echo "Updating /etc/shells"; cp /etc/shells /etc/shells.bak; (grep -v jk_chrootsh /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 jk_chrootsh /etc/shells.bak) >/etc/shells; rm -f /etc/shells.bak
 %%DATADIR%%/jk_lib.py
 %%DATADIR%%/jk_lib.pyc
 @dirrm %%DATADIR%%

Modified: head/shells/ksh93/pkg-plist
==============================================================================
--- head/shells/ksh93/pkg-plist	Wed Jun 11 17:09:55 2014	(r357510)
+++ head/shells/ksh93/pkg-plist	Wed Jun 11 17:42:36 2014	(r357511)
@@ -1,6 +1,4 @@
-bin/ksh93
-@unexec echo "Updating /etc/shells"; sed -i "" "\|%D/%F|d" /etc/shells
-@exec echo "Updating /etc/shells"; sed -i "" "\|%D/%F|d" /etc/shells; echo %D/%F >> /etc/shells
+@shell bin/ksh93
 man/man1/ksh93.1.gz
 %%PORTEXAMPLES%%%%EXAMPLESDIR%%/dirs
 %%PORTEXAMPLES%%%%EXAMPLESDIR%%/popd

Modified: head/shells/lshell/pkg-plist
==============================================================================
--- head/shells/lshell/pkg-plist	Wed Jun 11 17:09:55 2014	(r357510)
+++ head/shells/lshell/pkg-plist	Wed Jun 11 17:42:36 2014	(r357511)
@@ -1,10 +1,6 @@
-bin/lshell
+@shell bin/lshell
 man/man1/lshell.1.gz
-@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
-@unexec if cmp -s %D/etc/lshell.conf %D/etc/lshell.conf.sample; then rm -f %D/etc/lshell.conf; fi
-etc/lshell.conf.sample
-@exec if [ ! -f %D/etc/lshell.conf ]; then cp %B/%f %D/etc/lshell.conf; fi
+@sample etc/lshell.conf.sample
 etc/logrotate.d/lshell
 %%PYTHON_SITELIBDIR%%/lshell.py
 %%PYTHON_SITELIBDIR%%/lshell.pyc

Modified: head/shells/mksh/pkg-plist
==============================================================================
--- head/shells/mksh/pkg-plist	Wed Jun 11 17:09:55 2014	(r357510)
+++ head/shells/mksh/pkg-plist	Wed Jun 11 17:42:36 2014	(r357511)
@@ -1,7 +1,4 @@
 man/man1/mksh.1.gz
-@comment Please mind the order. bin/mksh needs to come right before the exec/unexec magic.
-bin/mksh
-@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/mksh
 %%PORTEXAMPLES%%%%EXAMPLESDIR%%/dot.mkshrc
 %%PORTEXAMPLES%%@dirrm %%EXAMPLESDIR%%

Modified: head/shells/osh/Makefile
==============================================================================
--- head/shells/osh/Makefile	Wed Jun 11 17:09:55 2014	(r357510)
+++ head/shells/osh/Makefile	Wed Jun 11 17:42:36 2014	(r357511)
@@ -3,6 +3,7 @@
 
 PORTNAME=	osh
 DISTVERSION=	20140410
+PORTREVISION=	1
 CATEGORIES=	shells
 MASTER_SITES=	http://v6shell.org/src/
 

Modified: head/shells/osh/pkg-plist
==============================================================================
--- head/shells/osh/pkg-plist	Wed Jun 11 17:09:55 2014	(r357510)
+++ head/shells/osh/pkg-plist	Wed Jun 11 17:42:36 2014	(r357511)
@@ -1,7 +1,7 @@
 bin/fd2
 bin/goto
 bin/if
-bin/osh
+@shell bin/osh
 bin/sh6
 bin/glob6
 man/man1/fd2.1.gz
@@ -10,5 +10,3 @@ man/man1/goto.1.gz
 man/man1/if.1.gz
 man/man1/osh.1.gz
 man/man1/sh6.1.gz
-@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

Modified: head/shells/pdksh/Makefile
==============================================================================
--- head/shells/pdksh/Makefile	Wed Jun 11 17:09:55 2014	(r357510)
+++ head/shells/pdksh/Makefile	Wed Jun 11 17:42:36 2014	(r357511)
@@ -3,7 +3,7 @@
 
 PORTNAME=	pdksh
 PORTVERSION=	5.2.14p2
-PORTREVISION=	5
+PORTREVISION=	6
 CATEGORIES=	shells
 MASTER_SITES=	http://gd.tuwien.ac.at/utils/shells/pdksh/ \
 		ftp://ftp.lip6.fr/pub/unix/shells/pdksh/ \

Modified: head/shells/pdksh/pkg-plist
==============================================================================
--- head/shells/pdksh/pkg-plist	Wed Jun 11 17:09:55 2014	(r357510)
+++ head/shells/pdksh/pkg-plist	Wed Jun 11 17:42:36 2014	(r357511)
@@ -1,4 +1,2 @@
-bin/ksh
+@shell bin/ksh
 man/man1/ksh.1.gz
-@exec echo "updating /etc/shells"; cp /etc/shells /etc/shells.bak; (grep -v %D/%F /etc/shells.bak; echo %D/%F) >/etc/shells
-@unexec echo "updating /etc/shells"; cp /etc/shells /etc/shells.bak; (grep -v %D/%F /etc/shells.bak) >/etc/shells

Modified: head/shells/rssh/Makefile
==============================================================================
--- head/shells/rssh/Makefile	Wed Jun 11 17:09:55 2014	(r357510)
+++ head/shells/rssh/Makefile	Wed Jun 11 17:42:36 2014	(r357511)
@@ -3,6 +3,7 @@
 
 PORTNAME=	rssh
 PORTVERSION=	2.3.4
+PORTREVISION=	1
 CATEGORIES=	shells security
 MASTER_SITES=	SF
 

Modified: head/shells/rssh/pkg-plist
==============================================================================
--- head/shells/rssh/pkg-plist	Wed Jun 11 17:09:55 2014	(r357510)
+++ head/shells/rssh/pkg-plist	Wed Jun 11 17:42:36 2014	(r357511)
@@ -1,7 +1,5 @@
-bin/rssh
+@shell bin/rssh
 man/man1/rssh.1.gz
 man/man5/rssh.conf.5.gz
-@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
 etc/rssh.conf.default.dist
 libexec/rssh_chroot_helper

Modified: head/shells/sash/pkg-plist
==============================================================================
--- head/shells/sash/pkg-plist	Wed Jun 11 17:09:55 2014	(r357510)
+++ head/shells/sash/pkg-plist	Wed Jun 11 17:42:36 2014	(r357511)
@@ -1,4 +1,2 @@
-bin/sash
-@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/sash
 man/man1/sash.1.gz

Modified: head/shells/scponly/pkg-plist
==============================================================================
--- head/shells/scponly/pkg-plist	Wed Jun 11 17:09:55 2014	(r357510)
+++ head/shells/scponly/pkg-plist	Wed Jun 11 17:42:36 2014	(r357511)
@@ -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"

Modified: head/shells/v7sh/Makefile
==============================================================================
--- head/shells/v7sh/Makefile	Wed Jun 11 17:09:55 2014	(r357510)
+++ head/shells/v7sh/Makefile	Wed Jun 11 17:42:36 2014	(r357511)
@@ -3,6 +3,7 @@
 
 PORTNAME=	v7sh
 PORTVERSION=	1.0
+PORTREVISION=	1
 CATEGORIES=	shells
 MASTER_SITES=	ftp://minnie.tuhs.org/UnixArchive/PDP-11/Trees/V7/usr/src/cmd/sh/:s \
 		http://minnie.tuhs.org/UnixTree/V7/usr/src/cmd/sh/:s \

Modified: head/shells/v7sh/pkg-plist
==============================================================================
--- head/shells/v7sh/pkg-plist	Wed Jun 11 17:09:55 2014	(r357510)
+++ head/shells/v7sh/pkg-plist	Wed Jun 11 17:42:36 2014	(r357511)
@@ -1,4 +1,2 @@
-bin/v7sh
+@shell bin/v7sh
 man/man1/v7sh.1.gz
-@exec echo "updating /etc/shells"; cp /etc/shells /etc/shells.bak; (grep -v %D/%F /etc/shells.bak; echo %D/%F) >/etc/shells
-@unexec echo "updating /etc/shells"; cp /etc/shells /etc/shells.bak; (grep -v %D/%F /etc/shells.bak) >/etc/shells

Modified: head/shells/vshnu/pkg-plist
==============================================================================
--- head/shells/vshnu/pkg-plist	Wed Jun 11 17:09:55 2014	(r357510)
+++ head/shells/vshnu/pkg-plist	Wed Jun 11 17:42:36 2014	(r357511)
@@ -1,6 +1,4 @@
-bin/vshnu
-@exec echo "updating /etc/shells"; cp /etc/shells /etc/shells.bak; (grep -v %D/%F /etc/shells.bak; echo %D/%F) >/etc/shells
-@unexec echo "updating /etc/shells"; cp /etc/shells /etc/shells.bak; (grep -v %D/%F /etc/shells.bak) >/etc/shells
+@shell bin/vshnu
 %%SITE_PERL%%/vshnucfg.pl
 %%SITE_PERL%%/%%PERL_ARCH%%/auto/vshnu/.packlist
 @dirrm %%SITE_PERL%%/%%PERL_ARCH%%/auto/vshnu

Modified: head/shells/zsh/pkg-plist
==============================================================================
--- head/shells/zsh/pkg-plist	Wed Jun 11 17:09:55 2014	(r357510)
+++ head/shells/zsh/pkg-plist	Wed Jun 11 17:42:36 2014	(r357511)
@@ -1,9 +1,5 @@
-bin/zsh
-@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
-bin/rzsh
-@exec cp /etc/shells /etc/shells.bak; (grep -v %D/%F /etc/shells.bak; echo %D/%F) >/etc/shells; rm -f /etc/shells.bak
-@unexec cp /etc/shells /etc/shells.bak; (grep -v %D/%F /etc/shells.bak) >/etc/shells; rm -f /etc/shells.bak
+@shell bin/zsh
+@shell bin/rzsh
 bin/zsh-%%ZSH_VER%%
 %%NO_STATIC%%lib/zsh/%%ZSH_VER%%/zsh/cap.so
 %%NO_STATIC%%lib/zsh/%%ZSH_VER%%/zsh/clone.so



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201406111742.s5BHgaKF003196>