summaryrefslogtreecommitdiffstats
path: root/abs/core-testing/libldap/PKGBUILD
diff options
context:
space:
mode:
authorJames Meyer <James.meyer@operamail.com>2008-10-02 03:19:12 (GMT)
committerJames Meyer <James.meyer@operamail.com>2008-10-02 03:19:12 (GMT)
commit0e2532d4e8f4eed5e047f1db54d5c03ba849ec0a (patch)
treec0aa2c0b53c317be87eacfcb77b63f53f1f415e7 /abs/core-testing/libldap/PKGBUILD
downloadlinhes_pkgbuild-0e2532d4e8f4eed5e047f1db54d5c03ba849ec0a.zip
linhes_pkgbuild-0e2532d4e8f4eed5e047f1db54d5c03ba849ec0a.tar.gz
linhes_pkgbuild-0e2532d4e8f4eed5e047f1db54d5c03ba849ec0a.tar.bz2
initial import
Diffstat (limited to 'abs/core-testing/libldap/PKGBUILD')
-rw-r--r--abs/core-testing/libldap/PKGBUILD62
1 files changed, 62 insertions, 0 deletions
diff --git a/abs/core-testing/libldap/PKGBUILD b/abs/core-testing/libldap/PKGBUILD
new file mode 100644
index 0000000..616e6a3
--- /dev/null
+++ b/abs/core-testing/libldap/PKGBUILD
@@ -0,0 +1,62 @@
+# $Id: PKGBUILD 1627 2008-05-14 03:02:30Z eric $
+# Maintainer: Judd Vinet <jvinet@zeroflux.org>
+pkgname=libldap
+pkgver=2.4.11
+pkgrel=1
+pkgdesc="LDAP client libraries"
+arch=(i686 x86_64)
+license=('custom')
+url="http://www.openldap.org/"
+backup=(etc/openldap/ldap.conf)
+depends=('libsasl' 'openssl>=0.9.8f')
+options=('!libtool' '!makeflags')
+makedepends=('tcp_wrappers')
+source=(ftp://ftp.openldap.org/pub/OpenLDAP/openldap-release/openldap-${pkgver}.tgz
+ ntlm.patch
+ peercred.patch)
+
+build() {
+ cd ${startdir}/src/openldap-${pkgver}
+# patch -Np0 -i ${startdir}/src/ntlm.patch || return 1
+ patch -Np0 -i ${startdir}/src/peercred.patch || return 1
+
+ ./configure --prefix=/usr \
+ --libexecdir=/usr/sbin \
+ --sysconfdir=/etc \
+ --localstatedir=/var/lib/openldap \
+ --enable-crypt --enable-dynamic \
+ --with-threads --enable-wrappers \
+ --enable-spasswd --with-cyrus-sasl \
+ --disable-bdb --disable-hdb
+ cd include
+ make || return 1
+ make DESTDIR=${startdir}/pkg install
+
+ cd ../libraries
+ make depend
+ make || return 1
+
+ make DESTDIR=${startdir}/pkg install
+
+ cd ../doc/man/man3
+ make
+ make DESTDIR=${startdir}/pkg install
+
+ cd ../man5
+ make
+ mkdir -p ${startdir}/pkg/usr/man/man5
+ install -m644 ldap.conf.5.tmp ${startdir}/pkg/usr/man/man5/ldap.conf.5
+
+ # get rid of duplicate default conf files
+ rm ${startdir}/pkg/etc/openldap/*.default
+
+ ln -sf liblber.so ${startdir}/pkg/usr/lib/liblber.so.2
+ ln -sf libldap.so ${startdir}/pkg/usr/lib/libldap.so.2
+
+ mkdir -p ${startdir}/pkg/usr/share/licenses/openldap
+ install -m644 ${startdir}/src/openldap-${pkgver}/LICENSE \
+ ${startdir}/pkg/usr/share/licenses/openldap/
+}
+md5sums=('920fedbbb5bc61c2ca52c56edeef770a'
+ '64c539d5f01f46f329b9d5c1324be4e9'
+ 'acc4112845522a6a1a517064c216f781')