summaryrefslogtreecommitdiff
path: root/shells/tcsh
diff options
context:
space:
mode:
authorsalo <salo@pkgsrc.org>2002-11-17 09:01:59 +0000
committersalo <salo@pkgsrc.org>2002-11-17 09:01:59 +0000
commit80f17bf2ba09427980289b6fde51e18c6031b529 (patch)
tree2f6572446a11090190337dd4e3b4a6d8b609f771 /shells/tcsh
parent3b84b524cafd9ef144e52e865f7afe6ce2f28ced (diff)
downloadpkgsrc-80f17bf2ba09427980289b6fde51e18c6031b529.tar.gz
Convert packages to PKG_REGISTER_SHELLS framework.
Diffstat (limited to 'shells/tcsh')
-rw-r--r--shells/tcsh/Makefile18
-rw-r--r--shells/tcsh/PLIST4
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