summaryrefslogtreecommitdiff
path: root/mk/bsd.pkg.mk
diff options
context:
space:
mode:
authorjperkin <jperkin>2014-03-11 14:07:04 +0000
committerjperkin <jperkin>2014-03-11 14:07:04 +0000
commit8a57b7d09b39ddfb89bcd11bfffa4a2881c0821f (patch)
tree6464ad66f5d7dfca0c818bc70f388001084df9fd /mk/bsd.pkg.mk
parent9fe0771789d592d2b581e745bc7d9b33612bdc00 (diff)
downloadpkgsrc-8a57b7d09b39ddfb89bcd11bfffa4a2881c0821f.tar.gz
Introduce infrastructure support for SMF.
SMF is the Service Management Facility, the default init system in Solaris and derivatives since version 10. This adds "smf" to the list of supported INIT_SYSTEM types, and makes it the default init system on platforms where it is available. Packages can introduce SMF support by providing a manifest file, by default located in ${FILESDIR}/smf/manifest.xml but manifests under ${WRKSRC} can be used too if the package source includes one. SMF method scripts are supported too if required, using SMF_METHODS in a similar manner to RCD_SCRIPTS. Many parts of the SMF infrastructure are configurable, see mk/smf.mk for the full details.
Diffstat (limited to 'mk/bsd.pkg.mk')
-rw-r--r--mk/bsd.pkg.mk5
1 files changed, 4 insertions, 1 deletions
diff --git a/mk/bsd.pkg.mk b/mk/bsd.pkg.mk
index 8cf0e2e42d9..92f78e7b68d 100644
--- a/mk/bsd.pkg.mk
+++ b/mk/bsd.pkg.mk
@@ -1,4 +1,4 @@
-# $NetBSD: bsd.pkg.mk,v 1.1996 2014/03/11 13:45:07 jperkin Exp $
+# $NetBSD: bsd.pkg.mk,v 1.1997 2014/03/11 14:07:04 jperkin Exp $
#
# This file is in the public domain.
#
@@ -318,6 +318,9 @@ OVERRIDE_DIRDEPTH?= 2
# 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