diff options
author | pav <pav@FreeBSD.org> | 2004-11-05 02:04:28 +0800 |
---|---|---|
committer | pav <pav@FreeBSD.org> | 2004-11-05 02:04:28 +0800 |
commit | 5c4b68e16309eb91cc1cd9390576cde61c696903 (patch) | |
tree | 0c0b5fcd88f242c2a510a500634d68748f597d44 /mail/spamass-milter | |
parent | 3d914f613c2fbc3886d86f0c990ded03d6e91a41 (diff) | |
download | freebsd-ports-gnome-5c4b68e16309eb91cc1cd9390576cde61c696903.tar.gz freebsd-ports-gnome-5c4b68e16309eb91cc1cd9390576cde61c696903.tar.zst freebsd-ports-gnome-5c4b68e16309eb91cc1cd9390576cde61c696903.zip |
- Support LDAP enabled systems, especially for people who have libmilter with LDAP support.
PR: ports/73519
Submitted by: Lewis Thompson <purple@lewiz.net>
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 |