Skip to the text
KDOS
Menu
kdos.dev KDOS from Scratch KDOS 0.2 · 4dd4a10 · 2026-11-30 Contents Index

342.11. xastir-2.2.4

APRS mapping and messaging over TNCs, AX.25 and APRS-IS (Motif, under Xwayland)

Version 2.2.4, release 1
Shelf hamradio — Amateur-radio operation: rig control, digital modes, logging, packet and APRS, propagation, and mesh radio
Phase 44_apps (Applications), 253 of 422 in build order
Licence GPL-2.0-or-later
Homepage https://xastir.org/
Build time 1.6 SBU
Installed size 15.6 MiB in 243 files
Recipe ports/core/hamradio/xastir/kpkgbuild

About

Xastir is an APRS client: it maps stations, objects, weather and messages received from a TNC, from direwolf or from the APRS-IS network, and sends position reports and messages. It is a Motif program, so it runs under Xwayland (principles).

Sources

Dependencies

Depends on: autoconf, automake, libtool, pkgconf, motif, libX11, libXext, libXt, libXpm, curl, cjson, proj, shapelib, pcre2, librsvg, graphicsmagick, libgeotiff, libtiff, db, gpsman.

Required by: no port names it.

Optional, off in KDOS

These switches in build.sh turn off a feature whose library is a port here. The recipe may turn each off on purpose, or because the library was not yet a port when the recipe was written; this list cannot tell which.

Installation

From the repository root, inside the build container, this is the line kdosbuild runs for the port:

script/chroot/exec.sh bash -c 'source script/phases/44_apps/phase.env && kpkg install xastir'

What kpkg does

kpkg runs these steps, in this order, as root inside the chroot. The port directory is /ports/core/hamradio/xastir.

1. Verify every declared source. Each file a sha256 = line names, found in the port directory or in /var/cache/kpkg/sources, must hash to its line; a mismatch stops the build before anything is unpacked.

cd /ports/core/hamradio/xastir
echo 'cc521b8590bacc8d1f1f99a6596660c46174f7c809d6ecbbbf4b8dfa57a68419  xastir-2.2.4.tar.gz' | sha256sum -c -

2. Unpack. The work directory is emptied and the first source is unpacked into $SRC with its top directory stripped; any later tarball lands unstripped beside it in $SRC_ROOT, and a file that is not a tarball is copied into $SRC.

SRC_ROOT=/var/cache/kpkg/work/xastir
SRC=$SRC_ROOT/xastir-2.2.4
PKG=$SRC_ROOT/pkg
rm -rf "$SRC_ROOT"
mkdir -p "$SRC" "$PKG"
tar --no-same-permissions --warning=no-unknown-keyword -xf xastir-2.2.4.tar.gz -C "$SRC" --strip-components=1

Every config.guess and config.sub older than automake’s is then replaced with automake’s, so a configure script recognises the musl target.

3. Build. build.sh is sourced in a subshell under set -e, from $SRC, with name, version, release and the five paths PKGNAME, PORT_SRC, SRC_ROOT, SRC and PKG set as shell variables. Its body, verbatim:

autoreconf -fi
./configure \
	--prefix=/usr \
	--sysconfdir=/etc \
	--with-libcurl \
	--with-nominatim \
	--with-libproj \
	--with-shapelib \
	--without-ax25 \
	--with-gpsman \
	--without-festival \
	--with-geotiff \
	--with-map-cache \
	--with-graphicsmagick \
	--without-imagemagick \
	--without-postgis \
	--without-mysql \
	--without-libgc
grep -q '^#define HAVE_LIBSHP 1' config.h
grep -q '^#define HAVE_PROJ 1' config.h
grep -q '^#define HAVE_LIBCURL 1' config.h
grep -q '^#define HAVE_CJSON 1' config.h
grep -q '^#define HAVE_GRAPHICSMAGICK 1' config.h
grep -q '^#define HAVE_GPSMAN 1' config.h
grep -q '^#define HAVE_LIBGEOTIFF 1' config.h
grep -q '^#define USE_MAP_CACHE 1' config.h
make
make DESTDIR=$PKG install

for s in 48 64 128; do
	install -d "$PKG/usr/share/icons/hicolor/${s}x${s}/apps"
	rsvg-convert -w $s -h $s symbols/icon.svg \
		-o "$PKG/usr/share/icons/hicolor/${s}x${s}/apps/xastir.png"
done
install -d "$PKG/usr/share/applications"
cat > "$PKG/usr/share/applications/xastir.desktop" <<'DESKTOP'
[Desktop Entry]
Type=Application
Name=Xastir
GenericName=APRS Client
Comment=Map APRS stations, weather and objects from a TNC, Dire Wolf or APRS-IS
Exec=xastir
Icon=xastir
Terminal=false
StartupWMClass=Xastir
Categories=Network;HamRadio;
Keywords=ham;radio;aprs;map;tnc;ax25;gps;weather;
DESKTOP
chmod 644 "$PKG/usr/share/applications/xastir.desktop"

test -x "$PKG/usr/bin/xastir"

The switches, and why each is set:

The common switches of each build system are explained in the Flag glossary.

4. Package. kpkg removes libtool archives, the info directory index, mimeinfo.cache and every fonts.dir from $PKG, copies the source’s licence files into /usr/share/licenses/xastir, prunes what the image does not ship, lints the tree and rolls it reproducibly:

tar --sort=name --format=gnu --numeric-owner --owner=0 --group=0 \
    --mtime=@$SOURCE_DATE_EPOCH \
    --use-compress-program='xz -9 -T0 --block-size=32MiB --no-adjust' \
    -cf xastir-2.2.4-1.tar.xz -C "$PKG" .

5. Adopt. kpkgadd installs the package’s files over the root, refusing a path another package owns, records the file list in /var/lib/kpkg/db/xastir, and runs the triggers its paths call for.

Contents

Installed programs: callpass, testdbfawk, xastir, xastir_udp_client.

Installed directories: /usr/share/doc/xastir, /usr/share/licenses/xastir, /usr/share/xastir.

Short descriptions

callpass generate Pass-code associated with your callsign for authentication via xastir to APRS(tm) network.
testdbfawk scan dbfawk files for matching dbf file for map rendering in xastir
xastir graphical application that interfaces HAM radio and APRS(tm) internet access to real-time mapping software.
xastir_udp_client send simple messages to xastir for APRS(tm) network.

Notes

The tag archive carries no configure script, so build.sh starts with autoreconf -fi.

Most of the --with- switches above do not fail the configure when their library is missing: they quietly build an Xastir without the feature. The grep -q lines after the configure read config.h and stop the build unless shapelib, proj, curl, cJSON, GraphicsMagick, GPSMan, GeoTIFF and the map cache were all found.

Xastir ships no desktop entry, so build.sh writes one and rasterises symbols/icon.svg into hicolor PNGs. Its Xt application class is Xastir, which is the X11 window class Xwayland reports and so the entry’s StartupWMClass.