main/linux-pam: move to /usr/lib

This is not a requirement for booting the system, as one can log in
without it. So move the pam modules to /usr/lib
This commit is contained in:
Pablo Correa Gómez 2024-09-04 14:10:18 +02:00 committed by Natanael Copa
parent bcca1ba77e
commit 390b824324

View file

@ -3,7 +3,7 @@
# Maintainer: Natanael Copa <ncopa@alpinelinux.org>
pkgname=linux-pam
pkgver=1.6.1
pkgrel=0
pkgrel=1
pkgdesc="Linux PAM (Pluggable Authentication Modules for Linux)"
url="https://www.kernel.org/pub/linux/libs/pam"
arch="all"
@ -48,7 +48,7 @@ build() {
--build=$CBUILD \
--host=$CHOST \
--prefix=/usr \
--libdir=/lib \
--libdir=/usr/lib \
--sysconfdir=/etc \
--mandir=/usr/share/man \
--infodir=/usr/share/info \
@ -77,10 +77,6 @@ package() {
chgrp shadow "$pkgdir"/sbin/unix_chkpwd \
&& chmod g+s "$pkgdir"/sbin/unix_chkpwd
# wrong dir due to libdir
mkdir -p "$pkgdir"/usr/lib
mv "$pkgdir"/lib/pkgconfig "$pkgdir"/usr/lib/pkgconfig
# we don't ship systemd
rm -r "$pkgdir"/usr/lib/systemd
}