1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-11-20 00:21:35 +00:00

Install the binary as 'bash2' also.

This commit is contained in:
David E. O'Brien 2004-10-27 22:13:04 +00:00
parent 0362947b6b
commit 20d3a92783
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=120351
2 changed files with 2 additions and 0 deletions

View File

@ -51,6 +51,7 @@ post-patch:
${WRKDIR}/${PORTNAME}-${PORTVERSION:R}/doc/bash.1
post-install:
${LN} -f ${PREFIX}/bin/bash ${PREFIX}/bin/bash2
${CP} /etc/shells /etc/shells.bak
(${GREP} -v ${PREFIX}/bin/bash /etc/shells.bak; ${ECHO_CMD} ${PREFIX}/bin/bash) >/etc/shells
${RM} /etc/shells.bak

View File

@ -1,5 +1,6 @@
@comment $FreeBSD$
bin/bash
bin/bash2
@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
bin/bashbug