pkgsrc-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[pkgsrc/trunk]: pkgsrc/net/nsd add SMF manifest



details:   https://anonhg.NetBSD.org/pkgsrc/rev/661d5942f73f
branches:  trunk
changeset: 652840:661d5942f73f
user:      wiedi <wiedi%pkgsrc.org@localhost>
date:      Mon Jun 08 15:42:07 2015 +0000

description:
add SMF manifest

diffstat:

 net/nsd/Makefile               |   3 ++-
 net/nsd/files/smf/manifest.xml |  29 +++++++++++++++++++++++++++++
 2 files changed, 31 insertions(+), 1 deletions(-)

diffs (45 lines):

diff -r 5a6c72b634a0 -r 661d5942f73f net/nsd/Makefile
--- a/net/nsd/Makefile  Mon Jun 08 15:13:33 2015 +0000
+++ b/net/nsd/Makefile  Mon Jun 08 15:42:07 2015 +0000
@@ -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 -r 5a6c72b634a0 -r 661d5942f73f net/nsd/files/smf/manifest.xml
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/net/nsd/files/smf/manifest.xml    Mon Jun 08 15:42:07 2015 +0000
@@ -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>
+



Home | Main Index | Thread Index | Old Index