blob: b919f632e01109ccbcc5252b9ccdb607fa99196a (
plain)
1 # Description: Lightweight Directory Access Protocol (LDAP) Toolkit
2 # URL: http://www.openldap.org/
3 # Packager: Daniel Mueller, daniel at danm dot de
4 # Maintainer: Jose V Beneyto, sepen at crux dot nu
5 # Depends on: perl, openssl, cyrus-sasl
6
7 name=openldap
8 version=2.4.31
9 release=1
10 source=(ftp://ftp.openldap.org/pub/OpenLDAP/openldap-release/$name-$version.tgz \
11 $name-config.patch slurpd slapd)
12
13 build() {
14 cd $name-$version
15 patch -p0 -i $SRC/$name-config.patch
16
17 # Workaround for: (ITS#5464) ucred guarded by __USE_GNU in glibc 2.8
18 # http://www.openldap.org/lists/openldap-bugs/200804/msg00074.html
19 export CPPFLAGS="$CPPFLAGS -D_GNU_SOURCE"
20
21 ./configure --prefix=/usr \
22 --mandir=/usr/man \
23 --sysconfdir=/etc \
24 --libexecdir=/usr/sbin \
25 --localstatedir=/var/openldap \
26 --disable-nls \
27 --enable-syslog \
28 --with-threads \
29 --with-tls \
30 --with-cyrus-sasl \
31 --enable-spasswd \
32 --enable-dynamic \
33 --enable-ipv6 \
34 --enable-modules \
35 --enable-crypt \
36 --enable-rewrite \
37 --enable-ldbm \
38 --enable-ldbm-api=berkeley \
39 --enable-ldbm-type=btree \
40 --enable-bdb \
41 --enable-hdb \
42 --enable-ldap \
43 --enable-meta \
44 --enable-monitor \
45 --enable-dnssrv \
46 --enable-null \
47 --enable-perl \
48 --with-dyngroup \
49 --with-proxycache \
50 --enable-wrappers \
51 --enable-slurpd \
52 --enable-aci \
53 --enable-shared
54
55 make depend
56 make
57 make DESTDIR=$PKG install
58
59 sed -i -e "s|-L${PKG}/usr/lib||g" $PKG/usr/lib/*.la
60 /sbin/ldconfig -n $PKG/usr/lib
61
62 # compatiblity links
63 (cd $PKG/usr/lib;
64 ln -s liblber.so liblber.so.2;
65 ln -s libldap.so libldap.so.2;
66 ln -s libldap_r.so libldap_r.so.2) || exit 1
67
68 mkdir -p $PKG/etc/rc.d
69 install -m 755 $SRC/slapd $PKG/etc/rc.d/slapd
70 install -m 755 $SRC/slurpd $PKG/etc/rc.d/slurpd
71
72 rm -f $PKG/etc/openldap/schema/README
73 }
|