2007-08-08 21:25:23 +02:00
|
|
|
# Copyright 1999-2007 Gentoo Foundation
|
|
|
|
# Distributed under the terms of the GNU General Public License v2
|
|
|
|
# $Header: $
|
|
|
|
|
2008-01-19 19:55:42 +01:00
|
|
|
inherit apache-module ssl-cert eutils
|
2007-08-08 21:25:23 +02:00
|
|
|
|
|
|
|
KEYWORDS="amd64 ~sparc ~x86"
|
|
|
|
|
|
|
|
DESCRIPTION="An Apache 2.0 module for implementing the admin server functionality required by Fedora Admin Server and Directory Server"
|
|
|
|
HOMEPAGE="http://directory.fedora.redhat.com/"
|
2008-01-19 19:55:42 +01:00
|
|
|
SRC_URI="http://directory.fedoraproject.org/sources/${P}.tar.gz"
|
2007-08-08 21:25:23 +02:00
|
|
|
LICENSE="Apache-2.0"
|
|
|
|
SLOT="0"
|
2007-10-06 19:32:40 +02:00
|
|
|
IUSE="mozldap"
|
2007-08-08 21:25:23 +02:00
|
|
|
|
|
|
|
DEPEND=">=dev-libs/mozldap-6.0.2
|
2007-08-10 07:16:25 +02:00
|
|
|
>=dev-libs/adminutil-1.1.3
|
2007-08-08 21:25:23 +02:00
|
|
|
>=dev-libs/nss-3.11.4
|
|
|
|
>=dev-libs/nspr-4.6.4
|
|
|
|
>=dev-libs/icu-3.4"
|
|
|
|
RDEPEND="${DEPEND}"
|
|
|
|
|
2007-10-06 19:00:40 +02:00
|
|
|
#APACHE2_MOD_CONF="48_${PN}"
|
2007-08-08 21:25:23 +02:00
|
|
|
APACHE2_MOD_DEFINE="ADMSERV"
|
|
|
|
|
2007-08-08 21:38:56 +02:00
|
|
|
DOCFILES="LICENSE README"
|
2007-08-08 21:25:23 +02:00
|
|
|
|
|
|
|
need_apache2
|
|
|
|
|
2007-10-06 19:32:40 +02:00
|
|
|
pkg_setup() {
|
|
|
|
if ( use mozldap && ! built_with_use 'dev-libs/apr-util' mozldap ) ; then
|
|
|
|
eerror "dev-libs/apr-util is missing Mozilla LDAP support. For apache to have"
|
|
|
|
eerror "mozldap support, apr-util must be built with the mozldap USE-flag"
|
|
|
|
eerror "enabled."
|
|
|
|
die "mozldap USE-flag enabled while not supported in apr-util"
|
|
|
|
fi
|
|
|
|
}
|
|
|
|
|
2007-08-08 21:25:23 +02:00
|
|
|
src_compile() {
|
|
|
|
econf --with-apxs=${APXS2} \
|
|
|
|
|| die "econf failed"
|
|
|
|
|
|
|
|
emake || die "emake failed"
|
|
|
|
}
|
|
|
|
|
|
|
|
src_install() {
|
|
|
|
apache-module_src_install
|
|
|
|
}
|