summaryrefslogtreecommitdiff
path: root/shells/osh
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/osh
parent3b84b524cafd9ef144e52e865f7afe6ce2f28ced (diff)
downloadpkgsrc-80f17bf2ba09427980289b6fde51e18c6031b529.tar.gz
Convert packages to PKG_REGISTER_SHELLS framework.
Diffstat (limited to 'shells/osh')
-rw-r--r--shells/osh/Makefile10
-rw-r--r--shells/osh/PLIST4
2 files changed, 4 insertions, 10 deletions
diff --git a/shells/osh/Makefile b/shells/osh/Makefile
index 7a1e4670425..58075ebe5de 100644
--- a/shells/osh/Makefile
+++ b/shells/osh/Makefile
@@ -1,4 +1,4 @@
-# $NetBSD: Makefile,v 1.1.1.1 2002/08/20 20:52:29 cjep Exp $
+# $NetBSD: Makefile,v 1.2 2002/11/17 09:02:01 salo Exp $
# FreeBSD Id: ports/shells/osh/Makefile,v 1.3 2002/01/29 11:58:43 knu Exp
DISTNAME= osh-020214
@@ -10,11 +10,7 @@ COMMENT= Implementation of the UNIX 6th Edition shell
MAKEFILE= makefile
-post-install:
- @${ECHO} "updating /etc/shells"; \
- ${TOUCH} /etc/shells; \
- ${CP} /etc/shells /etc/shells.bak; \
- (${GREP} -v '${PREFIX}/bin/osh' /etc/shells.bak || ${TRUE}; \
- ${ECHO} "${PREFIX}/bin/osh") > /etc/shells
+PKG_SHELL= ${PREFIX}/bin/osh
+.include "../../mk/bsd.pkg.install.mk"
.include "../../mk/bsd.pkg.mk"
diff --git a/shells/osh/PLIST b/shells/osh/PLIST
index 1f69f65ba59..555970aefa2 100644
--- a/shells/osh/PLIST
+++ b/shells/osh/PLIST
@@ -1,9 +1,7 @@
-@comment $NetBSD: PLIST,v 1.1.1.1 2002/08/20 20:52:29 cjep Exp $
+@comment $NetBSD: PLIST,v 1.2 2002/11/17 09:02:01 salo Exp $
bin/goto
bin/if
bin/osh
-@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
man/man1/goto.1
man/man1/if.1
man/man1/osh.1