summaryrefslogtreecommitdiff
path: root/openldap/Pkgfile
blob: 7feb0caff93b94c2ab0d2ad5f7621f16fbfa9a2b (plain)
    1 # Description: Lightweight Directory Access Protocol (LDAP) Toolkit
    2 # URL: https://www.openldap.org/
    3 # Maintainer: CRUX System Team, core-ports at crux dot nu
    4 # Depends on: cyrus-sasl libtool perl util-linux
    5 
    6 name=openldap
    7 version=2.4.59
    8 release=1
    9 source=(https://www.openldap.org/software/download/OpenLDAP/openldap-release/$name-$version.tgz
   10 	$name-config.patch slapd)
   11 
   12 build() {
   13 	cd $name-$version
   14 	patch -p0 -i $SRC/$name-config.patch
   15 
   16 	./configure \
   17 		--prefix=/usr \
   18 		--sysconfdir=/etc \
   19 		--libexecdir=/usr/sbin \
   20 		--localstatedir=/var/openldap \
   21 		--enable-syslog \
   22 		--with-threads \
   23 		--with-tls \
   24 		--with-cyrus-sasl \
   25 		--enable-spasswd \
   26 		--enable-dynamic \
   27 		--enable-ipv6 \
   28 		--enable-modules \
   29 		--enable-crypt \
   30 		--enable-rewrite \
   31 		--enable-bdb \
   32 		--enable-hdb \
   33 		--enable-ldap \
   34 		--enable-meta \
   35 		--enable-monitor \
   36 		--enable-dnssrv \
   37 		--enable-null \
   38 		--enable-perl \
   39 		--enable-aci \
   40 		--enable-shared
   41 
   42 	make depend
   43 	make
   44 	make DESTDIR=$PKG install
   45 
   46 	ln -sf liblber.so $PKG/usr/lib/liblber.so.2
   47 	ln -sf libldap.so $PKG/usr/lib/libldap.so.2
   48 	ln -sf libldap_r.so $PKG/usr/lib/libldap_r.so.2
   49 
   50 	install -D -m 0755 $SRC/slapd $PKG/etc/rc.d/slapd
   51 	rm -f $PKG/etc/openldap/schema/README
   52 }

Generated by cgit