diff options
author | heinz <heinz@pkgsrc.org> | 2002-10-17 16:15:14 +0000 |
---|---|---|
committer | heinz <heinz@pkgsrc.org> | 2002-10-17 16:15:14 +0000 |
commit | 834e71adf4e1bdc34ac13baa0b39e5e02a70e3fe (patch) | |
tree | 078fbdfcbf5cee792a7baef3b2e8562d196ee87d /mk/install | |
parent | bc0094b054e230f7d37c521cf7ee206243d78a13 (diff) | |
download | pkgsrc-834e71adf4e1bdc34ac13baa0b39e5e02a70e3fe.tar.gz |
Only delete scripts in RCD_SCRIPTS_DIR if PKG_RCD_SCRIPTS is YES
(approved by jlam).
Diffstat (limited to 'mk/install')
-rw-r--r-- | mk/install/deinstall | 18 |
1 files changed, 10 insertions, 8 deletions
diff --git a/mk/install/deinstall b/mk/install/deinstall index cef1d019723..cb923e9460f 100644 --- a/mk/install/deinstall +++ b/mk/install/deinstall @@ -1,6 +1,6 @@ # start of deinstall # -# $NetBSD: deinstall,v 1.12 2002/08/22 08:21:31 jlam Exp $ +# $NetBSD: deinstall,v 1.13 2002/10/17 16:15:14 heinz Exp $ eval set -- ${PKG_USERS} for userset; do @@ -25,13 +25,15 @@ eval set -- ${CONF_FILES} ${SUPPORT_FILES} for file; do ALL_FILES="${ALL_FILES} \"${file}\"" done -eval set -- ${RCD_SCRIPTS} -for script; do - samplefile="${RCD_SCRIPTS_EXAMPLEDIR}/${script}" - file="${RCD_SCRIPTS_DIR}/${script}" - shift - ALL_FILES="${ALL_FILES} \"${samplefile}\" \"${file}\"" -done +if [ "${_PKG_RCD_SCRIPTS}" = "YES" ]; then + eval set -- ${RCD_SCRIPTS} + for script; do + samplefile="${RCD_SCRIPTS_EXAMPLEDIR}/${script}" + file="${RCD_SCRIPTS_DIR}/${script}" + shift + ALL_FILES="${ALL_FILES} \"${samplefile}\" \"${file}\"" + done +fi eval set -- ${CONF_FILES_PERMS} ${SUPPORT_FILES_PERMS} while [ $# -gt 0 ]; do samplefile="$1"; file="$2"; owner="$3"; group="$4"; mode="$5" |