pkgsrc-Changes archive

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

CVS commit: pkgsrc/mail/dspam



Module Name:    pkgsrc
Committed By:   jperkin
Date:           Tue Jun  2 15:04:27 UTC 2020

Modified Files:
        pkgsrc/mail/dspam: Makefile
Added Files:
        pkgsrc/mail/dspam/files/smf: manifest.xml

Log Message:
dspam: Add SMF manifest.

Provided by erwinlem in joyent/pkgsrc#267.


To generate a diff of this commit:
cvs rdiff -u -r1.105 -r1.106 pkgsrc/mail/dspam/Makefile
cvs rdiff -u -r0 -r1.1 pkgsrc/mail/dspam/files/smf/manifest.xml

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.

Modified files:

Index: pkgsrc/mail/dspam/Makefile
diff -u pkgsrc/mail/dspam/Makefile:1.105 pkgsrc/mail/dspam/Makefile:1.106
--- pkgsrc/mail/dspam/Makefile:1.105    Tue Jun  2 08:24:14 2020
+++ pkgsrc/mail/dspam/Makefile  Tue Jun  2 15:04:27 2020
@@ -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 @@ OWN_DIRS_PERMS+=    ${DSPAM_PIDDIR} ${DSPAM
 
 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

Added files:

Index: pkgsrc/mail/dspam/files/smf/manifest.xml
diff -u /dev/null pkgsrc/mail/dspam/files/smf/manifest.xml:1.1
--- /dev/null   Tue Jun  2 15:04:27 2020
+++ pkgsrc/mail/dspam/files/smf/manifest.xml    Tue Jun  2 15:04:27 2020
@@ -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