# Maintainer: Natanael Copa pkgname=nss-pam-ldapd pkgver=0.9.6 pkgrel=0 pkgdesc="An nsswitch module which uses directory servers" url="http://arthurdejong.org/nss-pam-ldapd/" arch="all" license="LGPLv2+" depends="" depends_dev="linux-pam-dev openldap-dev" makedepends="$depends_dev" install="nss-pam-ldapd.pre-install" subpackages="$pkgname-doc" source="http://arthurdejong.org/nss-pam-ldapd/nss-pam-ldapd-$pkgver.tar.gz nslcd.initd" _builddir="$srcdir"/nss-pam-ldapd-$pkgver prepare() { local i cd "$_builddir" for i in $source; do case $i in *.patch) msg $i; patch -p1 -i "$srcdir"/$i || return 1;; esac done } build() { cd "$_builddir" ./configure \ --build=$CBUILD \ --host=$CHOST \ --prefix=/usr \ --sysconfdir=/etc \ --mandir=/usr/share/man \ --infodir=/usr/share/info \ --localstatedir=/var \ --disable-nss \ || return 1 make || return 1 } package() { cd "$_builddir" make DESTDIR="$pkgdir" install || return 1 rm -f "$pkgdir"/usr/lib/*.la install -Dm755 "$srcdir"/nslcd.initd "$pkgdir"/etc/init.d/nslcd } md5sums="fa5ec49cb54428d6c73e244a11021695 nss-pam-ldapd-0.9.6.tar.gz 2b1ad47c1e25b3865db0f91a665bdc73 nslcd.initd" sha256sums="101d5a7fa10549cc77be48d07f2b8141f59182f10f2cc0fea93efd13c3a5a6f2 nss-pam-ldapd-0.9.6.tar.gz 1588e64b938b70001081691d085911f143b8c38af5961cc3e772e3d1fd457870 nslcd.initd" sha512sums="213bc55554290042623ef4cce071045bab569a824aef7d960e3aa9c2f64f0c4928c5c28a4b5d9225fd35ea5026bb11f710d9c620f790e9d82c73d89b272e972a nss-pam-ldapd-0.9.6.tar.gz 26db842fd517ccc0b242677d6e92c2fe66028e441681c8e6129150e81c93a282ae0c3142230f61b579f40596c2843ca1f2217d46f9d8fb3ba4b117896912355b nslcd.initd"