2006-02-23 15:26:10 +00:00
|
|
|
# Description: Lightweight Directory Access Protocol (LDAP) Toolkit
|
|
|
|
# URL: http://www.openldap.org/
|
|
|
|
# Packager: Daniel Mueller, daniel at danm dot de
|
2008-07-22 21:07:47 +02:00
|
|
|
# Maintainer: Richard Poetler, richard dot poettler at gmail dot com
|
2006-02-23 15:26:10 +00:00
|
|
|
# Depends on: perl, openssl, cyrus-sasl
|
|
|
|
|
|
|
|
name=openldap
|
2008-12-22 19:43:09 +01:00
|
|
|
version=2.4.13
|
2006-02-23 15:26:10 +00:00
|
|
|
release=1
|
2008-07-22 21:22:57 +02:00
|
|
|
source=(ftp://ftp.openldap.org/pub/OpenLDAP/openldap-release/$name-$version.tgz \
|
2006-05-09 19:42:31 +00:00
|
|
|
$name-config.patch slurpd slapd)
|
2006-02-23 15:26:10 +00:00
|
|
|
|
2008-12-22 19:43:09 +01:00
|
|
|
build() {
|
2006-02-23 15:26:10 +00:00
|
|
|
cd $name-$version
|
2006-05-09 19:42:31 +00:00
|
|
|
patch -p0 -i $SRC/$name-config.patch
|
|
|
|
|
2008-12-22 19:43:09 +01:00
|
|
|
# Workaround for: (ITS#5464) ucred guarded by __USE_GNU in glibc 2.8
|
|
|
|
# http://www.openldap.org/lists/openldap-bugs/200804/msg00074.html
|
|
|
|
export CPPFLAGS="$CPPFLAGS -D_GNU_SOURCE"
|
|
|
|
|
2006-05-09 19:42:31 +00:00
|
|
|
./configure --prefix=/usr \
|
|
|
|
--sysconfdir=/etc \
|
|
|
|
--libexecdir=/usr/sbin \
|
|
|
|
--localstatedir=/var/openldap \
|
|
|
|
--disable-nls \
|
|
|
|
--enable-syslog \
|
|
|
|
--with-threads \
|
|
|
|
--with-tls \
|
|
|
|
--with-cyrus-sasl \
|
|
|
|
--enable-spasswd \
|
|
|
|
--enable-dynamic \
|
|
|
|
--enable-ipv6 \
|
|
|
|
--enable-modules \
|
|
|
|
--enable-crypt \
|
|
|
|
--enable-rewrite \
|
|
|
|
--enable-ldbm \
|
|
|
|
--enable-ldbm-api=berkeley \
|
|
|
|
--enable-ldbm-type=btree \
|
|
|
|
--enable-bdb \
|
|
|
|
--enable-hdb \
|
|
|
|
--enable-ldap \
|
|
|
|
--enable-meta \
|
|
|
|
--enable-monitor \
|
|
|
|
--enable-dnssrv \
|
|
|
|
--enable-null \
|
|
|
|
--enable-perl \
|
|
|
|
--with-dyngroup \
|
|
|
|
--with-proxycache \
|
|
|
|
--enable-wrappers \
|
|
|
|
--enable-slurpd \
|
|
|
|
--enable-aci \
|
|
|
|
--enable-shared
|
2006-02-23 15:26:10 +00:00
|
|
|
|
|
|
|
make depend
|
|
|
|
make
|
2006-05-09 19:42:31 +00:00
|
|
|
make DESTDIR=$PKG install
|
2006-02-23 15:26:10 +00:00
|
|
|
|
|
|
|
sed -i -e "s|-L${PKG}/usr/lib||g" $PKG/usr/lib/*.la
|
|
|
|
/sbin/ldconfig -n $PKG/usr/lib
|
|
|
|
|
2008-12-22 19:43:09 +01:00
|
|
|
# compatiblity links
|
2006-05-09 19:42:31 +00:00
|
|
|
(cd $PKG/usr/lib;
|
|
|
|
ln -s liblber.so liblber.so.2;
|
|
|
|
ln -s libldap.so libldap.so.2;
|
|
|
|
ln -s libldap_r.so libldap_r.so.2) || exit 1
|
2006-02-23 15:26:10 +00:00
|
|
|
|
|
|
|
mkdir -p $PKG/etc/rc.d
|
|
|
|
install -m 755 $SRC/slapd $PKG/etc/rc.d/slapd
|
|
|
|
install -m 755 $SRC/slurpd $PKG/etc/rc.d/slurpd
|
|
|
|
|
|
|
|
rm -f $PKG/etc/openldap/schema/README
|
|
|
|
}
|