diff options
author | jpaetzel <jpaetzel@FreeBSD.org> | 2009-04-22 21:17:08 +0800 |
---|---|---|
committer | jpaetzel <jpaetzel@FreeBSD.org> | 2009-04-22 21:17:08 +0800 |
commit | 328f7760672ce6ba4469b622d17798c2e83fb84f (patch) | |
tree | ec5df65c55c870f15ced272503049c9409996b9a /mail | |
parent | 8b53f8713b3beec8076ea8313a067361e6936ae4 (diff) | |
download | freebsd-ports-gnome-328f7760672ce6ba4469b622d17798c2e83fb84f.tar.gz freebsd-ports-gnome-328f7760672ce6ba4469b622d17798c2e83fb84f.tar.zst freebsd-ports-gnome-328f7760672ce6ba4469b622d17798c2e83fb84f.zip |
Allows the configuration file location to be set in the c.d file.
Also sets a reasonable default.
PR: ports/110728
Approved by: linimon (mentor)
Diffstat (limited to 'mail')
-rw-r--r-- | mail/py-spambayes/Makefile | 2 | ||||
-rw-r--r-- | mail/py-spambayes/files/pyspamd.in | 2 |
2 files changed, 3 insertions, 1 deletions
diff --git a/mail/py-spambayes/Makefile b/mail/py-spambayes/Makefile index 5830dc2423d8..02c4b95b4c64 100644 --- a/mail/py-spambayes/Makefile +++ b/mail/py-spambayes/Makefile @@ -7,7 +7,7 @@ PORTNAME= spambayes PORTVERSION= 1.0.4 -PORTREVISION= 1 +PORTREVISION= 2 CATEGORIES= mail python MASTER_SITES= ${MASTER_SITE_SOURCEFORGE} MASTER_SITE_SUBDIR= ${PORTNAME} diff --git a/mail/py-spambayes/files/pyspamd.in b/mail/py-spambayes/files/pyspamd.in index 79c9370a496c..7dab9dfbf92a 100644 --- a/mail/py-spambayes/files/pyspamd.in +++ b/mail/py-spambayes/files/pyspamd.in @@ -24,10 +24,12 @@ rcvar=`set_rcvar` load_rc_config $name : ${pyspamd_enable="NO"} +: ${pyspamd_config="/usr/local/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" +export BAYESCUSTOMIZE=${pyspamd_config} run_rc_command "$1" |