summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorA. Wilcox <AWilcox@Wilcox-Tech.com>2018-12-31 07:12:44 +0000
committerA. Wilcox <AWilcox@Wilcox-Tech.com>2018-12-31 07:12:44 +0000
commit2bdb8cb19e8458190d106a1a665cd5ce57cb49da (patch)
tree87575d74185cdf6fe51138de70fd71a2c4786c71
parent683a271c5ec4b97e66777769431735dba5ed46f1 (diff)
downloadpackages-2bdb8cb19e8458190d106a1a665cd5ce57cb49da.tar.gz
packages-2bdb8cb19e8458190d106a1a665cd5ce57cb49da.tar.bz2
packages-2bdb8cb19e8458190d106a1a665cd5ce57cb49da.tar.xz
packages-2bdb8cb19e8458190d106a1a665cd5ce57cb49da.zip
user/polkit: create user ID if it isn't extant
-rw-r--r--user/polkit/APKBUILD4
-rw-r--r--user/polkit/polkit.pre-upgrade5
2 files changed, 7 insertions, 2 deletions
diff --git a/user/polkit/APKBUILD b/user/polkit/APKBUILD
index 05976199d..5b5dfdacd 100644
--- a/user/polkit/APKBUILD
+++ b/user/polkit/APKBUILD
@@ -2,7 +2,7 @@
# Maintainer: A. Wilcox <awilfox@adelielinux.org>
pkgname=polkit
pkgver=0.115
-pkgrel=2
+pkgrel=3
pkgdesc="Toolkit for controlling system-wide privileges"
url="https://www.freedesktop.org/wiki/Software/polkit/"
arch="all"
@@ -14,7 +14,7 @@ makedepends="glib-dev gobject-introspection-dev gtk-doc intltool linux-pam-dev
subpackages="$pkgname-dev $pkgname-doc $pkgname-lang"
pkgusers="polkitd"
pkggroups="polkitd"
-install="$pkgname.pre-install"
+install="$pkgname.pre-install $pkgname.pre-upgrade"
source="https://www.freedesktop.org/software/polkit/releases/polkit-$pkgver.tar.gz
0001-make-netgroup-support-optional.patch
CVE-2018-19788.patch
diff --git a/user/polkit/polkit.pre-upgrade b/user/polkit/polkit.pre-upgrade
new file mode 100644
index 000000000..816f89236
--- /dev/null
+++ b/user/polkit/polkit.pre-upgrade
@@ -0,0 +1,5 @@
+#!/bin/sh
+
+useradd -r -s /sbin/nologin -d /usr/lib/polkit-1 -M -U polkitd 2>/dev/null
+
+exit 0