2008-08-18 23:31:22 +02:00
|
|
|
# Copyright 1999-2008 Gentoo Foundation
|
|
|
|
# Distributed under the terms of the GNU General Public License v2
|
|
|
|
# $Header: $
|
|
|
|
|
|
|
|
WANT_AUTOCONF="latest"
|
|
|
|
WANT_AUTOMAKE="latest"
|
|
|
|
|
2008-08-22 21:02:29 +02:00
|
|
|
inherit eutils multilib autotools depend.apache
|
2008-08-18 23:31:22 +02:00
|
|
|
|
|
|
|
DESCRIPTION="Fedora Directory Server (admin)"
|
|
|
|
HOMEPAGE="http://directory.fedora.redhat.com/"
|
|
|
|
SRC_URI="http://directory.fedoraproject.org/sources/${P}.tar.bz2"
|
|
|
|
|
|
|
|
LICENSE="GPL-2-with-exceptions"
|
|
|
|
SLOT="0"
|
|
|
|
KEYWORDS="~amd64 ~x86"
|
|
|
|
IUSE="ipv6 debug"
|
|
|
|
|
|
|
|
DEPEND=">=dev-libs/nss-3.11.4
|
|
|
|
>=dev-libs/nspr-4.6.4
|
|
|
|
>=dev-libs/svrcore-4.0.3
|
|
|
|
>=dev-libs/mozldap-6.0.2
|
|
|
|
>=dev-libs/adminutil-1.1.5
|
|
|
|
>=dev-libs/cyrus-sasl-2.1.19
|
|
|
|
>=dev-libs/icu-3.4
|
|
|
|
>=sys-libs/db-4.2.52
|
|
|
|
>=net-analyzer/net-snmp-5.1.2
|
|
|
|
sys-apps/lm_sensors
|
|
|
|
app-arch/bzip2
|
|
|
|
dev-libs/openssl
|
|
|
|
sys-apps/tcp-wrappers
|
|
|
|
sys-libs/pam
|
|
|
|
sys-libs/zlib
|
2008-08-22 21:02:29 +02:00
|
|
|
app-misc/mime-types
|
2008-08-18 23:31:22 +02:00
|
|
|
>=www-servers/apache-2.0
|
|
|
|
www-apache/mod_restartd
|
|
|
|
www-apache/mod_nss
|
2008-08-30 13:41:45 +02:00
|
|
|
www-apache/mod_admserv
|
|
|
|
>=app-admin/fedora-ds-admin-console-1.1.0
|
|
|
|
>=app-admin/fedora-ds-console-1.1.0"
|
2008-08-18 23:31:22 +02:00
|
|
|
|
2008-08-22 21:02:29 +02:00
|
|
|
need_apache2
|
|
|
|
|
2008-08-18 23:31:22 +02:00
|
|
|
src_unpack() {
|
|
|
|
unpack ${A}
|
2008-08-20 14:26:19 +02:00
|
|
|
cd "${S}"
|
2008-08-30 14:32:55 +02:00
|
|
|
epatch "${FILESDIR}"/fedora-ds-admin-1.1.5-cfgstuff-1.patch
|
2008-08-18 23:31:22 +02:00
|
|
|
sed -e "s!SUBDIRS!# SUBDIRS!g" -i Makefile.am
|
|
|
|
rm -rf mod_*
|
|
|
|
eautoreconf
|
|
|
|
}
|
|
|
|
|
|
|
|
src_compile() {
|
|
|
|
econf $(use_enable debug) \
|
|
|
|
--with-fhs \
|
2008-08-22 21:02:29 +02:00
|
|
|
--with-httpd=${APACHE_BIN} \
|
2008-08-18 23:31:22 +02:00
|
|
|
|| die "econf failed"
|
|
|
|
|
|
|
|
emake || die "emake failed"
|
|
|
|
|
|
|
|
# --with-nspr=yes \
|
|
|
|
# --with-nss=yes \
|
|
|
|
# --with-ldapsdk=yes \
|
|
|
|
# --with-db=yes \
|
|
|
|
# --with-svrcore=yes \
|
|
|
|
# --with-icu=yes \
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
src_install () {
|
2008-08-20 14:26:19 +02:00
|
|
|
emake DESTDIR="${D}" install || die "emake failed"
|
2008-08-30 14:32:55 +02:00
|
|
|
keepdir /var/log/dirsrv/admin-serv
|
2008-08-18 23:31:22 +02:00
|
|
|
|
|
|
|
# remove redhat style init script.
|
2008-08-20 14:26:19 +02:00
|
|
|
rm -rf "${D}"/etc/rc.d
|
|
|
|
rm -rf "${D}"/etc/default
|
|
|
|
# install gentoo style init script.
|
2008-08-18 23:31:22 +02:00
|
|
|
newinitd "${FILESDIR}"/dirsrv-admin.initd dirsrv-admin
|
|
|
|
newconfd "${FILESDIR}"/dirsrv-admin.confd dirsrv-admin
|
|
|
|
}
|