1 # Maintainer: Oleg Smirnov <oleg.smirnov@gmail.com>
5 pkgdesc="PAM module allows a X.509 certificate based user login"
7 url="http://www.opensc-project.org/pam_pkcs11/"
10 backup=(etc/pam_pkcs11/pam_pkcs11.conf)
12 source=(http://www.opensc-project.org/files/$pkgname/$pkgname-$pkgver.tar.gz)
13 md5sums=('13650b32474c1a2e40e9ec09034cd4d0')
16 cd ${srcdir}/$pkgname-$pkgver
17 ./configure --prefix=/usr \
19 --localstatedir=/var \
22 --with-ldap=no || 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