summaryrefslogtreecommitdiff
path: root/mk/bsd.pkg.install.mk
diff options
context:
space:
mode:
authorjlam <jlam>2001-11-21 15:43:01 +0000
committerjlam <jlam>2001-11-21 15:43:01 +0000
commit7f0c876b6b42cc2b0ae185611b9b4df6f96f4a64 (patch)
tree692b14af18c1bd306ea0193fdd720c5d3c41ecb1 /mk/bsd.pkg.install.mk
parentc902b79868a3b1ab4b8157581bcb4d6e8351d7fa (diff)
downloadpkgsrc-7f0c876b6b42cc2b0ae185611b9b4df6f96f4a64.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/bsd.pkg.install.mk')
-rw-r--r--mk/bsd.pkg.install.mk9
1 files changed, 6 insertions, 3 deletions
diff --git a/mk/bsd.pkg.install.mk b/mk/bsd.pkg.install.mk
index 1be158c2e7e..9ca10c26d08 100644
--- a/mk/bsd.pkg.install.mk
+++ b/mk/bsd.pkg.install.mk
@@ -1,4 +1,4 @@
-# $NetBSD: bsd.pkg.install.mk,v 1.2 2001/11/19 23:33:52 jlam Exp $
+# $NetBSD: bsd.pkg.install.mk,v 1.3 2001/11/21 15:43:01 jlam Exp $
#
# This Makefile fragment is included by package Makefiles to use the common
# INSTALL/DEINSTALL scripts. To use this Makefile fragment, simply:
@@ -107,8 +107,9 @@ USE_USERGROUP= YES
# same way, but the package admin isn't prompted to customize the file
# at post-install time.
#
-# RCD_SCRIPTS works like CONF_FILES but deals with rc.d startup scripts. The
-# scripts are copied with ${RCD_SCRIPTS_MODE} permissions.
+# RCD_SCRIPTS works lists the basenames of the rc.d scripts. It's assumed that
+# they live in ${PREFIX}/etc/rc.d, and the scripts will be copied into
+# ${RCD_SCRIPTS_DIR} with ${RCD_SCRIPTS_MODE} permissions.
#
CONF_FILES?= # empty
CONF_FILES_MODE?= 0644
@@ -118,6 +119,7 @@ SUPPORT_FILES_MODE?= 0644
SUPPORT_FILES_PERMS?= # empty
RCD_SCRIPTS?= # empty
RCD_SCRIPTS_MODE?= 0755
+RCD_SCRIPTS_DIR?= /etc/rc.d
FILES_SUBST+= CONF_FILES=${CONF_FILES:Q}
FILES_SUBST+= CONF_FILES_MODE=${CONF_FILES_MODE}
FILES_SUBST+= CONF_FILES_PERMS=${CONF_FILES_PERMS:Q}
@@ -126,6 +128,7 @@ FILES_SUBST+= SUPPORT_FILES_MODE=${SUPPORT_FILES_MODE}
FILES_SUBST+= SUPPORT_FILES_PERMS=${SUPPORT_FILES_PERMS:Q}
FILES_SUBST+= RCD_SCRIPTS=${RCD_SCRIPTS:Q}
FILES_SUBST+= RCD_SCRIPTS_MODE=${RCD_SCRIPTS_MODE}
+FILES_SUBST+= RCD_SCRIPTS_DIR=${RCD_SCRIPTS_DIR}
# OWN_DIRS contains a list of directories for this package that should be
# created and should attempt to be destroyed by the INSTALL/DEINSTALL