[oe-commits] Steve Sakoman : policykit: install missing PolicyKit.conf

git version control git at git.openembedded.org
Tue Jul 28 07:31:44 UTC 2009


Module: openembedded.git
Branch: org.openembedded.dev
Commit: a1adb7f8b667756434bfe5082b28fb90ad4205a6
URL:    http://gitweb.openembedded.net/?p=openembedded.git&a=commit;h=a1adb7f8b667756434bfe5082b28fb90ad4205a6

Author: Steve Sakoman <sakoman at gmail.com>
Date:   Tue Jul 28 09:30:57 2009 +0200

policykit: install missing PolicyKit.conf

---

 recipes/policykit/policykit/PolicyKit.conf |   13 +++++++++++++
 recipes/policykit/policykit_0.9.bb         |   10 ++++++++--
 2 files changed, 21 insertions(+), 2 deletions(-)

diff --git a/recipes/policykit/policykit/PolicyKit.conf b/recipes/policykit/policykit/PolicyKit.conf
new file mode 100644
index 0000000..ed502ac
--- /dev/null
+++ b/recipes/policykit/policykit/PolicyKit.conf
@@ -0,0 +1,13 @@
+<?xml version="1.0" encoding="UTF-8"?> <!-- -*- XML -*- -->
+
+<!DOCTYPE pkconfig PUBLIC "-//freedesktop//DTD PolicyKit Configuration 1.0//EN"
+"http://hal.freedesktop.org/releases/PolicyKit/1.0/config.dtd">
+
+<!-- See the manual page PolicyKit.conf(5) for file format -->
+
+<config version="0.1">
+    <match user="root">
+        <return result="yes"/>
+    </match>
+    <define_admin_auth group="admin"/>
+</config>
diff --git a/recipes/policykit/policykit_0.9.bb b/recipes/policykit/policykit_0.9.bb
index 28cbb11..2a31701 100644
--- a/recipes/policykit/policykit_0.9.bb
+++ b/recipes/policykit/policykit_0.9.bb
@@ -1,9 +1,11 @@
 HOMEPAGE = "http://www.packagekit.org/"
 DEPENDS = "libpam expat dbus-glib"
 
-PR = "r4"
+PR = "r5"
 
-SRC_URI = "http://hal.freedesktop.org/releases/PolicyKit-${PV}.tar.gz"
+SRC_URI = "http://hal.freedesktop.org/releases/PolicyKit-${PV}.tar.gz \
+           file://PolicyKit.conf \
+          "
 
 EXTRA_OECONF = "--with-authfw=pam --with-os-type=moblin --disable-man-pages --disable-gtk-doc"
 
@@ -11,6 +13,10 @@ S = "${WORKDIR}/PolicyKit-${PV}"
 
 inherit autotools pkgconfig
 
+do_install_append () {
+	install -m 0644 ${WORKDIR}/PolicyKit.conf ${D}${sysconfdir}/PolicyKit/PolicyKit.conf
+}
+
 do_stage() {
         autotools_stage_all
 }





More information about the Openembedded-commits mailing list