summaryrefslogtreecommitdiff
path: root/net/nsd
diff options
context:
space:
mode:
authorwiedi <wiedi@pkgsrc.org>2015-06-08 15:42:07 +0000
committerwiedi <wiedi@pkgsrc.org>2015-06-08 15:42:07 +0000
commit6a681d84b8ce0a75c085ec1145f752a88c65c678 (patch)
treee5e51b3f55a569285bbf2b3f739b9729d8d1d27e /net/nsd
parentf47327efdc318d9668c7330c5f0c5fbd9ddfa3db (diff)
downloadpkgsrc-6a681d84b8ce0a75c085ec1145f752a88c65c678.tar.gz
add SMF manifest
Diffstat (limited to 'net/nsd')
-rw-r--r--net/nsd/Makefile3
-rw-r--r--net/nsd/files/smf/manifest.xml29
2 files changed, 31 insertions, 1 deletions
diff --git a/net/nsd/Makefile b/net/nsd/Makefile
index 1124e59e135..865a72cad4f 100644
--- a/net/nsd/Makefile
+++ b/net/nsd/Makefile
@@ -1,6 +1,7 @@
-# $NetBSD: Makefile,v 1.75 2015/05/03 20:57:49 pettai Exp $
+# $NetBSD: Makefile,v 1.76 2015/06/08 15:42:07 wiedi Exp $
DISTNAME= nsd-4.1.2
+PKGREVISION= 1
CATEGORIES= net
MASTER_SITES= http://www.nlnetlabs.nl/downloads/nsd/
diff --git a/net/nsd/files/smf/manifest.xml b/net/nsd/files/smf/manifest.xml
new file mode 100644
index 00000000000..cb836f1ec7e
--- /dev/null
+++ b/net/nsd/files/smf/manifest.xml
@@ -0,0 +1,29 @@
+<?xml version="1.0"?>
+<!DOCTYPE service_bundle SYSTEM "/usr/share/lib/xml/dtd/service_bundle.dtd.1">
+<service_bundle type="manifest" name="@SMF_NAME@">
+ <service name="@SMF_PREFIX@/@SMF_NAME@" type="service" version="1">
+ <create_default_instance enabled="false"/>
+ <single_instance/>
+ <dependency name="network" grouping="require_all" restart_on="error" type="service">
+ <service_fmri value="svc:/milestone/network:default"/>
+ </dependency>
+ <dependency name="filesystem" grouping="require_all" restart_on="error" type="service">
+ <service_fmri value="svc:/system/filesystem/local"/>
+ </dependency>
+ <method_context working_directory="@PKG_SYSCONFDIR@" />
+ <exec_method type="method" name="start" exec="@PREFIX@/sbin/nsd -d" timeout_seconds="60"/>
+ <exec_method type="method" name="stop" exec=":kill" timeout_seconds="60"/>
+ <exec_method type="method" name="refresh" exec=":kill -HUP" timeout_seconds="60"/>
+ <property_group name="startd" type="framework">
+ <propval name="duration" type="astring" value="child"/>
+ <propval name="ignore_error" type="astring" value="core,signal"/>
+ </property_group>
+ <stability value="Evolving"/>
+ <template>
+ <common_name>
+ <loctext xml:lang="C">NSD - Name Server Daemon</loctext>
+ </common_name>
+ </template>
+ </service>
+</service_bundle>
+