jobcore/pam/PKGBUILD

72 lines
2.4 KiB
Bash
Raw Normal View History

2022-03-20 13:19:37 +01:00
#!/usr/bin/bash
# JOBoRun : Jwm OpenBox Obarun RUNit
2022-09-03 14:12:06 +02:00
# Maintainer : Joe Bo Run <joborun@disroot.org>
2022-03-20 13:19:37 +01:00
# PkgSource : url="https://gittea.disroot.org/joborun-pkg/jobcore/$pkgname"
2022-09-03 14:12:06 +02:00
# Website : https://pozol.eu
2022-03-20 13:19:37 +01:00
#-----------------------------------------| DESCRIPTION |---------------------------------------
pkgname=pam
pkgver=1.5.2
2022-09-03 14:12:06 +02:00
pkgrel=02
2022-03-20 13:19:37 +01:00
pkgdesc="PAM (Pluggable Authentication Modules) library - w/o systemd"
arch=('x86_64')
url="http://linux-pam.org"
depends=('glibc' 'libtirpc' 'pambase' 'audit' 'libaudit.so' 'libxcrypt' 'libcrypt.so')
makedepends=('flex' 'w3m' 'docbook-xml>=4.4' 'docbook-xsl')
provides=('libpam.so' 'libpamc.so' 'libpam_misc.so')
backup=(etc/security/{access.conf,faillock.conf,group.conf,limits.conf,namespace.conf,namespace.init,pam_env.conf,time.conf} etc/environment)
source=(https://github.com/linux-pam/linux-pam/releases/download/v$pkgver/Linux-PAM-$pkgver.tar.xz{,.asc}
$pkgname.tmpfiles)
options=('!emptydirs')
build() {
cd Linux-PAM-$pkgver
# prevent the installation of an unneeded systemd file:
# sed -e /service_DATA/d \
# -i modules/pam_namespace/Makefile.am &&
# this is the same as proposed by LFS as removing it
# at the end with the post_-install statement at the
# end of the PKGBUILD
# also disabling systemd options here in ./config
# seems also acceptable
./configure \
--libdir=/usr/lib \
--sbindir=/usr/bin \
--disable-db \
--disable-systemd
make
}
package() {
install -Dm 644 $pkgname.tmpfiles "$pkgdir"/usr/lib/tmpfiles.d/$pkgname.conf
cd Linux-PAM-$pkgver
make DESTDIR="$pkgdir" SCONFIGDIR=/etc/security install
# set unix_chkpwd uid
chmod +s "$pkgdir"/usr/bin/unix_chkpwd
# remove doc which is not used anymore
# FS #40749
2022-09-03 14:12:06 +02:00
# rm $pkgdir/usr/share/doc/Linux-PAM/sag-pam_userdb.html
rm $pkgdir/usr/lib/systemd/system/pam_namespace.service
2022-03-20 13:19:37 +01:00
}
post_install() {
# Fix unix_chkpwd perms.
chmod 4755 ${DESTDIR}/usr/bin/unix_chkpwd
}
#---- license gpg-key sha256sums ----
license=('GPL2')
2022-09-03 14:12:06 +02:00
validpgpkeys=(8C6BFD92EE0F42EDF91A6A736D1A7F052E5924BB # Thorsten Kukuk
296D6F29A020808E8717A8842DB5BD89A340AEB7) #Dimitry V. Levin <ldv@altlinux.org>
2022-03-20 13:19:37 +01:00
sha256sums=(e4ec7131a91da44512574268f493c6d8ca105c87091691b8e9b56ca685d4f94d # Linux-PAM-1.5.2.tar.xz
f388f9ea16a3cf541e71d452f024b83e62bf6391bcdca509d7e5027a62c07fd8 # Linux-PAM-1.5.2.tar.xz.asc
5631f224e90c4f0459361c2a5b250112e3a91ba849754bb6f67d69d683a2e5ac) # pam.tmpfiles
2022-09-03 14:12:06 +02:00