diff options
author | salo <salo@pkgsrc.org> | 2002-11-17 09:01:59 +0000 |
---|---|---|
committer | salo <salo@pkgsrc.org> | 2002-11-17 09:01:59 +0000 |
commit | 80f17bf2ba09427980289b6fde51e18c6031b529 (patch) | |
tree | 2f6572446a11090190337dd4e3b4a6d8b609f771 /shells/bash2 | |
parent | 3b84b524cafd9ef144e52e865f7afe6ce2f28ced (diff) | |
download | pkgsrc-80f17bf2ba09427980289b6fde51e18c6031b529.tar.gz |
Convert packages to PKG_REGISTER_SHELLS framework.
Diffstat (limited to 'shells/bash2')
-rw-r--r-- | shells/bash2/Makefile | 9 | ||||
-rw-r--r-- | shells/bash2/PLIST | 4 |
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 |