purism-librem5: replace gpsd with gnss-share (MR 2736)
gnss-share is a location provider I wrote for the librem 5's GPS module, and can be used directly from geoclue. It allows saving and loading A-GPS data (manual steps, for now) to facilitate faster fixes. I'm not completely happy with having to use sed to patch geoclue's conf, but: 1) I really only need to change 1 line 2) there's a non-zero chance geoclue's conf will be changed in aports if new permissions are required for things later So carrying the config in the device package and using "replaces=geoclue" (like the postmarketos-* stuff) didn't seem like a maintainable solution long term since the geoclue conf might gain needed fixes/features that might make a copy in the device package outdated...
This commit is contained in:
parent
51fce1f111
commit
e2e2f42022
3 changed files with 8 additions and 6 deletions
|
@ -3,7 +3,7 @@
|
|||
# Co-Maintainer: Bhushan Shah <bshah@kde.org>
|
||||
pkgname=device-purism-librem5
|
||||
pkgdesc="Purism Librem 5 Phone"
|
||||
pkgver=1.25
|
||||
pkgver=1.26
|
||||
pkgrel=0
|
||||
_confver=41
|
||||
_purismrel=1
|
||||
|
@ -15,7 +15,7 @@ arch="aarch64"
|
|||
options="!check !archcheck"
|
||||
depends="
|
||||
alsa-ucm-conf
|
||||
gpsd
|
||||
gnss-share
|
||||
iw
|
||||
linux-purism-librem5
|
||||
mesa-dri-gallium
|
||||
|
@ -49,7 +49,7 @@ subpackages="
|
|||
$pkgname-smartcard
|
||||
$pkgname-nonfree-firmware:nonfree_firmware
|
||||
"
|
||||
install="$pkgname.post-install"
|
||||
install="$pkgname.post-install $pkgname.post-upgrade"
|
||||
|
||||
builddir="$srcdir/librem5-base-pureos-$_purismver"
|
||||
|
||||
|
|
|
@ -1,6 +1,7 @@
|
|||
#!/bin/sh
|
||||
|
||||
# Enable GPS support
|
||||
rc-update add gpsd default
|
||||
sed -i 's/DEVICES=\"/DEVICES=\"\/dev\/gnss0/' /etc/conf.d/gpsd
|
||||
sed -i 's/GPSD_OPTIONS=\"/GPSD_OPTIONS=\"-s 9600/' /etc/conf.d/gpsd
|
||||
sed -i 's|# nmea-socket=/var/run/gps-share.sock|nmea-socket=/var/run/gnss-share.sock|' /etc/geoclue/geoclue.conf
|
||||
|
||||
rc-update -q del gpsd
|
||||
rc-update -q add gnss-share
|
||||
|
|
|
@ -0,0 +1 @@
|
|||
device-purism-librem5.post-install
|
Loading…
Reference in a new issue