From 234b8b9dfe4e8fd82807c6e37544eab0b8748962 Mon Sep 17 00:00:00 2001 From: perky Date: Thu, 12 Jun 2003 09:35:21 +0000 Subject: Add a new knob WITH_LDAP that brings mod_auth_ldap and mod_ldap. Submitted by: Jean-Baptiste Quenot Requested by: Moti Levy , Milan Andric , --- www/apache20/Makefile | 11 +++++++++++ www/apache20/pkg-plist | 2 ++ 2 files changed, 13 insertions(+) (limited to 'www/apache20') diff --git a/www/apache20/Makefile b/www/apache20/Makefile index 73a3a7177247..13d780f63045 100644 --- a/www/apache20/Makefile +++ b/www/apache20/Makefile @@ -74,6 +74,17 @@ PLIST_SUB+= SUEXEC="" PLIST_SUB+= SUEXEC="@comment " .endif +.if defined(WITH_LDAP) +LIB_DEPENDS+= ldap.2:${PORTSDIR}/net/openldap21 +CONFIGURE_ARGS+= --with-ldap \ + --enable-ldap --enable-auth-ldap \ + --with-ldap-lib="${LOCALBASE}/lib" \ + --with-ldap-include="${LOCALBASE}/include" +PLIST_SUB+= LDAP="" +.else +PLIST_SUB+= LDAP="@comment " +.endif + .if ${WITH_MPM} != "prefork" PKGNAMESUFFIX= -${WITH_MPM} WITH_THREADS= yes diff --git a/www/apache20/pkg-plist b/www/apache20/pkg-plist index 8a38ec239357..bba38ad66673 100644 --- a/www/apache20/pkg-plist +++ b/www/apache20/pkg-plist @@ -147,6 +147,7 @@ libexec/apache2/mod_auth.so libexec/apache2/mod_auth_anon.so libexec/apache2/mod_auth_dbm.so libexec/apache2/mod_auth_digest.so +%%LDAP%%libexec/apache2/mod_auth_ldap.so libexec/apache2/mod_autoindex.so %%EXPERIMENTAL%%libexec/apache2/mod_bucketeer.so %%THREADS%%libexec/apache2/mod_cache.so @@ -169,6 +170,7 @@ libexec/apache2/mod_headers.so libexec/apache2/mod_imap.so libexec/apache2/mod_include.so libexec/apache2/mod_info.so +%%LDAP%%libexec/apache2/mod_ldap.so libexec/apache2/mod_log_config.so %%THREADS%%libexec/apache2/mod_mem_cache.so libexec/apache2/mod_mime.so -- cgit