2019-02-03 00:34:40 -06:00
|
|
|
# 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
|
2024-04-10 11:23:17 +02:00
|
|
|
version=1.6.1
|
2024-06-24 17:58:30 +02:00
|
|
|
release=2
|
2019-02-03 00:34:40 -06:00
|
|
|
source=(https://github.com/$name/$name/releases/download/v${version}/Linux-PAM-$version.tar.xz \
|
2021-09-19 09:21:27 +02:00
|
|
|
common-account common-auth common-password common-session \
|
|
|
|
other)
|
2019-02-03 00:34:40 -06:00
|
|
|
|
|
|
|
build() {
|
2021-09-19 09:21:27 +02:00
|
|
|
cd Linux-PAM-$version
|
2020-11-13 10:59:46 +01:00
|
|
|
|
2021-09-19 09:21:27 +02:00
|
|
|
CONFIG_SHELL=/bin/bash ./configure \
|
|
|
|
--prefix=/usr \
|
|
|
|
--libdir=/lib \
|
|
|
|
--disable-nls \
|
|
|
|
--disable-prelude \
|
|
|
|
--enable-db=no
|
|
|
|
make
|
|
|
|
make DESTDIR=$PKG install
|
2019-02-03 00:34:40 -06:00
|
|
|
|
2021-09-19 09:21:27 +02:00
|
|
|
mv $PKG/lib/pkgconfig $PKG/usr/lib
|
2019-02-03 00:34:40 -06:00
|
|
|
|
2021-09-19 09:21:27 +02:00
|
|
|
# unix_chkpwd needs to be setuid root
|
|
|
|
chmod u+s $PKG/sbin/unix_chkpwd
|
2019-02-03 00:34:40 -06:00
|
|
|
|
2021-09-19 09:21:27 +02:00
|
|
|
mkdir -p $PKG/etc/pam.d
|
|
|
|
install -o root -g root -m 0644 \
|
|
|
|
$SRC/{common-*,other} \
|
|
|
|
$PKG/etc/pam.d/
|
|
|
|
|
|
|
|
rm -r $PKG/usr/{lib/systemd,share/doc}
|
2019-02-03 00:34:40 -06:00
|
|
|
}
|