commit:     4596f450869040535ba44f83208a71c3377f975b
Author:     Michael Mair-Keimberger <m.mairkeimberger <AT> gmail <DOT> com>
AuthorDate: Mon Apr 22 07:39:37 2019 +0000
Commit:     Michael Orlitzky <mjo <AT> gentoo <DOT> org>
CommitDate: Tue Apr 23 01:21:52 2019 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=4596f450

mail-filter/opendkim: remove unused files

Signed-off-by: Michael Mair-Keimberger <m.mairkeimberger <AT> gmail.com>
Signed-off-by: Michael Orlitzky <mjo <AT> gentoo.org>

 mail-filter/opendkim/files/opendkim-r1.service | 15 -------
 mail-filter/opendkim/files/opendkim.init.r3    | 55 --------------------------
 2 files changed, 70 deletions(-)

diff --git a/mail-filter/opendkim/files/opendkim-r1.service 
b/mail-filter/opendkim/files/opendkim-r1.service
deleted file mode 100644
index f2e937a6bf1..00000000000
--- a/mail-filter/opendkim/files/opendkim-r1.service
+++ /dev/null
@@ -1,15 +0,0 @@
-[Unit]
-Description=DomainKeys Identified Mail (DKIM) Milter
-Documentation=man:opendkim(8) man:opendkim.conf(5) man:opendkim-genkey(8) 
man:opendkim-genzone(8) man:opendkim-testadsp(8) man:opendkim-testkey 
http://www.opendkim.org/docs.html
-After=network.target nss-lookup.target syslog.target
-
-[Service]
-ExecStart=/usr/sbin/opendkim -f -x /etc/opendkim/opendkim.conf
-ExecReload=/bin/kill -USR1 $MAINPID
-RuntimeDirectory=opendkim
-RuntimeDirectoryMode=0750
-User=milter
-Group=milter
-
-[Install]
-WantedBy=multi-user.target

diff --git a/mail-filter/opendkim/files/opendkim.init.r3 
b/mail-filter/opendkim/files/opendkim.init.r3
deleted file mode 100644
index bb8ac96f057..00000000000
--- a/mail-filter/opendkim/files/opendkim.init.r3
+++ /dev/null
@@ -1,55 +0,0 @@
-#!/sbin/openrc-run
-# Copyright 1999-2013 Gentoo Foundation
-# Distributed under the terms of the GNU General Public License v2
-
-CONFFILE=/etc/opendkim/${SVCNAME}.conf
-
-depend() {
-       use dns logger net
-       before mta
-}
-
-check_cfg() {
-
-       PIDFILE=$(sed -ne 's/^[[:space:]]*PidFile[[:space:]]\+//p' 
"${CONFFILE}")
-       local PIDDIR="${PIDFILE%/*}"
-       if [ ! -d  "${PIDDIR}" ] ; then
-               checkpath -q -d -o milter:milter -m 0755 "${PIDDIR}" || return 1
-       fi
-       if [ ! -f "${CONFFILE}" ] ; then
-               eerror "Configuration file ${CONFFILE} is missing"
-               return 1
-       fi
-       if [ -z "${PIDFILE}" ] ; then
-               eerror "Configuration file needs PidFile setting - recommend 
adding 'PidFile /var/run/opendkim/${SVCNAME}.pid' to ${CONFFILE}"
-               return 1
-       fi
-
-       if egrep -q '^[[:space:]]*Background[[:space:]]+no' "${CONFFILE}" ; then
-               eerror "${SVCNAME} service cannot run with Background key set 
to yes!"
-               return 1
-       fi
-}
-
-start() {
-       check_cfg || return 1
-       
-       # Remove stalled Unix socket if no other process is using it
-       local UNIX_SOCKET=$(sed -ne 
's/^[[:space:]]*Socket[[:space:]]\+\(unix\|local\)://p' "${CONFFILE}")
-
-       if [ -S "${UNIX_SOCKET}" ] && ! fuser -s "${UNIX_SOCKET}"; then
-               rm "${UNIX_SOCKET}"
-       fi
-
-       ebegin "Starting OpenDKIM"
-       start-stop-daemon --start --pidfile "${PIDFILE}" \
-               --exec /usr/sbin/opendkim -- -x "${CONFFILE}"
-       eend $?
-}
-
-stop() {
-       check_cfg || return 1
-       ebegin "Stopping OpenDKIM"
-       start-stop-daemon --stop --pidfile "${PIDFILE}"
-       eend $?
-}

Reply via email to