diff options
author | jperkin <jperkin@pkgsrc.org> | 2020-06-02 15:04:27 +0000 |
---|---|---|
committer | jperkin <jperkin@pkgsrc.org> | 2020-06-02 15:04:27 +0000 |
commit | 11660b07b0070bfe5c386b2b6e8a70542a98ffa4 (patch) | |
tree | ae7103fea9a9cf897ec3d355756155c81571645e /mail/dspam | |
parent | 4d4c39fb0b5eb7b5dd5b684c18366f4864f0d688 (diff) | |
download | pkgsrc-11660b07b0070bfe5c386b2b6e8a70542a98ffa4.tar.gz |
dspam: Add SMF manifest.
Provided by erwinlem in joyent/pkgsrc#267.
Diffstat (limited to 'mail/dspam')
-rw-r--r-- | mail/dspam/Makefile | 3 | ||||
-rw-r--r-- | mail/dspam/files/smf/manifest.xml | 30 |
2 files changed, 32 insertions, 1 deletions
diff --git a/mail/dspam/Makefile b/mail/dspam/Makefile index 7894b9badd7..3a25e59e285 100644 --- a/mail/dspam/Makefile +++ b/mail/dspam/Makefile @@ -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_USER} ${DSPAM_GROUP} 0770 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 --git a/mail/dspam/files/smf/manifest.xml b/mail/dspam/files/smf/manifest.xml new file mode 100644 index 00000000000..b5c26ecdad8 --- /dev/null +++ b/mail/dspam/files/smf/manifest.xml @@ -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> |