summaryrefslogtreecommitdiff
path: root/shells/bash2
diff options
context:
space:
mode:
authorsalo <salo>2002-11-17 09:01:59 +0000
committersalo <salo>2002-11-17 09:01:59 +0000
commit061594fade6adaf9dc1c8d2c5ccb63b0ab40f3ca (patch)
tree2f6572446a11090190337dd4e3b4a6d8b609f771 /shells/bash2
parent41c2b7b35024f4a7c8d3bcad86ea6bf9066da781 (diff)
downloadpkgsrc-061594fade6adaf9dc1c8d2c5ccb63b0ab40f3ca.tar.gz
Convert packages to PKG_REGISTER_SHELLS framework.
Diffstat (limited to 'shells/bash2')
-rw-r--r--shells/bash2/Makefile9
-rw-r--r--shells/bash2/PLIST4
2 files changed, 5 insertions, 8 deletions
diff --git a/shells/bash2/Makefile b/shells/bash2/Makefile
index c9299ed1f22..88f3fa52794 100644
--- a/shells/bash2/Makefile
+++ b/shells/bash2/Makefile
@@ -1,4 +1,4 @@
-# $NetBSD: Makefile,v 1.35 2002/09/26 22:06:29 jlam Exp $
+# $NetBSD: Makefile,v 1.36 2002/11/17 09:02:00 salo Exp $
#
DISTNAME= bash-2.05
@@ -17,6 +17,8 @@ USE_BUILDLINK2= no
GNU_CONFIGURE= yes
MAKE_ENV+= INSTALL_SCRIPT='${INSTALL_SCRIPT}'
+PKG_SHELL= ${PREFIX}/bin/bash
+
.include "../../mk/bsd.prefs.mk"
.if defined(BASH_STATIC) && ${BASH_STATIC} == YES
@@ -57,11 +59,8 @@ pre-configure:
post-install:
${INSTALL_MAN} ${WRKSRC}/doc/bash.1 ${PREFIX}/man/man1
${INSTALL_MAN} ${WRKSRC}/doc/bashbug.1 ${PREFIX}/man/man1
- ${TOUCH} /etc/shells
- ${CP} /etc/shells /etc/shells.bak
- (${GREP} -v ${PREFIX}/bin/bash /etc/shells.bak || ${TRUE}; ${ECHO} ${PREFIX}/bin/bash) >/etc/shells
- ${RM} /etc/shells.bak
+.include "../../mk/bsd.pkg.install.mk"
.include "../../mk/bsd.pkg.mk"
CPPFLAGS:= -I${GETTEXTDIR}/include ${CPPFLAGS}
diff --git a/shells/bash2/PLIST b/shells/bash2/PLIST
index 26f9e75a3b9..706ba24ce77 100644
--- a/shells/bash2/PLIST
+++ b/shells/bash2/PLIST
@@ -1,7 +1,5 @@
-@comment $NetBSD: PLIST,v 1.3 2002/09/26 22:06:30 jlam Exp $
+@comment $NetBSD: PLIST,v 1.4 2002/11/17 09:02:00 salo Exp $
bin/bash
-@exec echo "updating /etc/shells"; cp /etc/shells /etc/shells.bak; (grep -v %D/%F /etc/shells.bak || true; echo %D/%F) >/etc/shells
-@unexec echo "updating /etc/shells"; cp /etc/shells /etc/shells.bak; (grep -v %D/%F /etc/shells.bak || true) >/etc/shells
bin/bashbug
man/man1/bash.1
man/man1/bashbug.1