summaryrefslogtreecommitdiff
path: root/mk/install/deinstall
diff options
context:
space:
mode:
authorjlam <jlam@pkgsrc.org>2001-11-21 15:43:01 +0000
committerjlam <jlam@pkgsrc.org>2001-11-21 15:43:01 +0000
commitf1b957484f30f1b7c072af702ffb7253a9755563 (patch)
tree692b14af18c1bd306ea0193fdd720c5d3c41ecb1 /mk/install/deinstall
parent2ac4cd69d41393da6db010ce2194e2bd4f35c0fa (diff)
downloadpkgsrc-f1b957484f30f1b7c072af702ffb7253a9755563.tar.gz
Change the way the RCD_SCRIPTS variable is used. It now just lists the
names of the scripts and is no longer a MLINKS-type variable. The scripts are copied into ${RCD_SCRIPTS_DIR} which defaults to /etc/rc.d for now. It's unclear if Linux/Solaris would set RCD_SCRIPTS_DIR to something else.
Diffstat (limited to 'mk/install/deinstall')
-rw-r--r--mk/install/deinstall12
1 files changed, 10 insertions, 2 deletions
diff --git a/mk/install/deinstall b/mk/install/deinstall
index 81444ffa5ef..b67a9f09ea8 100644
--- a/mk/install/deinstall
+++ b/mk/install/deinstall
@@ -1,8 +1,16 @@
# start of deinstall
#
-# $NetBSD: deinstall,v 1.4 2001/11/21 05:38:03 jlam Exp $
+# $NetBSD: deinstall,v 1.5 2001/11/21 15:43:01 jlam Exp $
-ALL_FILES="${CONF_FILES} ${SUPPORT_FILES} ${RCD_SCRIPTS}"
+ALL_FILES="${CONF_FILES} ${SUPPORT_FILES}"
+set -- ${RCD_SCRIPTS}
+while [ $# -gt 0 ]
+do
+ samplefile="${PKG_PREFIX}/etc/rc.d/$1"
+ file="${RCD_SCRIPTS_DIR}/$1"
+ shift
+ ALL_FILES="${ALL_FILES} ${samplefile} ${file}"
+done
set -- ${CONF_FILES_PERMS} ${SUPPORT_FILES_PERMS}
while [ $# -gt 0 ]
do