Add the WITH_SPAM_DETECTION and SPAM_COMMAND knobs.

Submitted by:	Rey Marin Jr. <rey.marin@gmail.com>
This commit is contained in:
Peter Pentchev 2004-06-29 01:02:46 +00:00
parent ee6be7e1f6
commit 7bf5d442d4
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=112510

View file

@ -7,7 +7,7 @@
PORTNAME= qmailadmin
PORTVERSION= 1.2.0
PORTREVISION= 1
PORTREVISION= 2
PORTEPOCH= 1
CATEGORIES= mail www
MASTER_SITES= ${MASTER_SITE_SOURCEFORGE}
@ -57,6 +57,11 @@ USE_GMAKE= YES
# WITHOUT_IDX_SQL - disable the SQL support for mailing lists
# WITH_HELP - display help links on login page
#
# WITH_SPAM_DETECTION - allow users to enable/disable spam checking
# SPAM_COMMAND - the command to use to check for spam;
# default is "|preline /usr/local/bin/maildrop /etc/mailfilter"
# do not forget the "|" at the start
#
CGIBINDIR?= www/cgi-bin.default
CGIBINSUBDIR?= qmailadmin
@ -118,4 +123,11 @@ CONFIGURE_ARGS+= --disable-ezmlm-mysql
CONFIGURE_ARGS+= --enable-help
.endif
.if defined(WITH_SPAM_DETECTION)
CONFIGURE_ARGS+= --enable-modify-spam=y
.if defined(SPAM_COMMAND)
CONFIGURE_ARGS+= --enable-spam-command="${SPAM_COMMAND}"
.endif
.endif
.include <bsd.port.post.mk>