summaryrefslogtreecommitdiffstats
path: root/abs/extra/polkit/polkit.install
diff options
context:
space:
mode:
authorBritney Fransen <brfransen@gmail.com>2014-12-16 16:42:47 (GMT)
committerBritney Fransen <brfransen@gmail.com>2014-12-16 16:42:47 (GMT)
commit6133bdaaba62a827f2929ea11516d04ce37947a5 (patch)
tree82896c7556bb24852b80f364cb6492c4d668cdbb /abs/extra/polkit/polkit.install
parent6ade06defa8f9f5d12383ab7acfb57219a9413e2 (diff)
downloadlinhes_pkgbuild-6133bdaaba62a827f2929ea11516d04ce37947a5.zip
linhes_pkgbuild-6133bdaaba62a827f2929ea11516d04ce37947a5.tar.gz
linhes_pkgbuild-6133bdaaba62a827f2929ea11516d04ce37947a5.tar.bz2
polkit: update 0.112
Diffstat (limited to 'abs/extra/polkit/polkit.install')
-rw-r--r--abs/extra/polkit/polkit.install18
1 files changed, 18 insertions, 0 deletions
diff --git a/abs/extra/polkit/polkit.install b/abs/extra/polkit/polkit.install
new file mode 100644
index 0000000..fbb9891
--- /dev/null
+++ b/abs/extra/polkit/polkit.install
@@ -0,0 +1,18 @@
+post_install() {
+ getent group polkitd >/dev/null || groupadd -g 102 polkitd
+ getent passwd polkitd >/dev/null || useradd -c 'Policy Kit Daemon' -u 102 -g polkitd -d '/' -s /bin/false polkitd
+ passwd -l polkitd &>/dev/null
+}
+
+post_upgrade() {
+ post_install
+}
+
+post_remove() {
+ if getent passwd polkitd >/dev/null; then
+ userdel polkitd
+ fi
+ if getent group polkitd >/dev/null; then
+ groupdel polkitd
+ fi
+}