1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-10-20 20:09:11 +00:00

- Resolve conflict between sa-spamd and pf-spamd

- Add pfspamd_setup_flags to give finer grained control
 - Give maintainership to submitter

Submitted by:	Alex Samorukov <samm os2 kiev ua>
PR:		ports/108663
This commit is contained in:
Xin LI 2007-03-20 15:16:44 +00:00
parent 2b63ffe947
commit 1b518030dc
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=187797
2 changed files with 13 additions and 3 deletions

View File

@ -7,13 +7,13 @@
PORTNAME= spamd
PORTVERSION= 3.7
PORTREVISION= 2
PORTREVISION= 3
CATEGORIES= mail
MASTER_SITES= ${MASTER_SITE_LOCAL}
MASTER_SITE_SUBDIR= delphij
DISTNAME= ${PORTNAME}_${PORTVERSION}
MAINTAINER= ports@FreeBSD.org
MAINTAINER= samm@os2.kiev.ua
COMMENT= Traps spammers with a very slow smtp-login and return 4xx error
USE_BZIP2= yes

View File

@ -14,6 +14,8 @@
# Set it to "YES" to enable spamd
# pfspamd_flags (str): Set to "" by default.
# Extra flags passed to start command.
# pfspamd_setup_flags (str): Set to "" by default.
# Extra flags passed to spamd-setup command.
. %%RC_SUBR%%
@ -26,13 +28,21 @@ restart_postcmd="pfspamd_postcmd"
[ -z "$pfspamd_enable" ] && pfspamd_enable="NO"
[ -z "$pfspamd_flags" ] && pfspamd_flags=""
[ -z "$pfspamd_setup_flags" ] && pfspamd_setup_flags=""
load_rc_config $name
# we override check_process to avoid conflict with the spamd from sa-spamd
check_process()
{
ps ax -o pid,command | grep "libexec/spamd" | grep -v grep | awk '{print $1}'
}
pfspamd_postcmd()
{
if [ -x %%PREFIX%%/sbin/spamd-setup ]; then
%%PREFIX%%/sbin/spamd-setup
%%PREFIX%%/sbin/spamd-setup $pfspamd_setup_flags
fi
}