mail-filter/spamassassin: remove unused files.
authorMichael Mair-Keimberger <m.mairkeimberger@gmail.com>
Fri, 31 Aug 2018 18:11:57 +0000 (20:11 +0200)
committerPatrice Clement <monsieurp@gentoo.org>
Tue, 4 Sep 2018 22:24:41 +0000 (00:24 +0200)
Closes: https://github.com/gentoo/gentoo/pull/9744

mail-filter/spamassassin/files/3.4.1-spamd.conf [deleted file]
mail-filter/spamassassin/files/3.4.1-spamd.init [deleted file]
mail-filter/spamassassin/files/spamassassin.service-r1 [deleted file]
mail-filter/spamassassin/files/spamassassin.service.conf [deleted file]

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 (file)
index 0cb7cbb..0000000
+++ /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 (file)
index cbe91e9..0000000
+++ /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 (file)
index 3d14581..0000000
+++ /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 (file)
index 9fc1f62..0000000
+++ /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"