Add xara, a VARA-compatible modem, alongside VARA under Wine

- compile.conf: build xara 0.1.3 with cargo, without the "registered"
  feature; stage-install xara, xara-monitor, man pages, the user
  service (pointed at ~/.local/bin) and the CM108/AIOC PTT udev rule;
  copy the config template to ~/.config/xara/xara.conf if it's not
  there. The service isn't enabled: it needs a callsign, and shares
  port 8300 with VARA
- packages.conf: alsa-lib and libpulse; rust only when there's no cargo
  yet, since it conflicts with rustup
- hampackremove: stop and disable the xara service, keep the user's
  settings and say where they are
- README: how to set up xara and use it with Pat
- tests for the xara build, the rust/cargo check and removal

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
David Young
2026-11-08 10:16:08 -07:00
co-authored by Claude Opus 5.5
parent 6e100ba7d2
commit cdba8b45e7
8 changed files with 158 additions and 0 deletions
+10
View File
@@ -91,3 +91,13 @@ remove() {
[ -e "$FAKE_PACMAN_DB/fldigi" ]
[ -d "$SIBLING" ]
}
@test "stops xara's user service and keeps the user's xara settings" {
mkdir -p "$HOME/.config/systemd/user" "$HOME/.config/xara"
touch "$HOME/.config/systemd/user/xara.service" "$HOME/.config/xara/xara.conf"
remove
[ "$status" -eq 0 ]
grep -qx "systemctl --user disable --now xara" "$STUB_LOG"
[ -f "$HOME/.config/xara/xara.conf" ]
[[ "$output" == *"xara settings are still in ~/.config/xara"* ]]
}