diff options
author | bapt <bapt@FreeBSD.org> | 2016-05-30 06:53:22 +0800 |
---|---|---|
committer | bapt <bapt@FreeBSD.org> | 2016-05-30 06:53:22 +0800 |
commit | 176cb402e0bd62bd1a4239d8bf0a8bd46c755a89 (patch) | |
tree | ca56fe876e50be98161b05667971a9a9f89001fd /Keywords | |
parent | 95a6fccc2174b8b9aa7cab83017065ba4dc1d5dc (diff) | |
download | freebsd-ports-gnome-176cb402e0bd62bd1a4239d8bf0a8bd46c755a89.tar.gz freebsd-ports-gnome-176cb402e0bd62bd1a4239d8bf0a8bd46c755a89.tar.zst freebsd-ports-gnome-176cb402e0bd62bd1a4239d8bf0a8bd46c755a89.zip |
Make @shell rootdir friendly to allow cross installation
Diffstat (limited to 'Keywords')
-rw-r--r-- | Keywords/shell.ucl | 12 |
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 |