diff options
author | root <root@rshg054.dnsready.net> | 2012-05-06 00:02:44 +0000 |
---|---|---|
committer | root <root@rshg054.dnsready.net> | 2012-05-06 00:02:44 +0000 |
commit | f37e773fe397778858ea8d51601554863c252536 (patch) | |
tree | 9997e525a9baeb85d09bd8e0c12e750781810755 /core/pam | |
parent | 5801c5acd80d30d17aaef76b8bc401c61b3ef3c9 (diff) |
Sun May 6 00:02:43 UTC 2012
Diffstat (limited to 'core/pam')
-rw-r--r-- | core/pam/PKGBUILD | 20 |
1 files changed, 13 insertions, 7 deletions
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 <tpowa@archlinux.org> # Contributor: judd <jvinet@zeroflux.org> 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 } |