summaryrefslogtreecommitdiff
path: root/linux-pam/Pkgfile
blob: 6b0a610ac2ffae731700e17c5ef218b621e29ff5 (plain)
    1 # Description:	Linux-PAM (Pluggable Authentication Modules for Linux)
    2 # URL:		http://www.kernel.org/pub/linux/libs/pam/
    3 # Maintainer:	Alan Mizrahi, alan at mizrahi dot com dot ve
    4 
    5 name=linux-pam
    6 version=1.1.8
    7 release=2
    8 source=(
    9 http://www.linux-pam.org/library/Linux-PAM-$version.tar.bz2
   10 other
   11 system-auth
   12 )
   13 
   14 build() {
   15 	cd Linux-PAM-$version
   16 
   17 	# pam_userdb needs the dbm api of libdb.
   18 	# if the api isn't there, we disable the module
   19 	db="$(grep -q __db_ndbm_open /usr/lib/libdb.* || echo --disable-db)"
   20 
   21 	./configure \
   22 		--sysconfdir=/etc \
   23 		--prefix=/usr \
   24 		--libdir=/lib \
   25 		--mandir=/usr/man \
   26 		--disable-nls \
   27 		"$db"
   28 
   29 	make
   30 	make DESTDIR=$PKG install
   31 
   32 	rm -rf $PKG/usr/share $PKG/lib/security/*.la
   33 	mkdir -m 755 $PKG/etc/pam.d
   34 	install -D -m 644 -o root -g root $SRC/other $PKG/etc/pam.d/other
   35 	install -D -m 644 -o root -g root $SRC/system-auth $PKG/etc/pam.d/system-auth
   36 
   37 	# the unix_chkpwd helper need the setuid bit
   38 	chmod u+s $PKG/sbin/unix_chkpwd
   39 }

Generated by cgit