From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from lists.gentoo.org (pigeon.gentoo.org [208.92.234.80]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by finch.gentoo.org (Postfix) with ESMTPS id 4EA9A139083 for ; Fri, 22 Dec 2017 11:32:11 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id 830C3E0F46; Fri, 22 Dec 2017 11:32:10 +0000 (UTC) Received: from smtp.gentoo.org (smtp.gentoo.org [140.211.166.183]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by pigeon.gentoo.org (Postfix) with ESMTPS id 607C2E0F46 for ; Fri, 22 Dec 2017 11:32:10 +0000 (UTC) Received: from oystercatcher.gentoo.org (unknown [IPv6:2a01:4f8:202:4333:225:90ff:fed9:fc84]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.gentoo.org (Postfix) with ESMTPS id 44E5E341646 for ; Fri, 22 Dec 2017 11:32:09 +0000 (UTC) Received: from localhost.localdomain (localhost [IPv6:::1]) by oystercatcher.gentoo.org (Postfix) with ESMTP id D113BA1A0 for ; Fri, 22 Dec 2017 11:32:07 +0000 (UTC) From: "Fabian Groffen" To: gentoo-commits@lists.gentoo.org Content-Transfer-Encoding: 8bit Content-type: text/plain; charset=UTF-8 Reply-To: gentoo-dev@lists.gentoo.org, "Fabian Groffen" Message-ID: <1513942153.b2eab8cee39c59cc922c73f830ccfbc021d8e562.grobian@gentoo> Subject: [gentoo-commits] repo/gentoo:master commit in: mail-filter/opendmarc/files/, mail-filter/opendmarc/ X-VCS-Repository: repo/gentoo X-VCS-Files: mail-filter/opendmarc/files/opendmarc.service mail-filter/opendmarc/opendmarc-1.3.2-r1.ebuild X-VCS-Directories: mail-filter/opendmarc/files/ mail-filter/opendmarc/ X-VCS-Committer: grobian X-VCS-Committer-Name: Fabian Groffen X-VCS-Revision: b2eab8cee39c59cc922c73f830ccfbc021d8e562 X-VCS-Branch: master Date: Fri, 22 Dec 2017 11:32:07 +0000 (UTC) Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-Id: Gentoo Linux mail X-BeenThere: gentoo-commits@lists.gentoo.org X-Archives-Salt: da44fe48-0438-4e2c-a1ef-6d4bfbcb6846 X-Archives-Hash: 124d41e1ef3c71a8c62038ae1f96697b commit: b2eab8cee39c59cc922c73f830ccfbc021d8e562 Author: Fabian Groffen gentoo org> AuthorDate: Fri Dec 22 11:29:04 2017 +0000 Commit: Fabian Groffen gentoo 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