summaryrefslogtreecommitdiff
path: root/mk/bsd.pkg.mk
diff options
context:
space:
mode:
authorjperkin <jperkin>2014-03-11 13:45:07 +0000
committerjperkin <jperkin>2014-03-11 13:45:07 +0000
commitaeb5511d07c4ece590d62eb9f168044ab18f4843 (patch)
treec6486a0debd799859e125a135164078c745000b9 /mk/bsd.pkg.mk
parent45b9ab1f3087c4e98f61826574b7e70086c62d81 (diff)
downloadpkgsrc-aeb5511d07c4ece590d62eb9f168044ab18f4843.tar.gz
Add initial support for alternative init systems.
This commit introduces an INIT_SYSTEM variable which will determine the type of init system to be used on the target system, supporting "rc.d" at this time. The pkginstall infrastructure is changed to only install RCD_SCRIPTS if INIT_SYSTEM is set to "rc.d", and PLIST entries for rc.d scripts are now handled automatically based on RCD_SCRIPTS.
Diffstat (limited to 'mk/bsd.pkg.mk')
-rw-r--r--mk/bsd.pkg.mk7
1 files changed, 6 insertions, 1 deletions
diff --git a/mk/bsd.pkg.mk b/mk/bsd.pkg.mk
index 8a217dc1893..8cf0e2e42d9 100644
--- a/mk/bsd.pkg.mk
+++ b/mk/bsd.pkg.mk
@@ -1,4 +1,4 @@
-# $NetBSD: bsd.pkg.mk,v 1.1995 2014/03/03 03:21:16 obache Exp $
+# $NetBSD: bsd.pkg.mk,v 1.1996 2014/03/11 13:45:07 jperkin Exp $
#
# This file is in the public domain.
#
@@ -315,6 +315,11 @@ OVERRIDE_DIRDEPTH?= 2
#
.include "alternatives.mk"
+# Support alternative init systems.
+#
+INIT_SYSTEM?= rc.d
+_BUILD_DEFS+= INIT_SYSTEM
+
# Define SMART_MESSAGES in /etc/mk.conf for messages giving the tree
# of dependencies for building, and the current target.
_PKGSRC_IN?= ===${SMART_MESSAGES:D> ${.TARGET} [${PKGNAME}${_PKGSRC_DEPS}] ===}