summaryrefslogtreecommitdiff
path: root/mail
diff options
context:
space:
mode:
authorfhajny <fhajny>2014-09-10 14:01:36 +0000
committerfhajny <fhajny>2014-09-10 14:01:36 +0000
commitc45b1b4980b0c7dc3597363dc5c7692527c05f9e (patch)
tree3be7664fb48c37eeb806b27c19a41dad0d0d7961 /mail
parent8c373d78202f17df15a9f1f14efc189b4c018d54 (diff)
downloadpkgsrc-c45b1b4980b0c7dc3597363dc5c7692527c05f9e.tar.gz
Add SMF manifest for opendkim and default dir for key/table storage.
Diffstat (limited to 'mail')
-rw-r--r--mail/opendkim/Makefile11
-rw-r--r--mail/opendkim/files/smf/manifest.xml30
2 files changed, 40 insertions, 1 deletions
diff --git a/mail/opendkim/Makefile b/mail/opendkim/Makefile
index 9bf848876c7..58d832123cf 100644
--- a/mail/opendkim/Makefile
+++ b/mail/opendkim/Makefile
@@ -1,6 +1,7 @@
-# $NetBSD: Makefile,v 1.20 2014/06/09 14:59:05 pettai Exp $
+# $NetBSD: Makefile,v 1.21 2014/09/10 14:01:36 fhajny Exp $
DISTNAME= opendkim-2.9.2
+PKGREVISION= 1
CATEGORIES= mail
MASTER_SITES= ${MASTER_SITE_SOURCEFORGE:=opendkim/}
@@ -27,6 +28,14 @@ PKG_GROUPS_VARS+= DKIM_GROUP
PKG_USERS_VARS+= DKIM_USER
OWN_DIRS_PERMS+= ${VARBASE}/run/opendkim \
${DKIM_USER} ${DKIM_GROUP} 0750
+OWN_DIRS_PERMS+= ${VARBASE}/db/opendkim \
+ ${DKIM_USER} ${DKIM_GROUP} 0700
+
+SUBST_CLASSES+= path
+SUBST_STAGE.path= pre-configure
+SUBST_MESSAGE.path= Fixing default paths
+SUBST_FILES.path= opendkim/opendkim.conf.sample
+SUBST_SED.path= -e 's,/var/db/dkim,${VARBASE}/db/opendkim,g'
PKGCONFIG_OVERRIDE+= libopendkim/opendkim.pc.in
diff --git a/mail/opendkim/files/smf/manifest.xml b/mail/opendkim/files/smf/manifest.xml
new file mode 100644
index 00000000000..809b457d4fe
--- /dev/null
+++ b/mail/opendkim/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="@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="@VARBASE@/db/opendkim">
+ <method_credential user="@DKIM_USER@" group="@DKIM_GROUP@" />
+ </method_context>
+ <exec_method type="method" name="start" exec="@PREFIX@/sbin/opendkim" timeout_seconds="60" />
+ <exec_method type="method" name="stop" exec=":kill" timeout_seconds="60" />
+ <property_group name="startd" type="framework">
+ <propval name="duration" type="astring" value="contract" />
+ <propval name="ignore_error" type="astring" value="core,signal" />
+ </property_group>
+ <property_group name="application" type="application"></property_group>
+ <stability value="Evolving" />
+ <template>
+ <common_name>
+ <loctext xml:lang="C">OpenDKIM filter daemo filter daemonn</loctext>
+ </common_name>
+ </template>
+ </service>
+</service_bundle>