summaryrefslogtreecommitdiff
path: root/mail/dspam/Makefile
diff options
context:
space:
mode:
authorSergei Kolobov <sergei@FreeBSD.org>2003-12-11 14:42:27 +0000
committerSergei Kolobov <sergei@FreeBSD.org>2003-12-11 14:42:27 +0000
commit3bbf74e145fb8982e7ca5e5eaee15d8dfcabb033 (patch)
tree1c6720d0a73d5a0af7649b0cceacecb14db822a2 /mail/dspam/Makefile
parent- Fix COMMENT format (diff)
- Update to 2.8
- Add new knobs: WITH_MYSQL, WITH_MAILDROP, WITH_PROCMAIL While I'm here: - Reset maintainer to ports@FreeBSD.org - Dominic Marks released maintainership of his ports on 2003-09-16 (see ports/56935) PR: 60138 Submitted by: Rob Evers <rob@debank.tv>
Notes
Notes: svn path=/head/; revision=95606
Diffstat (limited to 'mail/dspam/Makefile')
-rw-r--r--mail/dspam/Makefile29
1 files changed, 23 insertions, 6 deletions
diff --git a/mail/dspam/Makefile b/mail/dspam/Makefile
index 94172b16f70a..21180a897050 100644
--- a/mail/dspam/Makefile
+++ b/mail/dspam/Makefile
@@ -6,23 +6,40 @@
#
PORTNAME= dspam
-PORTVERSION= 2.7.1
+PORTVERSION= 2.8
CATEGORIES= mail
MASTER_SITES= http://www.nuclearelephant.com/projects/dspam/sources/
-MAINTAINER= dom@wirespeed.org.uk
+MAINTAINER= ports@FreeBSD.org
COMMENT= A server-side bayesian spam filter
-LIB_DEPENDS= db41.1:${PORTSDIR}/databases/db41
-
GNU_CONFIGURE= yes
-CONFIGURE_ARGS= --with-userdir=${PREFIX}/etc/dspam \
- --with-db4-includes=${LOCALBASE}/include/db41
+CONFIGURE_ARGS= --with-userdir=${PREFIX}/etc/dspam
CONFIGURE_ENV= LDFLAGS="-L${LOCALBASE}/lib"
INSTALLS_SHLIB= yes
USE_LIBTOOL= yes
USE_REINPLACE= yes
+.if defined(WITH_MYSQL)
+USE_MYSQL= yes
+CONFIGURE_ARGS+= --with-storage-driver=mysql_drv \
+ --with-mysql-includes=${LOCALBASE}/include/mysql \
+ --with-mysql-libraries=${LOCALBASE}/lib/mysql
+.else
+LIB_DEPENDS= db41.1:${PORTSDIR}/databases/db41
+CONFIGURE_ARGS+= --with-db4-includes=${LOCALBASE}/include/db41
+.endif
+
+.if defined(WITH_MAILDROP)
+RUN_DEPENDS= maildrop:${PORTSDIR}/mail/maildrop
+CONFIGURE_ARGS+= --with-local-delivery-agent='${LOCALBASE}/bin/maildrop $u'
+.endif
+
+.if defined(WITH_PROCMAIL)
+RUN_DEPENDS= procmail:${PORTSDIR}/mail/procmail
+CONFIGURE_ARGS+= --with-local-delivery-agent='${LOCALBASE}/bin/procmail $u'
+.endif
+
post-patch:
@${REINPLACE_CMD} -e 's|%%LIBTOOLFLAGS%%|${LIBTOOLFLAGS}|g ; \
s|-ldb-4.1|-ldb41|g' ${WRKSRC}/configure