summaryrefslogtreecommitdiffstats
path: root/shells
diff options
context:
space:
mode:
Diffstat (limited to 'shells')
-rw-r--r--shells/bash2/Makefile1
-rw-r--r--shells/bash2/pkg-plist1
2 files changed, 2 insertions, 0 deletions
diff --git a/shells/bash2/Makefile b/shells/bash2/Makefile
index d394a21..45c2a86 100644
--- a/shells/bash2/Makefile
+++ b/shells/bash2/Makefile
@@ -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
diff --git a/shells/bash2/pkg-plist b/shells/bash2/pkg-plist
index 6dab7e7..6c39552 100644
--- a/shells/bash2/pkg-plist
+++ b/shells/bash2/pkg-plist
@@ -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
OpenPOWER on IntegriCloud