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...

Baptiste Daroussin bapt at FreeBSD.org
Wed Jun 11 17:42:42 UTC 2014


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 at 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
+ at shell bin/44bsd-csh
 man/man1/44bsd-csh.1.gz
- at exec echo "updating /etc/shells"; cp /etc/shells /etc/shells.bak; (grep -v %D/%F /etc/shells.bak; echo %D/%F) >/etc/shells
- at 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
- at 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
- at 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
- at exec cp /etc/shells /etc/shells.bak; (grep -v %D/%F /etc/shells.bak; echo %D/%F) >/etc/shells; rm -f /etc/shells.bak
- at unexec cp /etc/shells /etc/shells.bak; (grep -v %D/%F /etc/shells.bak) >/etc/shells; rm -f /etc/shells.bak
+ at shell bin/bash
+ at 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 @@
- at 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
- at unexec cp /etc/shells /etc/shells.bak; (grep -v %D/bin/ch /etc/shells.bak) >/etc/shells; rm -f /etc/shells.bak
-bin/ch
+ at 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
- at exec echo "updating /etc/shells"; cp /etc/shells /etc/shells.bak; (grep -v %D/%F /etc/shells.bak; echo %D/%F) >/etc/shells
- at unexec echo "updating /etc/shells"; cp /etc/shells /etc/shells.bak; (grep -v %D/%F /etc/shells.bak) >/etc/shells
+ at 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
- at 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
- at 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
+ at shell bin/fdsh
 bin/fd-dict.tbl
 bin/fd-unicd.tbl
 etc/fd2rc.dist
- at unexec if cmp -s %D/etc/fd2rc %D/etc/fd2rc.sample; then rm -f %D/etc/fd2rc; fi
-etc/fd2rc.sample
- at exec [ ! -f %B/fd2rc ] && cp %B/%f %B/fd2rc
+ at 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
+ at 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%%
- at 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
- at 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
+ at 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
- at 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
- at 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
- at unexec echo "Updating /etc/shells"; sed -i "" "\|%D/%F|d" /etc/shells
- at exec echo "Updating /etc/shells"; sed -i "" "\|%D/%F|d" /etc/shells; echo %D/%F >> /etc/shells
+ at 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
+ at shell bin/lshell
 man/man1/lshell.1.gz
- at 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
- at 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
- at 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
- at exec if [ ! -f %D/etc/lshell.conf ]; then cp %B/%f %D/etc/lshell.conf; fi
+ at 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
- at comment Please mind the order. bin/mksh needs to come right before the exec/unexec magic.
-bin/mksh
- at 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
- at 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
+ at 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
+ at 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
- at 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
- at 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
+ at shell bin/ksh
 man/man1/ksh.1.gz
- at exec echo "updating /etc/shells"; cp /etc/shells /etc/shells.bak; (grep -v %D/%F /etc/shells.bak; echo %D/%F) >/etc/shells
- at 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
+ at shell bin/rssh
 man/man1/rssh.1.gz
 man/man5/rssh.conf.5.gz
- at 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
- at 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
- at 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
- at 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
+ at 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
- at 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
- at 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
+ at 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
+ at shell bin/v7sh
 man/man1/v7sh.1.gz
- at exec echo "updating /etc/shells"; cp /etc/shells /etc/shells.bak; (grep -v %D/%F /etc/shells.bak; echo %D/%F) >/etc/shells
- at 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
- at exec echo "updating /etc/shells"; cp /etc/shells /etc/shells.bak; (grep -v %D/%F /etc/shells.bak; echo %D/%F) >/etc/shells
- at unexec echo "updating /etc/shells"; cp /etc/shells /etc/shells.bak; (grep -v %D/%F /etc/shells.bak) >/etc/shells
+ at 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
- at 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
- at 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
- at exec cp /etc/shells /etc/shells.bak; (grep -v %D/%F /etc/shells.bak; echo %D/%F) >/etc/shells; rm -f /etc/shells.bak
- at unexec cp /etc/shells /etc/shells.bak; (grep -v %D/%F /etc/shells.bak) >/etc/shells; rm -f /etc/shells.bak
+ at shell bin/zsh
+ at 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


More information about the svn-ports-head mailing list