From 55fcdb3fc20ee01fc43bd270e701bfd54e34f786 Mon Sep 17 00:00:00 2001 From: Juan RP Date: Sun, 18 Apr 2010 15:12:31 +0200 Subject: [PATCH] Added libldap-2.4.21 build template. --HG-- extra : convert_revision : e2fb0d6c45e405b79277bceaaf5f91b4ac982bfc --- srcpkgs/libldap-devel | 1 + srcpkgs/libldap/depends | 2 ++ srcpkgs/libldap/libldap-devel.template | 18 ++++++++++++ srcpkgs/libldap/template | 36 ++++++++++++++++++++++++ xbps-src/common/mapping_shlib_binpkg.txt | 3 ++ 5 files changed, 60 insertions(+) create mode 120000 srcpkgs/libldap-devel create mode 100644 srcpkgs/libldap/depends create mode 100644 srcpkgs/libldap/libldap-devel.template create mode 100644 srcpkgs/libldap/template diff --git a/srcpkgs/libldap-devel b/srcpkgs/libldap-devel new file mode 120000 index 0000000000..fd1c278df1 --- /dev/null +++ b/srcpkgs/libldap-devel @@ -0,0 +1 @@ +libldap \ No newline at end of file diff --git a/srcpkgs/libldap/depends b/srcpkgs/libldap/depends new file mode 100644 index 0000000000..ef54246b6b --- /dev/null +++ b/srcpkgs/libldap/depends @@ -0,0 +1,2 @@ +abi_depends=">=2.4.21" +api_depends="${abi_depends}" diff --git a/srcpkgs/libldap/libldap-devel.template b/srcpkgs/libldap/libldap-devel.template new file mode 100644 index 0000000000..8d8fc8368e --- /dev/null +++ b/srcpkgs/libldap/libldap-devel.template @@ -0,0 +1,18 @@ +# Template file for 'libldap-devel'. +# +short_desc="${sourcepkg} - development files" +long_desc="${long_desc} + + This package contains files for development, headers, static libs, etc." + +Add_dependency run openssl-devel +Add_dependency run libsasl-devel +Add_dependency run libldap + +do_install() +{ + mkdir -p ${DESTDIR}/usr/lib ${DESTDIR}/usr/share/man + mv ${SRCPKGDESTDIR}/usr/include ${DESTDIR}/usr + mv ${SRCPKGDESTDIR}/usr/lib/*.{a,so} ${DESTDIR}/usr/lib + mv ${SRCPKGDESTDIR}/usr/share/man/man3 ${DESTDIR}/usr/share/man +} diff --git a/srcpkgs/libldap/template b/srcpkgs/libldap/template new file mode 100644 index 0000000000..882b077fa7 --- /dev/null +++ b/srcpkgs/libldap/template @@ -0,0 +1,36 @@ +# Template file for 'libldap' +pkgname=libldap +version=2.4.21 +wrksrc="openldap-${version}" +distfiles="ftp://ftp.openldap.org/pub/OpenLDAP/openldap-release/openldap-$version.tgz" +build_style=gnu_configure +configure_args="--localstatedir=/var --enable-dynamic --enable-proctitle +--enable-ipv6 --enable-local --with-cyrus-sasl --with-threads --with-tls +--enable-syslog --disable-slapd" +short_desc="OpenLDAP libraries" +maintainer="Juan RP " +checksum=22eca357137c135b5561e2fa0e3336b280702acf2e5c4f40bc7aed1d1e8e9324 +long_desc=" + These are the run-time libraries for the OpenLDAP (Lightweight Directory + Access Protocol) servers and clients." + +conf_files="/etc/openldap/ldap.conf" +subpackages="libldap-devel" + +Add_dependency run glibc +Add_dependency run libsasl +Add_dependency run openssl +Add_dependency build pkg-config +Add_dependency build libsasl-devel +Add_dependency build openssl-devel + +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 +} diff --git a/xbps-src/common/mapping_shlib_binpkg.txt b/xbps-src/common/mapping_shlib_binpkg.txt index 25388872d3..fac9880031 100644 --- a/xbps-src/common/mapping_shlib_binpkg.txt +++ b/xbps-src/common/mapping_shlib_binpkg.txt @@ -615,3 +615,6 @@ libgksu2.so libgksu libgksu-devel libseed.so libseed libseed-devel libgnome-bluetooth.so gnome-bluetooth gnome-bluetooth-devel libsasl2.so libsasl libsasl-devel +liblber-2.4.so libldap libldap-devel +libldap-2.4.so libldap libldap-devel +libldap_r-2.4.so libldap libldap-devel