summaryrefslogtreecommitdiff
path: root/www/ap22-vhost-ldap
diff options
context:
space:
mode:
authorimil <imil@pkgsrc.org>2009-02-21 15:59:20 +0000
committerimil <imil@pkgsrc.org>2009-02-21 15:59:20 +0000
commit7479ccb40c1c9079387fa1360a9a2fde1c2dd467 (patch)
tree9d9cb6323d237383651e4036c7dc62d159046736 /www/ap22-vhost-ldap
parent1f74f60e0365f5ffe110d379973d55bc7d46b70c (diff)
downloadpkgsrc-7479ccb40c1c9079387fa1360a9a2fde1c2dd467.tar.gz
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.
Diffstat (limited to 'www/ap22-vhost-ldap')
-rw-r--r--www/ap22-vhost-ldap/DESCR5
-rw-r--r--www/ap22-vhost-ldap/MESSAGE9
-rw-r--r--www/ap22-vhost-ldap/Makefile49
-rw-r--r--www/ap22-vhost-ldap/PLIST5
-rw-r--r--www/ap22-vhost-ldap/distinfo5
5 files changed, 73 insertions, 0 deletions
diff --git a/www/ap22-vhost-ldap/DESCR b/www/ap22-vhost-ldap/DESCR
new file mode 100644
index 00000000000..205e0d1febe
--- /dev/null
+++ b/www/ap22-vhost-ldap/DESCR
@@ -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.
diff --git a/www/ap22-vhost-ldap/MESSAGE b/www/ap22-vhost-ldap/MESSAGE
new file mode 100644
index 00000000000..00d6bfff605
--- /dev/null
+++ b/www/ap22-vhost-ldap/MESSAGE
@@ -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
+
+===========================================================================
diff --git a/www/ap22-vhost-ldap/Makefile b/www/ap22-vhost-ldap/Makefile
new file mode 100644
index 00000000000..3930d77bb12
--- /dev/null
+++ b/www/ap22-vhost-ldap/Makefile
@@ -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"
diff --git a/www/ap22-vhost-ldap/PLIST b/www/ap22-vhost-ldap/PLIST
new file mode 100644
index 00000000000..4be85f17e06
--- /dev/null
+++ b/www/ap22-vhost-ldap/PLIST
@@ -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
diff --git a/www/ap22-vhost-ldap/distinfo b/www/ap22-vhost-ldap/distinfo
new file mode 100644
index 00000000000..8c3c40305aa
--- /dev/null
+++ b/www/ap22-vhost-ldap/distinfo
@@ -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