compat-32/openldap-32/Pkgfile

44 lines
1.0 KiB
Plaintext
Raw Normal View History

2020-04-01 12:46:55 +02:00
# Description: Lightweight Directory Access Protocol (LDAP) Toolkit
# URL: https://www.openldap.org/
# Maintainer: CRUX compat-32 Team, compat-32-ports at crux dot nu
# Depends on: cyrus-sasl-32 openldap
name=openldap-32
version=2.4.49
release=1
source=(https://www.openldap.org/software/download/OpenLDAP/openldap-release/openldap-$version.tgz
openldap-config.patch)
2020-04-01 12:46:55 +02:00
build() {
cd openldap-$version
patch -p0 -i $SRC/openldap-config.patch
export CC="gcc -m32"
export CXX="g++ -m32"
./configure --prefix=/usr \
--libdir=/usr/lib32 \
--sysconfdir=/etc \
--libexecdir=/usr/sbin \
--localstatedir=/var/openldap \
--with-threads \
--enable-dynamic \
--enable-ipv6 \
--enable-shared \
--enable-crypt \
--disable-wrappers \
--disable-spasswd \
--disable-bdb \
--disable-hdb
make depend
make
make DESTDIR=$PKG install
ln -sf liblber.so $PKG/usr/lib32/liblber.so.2
ln -sf libldap.so $PKG/usr/lib32/libldap.so.2
ln -sf libldap_r.so $PKG/usr/lib32/libldap_r.so.2
rm -r $PKG/{etc,var} $PKG/usr/{include,share,bin,sbin}
}