# Copyright 1999-2003 Gentoo Technologies, Inc. # Distributed under the terms of the GNU General Public License v2 # supposedly this module also supports apache1, depends on apache2 until tested. IUSE="apache2" DESCRIPTION="mod_ldap_userdir is a module that enables the Apache web server to look up user home directories (for /~user URLs) from an LDAP directory." HOMEPAGE="http://horde.net/~jwm/software/mod_ldap_userdir/" KEYWORDS="x86" S=${WORKDIR}/${P} SRC_URI="http://horde.net/~jwm/software/mod_ldap_userdir/mod_ldap_userdir-1.1.1.tar.gz" DEPEND="=net-www/apache-2* net-nds/openldap" LICENSE="GPL" SLOT="0" src_compile() { local myconf use apache2 && myconf="${myconf} --with-apxs2=/usr/sbin/apxs2" myconf="${myconf} --with-activate" ./configure ${myconf} || die make clean make || die } src_install() { exeinto /usr/lib/apache2-extramodules doexe mod_ldap_userdir.so dodoc DIRECTIVES README user-ldif posixAccount-objectclass }