diff options
author | davidovski <david@davidovski.xyz> | 2022-05-04 23:52:30 +0100 |
---|---|---|
committer | davidovski <david@davidovski.xyz> | 2022-05-04 23:52:30 +0100 |
commit | 739c65c54cb0e957df5e9b76f93fb02554e5cac3 (patch) | |
tree | 09ddfa0a342f3ea9de136cb50abdd79821bf1b53 /repo/system/pam/pam.xibuild | |
parent | 4c585ad54388285500fd18a6aaa516894e0f2c16 (diff) |
moved everything to new file formatting
Diffstat (limited to 'repo/system/pam/pam.xibuild')
-rw-r--r-- | repo/system/pam/pam.xibuild | 46 |
1 files changed, 46 insertions, 0 deletions
diff --git a/repo/system/pam/pam.xibuild b/repo/system/pam/pam.xibuild new file mode 100644 index 0000000..366ec3c --- /dev/null +++ b/repo/system/pam/pam.xibuild @@ -0,0 +1,46 @@ +#!/bin/sh + +MAKEDEPS="make automake" +DEPS="musl 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 +ADDITIONAL=" + system-auth.pamd + system-account.pamd + system-password.pamd + system-session.pamd + other.pamd +" +DESC="PAM (Pluggable Authentication Modules) library" + +prepare () { + # prevent install of an uneeded systemd file + sed -e /service_DATA/d \ + -i modules/pam_namespace/Makefile.am && + autoreconf + +} + +build () { + ./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 +} + +package () { + make DESTDIR=$PKG_DEST install + install -m755 -d $PKG_DEST/etc/pam.d + + cp system-account.pamd $PKG_DEST/etc/pam.d/system-account + cp system-auth.pamd $PKG_DEST/etc/pam.d/system-auth + cp system-password.pamd $PKG_DEST/etc/pam.d/system-password + cp system-session.pamd $PKG_DEST/etc/pam.d/system-session + cp other.pamd $PKG_DEST/etc/pam.d/other + [ -d $PKG_DEST/usr/lib/systemd ] && rm -r $PKG_DEST/usr/lib/systemd + return 0 +} |