summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorA. Wilcox <awilcox@wilcox-tech.com>2018-09-09 02:52:27 +0000
committerA. Wilcox <awilcox@wilcox-tech.com>2018-09-09 02:52:27 +0000
commiteb5d8657735fbc915cba5ae1ef29303e07432b60 (patch)
tree3ae419a965929ec78b84ee071926f56008414b7f
parent3ec633a8721f565e4a3c1ada321e7aa00a941cc6 (diff)
parent4337746011f78cd7d77330f2fb7ab52ee857a682 (diff)
downloadpackages-eb5d8657735fbc915cba5ae1ef29303e07432b60.tar.gz
packages-eb5d8657735fbc915cba5ae1ef29303e07432b60.tar.bz2
packages-eb5d8657735fbc915cba5ae1ef29303e07432b60.tar.xz
packages-eb5d8657735fbc915cba5ae1ef29303e07432b60.zip
Merge branch 'polkitd-user' into 'master'
user/polkit: add polkitd user and group See merge request !51
-rw-r--r--user/polkit/APKBUILD6
-rw-r--r--user/polkit/polkit.pre-install5
2 files changed, 9 insertions, 2 deletions
diff --git a/user/polkit/APKBUILD b/user/polkit/APKBUILD
index 52a742130..ea5cb0c02 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=0
+pkgrel=1
pkgdesc="Toolkit for controlling system-wide privileges"
url="https://www.freedesktop.org/wiki/Software/polkit/"
arch="all"
@@ -12,7 +12,9 @@ depends=""
makedepends="glib-dev gobject-introspection-dev gtk-doc intltool linux-pam-dev
mozjs-dev"
subpackages="$pkgname-dev $pkgname-doc $pkgname-lang"
-pkgusers="polkit"
+pkgusers="polkitd"
+pkggroups="polkitd"
+install="$pkgname.pre-install"
source="https://www.freedesktop.org/software/polkit/releases/polkit-$pkgver.tar.gz
0001-make-netgroup-support-optional.patch
fix-consolekit-db-stat.patch
diff --git a/user/polkit/polkit.pre-install b/user/polkit/polkit.pre-install
new file mode 100644
index 000000000..816f89236
--- /dev/null
+++ b/user/polkit/polkit.pre-install
@@ -0,0 +1,5 @@
+#!/bin/sh
+
+useradd -r -s /sbin/nologin -d /usr/lib/polkit-1 -M -U polkitd 2>/dev/null
+
+exit 0