blob: 3166ad2f5e563c53d04f18e226045766dad2e465 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
|
#!/bin/bash
DEPS=(glibc libtirpc pambase audit libxcrypt)
PKG_VER=1.5.2
SOURCE=https://github.com/linux-pam/linux-pam/releases/download/v$PKG_VER/Linux-PAM-$PKG_VER.tar.xz
DESC="PAM (Pluggable Authentication Modules) library"
build () {
# prevent install of an uneeded systemd file
sed -e /service_DATA/d \
-i modules/pam_namespace/Makefile.am &&
autoreconf
./configure --prefix=/usr \
--sbindir=/usr/sbin \
--sysconfdir=/etc \
--libdir=/usr/lib \
--enable-securedir=/usr/lib/security \
--docdir=/usr/share/doc/Linux-PAM-$PKG_VER &&
make
make DESTDIR=$PKG_DEST install
}
package () {
install -v -m755 -d $PKG_DEST/etc/pam.d &&
cat > $PKG_DEST/etc/pam.d/other << "EOF"
auth required pam_deny.so
account required pam_deny.so
password required pam_deny.so
session required pam_deny.so
EOF
}
|