aboutsummaryrefslogtreecommitdiff
path: root/shells
diff options
context:
space:
mode:
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