summaryrefslogtreecommitdiff
path: root/extra/pam_ldap/PKGBUILD
blob: 74ffd92a3c49827909b2c0d61cd373522fde3699 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
# $Id: PKGBUILD 151292 2012-02-25 13:09:27Z pierre $
# Maintainer: Paul Mattal <paul@archlinux.org>
# Contributor: Comete <la_comete@tiscali.fr>

pkgname=pam_ldap
pkgver=186
pkgrel=1
pkgdesc="LDAP authentication module for the PAM framework"
arch=('i686' 'x86_64' 'mips64el')
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"
}