void-packages/srcpkgs/libldap/template

51 lines
1.6 KiB
Text
Raw Normal View History

# Template file for 'libldap'
pkgname=libldap
2014-12-16 08:50:27 +00:00
version=2.4.40
revision=1
wrksrc="openldap-${version}"
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
2014-07-15 16:04:04 +00:00
--with-yielding_select=yes"
hostmakedepends="pkg-config groff automake libtool"
2014-07-15 16:04:04 +00:00
makedepends="libressl-devel libsasl-devel"
conf_files="/etc/openldap/ldap.conf"
2013-10-29 08:23:46 +00:00
short_desc="OpenLDAP (Lightweight Directory Access Protocol) libraries"
license="OpenLDAP License v2.8 - BSD alike"
maintainer="Juan RP <xtraeme@gmail.com>"
2012-10-14 07:52:59 +00:00
homepage="http://www.openldap.org"
2014-12-01 21:42:31 +00:00
update_site="${homepage}/software/download/"
update_pkgname=openldap
2012-10-14 07:52:59 +00:00
distfiles="ftp://ftp.openldap.org/pub/OpenLDAP/openldap-release/openldap-$version.tgz"
2014-12-16 08:50:27 +00:00
checksum=d12611a5c25b6499293c2bb7b435dc2b174db73e83f5a8cb7e34f2ce5fa6dadb
pre_configure() {
sed -e '/^STRIP/s,-s,,g' -i build/top.mk
2013-10-29 08:23:46 +00:00
aclocal; autoconf; autoheader; libtoolize -f
}
2012-03-28 13:06:12 +00:00
post_install() {
# 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
2014-12-16 08:50:27 +00:00
vlicense LICENSE
chmod 755 ${DESTDIR}/usr/lib/*.so.*
}
libldap-devel_package() {
2014-07-15 16:04:04 +00:00
depends="${makedepends} ${sourcepkg}>=${version}_${revision}"
short_desc+=" - development files"
pkg_install() {
vmove usr/include
2013-08-22 06:26:38 +00:00
vmove "usr/lib/*.so"
vmove usr/share/man/man3
}
}