public inbox for gentoo-commits@lists.gentoo.org
 help / color / mirror / Atom feed
From: "Fabian Groffen" <grobian@gentoo.org>
To: gentoo-commits@lists.gentoo.org
Subject: [gentoo-commits] repo/gentoo:master commit in: mail-filter/opendmarc/files/, mail-filter/opendmarc/
Date: Fri, 22 Dec 2017 11:32:07 +0000 (UTC)	[thread overview]
Message-ID: <1513942153.b2eab8cee39c59cc922c73f830ccfbc021d8e562.grobian@gentoo> (raw)

commit:     b2eab8cee39c59cc922c73f830ccfbc021d8e562
Author:     Fabian Groffen <grobian <AT> gentoo <DOT> org>
AuthorDate: Fri Dec 22 11:29:04 2017 +0000
Commit:     Fabian Groffen <grobian <AT> gentoo <DOT> org>
CommitDate: Fri Dec 22 11:29:13 2017 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=b2eab8ce

mail-filter/opendmarc: add systemd service file by Garry Filakhtov

Closes: https://bugs.gentoo.org/622606
Package-Manager: Portage-2.3.13, Repoman-2.3.3

 mail-filter/opendmarc/files/opendmarc.service   | 20 ++++++++++++++++++++
 mail-filter/opendmarc/opendmarc-1.3.2-r1.ebuild |  3 ++-
 2 files changed, 22 insertions(+), 1 deletion(-)

diff --git a/mail-filter/opendmarc/files/opendmarc.service b/mail-filter/opendmarc/files/opendmarc.service
new file mode 100644
index 00000000000..e450637a02f
--- /dev/null
+++ b/mail-filter/opendmarc/files/opendmarc.service
@@ -0,0 +1,20 @@
+[Unit]
+Description=Domain-based Message Authentication, Reporting and Conformance (DMARC) Milter
+Documentation=man:opendmarc(8) man:opendmarc.conf(5) man:opendmarc-expire(8) man:opendmarc-importstats(8) man:opendmarc-reports(8)
+man:opendmarc-check(8) man:opendmarc-import(8) man:opendmarc-params(8) http://www.trusteddomain.org/opendmarc/
+After=network.target nss-lookup.target syslog.target
+
+[Service]
+User=milter
+Group=milter
+PIDFile=/var/run/opendmarc/opendmarc.pid
+ExecStartPre=/usr/sbin/opendmarc -c /etc/opendmarc/opendmarc.conf -n 
+ExecStart=/usr/sbin/opendmarc -c /etc/opendmarc/opendmarc.conf -f -P /var/run/opendmarc/opendmarc.pid
+ExecReload=/bin/kill -USR1 $MAINPID
+RuntimeDirectory=opendmarc
+RuntimeDirectoryMode=0750
+Restart=on-failure
+RestartSec=3
+
+[Install]
+WantedBy=multi-user.target
\ No newline at end of file

diff --git a/mail-filter/opendmarc/opendmarc-1.3.2-r1.ebuild b/mail-filter/opendmarc/opendmarc-1.3.2-r1.ebuild
index f701f5636ac..1185e252329 100644
--- a/mail-filter/opendmarc/opendmarc-1.3.2-r1.ebuild
+++ b/mail-filter/opendmarc/opendmarc-1.3.2-r1.ebuild
@@ -3,7 +3,7 @@
 
 EAPI=6
 
-inherit user
+inherit user systemd
 
 DESCRIPTION="Open source DMARC implementation "
 HOMEPAGE="http://www.trusteddomain.org/opendmarc/"
@@ -50,6 +50,7 @@ src_install() {
 
 	newinitd "${FILESDIR}"/opendmarc.initd opendmarc
 	newconfd "${FILESDIR}"/opendmarc.confd opendmarc
+	systemd_dounit "${FILESDIR}/${PN}.service"
 
 	dodir /etc/opendmarc
 


             reply	other threads:[~2017-12-22 11:32 UTC|newest]

Thread overview: 7+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2017-12-22 11:32 Fabian Groffen [this message]
  -- strict thread matches above, loose matches on Subject: below --
2022-04-23 23:46 [gentoo-commits] repo/gentoo:master commit in: mail-filter/opendmarc/files/, mail-filter/opendmarc/ David Seifert
2021-05-04  9:13 Fabian Groffen
2021-04-30  6:46 Fabian Groffen
2019-09-19 18:46 Fabian Groffen
2018-12-10 10:35 Fabian Groffen
2017-03-29  7:36 Fabian Groffen

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=1513942153.b2eab8cee39c59cc922c73f830ccfbc021d8e562.grobian@gentoo \
    --to=grobian@gentoo.org \
    --cc=gentoo-commits@lists.gentoo.org \
    --cc=gentoo-dev@lists.gentoo.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox