blob: fb858e7a5eb1603ff4c663e27587ae8357b01ad4 (
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
|
# Copyright 1999-2000 Gentoo Technologies, Inc.
# Distributed under the terms of the GNU General Public License, v2 or later
# Author Achim Gottinger <achim@gentoo.org>
# $Header: /var/cvsroot/gentoo-x86/net-nds/openldap/openldap-1.2.11-r1.ebuild,v 1.1 2000/08/09 23:55:48 achim Exp $
P=openldap-1.2.11
A=${P}.tgz
S=${WORKDIR}/${P}
CATEGORY="net-nds"
DESCRIPTION="LDAP suite of application and development tools"
SRC_URI="ftp://ftp.OpenLDAP.org/pub/OpenLDAP/openldap-release/"${A}
HOMEPAGE="http://www.OpenLDAP.org/"
src_compile() {
cd ${S}
./configure --host=${CHOST} --enable-wrappers --enable-passwd \
--enable-shell --enable-shared --enable-static \
--prefix=/usr --sysconfdir=/etc --localstatedir=/var/state
make depend
make
cd tests
make
}
src_install() {
cd ${S}
make prefix=${D}/usr sysconfdir=${D}/etc/openldap localstatedir=${D}/var/state install
prepman
dodoc ANNOUNCEMENT CHANGES COPYRIGHT README LICENSE
docinto rfc
dodoc doc/rfc/*.txt
docinto devel
dodoc doc/devel/*
dodir /etc/rc.d/init.d
cp ${O}/files/slapd ${D}/etc/rc.d/init.d
cp ${O}/files/slurpd ${D}/etc/rc.d/init.d
cd ${D}/etc/openldap
for i in *
do
cp $i $i.orig
sed -e "s:${D}::" $i.orig > $i
rm $i.orig
done
}
|