mail-filter/opendmarc: create /var/run/opendmarc at runtime, bug #605512

Package-Manager: Portage-2.3.3, Repoman-2.3.1
This commit is contained in:
Fabian Groffen
2017-03-29 09:36:34 +02:00
parent 5e77557d28
commit 2a8aa5f3e4
5 changed files with 7 additions and 10 deletions

View 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

View 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

View 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 \

View 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 \

View 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 \