imsd-ofonod presents imsd on the system bus as an oFono modem — Manager at /, Modem + VoiceCallManager at /imsd, a VoiceCall object per call — which is what GNOME Calls' bundled ofono provider drives; Calls, Phosh and GNOME Shell run unmodified. org.gnome.Calls is not a seam a third party can provide (Calls exports it, nothing feeds it), and Calls' provider plugins link private headers, so org.ofono is the only D-Bus contract available. Pure GDBus translation of net.catcrafts.IMS1, no core, like imsd-dialerd. Packaged as the opt-in imsd-ofono subpackage: the daemon, its unit (Conflicts=ofono.service), the system-bus policy and a gschema override that points Calls at the ofono provider instead of mm (the ModemManager origin would offer the modem's CS voice path, which carries no audio on these phones). The policy grants root send_destination=org.ofono: under dbus-broker a broadcast is checked against the sender's send policy for every name the receiver owns, so without it imsd's call signals never reach the daemon. Verified on a Fairphone 6 with GNOME Calls 50.0: outgoing and incoming calls with audio both ways, answered and hung up through org.gnome.Calls.Call. Known Calls-side gap documented in the README: after the VoiceCallManager interface is withdrawn and re-added, Calls keeps the old origin's CallAdded handler and eventually crashes.
32 lines
1.8 KiB
Shell
Executable file
32 lines
1.8 KiB
Shell
Executable file
#!/bin/sh
|
|
# SPDX-License-Identifier: GPL-3.0-only
|
|
# SPDX-FileCopyrightText: Copyright (C) 2026 Catcrafts®
|
|
# make-bin-tarball.sh — bundle the cross-compiled imsd binary + runtime files
|
|
# into the source tarball APKBUILD.binary consumes. Run from the repo root
|
|
# after a cross build; output lands in the current directory.
|
|
set -eu
|
|
|
|
VER="${1:-$(sed -n 's/.*char\* Version = "\(.*\)".*/\1/p' implementations/main.cpp)}"
|
|
[ -n "$VER" ] || { echo "could not determine version — pass it as \$1" >&2; exit 1; }
|
|
BIN=$(ls -t bin/imsd-aarch64-*/imsd 2>/dev/null | head -n1)
|
|
MEDIA=$(ls -t bin/imsd-media-aarch64-*/imsd-media 2>/dev/null | head -n1)
|
|
DIALERD=$(ls -t bin/imsd-dialerd-aarch64-*/imsd-dialerd 2>/dev/null | head -n1)
|
|
OFONOD=$(ls -t bin/imsd-ofonod-aarch64-*/imsd-ofonod 2>/dev/null | head -n1)
|
|
[ -n "$BIN" ] || { echo "no aarch64 imsd build found — cross-compile first" >&2; exit 1; }
|
|
[ -n "$MEDIA" ] || { echo "no aarch64 imsd-media build — cross-compile with --product=media" >&2; exit 1; }
|
|
[ -n "$DIALERD" ] || { echo "no aarch64 imsd-dialerd build — cross-compile with --product=dialerd" >&2; exit 1; }
|
|
[ -n "$OFONOD" ] || { echo "no aarch64 imsd-ofonod build — cross-compile with --product=ofonod" >&2; exit 1; }
|
|
|
|
stage=$(mktemp -d)
|
|
trap 'rm -rf "$stage"' EXIT
|
|
mkdir "$stage/imsd-$VER"
|
|
cp "$BIN" "$stage/imsd-$VER/imsd"
|
|
cp "$MEDIA" "$stage/imsd-$VER/imsd-media"
|
|
cp "$DIALERD" "$stage/imsd-$VER/imsd-dialerd"
|
|
cp "$OFONOD" "$stage/imsd-$VER/imsd-ofonod"
|
|
cp packaging/ims-pdn-up.sh packaging/imsd.service \
|
|
packaging/imsd-dialerd.desktop packaging/imsd-ofonod.service \
|
|
packaging/org.ofono.conf packaging/90_imsd-ofono.gschema.override \
|
|
packaging/net.catcrafts.IMS1.conf "$stage/imsd-$VER/"
|
|
tar -C "$stage" -czf "imsd-$VER.tar.gz" "imsd-$VER"
|
|
echo "wrote imsd-$VER.tar.gz ($(du -h "imsd-$VER.tar.gz" | cut -f1))"
|