[arch-commits] Commit in nss-pam-ldapd/trunk (PKGBUILD)
Johannes Löthberg
demize at archlinux.org
Sun Sep 2 10:53:16 UTC 2018
Date: Sunday, September 2, 2018 @ 10:53:16
Author: demize
Revision: 376033
upgpkg: nss-pam-ldapd 0.9.10-1
Modified:
nss-pam-ldapd/trunk/PKGBUILD
----------+
PKGBUILD | 25 ++++++++++++++++---------
1 file changed, 16 insertions(+), 9 deletions(-)
Modified: PKGBUILD
===================================================================
--- PKGBUILD 2018-09-02 10:48:39 UTC (rev 376032)
+++ PKGBUILD 2018-09-02 10:53:16 UTC (rev 376033)
@@ -3,7 +3,7 @@
# Contributor: Federico Cinelli <cinelli at aur.archlinux.org>
pkgname=nss-pam-ldapd
-pkgver=0.9.9
+pkgver=0.9.10
pkgrel=1
pkgdesc='LDAP module for NSS and PAM'
@@ -11,7 +11,7 @@
arch=('x86_64')
license=('LGPL2.1')
-depends=('pam')
+depends=('pam' 'python2')
conflicts=('pam_ldap')
provides=('nslcd')
@@ -26,7 +26,7 @@
"nslcd.sysusers"
"nslcd.tmpfiles")
-md5sums=('fc01f2ff2aa3ae2ea3f3e347b7c57745'
+md5sums=('0aeeba1882c5d77108eab24ca6995b8d'
'SKIP'
'c0d4921737bdbb38924e6774cd1d3bb1'
'f7a52c4e0eae1a5d525d0e2f374f9114'
@@ -34,25 +34,32 @@
validpgpkeys=('452EC2CB65CF68C2A1ADBF5F2A8B746810E0AFC1')
-build() {
- cd nss-pam-ldapd-"$pkgver"
+prepare() {
+ cd nss-pam-ldapd-$pkgver
+ autoreconf -fi
./configure \
--prefix=/usr \
--sbindir=/usr/bin \
--sysconfdir=/etc \
--localstatedir=/var \
- --with-pam-seclib-dir=/usr/lib/security
+ --with-pam-seclib-dir=/usr/lib/security \
+ CFLAGS="$CFLAGS" LDFLAGS="$LDFLAGS" PYTHON=python2
+ sed -i 's/env python$/env python2/' utils/chsh.py utils/getent.py
+}
+
+build() {
+ cd nss-pam-ldapd-$pkgver
make
}
check() {
- cd nss-pam-ldapd-"$pkgver"
- PYTHON=python2 make check
+ cd nss-pam-ldapd-$pkgver
+ make check
}
package() {
- cd nss-pam-ldapd-"$pkgver"
+ cd nss-pam-ldapd-$pkgver
install -Dm644 "$srcdir/nslcd.sysusers" "$pkgdir/usr/lib/sysusers.d/nslcd.conf"
install -Dm644 "$srcdir/nslcd.tmpfiles" "$pkgdir/usr/lib/tmpfiles.d/nslcd.conf"
More information about the arch-commits
mailing list