summaryrefslogtreecommitdiff
path: root/mk/platform/SunOS.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/platform/SunOS.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/platform/SunOS.mk')
-rw-r--r--mk/platform/SunOS.mk7
1 files changed, 6 insertions, 1 deletions
diff --git a/mk/platform/SunOS.mk b/mk/platform/SunOS.mk
index 7f2f67eda83..46d6a070143 100644
--- a/mk/platform/SunOS.mk
+++ b/mk/platform/SunOS.mk
@@ -1,4 +1,4 @@
-# $NetBSD: SunOS.mk,v 1.57 2013/09/12 11:01:47 jperkin Exp $
+# $NetBSD: SunOS.mk,v 1.58 2014/03/11 14:07:04 jperkin Exp $
#
# Variable definitions for the SunOS/Solaris operating system.
@@ -38,6 +38,11 @@ MOTIF_TYPE_DEFAULT?= dt # default 2.0 compatible libs type
MOTIF_TYPE_DEFAULT?= motif
.endif
+# Use SMF by default if available.
+.if ${OS_VERSION} >= 5.10
+INIT_SYSTEM?= smf
+.endif
+
# Comes with a builtin implementation based on mit-krb5
KRB5_DEFAULT?= mit-krb5