blob: d1da0dc6663b672d3a407bc1e3db158d329f6708 (
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: Richard Poettler, richard dot poettler at gmail dot com
5 # Depends on: perl, openssl, cyrus-sasl
6
7 name=openldap
8 version=2.4.13
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 --sysconfdir=/etc \
23 --libexecdir=/usr/sbin \
24 --localstatedir=/var/openldap \
25 --disable-nls \
26 --enable-syslog \
27 --with-threads \
28 --with-tls \
29 --with-cyrus-sasl \
30 --enable-spasswd \
31 --enable-dynamic \
32 --enable-ipv6 \
33 --enable-modules \
34 --enable-crypt \
35 --enable-rewrite \
36 --enable-ldbm \
37 --enable-ldbm-api=berkeley \
38 --enable-ldbm-type=btree \
39 --enable-bdb \
40 --enable-hdb \
41 --enable-ldap \
42 --enable-meta \
43 --enable-monitor \
44 --enable-dnssrv \
45 --enable-null \
46 --enable-perl \
47 --with-dyngroup \
48 --with-proxycache \
49 --enable-wrappers \
50 --enable-slurpd \
51 --enable-aci \
52 --enable-shared
53
54 make depend
55 make
56 make DESTDIR=$PKG install
57
58 sed -i -e "s|-L${PKG}/usr/lib||g" $PKG/usr/lib/*.la
59 /sbin/ldconfig -n $PKG/usr/lib
60
61 # compatiblity links
62 (cd $PKG/usr/lib;
63 ln -s liblber.so liblber.so.2;
64 ln -s libldap.so libldap.so.2;
65 ln -s libldap_r.so libldap_r.so.2) || exit 1
66
67 mkdir -p $PKG/etc/rc.d
68 install -m 755 $SRC/slapd $PKG/etc/rc.d/slapd
69 install -m 755 $SRC/slurpd $PKG/etc/rc.d/slurpd
70
71 rm -f $PKG/etc/openldap/schema/README
72 }
|