core/linux-pam/Pkgfile

36 lines
903 B
Plaintext
Raw Normal View History

# Description: Pluggable Authentication Modules (PAM) for Linux
2023-11-19 19:11:04 +01:00
# URL: https://github.com/linux-pam/linux-pam
# Maintainer: CRUX System Team, core-ports at crux dot nu
name=linux-pam
2024-01-18 21:06:53 +01:00
version=1.6.0
2023-05-10 13:07:35 +02:00
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() {
2023-12-24 12:43:51 +01:00
cd Linux-PAM-$version
2020-11-13 10:59:46 +01:00
2023-12-24 12:43:51 +01:00
CONFIG_SHELL=/bin/bash ./configure \
--prefix=/usr \
--libdir=/lib \
--disable-nls \
--disable-prelude \
--enable-db=no
make
make DESTDIR=$PKG install
2023-12-24 12:43:51 +01:00
mv $PKG/lib/pkgconfig $PKG/usr/lib
2023-12-24 12:43:51 +01:00
# unix_chkpwd needs to be setuid root
chmod u+s $PKG/sbin/unix_chkpwd
2023-12-24 12:43:51 +01:00
mkdir -p $PKG/etc/pam.d
install -o root -g root -m 0644 \
$SRC/{common-*,other} \
$PKG/etc/pam.d/
2023-12-24 12:43:51 +01:00
rm -r $PKG/usr/{lib/systemd,share/doc}
}