PKGBUILDs/extra/pam_ldap/PKGBUILD
2009-10-09 21:23:22 -05:00

25 lines
813 B
Bash

# $Id: PKGBUILD 52324 2009-09-17 11:00:27Z allan $
# Maintainer: Paul Mattal <paul@archlinux.org>
# Contributor: Comete <la_comete@tiscali.fr>
pkgname=pam_ldap
pkgver=184
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>=2.4.18' 'pam')
backup=("etc/pam_ldap.conf")
install=
source=(http://www.padl.com/download/${pkgname}-${pkgver}.tar.gz)
md5sums=('1b381b5f1ce67fe0a885d9a7c69b93af')
build() {
cd "${srcdir}/${pkgname}-${pkgver}"
./configure --libdir=/lib \
--with-ldap-conf-file=/etc/pam_ldap.conf \
--mandir=/usr/share/man || return 1
make || return 1
make DESTDIR="${pkgdir}" install || return 1
mv "${pkgdir}/etc/ldap.conf" "${pkgdir}/etc/pam_ldap.conf" || return 1
}