ports/mail/dspam-devel/files/dspam-devel.in
Ion-Mihai Tetcu 78d4ba5e7d - Update to a new snap and fix a bug in it so that it builds pgsql driver.
- fix OPTIONS version check
- fix rc.d script for dspam_debug enebled
- mirror DISTFILES on MASTER_SITE_LOCAL also

New feature:
- Fallback domains (see 2.6 in README)
Bug fixes:
- trainPristine preference turned "off" now overrides config turned "on"
- segfault fix for when correcting messages using UIDInSignature
Removed features:
- dspam_corpus (replaced by newer dspam_train)
- dspam_genaliases (replaced by parse-to-headers, virtual users, etc)

Approved by:	lawrance (mentor)
2006-05-13 13:16:08 +00:00

46 lines
846 B
Bash

#!/bin/sh
# $FreeBSD$
#
# PROVIDE: dspam
# REQUIRE: DAEMON %%MYSQL%% %%PGSQL%% %%CLAMD%%
# BEFORE: mail
# KEYWORD: shutdown
#
# Add the following lines to /etc/rc.conf[.local] to enable dspam:
# dspam_enable="YES"
#
# dspam_debug="YES" will start dspam with debug logging (you need ar least WITH_DEBUG)
# you can also set the pid file via dspam_pidfile
#
. %%RC_SUBR%%
name="dspam"
rcvar=${name}_enable
load_rc_config $name
#defaults
: ${dspam_enable="NO"}
: ${dspam_debug="NO"}
: ${dspam_pidfile:-/var/run/dspam.pid}
command=%%PREFIX%%/bin/${name}
if checkyesno dspam_debug
then
command_args="--daemon --debug > /dev/null 2>&1 &"
else
command_args="--daemon > /dev/null 2>&1 &"
fi
required_dirs=%%DSPAM_HOME%%
required_files=%%PREFIX%%/etc/${name}.conf
extra_commands=reload
reload()
{
kill -HUP `cat $pidfile`
}
run_rc_command "$1"