blob: f813b2d1cc459f4ff1e1a7aae012993077d18f42 (
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
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
|
# Copyright 1999-2002 Gentoo Technologies, Inc.
# Distributed under the terms of the GNU General Public License v2
# $Header: /var/cvsroot/gentoo-x86/net-nds/openldap/openldap-2.0.25-r3.ebuild,v 1.3 2002/10/05 05:39:23 drobbins Exp $
IUSE="ssl tcpd sasl readline ipv6 berkdb gdbm ldap"
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/"
SLOT="0"
KEYWORDS="x86 ppc"
LICENSE="OPENLDAP"
DEPEND="virtual/glibc
>=sys-libs/ncurses-5.1
tcpd? ( >=sys-apps/tcp-wrappers-7.6 )
ssl? ( >=dev-libs/openssl-0.9.6 )
readline? ( >=sys-libs/readline-4.1 )
sasl? ( >=dev-libs/cyrus-sasl-1.5.27 )
berkdb? ( >=sys-libs/db-3.2.9 )
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" \
|| myconf="${myconf} --disable-wrappers"
use ssl \
&& myconf="${myconf} --with-tls" \
|| myconf="${myconf} --without-tls"
use readline \
&& myconf="${myconf} --with-readline" \
|| myconf="${myconf} --without-readline"
if use berkdb; then
myconf="${myconf} --enable-ldbm --with-ldbm-api=berkeley"
elif use gdbm; then
myconf="${myconf} --enable-ldbm --with-ldbm-api=gdbm"
elif use ldap-none; then
myconf="${myconf} --disable-ldbm"
else
myconf="${myconf} --enable-ldbm --with-ldbmi-api=auto"
fi
use ipv6 && myconf="${myconf} --enable-ipv6" \
|| myconf="${myconf} --disable-ipv6"
use sasl && myconf="${myconf} --enable-cyrus-sasl" \
|| myconf="${myconf} --disable-cyrus-sasl"
econf \
--enable-passwd \
--enable-shell \
--enable-shared \
--enable-static \
--localstatedir=/var/state/openldap \
--libexecdir=/usr/lib/openldap \
--sysconfdir=/etc \
${myconf} || die "bad configure"
make depend || die
make || die
cd tests ; make || die
}
src_install() {
make DESTDIR=${D} install || die "make install failed"
dodoc ANNOUNCEMENT CHANGES COPYRIGHT README LICENSE
docinto rfc ; dodoc doc/rfc/*.txt
exeinto /etc/init.d
newexe ${FILESDIR}/slapd.rc6 slapd
newexe ${FILESDIR}/slurpd.rc6 slurpd
}
|