aboutsummaryrefslogtreecommitdiffstats
path: root/www/apache20
diff options
context:
space:
mode:
authorperky <perky@FreeBSD.org>2003-06-12 17:35:21 +0800
committerperky <perky@FreeBSD.org>2003-06-12 17:35:21 +0800
commit234b8b9dfe4e8fd82807c6e37544eab0b8748962 (patch)
tree5d2bc044eafb2a211e86d1e959c72a479f8e0439 /www/apache20
parentfe80e6e37a01642817209bfb0a8b60602d1db730 (diff)
downloadfreebsd-ports-gnome-234b8b9dfe4e8fd82807c6e37544eab0b8748962.tar.gz
freebsd-ports-gnome-234b8b9dfe4e8fd82807c6e37544eab0b8748962.tar.zst
freebsd-ports-gnome-234b8b9dfe4e8fd82807c6e37544eab0b8748962.zip
Add a new knob WITH_LDAP that brings mod_auth_ldap and mod_ldap.
Submitted by: Jean-Baptiste Quenot <jb.quenot@caraldi.com> Requested by: Moti Levy <moti@flncs.com>, Milan Andric <mandric@eecs.berkeley.edu>,
Diffstat (limited to 'www/apache20')
-rw-r--r--www/apache20/Makefile11
-rw-r--r--www/apache20/pkg-plist2
2 files changed, 13 insertions, 0 deletions
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