diff options
author | jperkin <jperkin@pkgsrc.org> | 2014-03-11 14:07:04 +0000 |
---|---|---|
committer | jperkin <jperkin@pkgsrc.org> | 2014-03-11 14:07:04 +0000 |
commit | 44defc51cc7a3e6fb9a76073078e8c92bb29dd7c (patch) | |
tree | 6464ad66f5d7dfca0c818bc70f388001084df9fd /mk/bsd.pkg.mk | |
parent | 5c04a96e50e8561d5a06b7ae50a6a0325f71ce75 (diff) | |
download | pkgsrc-44defc51cc7a3e6fb9a76073078e8c92bb29dd7c.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.mk | 5 |
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 |