summaryrefslogtreecommitdiff
path: root/mk/platform
diff options
context:
space:
mode:
authorjperkin <jperkin@pkgsrc.org>2014-03-11 14:07:04 +0000
committerjperkin <jperkin@pkgsrc.org>2014-03-11 14:07:04 +0000
commit6bcea5495c4b03080e1f7cff4f0d1898590b2317 (patch)
tree6464ad66f5d7dfca0c818bc70f388001084df9fd /mk/platform
parent071ea796c1307e737cc3101448aa934353fe247c (diff)
downloadpkgsrc-6bcea5495c4b03080e1f7cff4f0d1898590b2317.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')
-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