diff options
author | salo <salo> | 2002-11-17 09:01:59 +0000 |
---|---|---|
committer | salo <salo> | 2002-11-17 09:01:59 +0000 |
commit | 061594fade6adaf9dc1c8d2c5ccb63b0ab40f3ca (patch) | |
tree | 2f6572446a11090190337dd4e3b4a6d8b609f771 /shells/tcsh | |
parent | 41c2b7b35024f4a7c8d3bcad86ea6bf9066da781 (diff) | |
download | pkgsrc-061594fade6adaf9dc1c8d2c5ccb63b0ab40f3ca.tar.gz |
Convert packages to PKG_REGISTER_SHELLS framework.
Diffstat (limited to 'shells/tcsh')
-rw-r--r-- | shells/tcsh/Makefile | 18 | ||||
-rw-r--r-- | shells/tcsh/PLIST | 4 |
2 files changed, 5 insertions, 17 deletions
diff --git a/shells/tcsh/Makefile b/shells/tcsh/Makefile index 5a5476df6fd..a79422cdcb8 100644 --- a/shells/tcsh/Makefile +++ b/shells/tcsh/Makefile @@ -1,4 +1,4 @@ -# $NetBSD: Makefile,v 1.39 2002/09/30 23:54:07 jlam Exp $ +# $NetBSD: Makefile,v 1.40 2002/11/17 09:02:01 salo Exp $ # DISTNAME= tcsh-6.12.00 @@ -27,6 +27,8 @@ OS_VERSION!= ${ECHO} ${OS_VERSION} | ${SED} -e 's|5\.|2.|' LOWER_OPSYS= solaris${OS_VERSION} .endif +PKG_SHELL?= ${PREFIX}/bin/tcsh + post-install: @${ECHO} "Installing message catalogues" @[ -d ${PREFIX}/${NLSDIR}/C ] || \ @@ -72,18 +74,6 @@ post-install: shift 1; \ done; \ done - @${ECHO} "updating /etc/shells"; \ - ${TOUCH} /etc/shells; \ - ${CP} /etc/shells /etc/shells.bak; \ - if [ "${PREFIX}" = / ];then \ - TCSHPATH=/bin/tcsh; \ - else \ - TCSHPATH=${PREFIX}/bin/tcsh; \ - fi; \ - ( \ - ${GREP} -v '^$${TCSHPATH}$$' /etc/shells.bak || \ - ${TRUE}; \ - ${ECHO} $${TCSHPATH} \ - ) >/etc/shells +.include "../../mk/bsd.pkg.install.mk" .include "../../mk/bsd.pkg.mk" diff --git a/shells/tcsh/PLIST b/shells/tcsh/PLIST index eff5a459874..3142a370ac3 100644 --- a/shells/tcsh/PLIST +++ b/shells/tcsh/PLIST @@ -1,5 +1,3 @@ -@comment $NetBSD: PLIST,v 1.1 2001/10/31 22:27:01 zuntum Exp $ +@comment $NetBSD: PLIST,v 1.2 2002/11/17 09:02:02 salo Exp $ bin/tcsh -@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 man/man1/tcsh.1 |