blob: 7b33c6740adb797bbab5f0d748aade833e33ca07 (
plain)
1 # Description: Lightweight Directory Access Protocol (LDAP) Toolkit
2 # URL: https://www.openldap.org/
3 # Maintainer: CRUX compat-32 Team, compat-32-ports at crux dot nu
4 # Depends on: openldap openssl-32
5
6 name=openldap-32
7 version=2.6.3
8 release=1
9 source=(https://www.openldap.org/software/download/OpenLDAP/openldap-release/openldap-$version.tgz)
10
11 build() {
12 cd openldap-$version
13
14 export CC="gcc -m32"
15 export CXX="g++ -m32"
16
17 ./configure --prefix=/usr \
18 --libdir=/usr/lib32 \
19 --sysconfdir=/etc \
20 --libexecdir=/usr/sbin \
21 --localstatedir=/var/lib/openldap \
22 --with-threads \
23 --without-cyrus-sasl \
24 --enable-dynamic \
25 --enable-ipv6 \
26 --enable-shared \
27 --enable-crypt \
28 --disable-static \
29 --disable-wrappers \
30 --disable-spasswd \
31 --disable-bdb \
32 --disable-hdb
33
34 # This is need to not get fatal error: ldap_config.h: No such file or directory
35 cd include
36 make
37 make DESTDIR=$PKG install
38
39 cd ../libraries
40 make depend
41 make
42 make DESTDIR=$PKG install
43
44 rm -r $PKG/etc $PKG/usr/include $PKG/usr/lib32/*.la
45 }
|