mail-filter/opendmarc: create /var/run/opendmarc at runtime, bug #605512
authorFabian Groffen <grobian@gentoo.org>
Wed, 29 Mar 2017 07:36:34 +0000 (09:36 +0200)
committerFabian Groffen <grobian@gentoo.org>
Wed, 29 Mar 2017 07:36:34 +0000 (09:36 +0200)
Package-Manager: Portage-2.3.3, Repoman-2.3.1

mail-filter/opendmarc/files/opendmarc.initd
mail-filter/opendmarc/opendmarc-1.1.3.ebuild
mail-filter/opendmarc/opendmarc-1.3.0.ebuild
mail-filter/opendmarc/opendmarc-1.3.1.ebuild
mail-filter/opendmarc/opendmarc-1.3.2.ebuild

index 0f248fcb86c7daaf51120d8ebee97cd57273a636..6a8300f145d659921ee7d3271a6dd7d69656cc93 100644 (file)
@@ -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
index b1320258961fb89760c2121cbbbe3ce760fe7a18..776550c0112584ebe45cebba2d5402978e6709c3 100644 (file)
@@ -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
index e646fa5172277fb4d6b8afe0472ce8daf4ef8272..7a751418a039269fdaa2eeff87d2202e7774ac20 100644 (file)
@@ -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 \
index 6c4e05392bb2bf350b2a5300c9154d313f1bec2f..22347bba5397e667a03683fe6684aa63f2f63eac 100644 (file)
@@ -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 \
index 0e47fc1dc99c3a8b8f094ccbbb4a7f39d0a27d17..5b2effd5d43277b2d5b3fe80ea42fdbe64488ebb 100644 (file)
@@ -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 \