# pam, ftp://ftp.kernel.org/pub/linux/libs/pam/pre/library/

name=pam
version=0.99.9.0
release=1
source=(ftp://ftp.kernel.org/pub/linux/libs/pam/pre/library/Linux-PAM-$version.tar.bz2 
other.pam system-auth.pam)

build() {
    cd Linux-PAM-$version
    ./configure \
	--mandir=/usr/share/man \
	--infodir=/usr/share/info \
	--enable-read-both-confs \
	--enable-cracklib \
	--disable-nls
    make
    make check
    make DESTDIR=$PKG install
    install -D -m0644 ../other.pam $PKG/etc/pam.d/other
    install -D -m0644 ../system-auth.pam $PKG/etc/pam.d/system-auth
    rm -rf $PKG/usr/share/doc
}
