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 | de3e60d3f8fc70d1b928ad2f927053e6cf2ef501 (patch) | |
tree | 656e9b80873d80381955f38311cd1318df2d10e7 /dev-perl/Mail-SpamAssassin/files | |
parent | migrated spamassassin to dev-perl (diff) | |
download | historical-de3e60d3f8fc70d1b928ad2f927053e6cf2ef501.tar.gz historical-de3e60d3f8fc70d1b928ad2f927053e6cf2ef501.tar.bz2 historical-de3e60d3f8fc70d1b928ad2f927053e6cf2ef501.zip |
added the spamd.conf and init files
Diffstat (limited to 'dev-perl/Mail-SpamAssassin/files')
-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" +} |