summaryrefslogtreecommitdiff
path: root/repo/core/pam.xibuild
diff options
context:
space:
mode:
authordavidovski <david@davidovski.xyz>2021-12-23 15:43:35 +0000
committerdavidovski <david@davidovski.xyz>2021-12-23 15:43:35 +0000
commit3af7df2b3b06e516947f7979f7c7f3c25d94bbb9 (patch)
tree8730b9110bad0d6ccb78ccbf3cfa18365b705d9d /repo/core/pam.xibuild
parentf7d75caed1c9627523aa72f1a04f1b9af34bfcde (diff)
added openssh
Diffstat (limited to 'repo/core/pam.xibuild')
-rw-r--r--repo/core/pam.xibuild36
1 files changed, 36 insertions, 0 deletions
diff --git a/repo/core/pam.xibuild b/repo/core/pam.xibuild
new file mode 100644
index 0000000..ea651b2
--- /dev/null
+++ b/repo/core/pam.xibuild
@@ -0,0 +1,36 @@
+#!/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
+
+
+}