summaryrefslogtreecommitdiff
path: root/testing/pam_ldap/PKGBUILD
diff options
context:
space:
mode:
Diffstat (limited to 'testing/pam_ldap/PKGBUILD')
-rw-r--r--testing/pam_ldap/PKGBUILD34
1 files changed, 34 insertions, 0 deletions
diff --git a/testing/pam_ldap/PKGBUILD b/testing/pam_ldap/PKGBUILD
new file mode 100644
index 000000000..c74c181cb
--- /dev/null
+++ b/testing/pam_ldap/PKGBUILD
@@ -0,0 +1,34 @@
+# $Id: PKGBUILD 157514 2012-04-28 21:41:11Z dreisner $
+# Maintainer:
+# Contributor: Comete <la_comete@tiscali.fr>
+
+pkgname=pam_ldap
+pkgver=186
+pkgrel=3
+pkgdesc="LDAP authentication module for the PAM framework"
+arch=('i686' 'x86_64')
+url="http://www.padl.com/OSS/pam_ldap.html"
+license=('LGPL')
+depends=('libldap' 'pam')
+backup=('etc/pam_ldap.conf')
+options=('!makeflags')
+source=("http://www.padl.com/download/${pkgname}-${pkgver}.tar.gz")
+md5sums=('58c8689921c5c4578363438acd8503c2')
+
+build() {
+ cd "${srcdir}/${pkgname}-${pkgver}"
+ ./configure --libdir=/lib \
+ --with-ldap-conf-file=/etc/pam_ldap.conf \
+ --mandir=/usr/share/man
+ PATH="${PATH}:${srcdir}/${pkgname}-${pkgver}" make
+}
+
+package() {
+ cd "${srcdir}/${pkgname}-${pkgver}"
+ make DESTDIR="${pkgdir}" install
+ mv "${pkgdir}/etc/ldap.conf" "${pkgdir}/etc/pam_ldap.conf"
+
+ # move /lib to /usr/lib
+ mv "${pkgdir}/lib/security" "${pkgdir}/usr/lib"
+ rmdir "${pkgdir}/lib"
+}