aboutsummaryrefslogtreecommitdiffstats
path: root/shells
diff options
context:
space:
mode:
authormiwi <miwi@FreeBSD.org>2006-08-07 15:58:28 +0800
committermiwi <miwi@FreeBSD.org>2006-08-07 15:58:28 +0800
commit1b5538a51a22e1175099fe908682112d9ba03ff8 (patch)
treed006e03928822cdb944c6f1ee3c6815d6710a02d /shells
parent3eb8cf21a813a24200afe73bc941e88b17d9ba3c (diff)
downloadfreebsd-ports-gnome-1b5538a51a22e1175099fe908682112d9ba03ff8.tar.gz
freebsd-ports-gnome-1b5538a51a22e1175099fe908682112d9ba03ff8.tar.zst
freebsd-ports-gnome-1b5538a51a22e1175099fe908682112d9ba03ff8.zip
- Respect DESTDIR for all my ports
Reviewed by: gabor Approved by: krion (mentor)
Diffstat (limited to 'shells')
-rw-r--r--shells/osh/Makefile10
-rw-r--r--shells/osh/pkg-plist4
2 files changed, 7 insertions, 7 deletions
diff --git a/shells/osh/Makefile b/shells/osh/Makefile
index f79daa1123c1..c4425cc18cde 100644
--- a/shells/osh/Makefile
+++ b/shells/osh/Makefile
@@ -16,10 +16,10 @@ COMMENT= An implementation of the UNIX 6th Edition shell
MAN1= fd2.1 goto.1 if.1 osh.1
post-install:
- @${ECHO_MSG} "updating /etc/shells"
- @${CP} /etc/shells /etc/shells.bak
- @(${GREP} -v ${PREFIX}/bin/osh /etc/shells.bak; \
- ${ECHO_CMD} ${PREFIX}/bin/osh) > /etc/shells
- @${RM} /etc/shells.bak
+ @${ECHO_MSG} "updating ${DESTDIR}/etc/shells"
+ @${CP} ${DESTDIR}/etc/shells ${DESTDIR}/etc/shells.bak
+ @(${GREP} -v ${PREFIX}/bin/osh ${DESTDIR}/etc/shells.bak; \
+ ${ECHO_CMD} ${PREFIX}/bin/osh) > ${DESTDIR}/etc/shells
+ @${RM} ${DESTDIR}/etc/shells.bak
.include <bsd.port.mk>
diff --git a/shells/osh/pkg-plist b/shells/osh/pkg-plist
index 9125442c7601..9dbc744d35e8 100644
--- a/shells/osh/pkg-plist
+++ b/shells/osh/pkg-plist
@@ -2,5 +2,5 @@ bin/fd2
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
+@exec echo "updating ${DESTDIR}/etc/shells"; cp ${DESTDIR}/etc/shells ${DESTDIR}/etc/shells.bak; (grep -v %D/%F ${DESTDIR}/etc/shells.bak; echo %D/%F) >${DESTDIR}/etc/shells
+@unexec echo "updating ${DESTDIR}/etc/shells"; cp /etc/shells /etc/shells.bak; (grep -v %D/%F /etc/shells.bak) >/etc/shells