summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorFabian Groffen <grobian@gentoo.org>2017-03-29 09:36:34 +0200
committerFabian Groffen <grobian@gentoo.org>2017-03-29 09:36:34 +0200
commit2a8aa5f3e4847d8f79a9e25597745e5ba5128205 (patch)
treef56cb2f4443e111bd66e62de1bad06fd70b9b6ee /mail-filter
parentmail-filter/opendmarc: version bump, add dep on HTTP-Message, bug #614174 (diff)
downloadgentoo-2a8aa5f3e4847d8f79a9e25597745e5ba5128205.tar.gz
gentoo-2a8aa5f3e4847d8f79a9e25597745e5ba5128205.tar.bz2
gentoo-2a8aa5f3e4847d8f79a9e25597745e5ba5128205.zip
mail-filter/opendmarc: create /var/run/opendmarc at runtime, bug #605512
Package-Manager: Portage-2.3.3, Repoman-2.3.1
Diffstat (limited to 'mail-filter')
-rw-r--r--mail-filter/opendmarc/files/opendmarc.initd5
-rw-r--r--mail-filter/opendmarc/opendmarc-1.1.3.ebuild2
-rw-r--r--mail-filter/opendmarc/opendmarc-1.3.0.ebuild4
-rw-r--r--mail-filter/opendmarc/opendmarc-1.3.1.ebuild4
-rw-r--r--mail-filter/opendmarc/opendmarc-1.3.2.ebuild2
5 files changed, 7 insertions, 10 deletions
diff --git a/mail-filter/opendmarc/files/opendmarc.initd b/mail-filter/opendmarc/files/opendmarc.initd
index 0f248fcb86c7..6a8300f145d6 100644
--- a/mail-filter/opendmarc/files/opendmarc.initd
+++ b/mail-filter/opendmarc/files/opendmarc.initd
@@ -1,5 +1,5 @@
#!/sbin/openrc-run
-# Copyright 1999-2014 Gentoo Foundation
+# Copyright 1999-2017 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
CONFFILE="/etc/opendmarc/${SVCNAME}.conf"
@@ -14,6 +14,9 @@ check_cfg() {
eerror "Configuration file ${CONFFILE} is missing"
return 1
fi
+ # create /var/run/opendmarc
+ mkdir -p /var/run/opendmarc >& /dev/null
+ chown ${OPENDMARC_USER}:${OPENDMARC_GROUP} /var/run/opendmarc >& /dev/null
PIDFILE=$(sed -ne 's/^[[:space:]]*PidFile[[:space:]]\+//p' "${CONFFILE}")
local PIDDIR="${PIDFILE%/*}"
if [ ! -d "${PIDDIR}" ] ; then
diff --git a/mail-filter/opendmarc/opendmarc-1.1.3.ebuild b/mail-filter/opendmarc/opendmarc-1.1.3.ebuild
index b1320258961f..776550c01125 100644
--- a/mail-filter/opendmarc/opendmarc-1.1.3.ebuild
+++ b/mail-filter/opendmarc/opendmarc-1.1.3.ebuild
@@ -1,4 +1,4 @@
-# Copyright 1999-2014 Gentoo Foundation
+# Copyright 1999-2017 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
EAPI=5
diff --git a/mail-filter/opendmarc/opendmarc-1.3.0.ebuild b/mail-filter/opendmarc/opendmarc-1.3.0.ebuild
index e646fa517227..7a751418a039 100644
--- a/mail-filter/opendmarc/opendmarc-1.3.0.ebuild
+++ b/mail-filter/opendmarc/opendmarc-1.3.0.ebuild
@@ -1,4 +1,4 @@
-# Copyright 1999-2015 Gentoo Foundation
+# Copyright 1999-2017 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
EAPI=5
@@ -39,8 +39,6 @@ src_install() {
newconfd "${FILESDIR}"/opendmarc.confd opendmarc
dodir /etc/opendmarc
- dodir /var/run/opendmarc
- fowners milter:milter /var/run/opendmarc
# create config file
sed \
diff --git a/mail-filter/opendmarc/opendmarc-1.3.1.ebuild b/mail-filter/opendmarc/opendmarc-1.3.1.ebuild
index 6c4e05392bb2..22347bba5397 100644
--- a/mail-filter/opendmarc/opendmarc-1.3.1.ebuild
+++ b/mail-filter/opendmarc/opendmarc-1.3.1.ebuild
@@ -1,4 +1,4 @@
-# Copyright 1999-2015 Gentoo Foundation
+# Copyright 1999-2017 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
EAPI=5
@@ -39,8 +39,6 @@ src_install() {
newconfd "${FILESDIR}"/opendmarc.confd opendmarc
dodir /etc/opendmarc
- dodir /var/run/opendmarc
- fowners milter:milter /var/run/opendmarc
# create config file
sed \
diff --git a/mail-filter/opendmarc/opendmarc-1.3.2.ebuild b/mail-filter/opendmarc/opendmarc-1.3.2.ebuild
index 0e47fc1dc99c..5b2effd5d432 100644
--- a/mail-filter/opendmarc/opendmarc-1.3.2.ebuild
+++ b/mail-filter/opendmarc/opendmarc-1.3.2.ebuild
@@ -40,8 +40,6 @@ src_install() {
newconfd "${FILESDIR}"/opendmarc.confd opendmarc
dodir /etc/opendmarc
- dodir /var/run/opendmarc
- fowners milter:milter /var/run/opendmarc
# create config file
sed \