community/geoclue: add config for phosh

This patch is merged upstream, but is not yet in a release:
        https://gitlab.freedesktop.org/geoclue/geoclue/-/merge_requests/82

It's required for Phosh to be able to use geoclue for location.
This commit is contained in:
Clayton Craft 2021-04-05 10:25:49 -07:00 committed by Leo
parent 51105d5fc7
commit d23b02bcd7
2 changed files with 51 additions and 3 deletions

View File

@ -0,0 +1,44 @@
From 176e5e8fe546b3339fdbc53e69fc918d5e0c9bad Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Guido=20G=C3=BCnther?= <agx@sigxcpu.org>
Date: Sun, 28 Feb 2021 16:08:31 +0100
Subject: [PATCH] config: Add phosh
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
This allows geoclue to use phosh (https://source.puri.sm/Librem5/phosh)
as agent.
Signed-off-by: Guido Günther <agx@sigxcpu.org>
---
data/geoclue.conf.in | 7 ++++++-
1 file changed, 6 insertions(+), 1 deletion(-)
diff --git a/data/geoclue.conf.in b/data/geoclue.conf.in
index 5478bc2..b4326e1 100644
--- a/data/geoclue.conf.in
+++ b/data/geoclue.conf.in
@@ -10,7 +10,7 @@
# Whitelist of desktop IDs (without .desktop part) of all agents we recognise,
# separated by a ';'.
-whitelist=@demo_agent@gnome-shell;io.elementary.desktop.agent-geoclue2
+whitelist=@demo_agent@gnome-shell;io.elementary.desktop.agent-geoclue2;sm.puri.Phosh
# Network NMEA source configuration options
[network-nmea]
@@ -122,6 +122,11 @@ allowed=true
system=true
users=
+[sm.puri.Phosh]
+allowed=true
+system=true
+users=
+
[epiphany]
allowed=true
system=false
--
GitLab

View File

@ -2,7 +2,7 @@
# Maintainer: Rasmus Thomsen <oss@cogitri.dev>
pkgname=geoclue
pkgver=2.5.7
pkgrel=0
pkgrel=1
pkgdesc="dbus geolocation service"
url="https://www.freedesktop.org/wiki/Software/GeoClue/"
arch="all"
@ -18,7 +18,10 @@ makedepends="
"
subpackages="$pkgname-dev $pkgname-doc"
install="$pkgname.pre-install"
source="https://gitlab.freedesktop.org/geoclue/geoclue/-/archive/$pkgver/geoclue-$pkgver.tar.bz2"
source="
https://gitlab.freedesktop.org/geoclue/geoclue/-/archive/$pkgver/geoclue-$pkgver.tar.bz2
0001-config-Add-phosh.patch
"
case "$CARCH" in
s390x|mips64) _arch_opts="-D3g-source=false -Dcdma-source=false -Dmodem-gps-source=false"
@ -47,4 +50,5 @@ package() {
DESTDIR="$pkgdir" meson install --no-rebuild -C build
}
sha512sums="16ec15afa41910b7d993a9918dd3c068dea3f6c5be922b7ac772493cd6aabb0cad3fe2206b82c1a008781c3f1ddd8f4afd8f70b5d497920bea8ed5e473f0fd1f geoclue-2.5.7.tar.bz2"
sha512sums="16ec15afa41910b7d993a9918dd3c068dea3f6c5be922b7ac772493cd6aabb0cad3fe2206b82c1a008781c3f1ddd8f4afd8f70b5d497920bea8ed5e473f0fd1f geoclue-2.5.7.tar.bz2
26b9a513d5ab47ab1495ddac4238284542c87429ef276265a33596d0e2c74934504418b288621c19199a67a6b13e3bbff000f35886128b78187ec3fd736d47c8 0001-config-Add-phosh.patch"