summaryrefslogtreecommitdiff
path: root/mail/py-spambayes/files/pyspamd.in
diff options
context:
space:
mode:
Diffstat (limited to 'mail/py-spambayes/files/pyspamd.in')
-rw-r--r--mail/py-spambayes/files/pyspamd.in9
1 files changed, 4 insertions, 5 deletions
diff --git a/mail/py-spambayes/files/pyspamd.in b/mail/py-spambayes/files/pyspamd.in
index 7dab9dfbf92a..dbbda2ba1520 100644
--- a/mail/py-spambayes/files/pyspamd.in
+++ b/mail/py-spambayes/files/pyspamd.in
@@ -7,7 +7,6 @@
# REQUIRE: DAEMON
# KEYWORD: shutdown
#
-prefix=/usr/local
# Define these pyspamd_* variables in one of these files:
# /etc/rc.conf
@@ -16,7 +15,7 @@ prefix=/usr/local
# DO NOT CHANGE THESE DEFAULT VALUES HERE
#
-. /etc/rc.subr
+. %%RC_SUBR%%
name="pyspamd"
rcvar=`set_rcvar`
@@ -24,12 +23,12 @@ rcvar=`set_rcvar`
load_rc_config $name
: ${pyspamd_enable="NO"}
-: ${pyspamd_config="/usr/local/etc/bayescustomize.ini"}
+: ${pyspamd_config="%%PREFIX%%/etc/bayescustomize.ini"}
command="/usr/sbin/daemon"
-command_args=" -p /var/run/pyspamd.pid /usr/local/bin/python -OO /usr/local/bin/sb_server.py 2>&1 >/dev/null"
pidfile="/var/run/pyspamd.pid"
-procname="/usr/local/bin/python"
+command_args="-p ${pidfile} %%PYTHON_CMD%% -OO %%PREFIX%%/bin/sb_server.py 2>&1 >/dev/null"
+procname="%%PYTHON_CMD%%"
export BAYESCUSTOMIZE=${pyspamd_config}
run_rc_command "$1"