From dcc4b5815675877f6dbe9b374db6f8f6b6cbecb9 Mon Sep 17 00:00:00 2001
From: Celeste <20312-Celeste@users.gitlab.alpinelinux.org>
Date: Thu, 18 Jan 2024 13:25:23 +0000
Subject: [PATCH] community/polkit: upgrade to 124

---
 community/polkit/APKBUILD         |  7 +++++--
 community/polkit/logind_dep.patch | 11 +++++++++++
 2 files changed, 16 insertions(+), 2 deletions(-)
 create mode 100644 community/polkit/logind_dep.patch

diff --git a/community/polkit/APKBUILD b/community/polkit/APKBUILD
index 82e499be35c9..a7dbd21247bb 100644
--- a/community/polkit/APKBUILD
+++ b/community/polkit/APKBUILD
@@ -3,7 +3,7 @@
 # Contributor: Jakub Jirutka <jakub@jirutka.cz>
 # Maintainer: Natanael Copa <ncopa@alpinelinux.org>
 pkgname=polkit
-pkgver=123
+pkgver=124
 pkgrel=0
 pkgdesc="Application development toolkit for controlling system-wide privileges"
 url="https://www.freedesktop.org/wiki/Software/polkit/"
@@ -39,6 +39,7 @@ subpackages="
 source="https://gitlab.freedesktop.org/polkit/polkit/-/archive/$pkgver/polkit-$pkgver.tar.bz2
 	alpine-polkit.pam
 	polkit.initd
+	logind_dep.patch
 	"
 
 # secfixes:
@@ -63,6 +64,7 @@ _build() {
 		-Dtests="$(want_check && echo true || echo false)" \
 		-Dman=true \
 		-Dsystemdsystemunitdir=/trash \
+		-Dpam_prefix=/etc/pam.d \
 		"$@" \
 		. "$outdir"
 	meson compile -C "$outdir"
@@ -194,7 +196,8 @@ openrc() {
 }
 
 sha512sums="
-4306363d3ed7311243de462832199bd10ddda35e36449104daff0895725d8189b07a4c88340f28607846fdf761c23470da2d43288199c46aa816426384124bb6  polkit-123.tar.bz2
+db520882b0bedf1c96052570bf4c55d7e966d8172f6d26acf0791d98c4b911fce5ee39e6d830f06122ac8df33c6b43c252cdb7ba3a54523804824ebf355405dc  polkit-124.tar.bz2
 f5102dc00d390b3a3c957b62e1712db778c7ffb7378f3d8e816c0757c11a308c5d5303e42595b0d6add9839247c773880cd34e56afacc89eb6efaadf9aae7826  alpine-polkit.pam
 f6e5ac0ed41feb392dfd104979ec577c5936f3db2bd252b12b7b9b2609a0901dae38bebec1ea65ccf4f427860b520383ae4d2c66fb74ab986c715f6b0ad50473  polkit.initd
+d93b47cbb0a490fba030dfc2a02ddc5e9271856a7b962ccb5dc3a110e7dcbd4361dbaaf62cf02a3d53f3568cf227485c14a3b9ca30536a3d3be29c4e4a48da37  logind_dep.patch
 "
diff --git a/community/polkit/logind_dep.patch b/community/polkit/logind_dep.patch
new file mode 100644
index 000000000000..1e9208e9b7e7
--- /dev/null
+++ b/community/polkit/logind_dep.patch
@@ -0,0 +1,11 @@
+--- a/meson.build
++++ b/meson.build
+@@ -219,7 +219,7 @@
+     systemd_systemdsystemunitdir = systemd_dep.get_pkgconfig_variable('systemdsystemunitdir')
+   endif
+ 
+-  systemd_sysusers_dir = systemd_dep.get_pkgconfig_variable('sysusers_dir', default: '/usr/lib/sysusers.d')
++  systemd_sysusers_dir = logind_dep.get_pkgconfig_variable('sysusers_dir', default: '/usr/lib/sysusers.d')
+ endif
+ config_h.set('HAVE_LIBSYSTEMD', enable_logind)
+ 
-- 
GitLab