opt/openldap/Pkgfile

52 lines
1.2 KiB
Plaintext
Raw Normal View History

2006-02-23 16:26:10 +01:00
# Description: Lightweight Directory Access Protocol (LDAP) Toolkit
# URL: https://www.openldap.org/
# Maintainer: CRUX System Team, core-ports at crux dot nu
# Depends on: cyrus-sasl libtool perl util-linux
2006-02-23 16:26:10 +01:00
name=openldap
2020-05-27 15:25:38 +02:00
version=2.4.50
2017-01-28 07:44:12 +01:00
release=1
2020-04-02 18:01:39 +02:00
source=(https://www.openldap.org/software/download/OpenLDAP/openldap-release/$name-$version.tgz
$name-config.patch slapd)
2006-02-23 16:26:10 +01:00
2008-12-22 19:43:09 +01:00
build() {
2006-02-23 16:26:10 +01:00
cd $name-$version
patch -p0 -i $SRC/$name-config.patch
./configure --prefix=/usr \
--sysconfdir=/etc \
--libexecdir=/usr/sbin \
--localstatedir=/var/openldap \
--enable-syslog \
--with-threads \
--with-tls \
--with-cyrus-sasl \
--enable-spasswd \
--enable-dynamic \
--enable-ipv6 \
--enable-modules \
--enable-crypt \
--enable-rewrite \
--enable-bdb \
--enable-hdb \
--enable-ldap \
--enable-meta \
--enable-monitor \
--enable-dnssrv \
--enable-null \
--enable-perl \
--enable-aci \
--enable-shared
2006-02-23 16:26:10 +01:00
make depend
2006-02-23 16:26:10 +01:00
make
2020-04-02 18:01:39 +02:00
make DESTDIR=$PKG install
2006-02-23 16:26:10 +01:00
ln -sf liblber.so $PKG/usr/lib/liblber.so.2
ln -sf libldap.so $PKG/usr/lib/libldap.so.2
ln -sf libldap_r.so $PKG/usr/lib/libldap_r.so.2
2006-02-23 16:26:10 +01:00
install -D -m 0755 $SRC/slapd $PKG/etc/rc.d/slapd
rm -f $PKG/etc/openldap/schema/README
2006-02-23 16:26:10 +01:00
}