blob: d55a8e639a956e9c6adc12acc227ac4c5358a992 (
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
|
# Description: Outil permettant d'accéder au protocol LDAP
# URL: http://www.openldap.org
# Maintainer: NuTyX core team
# Packager: thierryn1 at hispeed dot ch
# Depends on: libldap
# Run on: libldap
name=openldap
version=2.4.22
release=1
source=(ftp://ftp.openldap.org/pub/OpenLDAP/openldap-release/$name-$version.tgz)
build() {
source /etc/blfs-bootscripts
wget http://www.linuxfromscratch.org/blfs/downloads/svn/$scripts-$scriptsversion.tar.bz2
tar xvf $scripts-$scriptsversion.tar.bz2
cd $name-$version
export CPPFLAGS="$CPPFLAGS -D_GNU_SOURCE"
./configure --prefix=/usr \
--sysconfdir=/etc \
--libexecdir=/usr/sbin \
--mandir=/usr/share/man \
--localstatedir=/var/openldap \
--disable-nls \
--enable-syslog \
--with-threads \
--with-tls \
--with-cyrus-sasl \
--enable-spasswd \
--enable-dynamic \
--enable-ipv6 \
--enable-modules \
--enable-crypt \
--enable-rewrite \
--enable-ldbm \
--enable-ldbm-api=berkeley \
--enable-ldbm-type=btree \
--enable-bdb \
--enable-hdb \
--enable-ldap \
--enable-meta \
--enable-monitor \
--enable-dnssrv \
--enable-null \
--enable-perl \
--with-dyngroup \
--with-proxycache \
--enable-wrappers \
--enable-aci \
--enable-shared
make depend
make
make DESTDIR=$PKG install
sed -i -e "s|-L${PKG}/usr/lib||g" $PKG/usr/lib/*.la
/sbin/ldconfig -n $PKG/usr/lib
# compatiblity links
(cd $PKG/usr/lib;
ln -s liblber.so liblber.so.2;
ln -s libldap.so libldap.so.2;
ln -s libldap_r.so libldap_r.so.2) || exit 1
# Installation of the script
cd ../$scripts-$scriptsversion
make DESTDIR=$PKG install-openldap1
# Suppress files from libldap
rm -r $PKG/usr/share/man/man{3,5}
rm -r $PKG/usr/{lib,include}
rm -f $PKG/etc/openldap/schema/README
}
|