2010-04-18 13:12:31 +00:00
|
|
|
# Template file for 'libldap'
|
|
|
|
pkgname=libldap
|
2012-10-14 07:52:59 +00:00
|
|
|
version=2.4.33
|
2013-04-13 08:15:49 +00:00
|
|
|
revision=2
|
2010-04-18 13:12:31 +00:00
|
|
|
wrksrc="openldap-${version}"
|
2011-10-24 12:14:47 +00:00
|
|
|
build_style=gnu-configure
|
2012-03-28 13:06:12 +00:00
|
|
|
configure_args="--enable-dynamic --enable-proctitle --with-tls
|
2012-10-14 07:52:59 +00:00
|
|
|
--enable-ipv6 --enable-local --with-cyrus-sasl --with-threads
|
|
|
|
--enable-syslog --disable-slapd --disable-static"
|
2013-04-13 08:15:49 +00:00
|
|
|
hostmakedepends="pkg-config groff"
|
|
|
|
makedepends="libsasl-devel openssl-devel"
|
2010-04-18 13:12:31 +00:00
|
|
|
short_desc="OpenLDAP libraries"
|
2012-03-28 13:06:12 +00:00
|
|
|
license="OpenLDAP License v2.8 -- BSD alike"
|
2010-04-18 13:12:31 +00:00
|
|
|
maintainer="Juan RP <xtraeme@gmail.com>"
|
2012-10-14 07:52:59 +00:00
|
|
|
homepage="http://www.openldap.org"
|
|
|
|
distfiles="ftp://ftp.openldap.org/pub/OpenLDAP/openldap-release/openldap-$version.tgz"
|
|
|
|
checksum=81e9eca20f17a69a5d15ebc4c66a323106da4f4f80a32105bc7cdea333aca14c
|
2010-04-18 13:12:31 +00:00
|
|
|
long_desc="
|
|
|
|
These are the run-time libraries for the OpenLDAP (Lightweight Directory
|
|
|
|
Access Protocol) servers and clients."
|
|
|
|
|
2012-03-28 13:06:12 +00:00
|
|
|
post_install() {
|
2010-04-18 13:12:31 +00: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 13:06:12 +00:00
|
|
|
# License
|
|
|
|
vinstall LICENSE 644 usr/share/licenses/$pkgname
|
2010-04-18 13:12:31 +00:00
|
|
|
}
|
2013-04-13 08:15:49 +00:00
|
|
|
|
|
|
|
libldap-devel_package() {
|
|
|
|
depends="openssl-devel libsasl-devel ${sourcepkg}-${version}_${revision}"
|
|
|
|
short_desc="${short_desc} - development files"
|
|
|
|
pkg_install() {
|
|
|
|
vmove usr/include
|
|
|
|
vmove usr/share/man/man3
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
libldap_package() {
|
|
|
|
conf_files="/etc/openldap/ldap.conf"
|
|
|
|
pkg_install() {
|
|
|
|
vmove etc
|
|
|
|
vmove usr
|
|
|
|
}
|
|
|
|
}
|