updated on Wed Jan 11 16:09:51 UTC 2012
[aur-mirror.git] / pam_pkcs11 / PKGBUILD
blob4309920d955f5bdd352d6725ea29cb144c441e75
1 # Maintainer: Oleg Smirnov <oleg.smirnov@gmail.com>
2 pkgname=pam_pkcs11
3 pkgver=0.6.3
4 pkgrel=3
5 pkgdesc="PAM module allows a X.509 certificate based user login"
6 arch=('i686' 'x86_64')
7 url="http://www.opensc-project.org/pam_pkcs11/"
8 options=('!libtool')
9 license=('LGPL')
10 backup=(etc/pam_pkcs11/pam_pkcs11.conf)
11 depends=('opensc')
12 source=(http://www.opensc-project.org/files/$pkgname/$pkgname-$pkgver.tar.gz)
13 md5sums=('13650b32474c1a2e40e9ec09034cd4d0')
15 build() {
16         cd ${srcdir}/$pkgname-$pkgver
17         ./configure --prefix=/usr \
18                     --sysconfdir=/etc \
19                     --localstatedir=/var \
20                     --libdir=/usr/lib \
21                     --with-pcsclite=no \
22                     --with-ldap=no || return 1
23         make || return 1
24         make DESTDIR=${pkgdir} install || return 1
25         mkdir -p -m 755 ${pkgdir}/etc/pam_pkcs11/cacerts
26         mkdir -p -m 755 ${pkgdir}/etc/pam_pkcs11/crls
27         install -D -m 644 ${pkgdir}/usr/lib/security/pam_pkcs11.so \
28           ${pkgdir}/lib/security/pam_pkcs11.so 
29         install -D -m 644 ${srcdir}/$pkgname-$pkgver/etc/pam_pkcs11.conf.example \
30                           ${pkgdir}/etc/pam_pkcs11/pam_pkcs11.conf || return 1