2007-08-08 21:21:01 +02:00
|
|
|
# Copyright 1999-2007 Gentoo Foundation
|
|
|
|
# Distributed under the terms of the GNU General Public License v2
|
|
|
|
# $Header: $
|
|
|
|
|
|
|
|
inherit eutils multilib versionator
|
|
|
|
|
|
|
|
MY_PV=$(replace_version_separator 3 '-')
|
|
|
|
|
|
|
|
DESCRIPTION="Fedora Directory Server (base)"
|
|
|
|
HOMEPAGE="http://directory.fedora.redhat.com/"
|
2007-10-06 12:54:22 +02:00
|
|
|
SRC_URI="http://ftp.mars.arge.at/fedora-ds/adminutil-${MY_PV}.tar.bz2
|
|
|
|
ftp://mars.arge.at/fedora-ds/adminutil-${MY_PV}.tar.bz2"
|
2007-08-08 21:21:01 +02:00
|
|
|
|
|
|
|
LICENSE="GPL-2-with-exceptions"
|
|
|
|
SLOT="0"
|
|
|
|
KEYWORDS="~amd64 ~x86"
|
|
|
|
IUSE="sasl ipv6 debug"
|
|
|
|
|
2007-08-08 21:24:39 +02:00
|
|
|
S="${WORKDIR}/${PN}-${MY_PV}"
|
2007-08-08 21:21:01 +02:00
|
|
|
|
|
|
|
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
|
|
|
|
sasl? ( >=dev-libs/cyrus-sasl-2.1.19 )
|
2007-08-08 21:38:56 +02:00
|
|
|
>=dev-libs/icu-3.4
|
|
|
|
!net-nds/fedora-ds-adminutil"
|
2007-08-08 21:21:01 +02:00
|
|
|
|
|
|
|
src_unpack() {
|
|
|
|
unpack ${A}
|
2007-08-10 07:16:25 +02:00
|
|
|
cd ${S}
|
2007-08-08 21:21:01 +02:00
|
|
|
epatch ${FILESDIR}/adminutil-1.1.4-no_icu_pc.patch
|
|
|
|
}
|
|
|
|
|
|
|
|
src_compile() {
|
|
|
|
if use amd64 ; then
|
|
|
|
myconf="${myconf} --enable-64bit"
|
|
|
|
elif use sasl ; then
|
|
|
|
myconf="${myconf} --with-sasl=yes"
|
|
|
|
else
|
|
|
|
myconf=""
|
|
|
|
fi
|
|
|
|
|
|
|
|
econf $(use_enable debug) \
|
|
|
|
${myconf} \
|
|
|
|
--with-fhs \
|
|
|
|
|| 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 () {
|
|
|
|
emake DESTDIR=${D} install || die "emake failed"
|
|
|
|
|
|
|
|
# remove redhat style init script
|
|
|
|
# rm -rf ${D}/etc/rc.d
|
|
|
|
|
|
|
|
# cope with libraries being in /usr/lib/fedora-ds
|
|
|
|
# dodir /etc/env.d
|
|
|
|
# echo "LDPATH=/usr/$(get_libdir)/fedora-ds" > ${D}/etc/env.d/08fedora-ds
|
|
|
|
|
|
|
|
}
|