summaryrefslogtreecommitdiff
path: root/mk
diff options
context:
space:
mode:
authorjperkin <jperkin@pkgsrc.org>2014-05-06 14:48:06 +0000
committerjperkin <jperkin@pkgsrc.org>2014-05-06 14:48:06 +0000
commit15826d701ef0ae2b9d580b7addc50602872fc40b (patch)
tree6132836bacf438858c152998ca9fa73dd26a7c18 /mk
parent7a2e9584e0b9b6a75536388c4d7b3014567d8361 (diff)
downloadpkgsrc-15826d701ef0ae2b9d580b7addc50602872fc40b.tar.gz
Move INIT_SYSTEM to bsd.prefs.mk, allowing it to be tested in
package Makefiles when packages perform custom rc.d handling.
Diffstat (limited to 'mk')
-rw-r--r--mk/bsd.pkg.mk10
-rw-r--r--mk/bsd.prefs.mk10
2 files changed, 10 insertions, 10 deletions
diff --git a/mk/bsd.pkg.mk b/mk/bsd.pkg.mk
index 6680f96dee6..d070044e96f 100644
--- a/mk/bsd.pkg.mk
+++ b/mk/bsd.pkg.mk
@@ -1,4 +1,4 @@
-# $NetBSD: bsd.pkg.mk,v 1.1998 2014/04/15 18:55:18 wiz Exp $
+# $NetBSD: bsd.pkg.mk,v 1.1999 2014/05/06 14:48:06 jperkin Exp $
#
# This file is in the public domain.
#
@@ -315,14 +315,6 @@ OVERRIDE_DIRDEPTH?= 2
#
.include "alternatives.mk"
-# Support alternative init systems.
-#
-INIT_SYSTEM?= rc.d
-.if ${INIT_SYSTEM} == "smf"
-. include "smf.mk"
-.endif
-_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}] ===}
diff --git a/mk/bsd.prefs.mk b/mk/bsd.prefs.mk
index fb01eddc46b..caa89395490 100644
--- a/mk/bsd.prefs.mk
+++ b/mk/bsd.prefs.mk
@@ -1,4 +1,4 @@
-# $NetBSD: bsd.prefs.mk,v 1.346 2014/05/05 21:26:31 ryoon Exp $
+# $NetBSD: bsd.prefs.mk,v 1.347 2014/05/06 14:48:06 jperkin Exp $
#
# This file includes the mk.conf file, which contains the user settings.
#
@@ -759,6 +759,14 @@ PREPEND_PATH+= ${X11BASE}/bin
.endif
PREPEND_PATH+= ${LOCALBASE}/bin
+# Support alternative init systems.
+#
+INIT_SYSTEM?= rc.d
+.if ${INIT_SYSTEM} == "smf"
+. include "smf.mk"
+.endif
+_BUILD_DEFS+= INIT_SYSTEM
+
# Wrapper framework definitions
.include "wrapper/wrapper-defs.mk"