diff options
author | Sergei Kolobov <sergei@FreeBSD.org> | 2003-12-11 14:42:27 +0000 |
---|---|---|
committer | Sergei Kolobov <sergei@FreeBSD.org> | 2003-12-11 14:42:27 +0000 |
commit | 3bbf74e145fb8982e7ca5e5eaee15d8dfcabb033 (patch) | |
tree | 1c6720d0a73d5a0af7649b0cceacecb14db822a2 /mail/dspam/Makefile | |
parent | 2522aecf35a6be325a48ef9d2b476ce6b000ac84 (diff) |
Notes
Diffstat (limited to 'mail/dspam/Makefile')
-rw-r--r-- | mail/dspam/Makefile | 29 |
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 |