compat-32/openldap-32/Pkgfile

46 lines
1.0 KiB
Plaintext
Raw Normal View History

2020-04-01 12:46:55 +02:00
# Description: Lightweight Directory Access Protocol (LDAP) Toolkit
2022-06-16 17:29:12 +02:00
# URL: https://www.openldap.org/
# Maintainer: CRUX compat-32 Team, compat-32-ports at crux dot nu
# Depends on: openldap openssl-32
2020-04-01 12:46:55 +02:00
name=openldap-32
2023-02-10 22:50:46 +01:00
version=2.6.4
2020-05-27 16:15:18 +02:00
release=1
source=(https://www.openldap.org/software/download/OpenLDAP/openldap-release/openldap-$version.tgz)
2020-04-01 12:46:55 +02:00
build() {
cd openldap-$version
export CC="gcc -m32"
export CXX="g++ -m32"
./configure --prefix=/usr \
--libdir=/usr/lib32 \
--sysconfdir=/etc \
--libexecdir=/usr/sbin \
--localstatedir=/var/lib/openldap \
2020-04-01 12:46:55 +02:00
--with-threads \
--without-cyrus-sasl \
2020-04-01 12:46:55 +02:00
--enable-dynamic \
--enable-ipv6 \
--enable-shared \
--enable-crypt \
--disable-static \
2020-04-01 12:46:55 +02:00
--disable-wrappers \
--disable-spasswd \
--disable-bdb \
--disable-hdb
# This is need to not get fatal error: ldap_config.h: No such file or directory
cd include
2020-04-01 12:46:55 +02:00
make
make DESTDIR=$PKG install
cd ../libraries
make depend
make
make DESTDIR=$PKG install
2020-04-01 12:46:55 +02:00
rm -r $PKG/etc $PKG/usr/include $PKG/usr/lib32/*.la
2020-04-01 12:46:55 +02:00
}