diff options
author | tg <tg@FreeBSD.org> | 1999-12-29 18:27:18 +0800 |
---|---|---|
committer | tg <tg@FreeBSD.org> | 1999-12-29 18:27:18 +0800 |
commit | 2b9825a7d8bd4e0471ec0073fdffa9af10461415 (patch) | |
tree | ebce690c3ac0864592ec33dc80e8c3bc82905f52 | |
parent | 32df7eae95147126c497ddd2879b4ae4758db887 (diff) | |
download | freebsd-ports-gnome-2b9825a7d8bd4e0471ec0073fdffa9af10461415.tar.gz freebsd-ports-gnome-2b9825a7d8bd4e0471ec0073fdffa9af10461415.tar.zst freebsd-ports-gnome-2b9825a7d8bd4e0471ec0073fdffa9af10461415.zip |
Update /etc/shells after installation.
PR: 15685
Submitted by: foxfair
-rw-r--r-- | shells/pdksh/Makefile | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/shells/pdksh/Makefile b/shells/pdksh/Makefile index 6511c5503b06..938c31eb4905 100644 --- a/shells/pdksh/Makefile +++ b/shells/pdksh/Makefile @@ -20,4 +20,11 @@ GNU_CONFIGURE= yes CONFIGURE_ENV= LDSTATIC=-static MAN1= ksh.1 +post-install: + @${ECHO} "Updating /etc/shells" + @${CP} /etc/shells /etc/shells.bak + @(${GREP} -v ${PREFIX}/bin/ksh /etc/shells.bak; \ + ${ECHO} ${PREFIX}/bin/ksh) > /etc/shells + @${RM} /etc/shells.bak + .include <bsd.port.mk> |