2010-04-18 15:12:31 +02:00
|
|
|
# Template file for 'libldap'
|
|
|
|
pkgname=libldap
|
2013-11-21 08:31:15 +01:00
|
|
|
version=2.4.38
|
2014-04-05 01:00:11 +02:00
|
|
|
revision=2
|
2010-04-18 15:12:31 +02:00
|
|
|
wrksrc="openldap-${version}"
|
2011-10-24 14:14:47 +02:00
|
|
|
build_style=gnu-configure
|
2012-03-28 15:06:12 +02:00
|
|
|
configure_args="--enable-dynamic --enable-proctitle --with-tls
|
2012-10-14 09:52:59 +02:00
|
|
|
--enable-ipv6 --enable-local --with-cyrus-sasl --with-threads
|
2013-05-05 11:52:16 +02:00
|
|
|
--enable-syslog --disable-slapd --disable-static
|
|
|
|
--with-yielding_select=yes ac_cv_func_memcmp_working=yes"
|
|
|
|
hostmakedepends="pkg-config groff automake libtool"
|
2013-04-13 10:15:49 +02:00
|
|
|
makedepends="libsasl-devel openssl-devel"
|
2014-01-01 16:10:11 +01:00
|
|
|
conf_files="/etc/openldap/ldap.conf"
|
2013-10-29 09:23:46 +01:00
|
|
|
short_desc="OpenLDAP (Lightweight Directory Access Protocol) libraries"
|
|
|
|
license="OpenLDAP License v2.8 - BSD alike"
|
2010-04-18 15:12:31 +02:00
|
|
|
maintainer="Juan RP <xtraeme@gmail.com>"
|
2012-10-14 09:52:59 +02:00
|
|
|
homepage="http://www.openldap.org"
|
|
|
|
distfiles="ftp://ftp.openldap.org/pub/OpenLDAP/openldap-release/openldap-$version.tgz"
|
2013-11-21 08:31:15 +01:00
|
|
|
checksum=88209a3599ec5d9354fc09bbe29b99db1ffa1b612127c06bad0c5265d0b31fd1
|
2010-04-18 15:12:31 +02:00
|
|
|
|
2013-05-05 11:52:16 +02:00
|
|
|
pre_configure() {
|
|
|
|
sed -e '/^STRIP/s,-s,,g' -i build/top.mk
|
2013-10-29 09:23:46 +01:00
|
|
|
aclocal; autoconf; autoheader; libtoolize -f
|
2013-05-05 11:52:16 +02:00
|
|
|
}
|
|
|
|
|
2012-03-28 15:06:12 +02:00
|
|
|
post_install() {
|
2010-04-18 15:12:31 +02:00
|
|
|
# Remove unused stuff.
|
|
|
|
rm -rf ${DESTDIR}/usr/bin
|
|
|
|
rm -rf ${DESTDIR}/usr/share/man/man[18]
|
|
|
|
rm -f ${DESTDIR}/etc/openldap/*.default
|
|
|
|
mv ${DESTDIR}/usr/share/man/man5/ldap.conf.5 ${DESTDIR}/usr/share/man
|
|
|
|
rm -f ${DESTDIR}/usr/share/man/man5/*
|
|
|
|
mv ${DESTDIR}/usr/share/man/ldap.conf.5 ${DESTDIR}/usr/share/man/man5
|
2012-03-28 15:06:12 +02:00
|
|
|
# License
|
|
|
|
vinstall LICENSE 644 usr/share/licenses/$pkgname
|
2013-05-05 11:52:16 +02:00
|
|
|
|
|
|
|
chmod 755 ${DESTDIR}/usr/lib/*.so.*
|
2010-04-18 15:12:31 +02:00
|
|
|
}
|
2013-04-13 10:15:49 +02:00
|
|
|
|
|
|
|
libldap-devel_package() {
|
2013-10-29 09:23:46 +01:00
|
|
|
depends="openssl-devel libsasl-devel ${sourcepkg}>=${version}_${revision}"
|
2013-05-05 11:52:16 +02:00
|
|
|
short_desc+=" - development files"
|
2013-04-13 10:15:49 +02:00
|
|
|
pkg_install() {
|
|
|
|
vmove usr/include
|
2013-08-22 08:26:38 +02:00
|
|
|
vmove "usr/lib/*.so"
|
2013-04-13 10:15:49 +02:00
|
|
|
vmove usr/share/man/man3
|
|
|
|
}
|
|
|
|
}
|