-
Notifications
You must be signed in to change notification settings - Fork 25
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge AUR commit 9bfed95: https://aur.archlinux.org/cgit/aur.git/commit/?h=pam-selinux&id=9bfed95400369c5f74aaf1de4b7b3f20f0004aab
- Loading branch information
Showing
2 changed files
with
66 additions
and
36 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -9,33 +9,60 @@ | |
# If you want to help keep it up to date, please open a Pull Request there. | ||
|
||
pkgname=pam-selinux | ||
pkgver=1.6.1 | ||
pkgrel=3 | ||
pkgver=1.7.0 | ||
pkgrel=1 | ||
pkgdesc="SELinux aware PAM (Pluggable Authentication Modules) library" | ||
arch=('x86_64' 'aarch64') | ||
license=('GPL-2.0-only') | ||
url="http://linux-pam.org" | ||
depends=('glibc' 'libtirpc' 'audit' 'libselinux' 'pambase-selinux' 'libaudit.so' 'libxcrypt' 'libcrypt.so' 'libnsl' 'systemd-libs') | ||
makedepends=('git' 'flex' 'w3m' 'libxslt' 'docbook-xml' 'docbook5-xml' 'docbook-xsl' 'fop') | ||
depends=( | ||
audit | ||
glibc | ||
libaudit.so | ||
libcrypt.so | ||
libnsl | ||
libselinux | ||
libtirpc | ||
libxcrypt | ||
pambase-selinux | ||
systemd-libs | ||
) | ||
makedepends=( | ||
docbook-xml | ||
docbook-xsl | ||
docbook5-xml | ||
flex | ||
fop | ||
git | ||
libxslt | ||
meson | ||
w3m | ||
) | ||
conflicts=("${pkgname/-selinux}" "selinux-${pkgname/-selinux}") | ||
provides=('libpam.so' 'libpamc.so' 'libpam_misc.so' | ||
"${pkgname/-selinux}=${pkgver}-${pkgrel}" | ||
"selinux-${pkgname/-selinux}=${pkgver}-${pkgrel}") | ||
backup=(etc/security/{access.conf,faillock.conf,group.conf,limits.conf,namespace.conf,namespace.init,pwhistory.conf,pam_env.conf,time.conf} etc/environment) | ||
provides=( | ||
libpam.so | ||
libpamc.so | ||
libpam_misc.so | ||
"${pkgname/-selinux}=${pkgver}-${pkgrel}" | ||
"selinux-${pkgname/-selinux}=${pkgver}-${pkgrel}" | ||
) | ||
backup=( | ||
etc/security/{access.conf,faillock.conf,group.conf,limits.conf,namespace.conf,namespace.init,pwhistory.conf,pam_env.conf,time.conf} | ||
etc/environment | ||
) | ||
groups=('selinux') | ||
source=("pam::git+https://github.com/linux-pam/linux-pam?signed#tag=v${pkgver}" | ||
"${pkgname/-selinux}.tmpfiles") | ||
validpgpkeys=( | ||
'8C6BFD92EE0F42EDF91A6A736D1A7F052E5924BB' # Thorsten Kukuk | ||
'296D6F29A020808E8717A8842DB5BD89A340AEB7' # Dimitry V. Levin <[email protected]> | ||
) | ||
b2sums=('12891f9064ce7f00d22452d8ff39c14af87c24f9fbf3eab65e475a7d2a592d2b1c1d585f3718b2fa72f277a8ad1faa17149fe0a911bfabdaa4a2957c32e29fe3' | ||
b2sums=('88ecba59692fe86f6f6516007b87fb897018cc5f818c106a037f15df4dda7c31e50fbfcb137493d49cb754e41f2f69a60f24ffea3374ff5e38ce6263bfa7abac' | ||
'36582c80020008c3810b311a2e126d2fb4ffc94e565ea4c0c0ab567fdb92943e269781ffa548550742feb685847c26c340906c7454dcc31df4e1e47d511d8d6f') | ||
options=('!emptydirs') | ||
|
||
prepare() { | ||
cd "${pkgname/-selinux}" | ||
./autogen.sh | ||
# apply patch from the source array (should be a pacman feature) | ||
local src | ||
for src in "${source[@]}"; do | ||
|
@@ -48,20 +75,22 @@ prepare() { | |
} | ||
|
||
build() { | ||
cd "${pkgname/-selinux}" | ||
./configure \ | ||
--libdir=/usr/lib \ | ||
--sbindir=/usr/bin \ | ||
--enable-logind \ | ||
--disable-db \ | ||
--enable-selinux | ||
make | ||
arch-meson "${pkgname/-selinux}" \ | ||
-Dlogind=enabled \ | ||
-Deconf=disabled \ | ||
-Dselinux=enabled \ | ||
-Dpam_userdb=disabled \ | ||
build | ||
meson compile -C build | ||
} | ||
|
||
check() { | ||
meson test -C build | ||
} | ||
|
||
package() { | ||
meson install -C build --destdir "${pkgdir}" | ||
install -Dm 644 ${pkgname/-selinux}.tmpfiles "${pkgdir}"/usr/lib/tmpfiles.d/${pkgname/-selinux}.conf | ||
cd "${pkgname/-selinux}" | ||
make DESTDIR="${pkgdir}" SCONFIGDIR=/etc/security install | ||
|
||
# set unix_chkpwd uid | ||
chmod +s "${pkgdir}"/usr/bin/unix_chkpwd | ||
|