1 # Copyright 1999-2019 Gentoo Authors
2 # Distributed under the terms of the GNU General Public License v2
8 DESCRIPTION="Store and configure Apache virtual hosts using LDAP"
9 HOMEPAGE="https://github.com/oerdnj/mod-vhost-ldap"
10 SRC_URI="https://dev.gentoo.org/~mjo/distfiles/${P}.tar.xz"
14 KEYWORDS="~amd64 ~x86"
17 APACHE2_MOD_CONF="99_${PN}"
18 APACHE2_MOD_DEFINE="VHOST_LDAP LDAP"
20 DOCFILES="AUTHORS ChangeLog README"
22 # We need apr-util[ldap] and apache to build, but the ldap module for
23 # apache is only needed when we try to run the thing.
24 DEPEND="dev-libs/apr-util[ldap]"
25 RDEPEND="=www-servers/apache-2.4*[ldap]"
32 sed -i "s/MOD_VHOST_LDAP_VERSION/\"${PV}\"/g" "${PN}.c" || \
33 die "failed to sed version string"
37 apache-module_src_install
38 insinto /etc/openldap/schema
39 doins mod_vhost_ldap.schema
43 apache-module_pkg_postinst
45 einfo "Your LDAP server needs to include mod_vhost_ldap.schema and should"
46 einfo "also maintain indices on apacheServerName and apacheServerAlias."