Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions mail/dspam/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
31 changes: 31 additions & 0 deletions mail/dspam/files/smf/manifest.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,31 @@
<?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 name='start' type='method' 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>