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

164.5. tlf-1.4.1

Curses contest logger with hamlib and Cabrillo output

Version 1.4.1, release 1
Shelf hamradio — Amateur-radio operation: rig control, digital modes, logging, packet and APRS, propagation, and mesh radio
Phase 41_system (System), 635 of 1047 in build order
Licence GPL-2.0-or-later
Homepage https://tlf.github.io/
Build time 0.4 SBU
Installed size 980.4 KiB in 59 files
Recipe ports/core/hamradio/tlf/kpkgbuild

About

Tlf is a contest logger for amateur radio, drawn with curses in a terminal. It checks each contact for duplicates, tracks multipliers and scores, controls the radio through hamlib, and writes the Cabrillo file a contest asks for at the end. Everything except the DX-cluster feed and the LAN link that shares one contest among several logging stations works with no network: the log is local, and the Cabrillo file is a local file.

Why it is in KDOS

The comment above voacapl and tlf in script/phases/41_system/packages.d/hamradio.txt:

HF propagation from a model rather than a guess, and a contest logger whose one deliverable, the Cabrillo file, is entirely local.

Sources

Dependencies

Depends on: autoconf, automake, libtool, pkgconf, ncurses, hamlib, glib, pcre2, argp-standalone, xmlrpc-c.

Required by: no port names it.

Patches

build.sh applies these; kpkg applies nothing by itself.

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/41_system/phase.env && kpkg install tlf'

What kpkg does

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

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/tlf
echo 'a5a4d0492d206fe67d324271c50c48801236a955c36edddc198289330cb17386  tlf-1.4.1.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/tlf
SRC=$SRC_ROOT/tlf-1.4.1
PKG=$SRC_ROOT/pkg
rm -rf "$SRC_ROOT"
mkdir -p "$SRC" "$PKG"
tar --no-same-permissions --warning=no-unknown-keyword -xf tlf-1.4.1.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:

patch -p1 -i "$PORT_SRC/hamlib4-and-musl.patch"

export LIBS="${LIBS:-} -largp"

autoreconf -fi
./configure --prefix=/usr --sysconfdir=/etc --enable-fldigi-xmlrpc
make
make DESTDIR=$PKG install

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/tlf, 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 tlf-1.4.1-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/tlf, and runs the triggers its paths call for.

Contents

Installed programs: play_vk, soundlog, tlf.

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

Short descriptions

tlf amateur radio contest keyer/logging program for Radiosport

Notes

The release is a tag archive with configure.ac and no generated configure, so build.sh runs autoreconf -fi first.