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:
parent
7c755429d6
commit
6898f7783a
Notes:
svn2git
2021-03-31 03:12:20 +00:00
svn path=/head/; revision=24301
@ -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>
|
||||
|
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user