Source-Changes-HG archive

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

[pkgsrc/trunk]: pkgsrc/mail/dspam dspam: Add SMF manifest.



details:   https://anonhg.NetBSD.org/pkgsrc/rev/3702627129a7
branches:  trunk
changeset: 433467:3702627129a7
user:      jperkin <jperkin%pkgsrc.org@localhost>
date:      Tue Jun 02 15:04:27 2020 +0000

description:
dspam: Add SMF manifest.

Provided by erwinlem in joyent/pkgsrc#267.

diffstat:

 mail/dspam/Makefile               |   3 ++-
 mail/dspam/files/smf/manifest.xml |  30 ++++++++++++++++++++++++++++++
 2 files changed, 32 insertions(+), 1 deletions(-)

diffs (51 lines):

diff -r f237fa464054 -r 3702627129a7 mail/dspam/Makefile
--- a/mail/dspam/Makefile       Tue Jun 02 14:51:03 2020 +0000
+++ b/mail/dspam/Makefile       Tue Jun 02 15:04:27 2020 +0000
@@ -1,4 +1,4 @@
-# $NetBSD: Makefile,v 1.105 2020/06/02 08:24:14 adam Exp $
+# $NetBSD: Makefile,v 1.106 2020/06/02 15:04:27 jperkin Exp $
 
 DISTNAME=      dspam-3.10.2
 PKGREVISION=   29
@@ -111,6 +111,7 @@
 
 FILES_SUBST+=          DSPAM_USER=${DSPAM_USER}
 FILES_SUBST+=          DSPAM_GROUP=${DSPAM_GROUP}
+FILES_SUBST+=          DSPAM_HOME=${DSPAM_HOME}
 FILES_SUBST+=          DSPAM_PIDDIR=${DSPAM_PIDDIR}
 
 SUBST_CLASSES+=                conf
diff -r f237fa464054 -r 3702627129a7 mail/dspam/files/smf/manifest.xml
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/mail/dspam/files/smf/manifest.xml Tue Jun 02 15:04:27 2020 +0000
@@ -0,0 +1,30 @@
+<?xml version='1.0'?>
+<!DOCTYPE service_bundle SYSTEM '/usr/share/lib/xml/dtd/service_bundle.dtd.1'>
+<service_bundle type='manifest' name='export'>
+  <service name='@SMF_PREFIX@/@SMF_NAME@' type='service' version='0'>
+    <create_default_instance enabled='false'/>
+    <single_instance/>
+    <dependency name='fs' grouping='require_all' restart_on='none' type='service'>
+      <service_fmri value='svc:/system/filesystem/local'/>
+    </dependency>
+    <dependency name='net' grouping='require_all' restart_on='none' type='service'>
+      <service_fmri value='svc:/network/loopback'/>
+    </dependency>
+    <dependency name='config' grouping='require_all' restart_on='none' type='path'>
+      <service_fmri value='file://@PKG_SYSCONFDIR@/dspam.conf'/>
+    </dependency>
+    <method_context working_directory="@DSPAM_HOME@">
+      <method_credential group='@DSPAM_USER@' user='@DSPAM_GROUP@'/>
+    </method_context>
+    <exec_method type='method' name='start' exec='@PREFIX@/bin/dspam --daemon' timeout_seconds='120' />
+    <exec_method type="method" name="stop" exec=":kill" timeout_seconds="60" />
+    <template>
+      <common_name>
+        <loctext xml:lang='C'>dspam daemon</loctext>
+      </common_name>
+      <documentation> 
+        <manpage title="dspam" section="1" manpath='@PREFIX@/@PKGMANDIR@'/> 
+      </documentation> 
+    </template>
+  </service>
+</service_bundle>



Home | Main Index | Thread Index | Old Index