commit:     a560f07d06e12d9bb6c84c79e01bd9fff9a0008d
Author:     Michael Mair-Keimberger <m.mairkeimberger <AT> gmail <DOT> com>
AuthorDate: Fri Aug 31 18:11:57 2018 +0000
Commit:     Patrice Clement <monsieurp <AT> gentoo <DOT> org>
CommitDate: Tue Sep  4 22:24:41 2018 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=a560f07d

mail-filter/spamassassin: remove unused files.

Closes: https://github.com/gentoo/gentoo/pull/9744

 mail-filter/spamassassin/files/3.4.1-spamd.conf    | 25 ----------
 mail-filter/spamassassin/files/3.4.1-spamd.init    | 55 ----------------------
 .../spamassassin/files/spamassassin.service-r1     | 15 ------
 .../spamassassin/files/spamassassin.service.conf   | 10 ----
 4 files changed, 105 deletions(-)

diff --git a/mail-filter/spamassassin/files/3.4.1-spamd.conf 
b/mail-filter/spamassassin/files/3.4.1-spamd.conf
deleted file mode 100644
index 0cb7cbbfc47..00000000000
--- a/mail-filter/spamassassin/files/3.4.1-spamd.conf
+++ /dev/null
@@ -1,25 +0,0 @@
-# Config file for /etc/init.d/spamd
-#
-# ***WARNING***
-#
-# spamd was not designed to listed to an untrusted network. spamd
-# is vulnerable to DoS attacks (and eternal doom) if used to listen
-# to an untrusted network.
-#
-# ***WARNING***
-#
-
-# Additional options to pass to the spamd daemon. The spamd(1) man
-# page explains the available options. If you choose to listen on a
-# non-default interface, you will need to use OpenRC's "rc_need"
-# mechanism to ensure that your interface comes up before spamd
-# starts. The openrc-run(8) man page describes rc_need.
-SPAMD_OPTS="--max-children=5 --create-prefs --helper-home-dir"
-
-# Sets the 'nice' level of the spamd process.
-SPAMD_NICELEVEL=0
-
-# How long (in seconds) should we wait for spamd to stop after we've
-# asked it to? After this amount of time, if spamd is still running,
-# we will assume that it has failed to stop.
-SPAMD_TIMEOUT=15

diff --git a/mail-filter/spamassassin/files/3.4.1-spamd.init 
b/mail-filter/spamassassin/files/3.4.1-spamd.init
deleted file mode 100644
index cbe91e93231..00000000000
--- a/mail-filter/spamassassin/files/3.4.1-spamd.init
+++ /dev/null
@@ -1,55 +0,0 @@
-#!/sbin/openrc-run
-# Copyright 1999-2016 Gentoo Foundation
-# Distributed under the terms of the GNU General Public License v2
-
-PIDDIR=/run/spamd
-PIDFILE=${PIDDIR}/spamd.pid
-
-extra_started_commands="reload"
-
-depend() {
-       before mta
-       use logger
-@USEPOSTGRES@  use postgresql
-@USEMYSQL@     use mysql
-}
-
-start() {
-       ebegin "Starting spamd"
-
-       # Ensure that the PID file's directory exists.
-       checkpath --directory "${PIDDIR}"
-
-       # Reloading spamd causes its PID to change, so we track it by
-       # name instead.
-       start-stop-daemon --start --quiet \
-               --name spamd \
-               --nicelevel ${SPAMD_NICELEVEL} \
-               --pidfile ${PIDFILE} \
-               --exec /usr/sbin/spamd -- \
-                       --daemonize \
-                       --pidfile=${PIDFILE} \
-                       ${SPAMD_OPTS}
-
-       retval=$?
-
-       eend ${retval} "Failed to start spamd"
-}
-
-stop() {
-       ebegin "Stopping spamd"
-       # Retry after SPAMD_TIMEOUT seconds because spamd can take a
-       # while to kill off all of its children. This was bug 322025.
-       start-stop-daemon --stop \
-                         --quiet \
-                         --retry ${SPAMD_TIMEOUT} \
-                         --pidfile ${PIDFILE}
-       eend $? "Failed to stop spamd"
-}
-
-reload() {
-       ebegin "Reloading configuration"
-       # Warning: causes the PID of the spamd process to change.
-       start-stop-daemon --signal HUP --quiet --pidfile ${PIDFILE}
-       eend $?
-}

diff --git a/mail-filter/spamassassin/files/spamassassin.service-r1 
b/mail-filter/spamassassin/files/spamassassin.service-r1
deleted file mode 100644
index 3d145817f12..00000000000
--- a/mail-filter/spamassassin/files/spamassassin.service-r1
+++ /dev/null
@@ -1,15 +0,0 @@
-[Unit]
-Description=Spamassassin daemon
-After=syslog.target network.target
-
-[Service]
-Type=forking
-PIDFile=/run/spamd.pid
-ExecStart=/usr/sbin/spamd -d --pidfile /run/spamd.pid -m 5 $SPAMD_OPTS
-ExecReload=/bin/kill -HUP $MAINPID
-StandardOutput=syslog
-StandardError=syslog
-Restart=always
-
-[Install]
-WantedBy=multi-user.target

diff --git a/mail-filter/spamassassin/files/spamassassin.service.conf 
b/mail-filter/spamassassin/files/spamassassin.service.conf
deleted file mode 100644
index 9fc1f629452..00000000000
--- a/mail-filter/spamassassin/files/spamassassin.service.conf
+++ /dev/null
@@ -1,10 +0,0 @@
-# Here you can append some options to spamd process, please
-# double check that you make needed changes in service file if
-# you use options requiring it
-# Some options:
-#
-# -c          to create a per user configuration file
-# -H [dir]    to switch home dirs for helper apps, dir optional
-
-[Service]
-Environment="SPAMD_OPTS= -c -H"

Reply via email to