113.0-1
[arch-packages.git] / pam / trunk / PKGBUILD
blobe898198f528bf0d979c2af3e513f3ac835b6303b
1 # Maintainer: Tobias Powalowski <tpowa@archlinux.org>
2 # Maintainer: Levente Polyak <anthraxx[at]archlinux[dot]org>
3 # Contributor: judd <jvinet@zeroflux.org>
5 pkgname=pam
6 pkgver=1.5.2
7 pkgrel=2
8 pkgdesc="PAM (Pluggable Authentication Modules) library"
9 arch=('x86_64')
10 license=('GPL2')
11 url="http://linux-pam.org"
12 depends=('glibc' 'libtirpc' 'pambase' 'audit' 'libaudit.so' 'libxcrypt' 'libcrypt.so')
13 makedepends=('flex' 'w3m' 'docbook-xml>=4.4' 'docbook-xsl')
14 provides=('libpam.so' 'libpamc.so' 'libpam_misc.so')
15 backup=(etc/security/{access.conf,faillock.conf,group.conf,limits.conf,namespace.conf,namespace.init,pam_env.conf,time.conf} etc/environment)
16 source=(https://github.com/linux-pam/linux-pam/releases/download/v$pkgver/Linux-PAM-$pkgver.tar.xz{,.asc}
17         $pkgname.tmpfiles)
18 validpgpkeys=(
19         '8C6BFD92EE0F42EDF91A6A736D1A7F052E5924BB' # Thorsten Kukuk
20         '296D6F29A020808E8717A8842DB5BD89A340AEB7' #Dimitry V. Levin <ldv@altlinux.org>
23 sha256sums=('e4ec7131a91da44512574268f493c6d8ca105c87091691b8e9b56ca685d4f94d'
24             'SKIP'
25             '5631f224e90c4f0459361c2a5b250112e3a91ba849754bb6f67d69d683a2e5ac')
27 options=('!emptydirs')
29 build() {
30   cd Linux-PAM-$pkgver
31   ./configure \
32     --libdir=/usr/lib \
33     --sbindir=/usr/bin \
34     --disable-db
35   make
38 package() {
39   install -Dm 644 $pkgname.tmpfiles "$pkgdir"/usr/lib/tmpfiles.d/$pkgname.conf
40   cd Linux-PAM-$pkgver
41   make DESTDIR="$pkgdir" SCONFIGDIR=/etc/security install
43   # set unix_chkpwd uid
44   chmod +s "$pkgdir"/usr/bin/unix_chkpwd
46   # remove doc which is not used anymore
47   # FS #40749
48   rm "$pkgdir"/usr/share/doc/Linux-PAM/sag-pam_userdb.html
51 # vim: ts=2 sw=2 et: