mirror of
https://git.FreeBSD.org/ports.git
synced 2024-12-02 01:20:54 +00:00
- 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>
This commit is contained in:
parent
68c552f9b7
commit
c2599781f5
Notes:
svn2git
2021-03-31 03:12:20 +00:00
svn path=/head/; revision=236889
@ -7,19 +7,18 @@
|
||||
|
||||
PORTNAME= spambayes
|
||||
PORTVERSION= 1.0.4
|
||||
PORTREVISION= 2
|
||||
PORTREVISION= 3
|
||||
CATEGORIES= mail python
|
||||
MASTER_SITES= ${MASTER_SITE_SOURCEFORGE}
|
||||
MASTER_SITE_SUBDIR= ${PORTNAME}
|
||||
PKGNAMEPREFIX= ${PYTHON_PKGNAMEPREFIX}
|
||||
DISTNAME= ${PORTNAME}-${PORTVERSION:C/(.)\.(..)\.(.)$/\1\2\3/}
|
||||
|
||||
MAINTAINER= ports@FreeBSD.org
|
||||
COMMENT= A Bayesian anti-spam filter written in Python
|
||||
|
||||
RUN_DEPENDS= ${PYTHON_SITELIBDIR}/_bsddb.so:${PORTSDIR}/databases/py-bsddb
|
||||
|
||||
USE_PYTHON= yes
|
||||
USE_PYTHON= -2.5
|
||||
USE_PYDISTUTILS= yes
|
||||
USE_RC_SUBR= pyspamd
|
||||
LOCALSTATDIR?= /var/db/spambayes
|
||||
@ -28,6 +27,7 @@ CACHEDIR?= ${LOCALSTATDIR}/cache
|
||||
PLIST_SUB+= LOCALSTATDIR=${LOCALSTATDIR} \
|
||||
DBDIR=${DBDIR} \
|
||||
CACHEDIR=${CACHEDIR}
|
||||
SUB_LIST+= PYTHON_CMD=${PYTHON_CMD}
|
||||
|
||||
PORTDOCS= CHANGELOG.txt \
|
||||
LICENSE.txt \
|
||||
|
@ -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"
|
||||
|
Loading…
Reference in New Issue
Block a user