diff options
author | Li-Wen Hsu <lwhsu@FreeBSD.org> | 2009-07-02 01:23:45 +0000 |
---|---|---|
committer | Li-Wen Hsu <lwhsu@FreeBSD.org> | 2009-07-02 01:23:45 +0000 |
commit | c2599781f507e17187f5588f5dbc0a4b2db0a46a (patch) | |
tree | 5619e843037c7998136a62b581fae645fa0e9a52 /mail/py-spambayes/files/pyspamd.in | |
parent | 68c552f9b71da27cb4e46ffa3f123b50e846b0aa (diff) | |
download | ports-c2599781f507e17187f5588f5dbc0a4b2db0a46a.tar.gz ports-c2599781f507e17187f5588f5dbc0a4b2db0a46a.zip |
- Mark USE_PYTHON=-2.5 because it cannot work for Python 2.6
- Cleanup rc script
Tested/reported by: Torfinn Ingolfsen <tingox AT gmail.com>
Notes
Notes:
svn path=/head/; revision=236889
Diffstat (limited to 'mail/py-spambayes/files/pyspamd.in')
-rw-r--r-- | mail/py-spambayes/files/pyspamd.in | 9 |
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" |