blob: 11661e55b67725b8dcfc556a052f35fc1a3e8b71 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
|
# Maintainer:
pkgname=libldap-2.5
pkgver=2.5.18
pkgrel=1
pkgdesc="Lightweight Directory Access Protocol (LDAP) client libraries"
arch=('x86_64')
url="https://www.openldap.org/"
license=('custom')
makedepends=('libtool' 'libsasl' 'e2fsprogs' 'util-linux' 'chrpath' 'unixodbc' 'libsodium')
depends=('libsasl' 'e2fsprogs')
options=('!makeflags' 'emptydirs')
source=(https://www.openldap.org/software/download/OpenLDAP/openldap-release/openldap-${pkgver}.tgz)
sha256sums=('2670ae43d8d99dd6b1ba182101d982350d613d09c098eb1607ea6b36e6b51d3e')
prepare() {
cd openldap-${pkgver}
}
build() {
cd openldap-${pkgver}
autoconf
CFLAGS="${CFLAGS} -DLDAP_CONNECTIONLESS" ./configure --prefix=/usr --libexecdir=/usr/lib \
--sysconfdir=/etc --localstatedir=/var/lib/openldap --sbindir=/usr/bin \
--enable-dynamic --enable-syslog --enable-ipv6 --enable-local \
--enable-crypt --enable-spasswd --enable-modules \
--enable-backends --disable-ndb --enable-overlays=mod \
--with-cyrus-sasl --with-threads --disable-bdb --disable-hdb \
--disable-wt --enable-static=no
sed -i -e 's/ -shared / -Wl,-O1,--as-needed\0/g' libtool
make
#make -C contrib/slapd-modules/nssov OPT="$CFLAGS $CPPFLAGS" prefix=/usr libexecdir=/usr/lib sysconfdir=/etc/openldap
#make -C contrib/slapd-modules/autogroup OPT="$CFLAGS $CPPFLAGS" prefix=/usr libexecdir=/usr/lib sysconfdir=/etc/openldap
#make -C contrib/slapd-modules/lastbind OPT="$CFLAGS $CPPFLAGS" prefix=/usr libexecdir=/usr/lib sysconfdir=/etc/openldap
#make -C contrib/slapd-modules/passwd/sha2 OPT="$CFLAGS $CPPFLAGS" prefix=/usr libexecdir=/usr/lib sysconfdir=/etc/openldap
#make -C contrib/slapd-modules/passwd/argon2 OPT="$CFLAGS $CPPFLAGS" prefix=/usr libexecdir=/usr/lib sysconfdir=/etc/openldap
}
package() {
cd openldap-${pkgver}
for dir in libraries; do
pushd ${dir}
make DESTDIR="${pkgdir}" install
popd
done
# get rid of duplicate default conf files
rm "${pkgdir}"/etc/openldap/*.default
rm "${pkgdir}"/usr/lib/{liblber.so,libldap.so}
rm "${pkgdir}"/etc/openldap/ldap.conf
rm "${pkgdir}"/usr/lib/pkgconfig/{lber.pc,ldap.pc}
install -Dm644 LICENSE "${pkgdir}"/usr/share/licenses/${pkgname}/LICENSE
}
|