From b0b28c98de138b103a9421feafbe7f48d868d5ab Mon Sep 17 00:00:00 2001 From: Christian Wiese Date: Wed, 7 Mar 2007 17:00:44 +0000 Subject: [PATCH] * improved dovecot to enable LDAP support if openldap is installed git-svn-id: svn://svn.opensde.net/opensde/package/trunk@20272 10447126-35f2-4685-b0cf-6dd780d3921f --- mail/dovecot/dovecot.conf | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/mail/dovecot/dovecot.conf b/mail/dovecot/dovecot.conf index 79f362a06..d3dbe9575 100644 --- a/mail/dovecot/dovecot.conf +++ b/mail/dovecot/dovecot.conf @@ -17,3 +17,11 @@ if [ $prefix_auto = 1 ] ; then prefix="opt/dovecot" set_confopt fi + +# LDAP support +if pkginstalled openldap ; then + pkgprefix -t openldap + var_append CFLAGS ' ' "-I$root$( pkgprefix includedir openldap )" + export CFLAGS + var_append extraconfopt ' ' "--with-ldap" +fi