navigation: add geoclue package 69/10769/5
authorMatt Ranostay <matt.ranostay@konsulko.com>
Wed, 30 Aug 2017 18:19:07 +0000 (21:19 +0300)
committerJan-Simon Moeller <jsmoeller@linuxfoundation.org>
Mon, 18 Sep 2017 03:45:46 +0000 (03:45 +0000)
Add geoclue package to the packagegroup agl-ivi-navi-lbs
forward port dependency fix to recipe, and add dbus policy
to allow client access.

Bug-AGL: SPEC-852
Change-Id: Ib4d5bf22bdfebd162355d3d91850c7ebb6cd3154
Signed-off-by: Matt Ranostay <matt.ranostay@konsulko.com>
Reviewed-on: https://gerrit.automotivelinux.org/gerrit/10769
Tested-by: Jenkins Job builder account <agl-jobbuilder@automotivelinux.org>
ci-image-build: Jenkins Job builder account <agl-jobbuilder@automotivelinux.org>
Reviewed-by: Jan-Simon Moeller <jsmoeller@linuxfoundation.org>
meta-agl/recipes-ivi/packagegroups/packagegroup-agl-ivi-navi-lbs.bb
meta-agl/recipes-navigation/geoclue/files/org.freedesktop.GeoClue2.Client.conf [new file with mode: 0644]
meta-agl/recipes-navigation/geoclue/geoclue_%.bbappend [new file with mode: 0644]

diff --git a/meta-agl/recipes-navigation/geoclue/files/org.freedesktop.GeoClue2.Client.conf b/meta-agl/recipes-navigation/geoclue/files/org.freedesktop.GeoClue2.Client.conf
new file mode 100644 (file)
index 0000000..a7486d0
--- /dev/null
@@ -0,0 +1,8 @@
+<!DOCTYPE busconfig PUBLIC
+ "-//freedesktop//DTD D-BUS Bus Configuration 1.0//EN"
+ "http://www.freedesktop.org/standards/dbus/1.0/busconfig.dtd">
+<busconfig>
+  <policy user="root">
+    <allow receive_type="signal" receive_interface="org.freedesktop.GeoClue2.Client" />
+  </policy>
+</busconfig>
diff --git a/meta-agl/recipes-navigation/geoclue/geoclue_%.bbappend b/meta-agl/recipes-navigation/geoclue/geoclue_%.bbappend
new file mode 100644 (file)
index 0000000..1025e0e
--- /dev/null
@@ -0,0 +1,10 @@
+DEPENDS += "gobject-introspection-native"
+inherit gobject-introspection
+
+FILESEXTRAPATHS_prepend := "${THISDIR}/files:"
+SRC_URI_append = "file://org.freedesktop.GeoClue2.Client.conf"
+
+do_install_append() {
+    install -d ${D}/etc/dbus-1/system.d
+    install -m 0644 ${WORKDIR}/org.freedesktop.GeoClue2.Client.conf ${D}/etc/dbus-1/system.d/org.freedesktop.GeoClue2.Client.conf
+}