blob: e1799f16436d633a214f6fad40020e535fbfab6f (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
|
# Copyright 1999-2000 Gentoo Technologies, Inc.
# Distributed under the terms of the GNU General Public License, v2 or later
# $Header: /var/cvsroot/gentoo-x86/net-nds/openldap/openldap-1.2.12.ebuild,v 1.5 2002/07/11 06:30:49 drobbins Exp $
S=${WORKDIR}/${P}
DESCRIPTION="LDAP suite of application and development tools"
SRC_URI="ftp://ftp.OpenLDAP.org/pub/OpenLDAP/openldap-release/${P}.tgz"
HOMEPAGE="http://www.OpenLDAP.org/"
LICENSE="OPENLDAP"
DEPEND="virtual/glibc
tcpd? ( >=sys-apps/tcp-wrappers-7.6 )
>=sys-libs/ncurses-5.1
gdbm? ( >=sys-libs/gdbm-1.8.0 )"
RDEPEND="virtual/glibc
>=sys-libs/ncurses-5.1
gdbm? ( >=sys-libs/gdbm-1.8.0 )"
src_compile() {
local myconf
use tcpd && myconf="${myconf} --enable-wrappers"
use gdbm && myconf="${myconf} --enable-ldbm --with-ldbm-api=gdbm"
use gdbm || myconf="${myconf} --disable-ldbm"
./configure --host=${CHOST} --enable-passwd --enable-shell --enable-shared \
--enable-static --prefix=/usr --sysconfdir=/etc --localstatedir=/var/lib \
--mandir=/usr/share/man --libexecdir=/usr/lib/openldap ${myconf}
assert "bad configure"
make depend || die
make || die "compile problem"
cd tests ; make || die
}
src_install() {
make prefix=${D}/usr sysconfdir=${D}/etc/openldap localstatedir=${D}/var/lib \
mandir=${D}/usr/share/man libexecdir=${D}/usr/lib/openldap install
assert "install problem"
dodoc ANNOUNCEMENT CHANGES COPYRIGHT README LICENSE
docinto rfc ; dodoc doc/rfc/*.txt
docinto devel ; dodoc doc/devel/*
exeinto /etc/rc.d/init.d
newexe ${FILESDIR}/slapd.rc5 slapd
newexe ${FILESDIR}/slurpd.rc5 slurpd
cd ${D}/etc/openldap
for i in *
do
cp $i $i.orig
sed -e "s:${D}::" $i.orig > $i
rm $i.orig
done
}
|