1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-12-24 04:33:24 +00:00

Make sure we add ksh93 to /etc/shells.

PR:		15788
Submitted by:	maintainer
This commit is contained in:
Steve Price 1999-12-31 02:10:55 +00:00
parent 7c755429d6
commit 6898f7783a
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=24301
2 changed files with 9 additions and 0 deletions

View File

@ -39,4 +39,11 @@ do-install:
${INSTALL_PROGRAM} ${WRKSRC}/bin/ksh ${PREFIX}/bin/ksh93
${INSTALL_MAN} ${WRKSRC}/man/man1/sh.1 ${PREFIX}/man/man1/ksh93.1
post-install:
@${ECHO_MSG} "Updating /etc/shells"
@${CP} /etc/shells /etc/shells.bak
@(${GREP} -v ${PREFIX}/bin/ksh93 /etc/shells.bak; \
${ECHO} ${PREFIX}/bin/ksh93) > /etc/shells
@${RM} /etc/shells.bak
.include <bsd.port.mk>

View File

@ -1 +1,3 @@
bin/ksh93
@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