From 5f68d244520c942f35cc780f61cee970ac80e60d Mon Sep 17 00:00:00 2001 From: Alistair Francis Date: Fri, 26 Jul 2024 22:18:29 +1000 Subject: [PATCH] temp/81voltd: new aport (MR 5387) Add version 1.0.0 of 81voltd [1]. This is based on discussions at [2]. 81voltd gets VoLTE working on some SDM845 based devices. I tested this on my Pixel 3a and it works with Optus but not Telstra (a more complicated VoLTE network). I'm putting this for pmOS temp as hopefully the long term solution is to upstream this to ModemManager. For now though this gets things working. 1: https://gitlab.com/flamingradian/81voltd/ 2: https://gitlab.com/postmarketOS/pmaports/-/issues/1878#note_1826692945 Signed-off-by: Alistair Francis --- temp/81voltd/81voltd.initd | 13 +++++++++++++ temp/81voltd/APKBUILD | 37 +++++++++++++++++++++++++++++++++++++ 2 files changed, 50 insertions(+) create mode 100644 temp/81voltd/81voltd.initd create mode 100644 temp/81voltd/APKBUILD diff --git a/temp/81voltd/81voltd.initd b/temp/81voltd/81voltd.initd new file mode 100644 index 000000000..64177f7e9 --- /dev/null +++ b/temp/81voltd/81voltd.initd @@ -0,0 +1,13 @@ +#!/sbin/openrc-run +name="81voltd" +description="Server-side implementation of the QMI IMS Data service" + +command="/usr/bin/81voltd" +command_args="" +command_background=true + +pidfile="/run/${RC_SVCNAME}.pid" + +depend() { + need modemmanager +} diff --git a/temp/81voltd/APKBUILD b/temp/81voltd/APKBUILD new file mode 100644 index 000000000..4fd8838c7 --- /dev/null +++ b/temp/81voltd/APKBUILD @@ -0,0 +1,37 @@ +pkgname=81voltd +pkgver=1.0.0 +pkgrel=0 +pkgdesc="Server-side implementation of the QMI IMS Data service" +url="https://gitlab.com/flamingradian/81voltd" +arch="all" +license="GPL-2.0-or-later" +makedepends=" + modemmanager-dev + qrtr-dev + meson + " +source=" + $pkgname-$pkgver.tar.gz::https://gitlab.com/flamingradian/$pkgname/-/archive/v$pkgver/$pkgname-v$pkgver.tar.gz + 81voltd.initd + " +builddir="$srcdir/$pkgname-v$pkgver" + +# There are no checks to run +options="!check" + +build() { + abuild-meson . output + meson compile -C output +} + +package() { + DESTDIR="$pkgdir" meson install --no-rebuild -C output + + install -Dm755 "$builddir"/output/81voltd "$pkgdir"/usr/bin/81voltd + install -Dm755 "$srcdir"/81voltd.initd "$pkgdir"/etc/init.d/81voltd +} + +sha512sums=" +460ad150d7f43303147d22d4552ee5fc90a6ba0cda5606d29e55939de1df465f713272cfa009ab1d606fd6b140ffdb9f080f2356713cd24e7c8b3040031013fc 81voltd-1.0.0.tar.gz +73fa6f27259f3731a811216983911886e4ce5fb15664f978e99184ab88fd4444142f72b6313474e59260596a54e8e3ace7b66f10ead92159fad930b3a225b464 81voltd.initd +"