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

163.1. rtl-433-25.12

Decodes 433/868 MHz transmissions from weather stations, sensors and tyre monitors

Version 25.12, release 1
Shelf sdr — SDR DSP libraries, GNU Radio and its blocks, receivers, decoders and signal analysis
Phase 41_system (System), 913 of 1047 in build order
Licence GPL-2.0-or-later
Homepage https://github.com/merbanan/rtl_433
Build time 1.0 SBU
Installed size 1.2 MiB in 57 files
Recipe ports/core/sdr/rtl-433/kpkgbuild

About

rtl_433 is a receiver and decoder for the low-power radio traffic on the 433.92, 868, 315, 345 and 915 MHz ISM bands: weather stations, tyre pressure monitors, door and motion sensors, remote controls and utility meters, with a decoder for each device protocol it knows. It reads samples from an RTL-SDR stick directly, or from any other radio with a module for soapysdr, and prints what it decodes or sends it on as JSON, MQTT or InfluxDB data. The example configuration files it ships land in /etc/rtl_433/.

Why it is in KDOS

The comment above it in script/phases/41_system/packages.d/sdr.txt:

What is actually on 433 and 868 MHz: weather stations, tyre monitors, door sensors: hardware people already own and cannot otherwise read.

Sources

Dependencies

Depends on: cmake, rtl-sdr, soapysdr, openssl, libusb.

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 rtl-433'

What kpkg does

kpkg runs these steps, in this order, as root inside the chroot. The port directory is /ports/core/sdr/rtl-433.

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/sdr/rtl-433
echo 'd283ec7a41a02d398e8918b20b65df3bf684cf4478371830662004005dadcdd2  rtl-433-25.12.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/rtl-433
SRC=$SRC_ROOT/rtl-433-25.12
PKG=$SRC_ROOT/pkg
rm -rf "$SRC_ROOT"
mkdir -p "$SRC" "$PKG"
tar --no-same-permissions --warning=no-unknown-keyword -xf rtl-433-25.12.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/proflame2-bound.patch"
mkdir -p build && cd build
cmake .. -DCMAKE_POLICY_VERSION_MINIMUM=3.5 -DCMAKE_BUILD_TYPE=Release \
	-DCMAKE_INSTALL_PREFIX=/usr -DCMAKE_INSTALL_LIBDIR=lib \
	-DENABLE_RTLSDR=ON -DENABLE_SOAPYSDR=ON -DENABLE_OPENSSL=ON
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/rtl-433, 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 rtl-433-25.12-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/rtl-433, and runs the triggers its paths call for.

Contents

Installed programs: rtl_433.

Installed directories: /etc/rtl_433, /usr/share/licenses/rtl-433.

Short descriptions

rtl_433 Generic RF data receiver and decoder for ISM band devices using RTL-SDR and SoapySDR.

Notes

rtl_433 links libusb itself whenever CMake finds it, to print readable USB error messages, so libusb is in depends in its own right rather than arriving through rtl-sdr.