summaryrefslogtreecommitdiff
path: root/core/pam/PKGBUILD
diff options
context:
space:
mode:
Diffstat (limited to 'core/pam/PKGBUILD')
-rw-r--r--core/pam/PKGBUILD25
1 files changed, 14 insertions, 11 deletions
diff --git a/core/pam/PKGBUILD b/core/pam/PKGBUILD
index a562da503..bcb75977e 100644
--- a/core/pam/PKGBUILD
+++ b/core/pam/PKGBUILD
@@ -1,10 +1,10 @@
-# $Id: PKGBUILD 186139 2013-05-21 09:11:14Z tpowa $
+# $Id: PKGBUILD 197836 2013-10-30 11:06:23Z allan $
# Maintainer: Tobias Powalowski <tpowa@archlinux.org>
# Contributor: judd <jvinet@zeroflux.org>
pkgname=pam
-pkgver=1.1.6
-pkgrel=4
+pkgver=1.1.8
+pkgrel=2
pkgdesc="PAM (Pluggable Authentication Modules) library"
arch=('i686' 'x86_64' 'mips64el')
license=('GPL2')
@@ -15,23 +15,26 @@ backup=(etc/security/{access.conf,group.conf,limits.conf,namespace.conf,namespac
source=(https://fedorahosted.org/releases/l/i/linux-pam/Linux-PAM-$pkgver.tar.bz2
#http://www.kernel.org/pub/linux/libs/pam/library/Linux-PAM-$pkgver.tar.bz2
ftp://ftp.archlinux.org/other/pam_unix2/pam_unix2-2.9.1.tar.bz2
- pam_unix2-glibc216.patch
- pam_namespace-build-1.1.6.patch)
-options=('!libtool' '!emptydirs')
-md5sums=('7b73e58b7ce79ffa321d408de06db2c4'
+ pam_unix2-glibc216.patch)
+options=('!emptydirs')
+md5sums=('35b6091af95981b1b2cd60d813b5e4ee'
'da6a46e5f8cd3eaa7cbc4fc3a7e2b555'
- 'dac109f68e04a4df37575fda6001ea17'
- '440a510164ba5eb69bf41e129746ff44')
+ 'dac109f68e04a4df37575fda6001ea17')
build() {
cd $srcdir/Linux-PAM-$pkgver
./configure --libdir=/usr/lib --sbindir=/usr/bin
- patch -Np0 -i ../pam_namespace-build-1.1.6.patch
make
cd $srcdir/pam_unix2-2.9.1
patch -Np1 -i ../pam_unix2-glibc216.patch
- ./configure --libdir=/usr/lib --sbindir=/usr/bin
+
+ # modify flags to build against the pam compiled here, not a system lib.
+ ./configure \
+ CFLAGS="$CFLAGS -I$srcdir/Linux-PAM-$pkgver/libpam/include/" \
+ LDFLAGS="$LDFLAGS -L$srcdir/Linux-PAM-$pkgver/libpam/.libs/" \
+ --libdir=/usr/lib \
+ --sbindir=/usr/bin
make
}