From 1826fe7204df863c11158f7cae39b03f2b7bfe11 Mon Sep 17 00:00:00 2001 From: Christian Wiese Date: Tue, 23 Oct 2012 12:46:24 +0200 Subject: [PATCH] sendmail: enable LDAP support if openldap is installed --- mail/sendmail/sendmail.conf | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/mail/sendmail/sendmail.conf b/mail/sendmail/sendmail.conf index b88603814..d95f8a9ca 100644 --- a/mail/sendmail/sendmail.conf +++ b/mail/sendmail/sendmail.conf @@ -55,6 +55,14 @@ sm_main() { sm_appenddef "confINCDIR" "-L$( pkgprefix -r includedir openssl )" fi + # LDAP support + if pkginstalled -f openldap; then + sm_appenddef "confENVDEF" "-DLDAPMAP" + sm_appenddef "confLIBS" "-lldap -llber" + sm_appenddef "confLIBDIR" "-L$( pkgprefix -r libdir openldap )" + sm_appenddef "confINCDIR" "-L$( pkgprefix -r includedir openldap )" + fi + cd ..; ./Build; ./Build install install_setmailer sendmail }