# Compiling Time: 1.03 SBU # Maintainer: Miklos Vajna pkgname=openldap pkgver=2.4.44 pkgrel=1 pkgdesc="A suite of the Lightweight Directory Access Protocol servers" url="http://www.openldap.org/" groups=('network-extra') archs=('i686' 'x86_64') backup=(etc/openldap/ldap.conf etc/openldap/slapd.conf) depends=('db>=6.1.26' 'libtool>=2.4.6-4') rodepends=("libldap=$pkgver") makedepends=('openssl>=1.0.2-3' 'cyrus-sasl>=2.1.26' 'groff>=1.22.3-2') up2date="Flasttar http://www.openldap.org/software/download/" source=(ftp://ftp.openldap.org/pub/OpenLDAP/openldap-release/$pkgname-$pkgver.tgz \ slapd.service slapd.sysconfig create_initial_ldap slapd.init.ldif slapd.init.conf DB_CONFIG m4.patch) sha1sums=('016a738d050a68d388602a74b5e991035cdba149' \ '01796e95dfc853b789f41a908ab340fa4e2334d4' \ 'fe4a47065a0b3b7c61d768dd5216b28f1254ffb0' \ '31d5ecdba5d490763fb06df5452cb48157a73871' \ '5fc92cf30d4826be94e2ef421a951f49849dbe3c' \ 'b176d6d6075735c89546d2d50497def889219d76' \ '8a5d021410d00e00445a380ee65df7c14d3a3805' \ '3823d99d18035d7922768be198f2ae3ec3b7b491') subpkgs=('libldap') subdescs=('OpenLDAP library.') subdepends=('openssl>=1.0.2-3 cyrus-sasl>=2.1.26') subgroups=('lib') subarchs=('i686 x86_64') _F_systemd_scriptlet="$pkgname.install" _F_systemd_units=(slapd=) Finclude systemd build() { Fcd Fpatchall autoconf || Fdie export CPPFLAGS="$CPPFLAGS -D_GNU_SOURCE" Fmake \ --localstatedir=/var/openldap \ --with-threads \ --with-tls \ --disable-wrappers \ --enable-bdb \ --enable-cleartext \ --enable-crypt \ --enable-dynamic \ --enable-modules \ --enable-rlookups \ --enable-slapd \ --enable-syslog make DESTDIR=$Fdestdir install || return 1 Ffix_la_files Fremove_static_libs Fln liblber.so /usr/lib/liblber.so.2 Fln libldap.so /usr/lib/libldap.so.2 Fln libldap_r.so /usr/lib/liblber_r.so.2 chmod +x $Fdestdir/usr/lib/*so* Ffile slapd.sysconfig /etc/sysconfig/slapd Ffile /usr/share/openldap/slapd.init.ldif Ffile /usr/share/openldap/slapd.init.conf Ffile /usr/share/openldap/DB_CONFIG Fexe /usr/bin/create_initial_ldap Ffile /lib/systemd/system/slapd.service Fsplit libldap etc/openldap/ldap.conf* Fsplit libldap usr/include Fsplit libldap usr/lib/libldap* Fsplit libldap usr/lib/liblber* Fgenscriptlet } # optimization OK