Gentoo Archives: gentoo-commits

From: Michael Orlitzky <mjo@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: mail-filter/spamassassin/files/
Date: Wed, 06 Sep 2017 17:27:28
Message-Id: 1504718818.bbce59d3a81609bfbc1048656b005fc84a32c142.mjo@gentoo
1 commit: bbce59d3a81609bfbc1048656b005fc84a32c142
2 Author: Michael Mair-Keimberger <m.mairkeimberger <AT> gmail <DOT> com>
3 AuthorDate: Wed Sep 6 16:35:00 2017 +0000
4 Commit: Michael Orlitzky <mjo <AT> gentoo <DOT> org>
5 CommitDate: Wed Sep 6 17:26:58 2017 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=bbce59d3
7
8 mail-filter/spamassassin: remove unused files
9
10 Signed-off-by: Michael Orlitzky <mjo <AT> gentoo.org>
11
12 mail-filter/spamassassin/files/3.0.0-spamd.conf | 46 -------------------------
13 mail-filter/spamassassin/files/3.3.1-spamd.init | 45 ------------------------
14 2 files changed, 91 deletions(-)
15
16 diff --git a/mail-filter/spamassassin/files/3.0.0-spamd.conf b/mail-filter/spamassassin/files/3.0.0-spamd.conf
17 deleted file mode 100644
18 index b3cd1acd8fa..00000000000
19 --- a/mail-filter/spamassassin/files/3.0.0-spamd.conf
20 +++ /dev/null
21 @@ -1,46 +0,0 @@
22 -# Config file for /etc/init.d/spamd
23 -
24 -
25 -# ***WARNING***
26 -# spamd was not designed to listed to an untrusted network. spamd
27 -# is vulnerable to DoS attacks (and eternal doom) if used to listen
28 -# to an untrusted network.
29 -#
30 -
31 -
32 -# Some options:
33 -#
34 -# -c to create a per user configuration file
35 -# -H [dir] to switch home dirs for helper apps, dir optional
36 -# -i [ip] to listen on the specified IP,
37 -# 127.0.0.1 if omitted,
38 -# 0.0.0.0 (ie. all) if given without value;
39 -# must be used in combination with -A to actually allow
40 -# connections from anybody but localhost
41 -# -m limit to set the number of children, default 5
42 -# -u user the user to run spamd as
43 -# -L if you want to run no net tests
44 -#
45 -# for more help look in man spamd
46 -#
47 -# Note: if you plan on using the -u flag to spamd you will need to
48 -# make sure the location of the PID file is writable by that user.
49 -# This can be done by making the directory /var/run/spamd and
50 -# changing the owner to the UID that runs spamd. You will then
51 -# need to edit $pidfile in /etc/init.d/spamd. This should fix the
52 -# problem with stop/restart in the init scripts.
53 -#
54 -# See http://bugs.gentoo.org/show_bug.cgi?id=70124 for a full
55 -# explanation.
56 -
57 -SPAMD_OPTS="-m 5 -c -H"
58 -
59 -# spamd stores its pid in this file. If you use the -u option to
60 -# run spamd under another user, you might need to adjust it.
61 -
62 -PIDFILE="/run/spamd.pid"
63 -
64 -# SPAMD_NICELEVEL lets you set the 'nice'ness of the running
65 -# spamd process
66 -
67 -# SPAMD_NICELEVEL=5
68
69 diff --git a/mail-filter/spamassassin/files/3.3.1-spamd.init b/mail-filter/spamassassin/files/3.3.1-spamd.init
70 deleted file mode 100644
71 index 3f5fd1591af..00000000000
72 --- a/mail-filter/spamassassin/files/3.3.1-spamd.init
73 +++ /dev/null
74 @@ -1,45 +0,0 @@
75 -#!/sbin/openrc-run
76 -# Copyright 1999-2016 Gentoo Foundation
77 -# Distributed under the terms of the GNU General Public License v2
78 -
79 -# NB: Config is in /etc/conf.d/spamd
80 -
81 -# Provide a default location if they haven't in /etc/conf.d/spamd
82 -PIDFILE=${PIDFILE:-/run/spamd.pid}
83 -
84 -extra_started_commands="reload"
85 -
86 -depend() {
87 - need net
88 - before mta
89 - use logger
90 -@USEPOSTGRES@ use postgresql
91 -@USEMYSQL@ use mysql
92 -}
93 -
94 -start() {
95 - ebegin "Starting spamd"
96 - start-stop-daemon --start --quiet \
97 - --name spamd \
98 - --nicelevel ${SPAMD_NICELEVEL:-0} \
99 - --pidfile ${PIDFILE} \
100 - --exec /usr/sbin/spamd -- -d -r ${PIDFILE} \
101 - ${SPAMD_OPTS}
102 - retval=$?
103 - if ! [ -f "${PIDFILE}" ]; then
104 - sleep 1
105 - fi
106 - eend ${retval} "Failed to start spamd"
107 -}
108 -
109 -stop() {
110 - ebegin "Stopping spamd"
111 - start-stop-daemon --stop --quiet --pidfile ${PIDFILE}
112 - eend $? "Failed to stop spamd"
113 -}
114 -
115 -reload() {
116 - ebegin "Reloading configuration"
117 - start-stop-daemon --signal HUP --quiet --pidfile ${PIDFILE}
118 - eend $?
119 -}