mod-vhost-ldap is an Apache 2.2 module for storing and configuring
Virtual Hosts from LDAP. It supports DocumentRoot, ScriptAlias, ServerName, ServerAlias, ServerAdmin and SuexecUserGroup directives. It's built on top of mod_ldap, so it uses it's caching capabilities and can be used with threaded apache.
This commit is contained in:
parent
1f74f60e03
commit
7479ccb40c
5 changed files with 73 additions and 0 deletions
5
www/ap22-vhost-ldap/DESCR
Normal file
5
www/ap22-vhost-ldap/DESCR
Normal file
|
@ -0,0 +1,5 @@
|
|||
mod-vhost-ldap is an Apache 2.2 module for storing and configuring
|
||||
Virtual Hosts from LDAP. It supports DocumentRoot, ScriptAlias,
|
||||
ServerName, ServerAlias, ServerAdmin and SuexecUserGroup directives.
|
||||
It's built on top of mod_ldap, so it uses it's caching capabilities
|
||||
and can be used with threaded apache.
|
9
www/ap22-vhost-ldap/MESSAGE
Normal file
9
www/ap22-vhost-ldap/MESSAGE
Normal file
|
@ -0,0 +1,9 @@
|
|||
===========================================================================
|
||||
$NetBSD: MESSAGE,v 1.1.1.1 2009/02/21 15:59:20 imil Exp $
|
||||
|
||||
In order to use this module in your Apache installation, you need to
|
||||
add the following to your httpd.conf file:
|
||||
|
||||
LoadModule vhost_ldap_module lib/httpd/mod_vhost_ldap.so
|
||||
|
||||
===========================================================================
|
49
www/ap22-vhost-ldap/Makefile
Normal file
49
www/ap22-vhost-ldap/Makefile
Normal file
|
@ -0,0 +1,49 @@
|
|||
# $NetBSD: Makefile,v 1.1.1.1 2009/02/21 15:59:20 imil Exp $
|
||||
|
||||
MVL_VERSION= 1.2.0
|
||||
DISTNAME= mod-vhost-ldap_${MVL_VERSION}.orig
|
||||
PKGNAME= ${APACHE_PKG_PREFIX}-vhost-ldap-${MVL_VERSION}
|
||||
CATEGORIES= www databases
|
||||
MASTER_SITES= ${MASTER_SITE_DEBIAN:=pool/main/m/mod-vhost-ldap/}
|
||||
|
||||
MAINTAINER= imil@gcu.info
|
||||
HOMEPAGE= http://packages.qa.debian.org/m/mod-vhost-ldap.html
|
||||
COMMENT= Apache 2.2 module LDAP Virtual Hosts support
|
||||
|
||||
WRKSRC= ${WRKDIR}/${DISTNAME:S/_/-/:S/.orig//}
|
||||
NO_CONFIGURE= yes
|
||||
|
||||
PKG_DESTDIR_SUPPORT= user-destdir
|
||||
|
||||
APACHE_MODULE_NAME= mod_vhost_ldap
|
||||
|
||||
PKG_APACHE_ACCEPTED= apache22
|
||||
|
||||
AUTO_MKDIRS= yes
|
||||
|
||||
do-build:
|
||||
cd ${WRKSRC} && \
|
||||
${APXS} -c -n ${APACHE_MODULE_NAME} \
|
||||
-I${BUILDLINK_PREFIX.openldap-client}/include \
|
||||
-L${BUILDLINK_PREFIX.openldap-client}/lib \
|
||||
${COMPILER_RPATH_FLAG}${BUILDLINK_PREFIX.openldap-client}/lib \
|
||||
-DMOD_VHOST_LDAP_VERSION=\\\"mod_vhost_ldap/${MVL_VERSION}\\\" \
|
||||
-lldap_r mod_vhost_ldap.c
|
||||
|
||||
do-install:
|
||||
cd ${WRKSRC} && \
|
||||
${APXS} -i -n ${APACHE_MODULE_NAME} ${APACHE_MODULE_NAME}.la
|
||||
${INSTALL_DATA} ${WRKSRC}/vhost_ldap.conf \
|
||||
${DESTDIR}${PREFIX}/share/examples/mod_vhost_ldap
|
||||
${INSTALL_DATA} ${WRKSRC}/mod_vhost_ldap.schema \
|
||||
${DESTDIR}${PREFIX}/share/examples/mod_vhost_ldap
|
||||
|
||||
.include "../../devel/apr-util/buildlink3.mk"
|
||||
.if empty(PKG_BUILD_OPTIONS.apr-util:Mldap)
|
||||
PKG_FAIL_REASON+= "PKG_OPTIONS.apr-util must contain the ldap parameter"
|
||||
.endif
|
||||
|
||||
.include "../../mk/apache.mk"
|
||||
.include "../../databases/openldap-client/buildlink3.mk"
|
||||
|
||||
.include "../../mk/bsd.pkg.mk"
|
5
www/ap22-vhost-ldap/PLIST
Normal file
5
www/ap22-vhost-ldap/PLIST
Normal file
|
@ -0,0 +1,5 @@
|
|||
@comment $NetBSD: PLIST,v 1.1.1.1 2009/02/21 15:59:20 imil Exp $
|
||||
lib/httpd/mod_vhost_ldap.so
|
||||
share/examples/mod_vhost_ldap/vhost_ldap.conf
|
||||
share/examples/mod_vhost_ldap/mod_vhost_ldap.schema
|
||||
@dirrm share/examples/mod_vhost_ldap
|
5
www/ap22-vhost-ldap/distinfo
Normal file
5
www/ap22-vhost-ldap/distinfo
Normal file
|
@ -0,0 +1,5 @@
|
|||
$NetBSD: distinfo,v 1.1.1.1 2009/02/21 15:59:20 imil Exp $
|
||||
|
||||
SHA1 (mod-vhost-ldap_1.2.0.orig.tar.gz) = 5152a928bdee6f6e9e3a2e02dc20ef3de24528d4
|
||||
RMD160 (mod-vhost-ldap_1.2.0.orig.tar.gz) = b4bcd45d4fab70acc69e1a65a3f3f94447591889
|
||||
Size (mod-vhost-ldap_1.2.0.orig.tar.gz) = 8593 bytes
|
Loading…
Reference in a new issue