diff options
author | heinz <heinz> | 2002-10-17 16:15:14 +0000 |
---|---|---|
committer | heinz <heinz> | 2002-10-17 16:15:14 +0000 |
commit | c9181e4c99171454e381f4c7b5012530142d526c (patch) | |
tree | 078fbdfcbf5cee792a7baef3b2e8562d196ee87d /mk | |
parent | 7c7bd9ee1eef360fcea108264da0161fabd415a2 (diff) | |
download | pkgsrc-c9181e4c99171454e381f4c7b5012530142d526c.tar.gz |
Only delete scripts in RCD_SCRIPTS_DIR if PKG_RCD_SCRIPTS is YES
(approved by jlam).
Diffstat (limited to 'mk')
-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" |