Patchwork [meta-gnome/meta-oe/meta-xfce/V2,13/20] polkit-group-rule.inc: add a common template for polkit-rules/user-groups

login
register
mail settings
Submitter Andreas Müller
Date June 19, 2013, 5:29 p.m.
Message ID <1371662967-31734-14-git-send-email-schnitzeltony@googlemail.com>
Download mbox | patch
Permalink /patch/52067/
State Accepted
Commit 79b7cbaaee97d15b5573f472aea99a45d449d5fe
Headers show

Comments

Andreas Müller - June 19, 2013, 5:29 p.m.
Signed-off-by: Andreas Müller <schnitzeltony@googlemail.com>
---
 .../recipes-extended/polkit/polkit-group-rule.inc  |    9 +++++++++
 1 files changed, 9 insertions(+), 0 deletions(-)
 create mode 100644 meta-oe/recipes-extended/polkit/polkit-group-rule.inc

Patch

diff --git a/meta-oe/recipes-extended/polkit/polkit-group-rule.inc b/meta-oe/recipes-extended/polkit/polkit-group-rule.inc
new file mode 100644
index 0000000..8d1a89a
--- /dev/null
+++ b/meta-oe/recipes-extended/polkit/polkit-group-rule.inc
@@ -0,0 +1,9 @@ 
+# polkit must prepare polkid group
+DEPENDS += "polkit"
+
+inherit allarch useradd
+
+do_install_prepend() {
+    install -m 700 -d ${D}${sysconfdir}/polkit-1/rules.d
+    chown polkitd:polkitd ${D}${sysconfdir}/polkit-1/rules.d
+}