2008-07-30 21:08:06 +02:00
|
|
|
# Copyright 1999-2008 Gentoo Foundation
|
|
|
|
# Distributed under the terms of the GNU General Public License v2
|
|
|
|
# $Header: $
|
|
|
|
|
|
|
|
inherit apache-module ssl-cert eutils
|
|
|
|
|
|
|
|
KEYWORDS="amd64 ~sparc ~x86"
|
|
|
|
|
2008-08-20 14:42:02 +02:00
|
|
|
DESCRIPTION="An Apache module to implementing the admin server functionality for Fedora Admin/Directory Server"
|
2008-07-30 21:08:06 +02:00
|
|
|
HOMEPAGE="http://directory.fedora.redhat.com/"
|
|
|
|
SRC_URI="http://directory.fedoraproject.org/sources/fedora-ds-admin-${PV}.tar.bz2"
|
|
|
|
LICENSE="Apache-2.0"
|
|
|
|
SLOT="0"
|
2008-08-30 13:06:51 +02:00
|
|
|
IUSE=""
|
2008-07-30 21:08:06 +02:00
|
|
|
|
|
|
|
DEPEND=">=dev-libs/mozldap-6.0.2
|
2008-08-20 14:42:02 +02:00
|
|
|
>=dev-libs/adminutil-1.1.3
|
2008-07-30 21:08:06 +02:00
|
|
|
>=dev-libs/nss-3.11.4
|
2008-08-20 14:42:02 +02:00
|
|
|
>=dev-libs/nspr-4.6.4
|
|
|
|
>=dev-libs/icu-3.4"
|
2008-07-30 21:08:06 +02:00
|
|
|
RDEPEND="${DEPEND}"
|
|
|
|
|
|
|
|
S="${WORKDIR}/fedora-ds-admin-${PV}/${PN}"
|
|
|
|
|
|
|
|
#APACHE2_MOD_CONF="48_${PN}"
|
|
|
|
APACHE2_MOD_DEFINE="ADMSERV"
|
|
|
|
|
|
|
|
DOCFILES="LICENSE README"
|
|
|
|
|
|
|
|
need_apache2
|
|
|
|
|
|
|
|
pkg_setup() {
|
2008-08-30 13:06:51 +02:00
|
|
|
if ! built_with_use 'dev-libs/apr-util' mozldap ; then
|
2008-08-20 14:42:02 +02:00
|
|
|
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."
|
2008-08-30 13:06:51 +02:00
|
|
|
eerror ""
|
|
|
|
eerror "plz remerge dev-libs/apr-util and www-server/apache with mozldap useflag"
|
|
|
|
eerror "enabled."
|
|
|
|
eerror ""
|
2008-08-20 14:42:02 +02:00
|
|
|
die "mozldap USE-flag enabled while not supported in apr-util"
|
|
|
|
fi
|
2008-08-30 13:19:24 +02:00
|
|
|
|
|
|
|
if ! built_with_use 'dev-libs/apr-util' ldap ; then
|
|
|
|
eerror "dev-libs/apr-util is missing LDAP support. For apache to have"
|
|
|
|
eerror "ldap support, dev-libs/apr-util & www-server/apache must be built"
|
|
|
|
eerror "with the ldap USE-flag enabled."
|
|
|
|
eerror ""
|
|
|
|
eerror "plz remerge dev-libs/apr-util & www-server/apache with ldap useflag"
|
|
|
|
eerror "enabled."
|
|
|
|
eerror ""
|
|
|
|
die "ldap USE-flag enabled while not supported in dev-libs/apr-util"
|
|
|
|
fi
|
2008-07-30 21:08:06 +02:00
|
|
|
}
|
|
|
|
|
|
|
|
src_compile() {
|
|
|
|
econf --with-apxs=${APXS} \
|
|
|
|
|| die "econf failed"
|
|
|
|
|
|
|
|
emake || die "emake failed"
|
|
|
|
}
|
|
|
|
|
|
|
|
src_install() {
|
|
|
|
apache-module_src_install
|
|
|
|
}
|