diff options
author | Seemant Kulleen <seemant@gentoo.org> | 2002-07-07 04:06:33 +0000 |
---|---|---|
committer | Seemant Kulleen <seemant@gentoo.org> | 2002-07-07 04:06:33 +0000 |
commit | 2c0670b4ca7828652ec3702f78ec3f2aac865fca (patch) | |
tree | 083dbc6ee7f601cdd69f1ffcbc54fdda012298f6 /dev-perl | |
parent | migrated spamassassin to dev-perl (diff) | |
download | gentoo-2-2c0670b4ca7828652ec3702f78ec3f2aac865fca.tar.gz gentoo-2-2c0670b4ca7828652ec3702f78ec3f2aac865fca.tar.bz2 gentoo-2-2c0670b4ca7828652ec3702f78ec3f2aac865fca.zip |
added the spamd.conf and init files
Diffstat (limited to 'dev-perl')
-rw-r--r-- | dev-perl/Mail-SpamAssassin/files/spamd.conf | 11 | ||||
-rw-r--r-- | dev-perl/Mail-SpamAssassin/files/spamd.init | 23 |
2 files changed, 34 insertions, 0 deletions
diff --git a/dev-perl/Mail-SpamAssassin/files/spamd.conf b/dev-perl/Mail-SpamAssassin/files/spamd.conf new file mode 100644 index 000000000000..83248f8ac505 --- /dev/null +++ b/dev-perl/Mail-SpamAssassin/files/spamd.conf @@ -0,0 +1,11 @@ +# Config file for /etc/init.d/spamd + +# Some options: +# +# -a for auto-white-list +# -c to create a per user configuration file +# -L if you want to suppress DNS lookup +# +# for more help look in man spamd + +SPAMD_OPTS="-a -c" diff --git a/dev-perl/Mail-SpamAssassin/files/spamd.init b/dev-perl/Mail-SpamAssassin/files/spamd.init new file mode 100644 index 000000000000..cf06fcf51626 --- /dev/null +++ b/dev-perl/Mail-SpamAssassin/files/spamd.init @@ -0,0 +1,23 @@ +#!/sbin/runscript +# Copyright 1999-2002 Gentoo Technologies, Inc. +# Distributed under the terms of the GNU General Public License, v2 or later + +# NB: Config is in /etc/conf.d/spamd.conf + +depend() { + need net +} + +start() { + ebegin "Starting spamd" + start-stop-daemon --start --quiet \ + --exec /usr/bin/spamd -- -d -r /var/run/spamd.pid \ + ${SPAMD_OPTS} + eend $? "Failed to start spamd" +} + +stop() { + ebegin "Stopping spamd" + start-stop-daemon --stop --quiet --pidfile /var/run/spamd.pid + eend $? "Failed to stop spamd" +} |