# Description:	Linux-PAM (Pluggable Authentication Modules for Linux)
# URL:		http://www.us.kernel.org/pub/linux/libs/pam/
# Maintainer:	Alan Mizrahi, alan at mizrahi dot com dot ve

name=linux-pam
version=1.1.0
release=1
source=(http://www.us.kernel.org/pub/linux/libs/pam/library/Linux-PAM-$version.tar.bz2 pam.conf pam_lastlog.patch)

build() {
	cd Linux-PAM-$version
	patch -p1 -i $SRC/pam_lastlog.patch

	./configure --sysconfdir=/etc --prefix=/usr --mandir=/usr/man --disable-nls
	make
	make DESTDIR=$PKG install
	rm -rf $PKG/usr/share
	install -D -m 644 $SRC/pam.conf $PKG/etc/pam.conf
}
