summaryrefslogtreecommitdiff
path: root/mk/bsd.pkg.install.mk
diff options
context:
space:
mode:
authorjlam <jlam>2002-09-19 10:20:50 +0000
committerjlam <jlam>2002-09-19 10:20:50 +0000
commit99e714a7fd2aa74bee09eb79fd63cc5d183b7a81 (patch)
tree1bffb7e44941a43dbc7920874e34fb0904faac38 /mk/bsd.pkg.install.mk
parentd1a32f9d3becd23c08ad93d8cddbfd1ba1ce672c (diff)
downloadpkgsrc-99e714a7fd2aa74bee09eb79fd63cc5d183b7a81.tar.gz
Restore the ability to not automatically install the rc.d script into
/etc/rc.d. This is controlled by the new variable PKG_RCD_SCRIPTS which may be set in /etc/mk.conf or in the shell environment in which the INSTALL script is executed. PKG_RCD_SCRIPTS only takes effect if ${PKG_CONFIG} == "YES" and defaults to NO.
Diffstat (limited to 'mk/bsd.pkg.install.mk')
-rw-r--r--mk/bsd.pkg.install.mk8
1 files changed, 7 insertions, 1 deletions
diff --git a/mk/bsd.pkg.install.mk b/mk/bsd.pkg.install.mk
index 55aa5a12240..67ec1bdc45d 100644
--- a/mk/bsd.pkg.install.mk
+++ b/mk/bsd.pkg.install.mk
@@ -1,4 +1,4 @@
-# $NetBSD: bsd.pkg.install.mk,v 1.26 2002/09/19 09:02:40 jlam Exp $
+# $NetBSD: bsd.pkg.install.mk,v 1.27 2002/09/19 10:20:50 jlam Exp $
#
# This Makefile fragment is included by package Makefiles to use the common
# INSTALL/DEINSTALL scripts. To use this Makefile fragment, simply:
@@ -179,13 +179,19 @@ FILES_SUBST+= OWN_DIRS_PERMS=${OWN_DIRS_PERMS:Q}
# directories needed to use the package. It is either YES or NO
# and defaults to YES.
#
+# PKG_RCD_SCRIPTS indicates whether to automatically install rc.d scripts
+# to ${RCD_SCRIPTS_DIR}. It is either YES or NO and defaults to
+# NO. This variable only takes effect if ${PKG_CONFIG} == "YES".
+#
# These values merely set the defaults for INSTALL/DEINSTALL scripts, but
# they may be overridden by resetting them in the environment.
#
PKG_CREATE_USERGROUP?= YES
PKG_CONFIG?= YES
+PKG_RCD_SCRIPTS?= NO
FILES_SUBST+= PKG_CREATE_USERGROUP=${PKG_CREATE_USERGROUP}
FILES_SUBST+= PKG_CONFIG=${PKG_CONFIG}
+FILES_SUBST+= PKG_RCD_SCRIPTS=${PKG_RCD_SCRIPTS}
# Substitute for various programs used in the DEINSTALL/INSTALL scripts and
# in the rc.d scripts.