blob: cebced89886df90c01500d97b32fe9df40cff86a (
plain)
1 # Description: Pluggable Authentication Modules (PAM) for Linux
2 # URL: http://www.linux-pam.org/
3 # Maintainer: CRUX System Team, core-ports at crux dot nu
4
5 name=linux-pam
6 version=1.5.2
7 release=3
8 source=(https://github.com/$name/$name/releases/download/v${version}/Linux-PAM-$version.tar.xz \
9 common-account common-auth common-password common-session \
10 other)
11
12 build() {
13 cd Linux-PAM-$version
14
15 CONFIG_SHELL=/bin/bash ./configure \
16 --prefix=/usr \
17 --libdir=/lib \
18 --disable-nis \
19 --disable-nls \
20 --disable-prelude \
21 --enable-db=no
22 make
23 make DESTDIR=$PKG install
24
25 mv $PKG/lib/pkgconfig $PKG/usr/lib
26
27 # unix_chkpwd needs to be setuid root
28 chmod u+s $PKG/sbin/unix_chkpwd
29
30 mkdir -p $PKG/etc/pam.d
31 install -o root -g root -m 0644 \
32 $SRC/{common-*,other} \
33 $PKG/etc/pam.d/
34
35 rm -r $PKG/usr/{lib/systemd,share/doc}
36 }
|