From f37e773fe397778858ea8d51601554863c252536 Mon Sep 17 00:00:00 2001 From: root Date: Sun, 6 May 2012 00:02:44 +0000 Subject: Sun May 6 00:02:43 UTC 2012 --- core/pam/PKGBUILD | 20 +++++++++++++------- 1 file changed, 13 insertions(+), 7 deletions(-) (limited to 'core/pam') diff --git a/core/pam/PKGBUILD b/core/pam/PKGBUILD index c0f4b4841..f84c6413a 100644 --- a/core/pam/PKGBUILD +++ b/core/pam/PKGBUILD @@ -1,10 +1,10 @@ -# $Id: PKGBUILD 146453 2012-01-11 15:21:11Z stephane $ +# $Id: PKGBUILD 158558 2012-05-04 23:56:48Z allan $ # Maintainer: Tobias Powalowski # Contributor: judd pkgname=pam pkgver=1.1.5 -pkgrel=2 +pkgrel=3 pkgdesc="PAM (Pluggable Authentication Modules) library" arch=('i686' 'x86_64') license=('GPL2') @@ -23,20 +23,24 @@ md5sums=('927ee5585bdec5256c75117e9348aa47' build() { cd $srcdir/Linux-PAM-$pkgver - ./configure --sysconfdir=/etc DESTDIR=$pkgdir --libdir=/lib + ./configure --libdir=/usr/lib + make + + cd $srcdir/pam_unix2-2.6 + ./configure --libdir=/usr/lib make } package() { cd $srcdir/Linux-PAM-$pkgver - make INSTALL=/bin/install DESTDIR=$pkgdir install + make DESTDIR=$pkgdir install install -D -m644 ../other $pkgdir/etc/pam.d/other + # build pam_unix2 module # source ftp://ftp.suse.com/pub/people/kukuk/pam/pam_unix2 cd $srcdir/pam_unix2-2.6 - ./configure - make make DESTDIR=$pkgdir install + # add the realtime permissions for audio users sed -i 's|# End of file||' $pkgdir/etc/security/limits.conf cat >>$pkgdir/etc/security/limits.conf <<_EOT @@ -46,12 +50,14 @@ package() { @audio - nice -10 @audio - memlock 40000 _EOT + # fix some missing symlinks from old pam for compatibility - cd $pkgdir/lib/security + cd $pkgdir/usr/lib/security ln -s pam_unix.so pam_unix_acct.so ln -s pam_unix.so pam_unix_auth.so ln -s pam_unix.so pam_unix_passwd.so ln -s pam_unix.so pam_unix_session.so + # set unix_chkpwd uid chmod +s $pkgdir/sbin/unix_chkpwd } -- cgit v1.2.3-54-g00ecf