Skip to content

Commit

Permalink
mail-filter/opendmarc: create /var/run/opendmarc at runtime, bug #605512
Browse files Browse the repository at this point in the history
Package-Manager: Portage-2.3.3, Repoman-2.3.1
  • Loading branch information
grobian committed Mar 29, 2017
1 parent 5e77557 commit 2a8aa5f
Show file tree
Hide file tree
Showing 5 changed files with 7 additions and 10 deletions.
5 changes: 4 additions & 1 deletion mail-filter/opendmarc/files/opendmarc.initd
Original file line number Diff line number Diff line change
@@ -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"
Expand All @@ -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
Expand Down
2 changes: 1 addition & 1 deletion mail-filter/opendmarc/opendmarc-1.1.3.ebuild
Original file line number Diff line number Diff line change
@@ -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
Expand Down
4 changes: 1 addition & 3 deletions mail-filter/opendmarc/opendmarc-1.3.0.ebuild
Original file line number Diff line number Diff line change
@@ -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
Expand Down Expand Up @@ -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 \
Expand Down
4 changes: 1 addition & 3 deletions mail-filter/opendmarc/opendmarc-1.3.1.ebuild
Original file line number Diff line number Diff line change
@@ -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
Expand Down Expand Up @@ -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 \
Expand Down
2 changes: 0 additions & 2 deletions mail-filter/opendmarc/opendmarc-1.3.2.ebuild
Original file line number Diff line number Diff line change
Expand Up @@ -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 \
Expand Down

0 comments on commit 2a8aa5f

Please sign in to comment.