KEYWORDS="~amd64 ~ppc ~x86"
IUSE="ssl"
-DEPEND="ssl? ( dev-libs/openssl )
- net-nds/openldap"
+# The module will compile fine without apache[ldap], but Apache will
+# crash if you try to load the module before rebuilding Apache with LDAP
+# support (and enabling it!).
+DEPEND="net-nds/openldap
+ www-servers/apache
+ ssl? ( dev-libs/openssl )"
RDEPEND="${DEPEND}
www-servers/apache[ldap]"
-need_apache2
-
APACHE2_MOD_CONF="47_${PN}"
APACHE2_MOD_DEFINE="LDAP LDAP_USERDIR"