main/postmarketos-ui-plasma-mobile: switch to modemmanager (MR 2730)

Upstream has switched from ofono to modemmanager since Plasma 5.23 and
Plasma Mobile Gear 21.12. Since the latter has just been released it's
now time to switch our images too.

The modemmanager service will be enabled to start on default and for
existing installations the .post-upgrade script will disable and stop
the existing ofono service and enable and start modemmanager instead.
This commit is contained in:
Bart Ribbers 2021-12-07 09:27:39 +01:00
parent 51dfc20336
commit 64e90a02d2
No known key found for this signature in database
GPG key ID: 0BF4C1B5988C50D8
2 changed files with 14 additions and 4 deletions

View file

@ -1,8 +1,8 @@
# Reference: https://postmarketos.org/uipkg
# Maintainer: Bart Ribbers <bribbers@disroot.org>
pkgname=postmarketos-ui-plasma-mobile
pkgver=3.3
pkgrel=7
pkgver=3.4
pkgrel=0
pkgdesc="(Wayland) Mobile variant of KDE Plasma (does not run without hardware acceleration, allows only numeric passwords!)"
url="https://wiki.postmarketos.org/wiki/Plasma_Mobile"
arch="noarch !armhf !x86" # armhf: pmaports#75, x86: aports#11807
@ -18,6 +18,7 @@ depends="
kscreen
kwallet-pam
kwayland-integration
modemmanager
plasma-phone-components
polkit-kde-agent-1
postmarketos-base-ui

View file

@ -2,13 +2,22 @@
rc-update add tinydm default
rc-update add urfkill default
rc-update add ofono default
rc-update add ofono-auto-enable default
rc-update add iio-sensor-proxy default
rc-update add bluetooth default
rc-update add hfd-service default
rc-update add networkmanager default
rc-update add modemmanager default
# Migrate from the old ofono setup
if rc-update del ofono default; then
rc-update del ofono-auto-enable default
rc-service stop ofono
rc-service stop ofono-auto-enable
rc-service start modemmanager
fi
tinydm-set-session -s /usr/share/wayland-sessions/plasma-mobile.desktop
glib-compile-schemas /usr/share/glib-2.0/schemas