aboutsummaryrefslogtreecommitdiff
path: root/Keywords
diff options
context:
space:
mode:
authorBaptiste Daroussin <bapt@FreeBSD.org>2016-05-29 22:53:22 +0000
committerBaptiste Daroussin <bapt@FreeBSD.org>2016-05-29 22:53:22 +0000
commit97a6b58a85df321ee2626e69c6fa3bb2f39a7a3e (patch)
treeca56fe876e50be98161b05667971a9a9f89001fd /Keywords
parent07d30f486ec3b63fd1873658ce9f48ad272d2255 (diff)
downloadports-97a6b58a85df321ee2626e69c6fa3bb2f39a7a3e.tar.gz
ports-97a6b58a85df321ee2626e69c6fa3bb2f39a7a3e.zip
Notes
Diffstat (limited to 'Keywords')
-rw-r--r--Keywords/shell.ucl12
1 files changed, 6 insertions, 6 deletions
diff --git a/Keywords/shell.ucl b/Keywords/shell.ucl
index 7c3ae7f1678a..f4e3c30f1381 100644
--- a/Keywords/shell.ucl
+++ b/Keywords/shell.ucl
@@ -17,16 +17,16 @@ post-install: <<EOD
/*) file="%@" ;;
*) file="%D/%@" ;;
esac
- cp /etc/shells /etc/shells.bak
- (grep -v "^${file}$" /etc/shells.bak; echo ${file}) > /etc/shells
- rm -f /etc/shells.bak
+ cp ${PKG_ROOTDIR}/etc/shells ${PKG_ROOTDIR}/etc/shells.bak
+ (grep -v "^${file}$" ${PKG_ROOTDIR}/etc/shells.bak; echo ${file}) > ${PKG_ROOTDIR}/etc/shells
+ rm -f ${PKG_ROOTDIR}/etc/shells.bak
EOD
pre-deinstall: <<EOD
case "%@" in
/*) file="%@" ;;
*) file="%D/%@" ;;
esac
- cp /etc/shells /etc/shells.bak
- grep -v "^${file}$" /etc/shells.bak > /etc/shells
- rm -f /etc/shells.bak
+ cp ${PKG_ROOTDIR}/etc/shells ${PKG_ROOTDIR}/etc/shells.bak
+ grep -v "^${file}$" ${PKG_ROOTDIR}/etc/shells.bak > ${PKG_ROOTDIR}/etc/shells
+ rm -f ${PKG_ROOTDIR}/etc/shells.bak
EOD