core/linux-pam/Pkgfile

33 lines
832 B
Plaintext

# Description: Pluggable Authentication Modules (PAM) for Linux
# URL: http://www.linux-pam.org/
# Maintainer: CRUX System Team, core-ports at crux dot nu
name=linux-pam
version=1.3.1
release=1
source=(https://github.com/$name/$name/releases/download/v${version}/Linux-PAM-$version.tar.xz \
common-account common-auth common-password common-session \
other)
build() {
cd Linux-PAM-$version
./configure --prefix=/usr \
--libdir=/lib \
--disable-nis \
--disable-nls \
--disable-prelude \
--enable-db=no
make
make DESTDIR=$PKG install
# unix_chkpwd needs to be setuid root
chmod u+s $PKG/sbin/unix_chkpwd
mkdir -p $PKG/etc/pam.d
install -o root -g root -m 0644 \
$SRC/{common-*,other} \
$PKG/etc/pam.d/
rm -r $PKG/usr/share/doc
}