Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- _pkgbasename=pam
- pkgname=lib32-$_pkgbasename
- pkgver=1.1.3
- pkgrel=1
- pkgdesc="PAM (Pluggable Authentication Modules) library (32 bit)"
- arch=('x86_64')
- license=('GPL2')
- url="http://www.kernel.org/pub/linux/libs/pam/"
- depends=('lib32-glibc' 'lib32-db' 'lib32-cracklib' ${_pkgbasename})
- makedepends=('lib32-flex' 'w3m' 'docbook-xml>=4.4' 'docbook-xsl')
- source=(http://www.kernel.org/pub/linux/libs/pam/library/Linux-PAM-$pkgver.tar.bz2
- ftp://ftp.suse.com/pub/people/kukuk/pam/pam_unix2/pam_unix2-2.6.tar.bz2
- other)
- options=('!libtool' '!emptydirs')
- md5sums=('6db7fcb5db6253350e3a4648ceac40e7'
- 'e2788389a6c59224110a45fcff30e02b'
- '6e6c8719e5989d976a14610f340bd33a')
- build() {
- cd $srcdir/Linux-PAM-$pkgver
- ./configure CC='gcc -m32' --prefix=/usr --libdir=/usr/lib32
- make
- }
- package() {
- cd $srcdir/Linux-PAM-$pkgver
- make DESTDIR=$pkgdir install
- # LIB32 comment: These came for Arch "pam" package. Needed?
- #install -D -m644 ../other $pkgdir/etc/pam.d/other
- # BUILD pam_unix2 module -- Is it needed in lib32?
- cd $srcdir/pam_unix2-2.6
- # Fix "error: conflicting types for 'pam_syslog'" - this occurs only with our toolchain...
- sed -i -e 's|pam_syslog (pam_handle_t|pam_syslog (const pam_handle_t|g' src/public.h src/support.c
- ./configure CC='gcc -m32' --libdir=/usr/lib32 \
- --libexecdir=/usr/lib32 --prefix=/usr
- make
- make DESTDIR=$pkgdir install
- # fix some missing symlinks from old pam for compatibility
- cd $pkgdir/usr/lib32/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
- # LIB32 comment: These came for Arch "pam" package. Is it needed in lib32?
- #
- # 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
- #* - rtprio 0
- #* - nice 0
- #@audio - rtprio 65
- #@audio - nice -10
- #@audio - memlock 40000
- #_EOT
- #set unix_chkpwd uid
- #chmod +s $pkgdir/sbin/unix_chkpwd
- # Cleanup, leave only libs
- rm -rf ${pkgdir}/{etc,sbin}
- rm -rf ${pkgdir}/usr/{include,share}
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement