summaryrefslogtreecommitdiffstats
path: root/source/l/polkit/polkit.SlackBuild
diff options
context:
space:
mode:
author Patrick J Volkerding <volkerdi@slackware.com>2024-04-11 21:36:28 +0000
committer Eric Hameleers <alien@slackware.com>2024-04-12 00:10:09 +0200
commit79267f6e54a1227ee4db836d4cf36c100ec8d5b7 (patch)
tree98d87f1bc63b3b9faeb2128fe8c811988319668d /source/l/polkit/polkit.SlackBuild
parent66d9bc3f90f149c803da3816bfa8e5d6140dd1e4 (diff)
downloadcurrent-79267f6e54a1227ee4db836d4cf36c100ec8d5b7.tar.gz
current-79267f6e54a1227ee4db836d4cf36c100ec8d5b7.tar.xz
Thu Apr 11 21:36:28 UTC 202420240411213628
d/cmake-3.29.2-x86_64-1.txz: Upgraded. l/polkit-124-x86_64-1.txz: Upgraded. Thanks to marav for the patches.
Diffstat (limited to '')
-rwxr-xr-xsource/l/polkit/polkit.SlackBuild11
1 files changed, 4 insertions, 7 deletions
diff --git a/source/l/polkit/polkit.SlackBuild b/source/l/polkit/polkit.SlackBuild
index 293a05dcd..1c41e4036 100755
--- a/source/l/polkit/polkit.SlackBuild
+++ b/source/l/polkit/polkit.SlackBuild
@@ -26,7 +26,7 @@ cd $(dirname $0) ; CWD=$(pwd)
PKGNAM=polkit
VERSION=${VERSION:-$(echo $PKGNAM-*.tar.?z | rev | cut -f 3- -d . | cut -f 1 -d - | rev)}
-BUILD=${BUILD:-2}
+BUILD=${BUILD:-1}
# Automatically determine the architecture we're building on:
if [ -z "$ARCH" ]; then
@@ -82,12 +82,8 @@ find . \
zcat $CWD/dont-set-wheel-group-as-admin.diff.gz | patch -p1 --verbose || exit 1
-# If we get here and don't have a polkitd user/group, add one.
-# Otherwise a few directories in the package will have wrong permissions.
-if ! grep -q "^polkitd:" /etc/passwd ; then
- groupadd -fg 87 polkitd
- useradd -c "PolicyKit daemon owner" -d /var/lib/polkit -u 87 -g polkitd -s /bin/false polkitd
-fi
+cat $CWD/polkit-124-systemd.patch | patch -p1 --verbose || exit 1
+cat $CWD/polkit-124-systemd-fixup.patch | patch -p1 --verbose || exit 1
# Configure, build, and install:
export CFLAGS="$SLKCFLAGS"
@@ -111,6 +107,7 @@ meson setup \
-Dsystemdsystemunitdir=/usr/lib/systemd/user \
-Dauthfw=pam \
-Dpam_module_dir=/lib${LIBDIRSUFFIX}/security \
+ -Dpam_prefix=/etc/pam.d \
-Dman=true \
-Djs_engine=duktape \
.. || exit 1