diff options
author | Pav Lucistnik <pav@FreeBSD.org> | 2004-11-04 18:04:28 +0000 |
---|---|---|
committer | Pav Lucistnik <pav@FreeBSD.org> | 2004-11-04 18:04:28 +0000 |
commit | eb973cac3185fe16a0785db324f81d2961c653f2 (patch) | |
tree | 810173b6c49272eef37a1e34e568c4e45ac4accd /mail/spamass-milter | |
parent | . Update to 1.13. (diff) |
- Support LDAP enabled systems, especially for people who have libmilter with LDAP support.
PR: ports/73519
Submitted by: Lewis Thompson <purple@lewiz.net>
Notes
Notes:
svn path=/head/; revision=120799
Diffstat (limited to 'mail/spamass-milter')
-rw-r--r-- | mail/spamass-milter/Makefile | 13 |
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 |