aboutsummaryrefslogtreecommitdiff
path: root/mail/spamass-milter
diff options
context:
space:
mode:
authorPav Lucistnik <pav@FreeBSD.org>2004-11-04 18:04:28 +0000
committerPav Lucistnik <pav@FreeBSD.org>2004-11-04 18:04:28 +0000
commiteb973cac3185fe16a0785db324f81d2961c653f2 (patch)
tree810173b6c49272eef37a1e34e568c4e45ac4accd /mail/spamass-milter
parent6fe31e5e797d8499c05cd91808cb69b19496f4bc (diff)
downloadports-eb973cac3185fe16a0785db324f81d2961c653f2.tar.gz
ports-eb973cac3185fe16a0785db324f81d2961c653f2.zip
Notes
Diffstat (limited to 'mail/spamass-milter')
-rw-r--r--mail/spamass-milter/Makefile13
1 files changed, 13 insertions, 0 deletions
diff --git a/mail/spamass-milter/Makefile b/mail/spamass-milter/Makefile
index 74b79ea90f9c..125f7296a038 100644
--- a/mail/spamass-milter/Makefile
+++ b/mail/spamass-milter/Makefile
@@ -31,6 +31,14 @@ RUN_DEPENDS= spamc:${PORTSDIR}/mail/p5-Mail-SpamAssassin
.include <bsd.port.pre.mk>
+.if exists(${LOCALBASE}/lib/libldap.so)
+WITH_LDAP=yes
+.endif
+
+.if !defined(WITHOUT_LDAP) && defined(WITH_LDAP)
+USE_OPENLDAP= yes
+.endif
+
.if !defined(WITH_SENDMAIL_BASE) && \
!defined(WITH_SENDMAIL_PORT) && \
!exists(${LOCALBASE}/lib/libmilter.a)
@@ -57,6 +65,8 @@ LDFLAGS+= -L${MILTERLIB}
GNU_CONFIGURE= yes
CONFIGURE_ENV+= CPPFLAGS="${CPPFLAGS}" LDFLAGS="${LDFLAGS}"
+USE_REINPLACE= yes
+
USE_RC_SUBR= yes
RC_SCRIPTS_SUB= PREFIX=${PREFIX} RC_SUBR=${RC_SUBR}
@@ -67,6 +77,9 @@ post-patch:
${FILESDIR}/activation.txt > ${WRKDIR}/activation.txt
@${SED} ${RC_SCRIPTS_SUB:S/$/!g/:S/^/ -e s!%%/:S/=/%%!/} \
${FILESDIR}/spamass-milter.sh > ${WRKDIR}/spamass-milter.sh
+.if !defined(WITHOUT_LDAP) && defined(WITH_LDAP)
+ @${REINPLACE_CMD} -e 's|-lmilter|-lmilter -lldap|g' ${WRKSRC}/configure
+.endif
post-install:
@${INSTALL_SCRIPT} ${WRKDIR}/spamass-milter.sh ${PREFIX}/etc/rc.d/spamass-milter.sh