summaryrefslogtreecommitdiff
path: root/repo/system/pam.xibuild
diff options
context:
space:
mode:
authordavidovski <david@davidovski.xyz>2022-01-16 01:23:51 +0000
committerdavidovski <david@davidovski.xyz>2022-01-16 01:23:51 +0000
commitcb447620084a20be80d116c81c2e9ec110be7118 (patch)
tree9fc0d714abbb5c6326b60616a5fd27ec9f984895 /repo/system/pam.xibuild
parent153011e9129c6055ef21c48caf65a23e74a91418 (diff)
restructured repo system
Diffstat (limited to 'repo/system/pam.xibuild')
-rw-r--r--repo/system/pam.xibuild35
1 files changed, 35 insertions, 0 deletions
diff --git a/repo/system/pam.xibuild b/repo/system/pam.xibuild
new file mode 100644
index 0000000..732909a
--- /dev/null
+++ b/repo/system/pam.xibuild
@@ -0,0 +1,35 @@
+#!/bin/bash
+
+DEPS=(glibc libtirpc pambase audit libxcrypt)
+
+SOURCE=https://github.com/linux-pam/linux-pam/releases/download/v1.5.2/Linux-PAM-1.5.2.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-1.5.2 &&
+ 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
+
+}