crux-ports/ports/l/linux-pam/Pkgfile

42 lines
946 B
Plaintext
Raw Normal View History

2024-03-14 15:58:00 +00:00
# Description: Pluggable Authentication Modules (PAM) for Linux
# URL: http://www.linux-pam.org/
# Maintainer: Alexander Zhirov
name=linux-pam
version=1.6.0
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
pam_namespace.patch
)
build() {
cd Linux-PAM-$version
patch -d . -p0 < ../pam_namespace.patch
CONFIG_SHELL=/bin/bash ./configure \
--prefix=/usr \
--libdir=/lib \
--disable-nls \
--disable-prelude \
--enable-db=no
make
make DESTDIR=$PKG install
mv $PKG/lib/pkgconfig $PKG/usr/lib
# 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 -rf $PKG/usr/{lib/systemd,share/doc}
}