-
Notifications
You must be signed in to change notification settings - Fork 4k
Feature: Add package readsb-wiedehopf #29411
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Open
billmcilhargey
wants to merge
12
commits into
openwrt:master
Choose a base branch
from
billmcilhargey:add-readsb-wiedehopf
base: master
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Open
Changes from all commits
Commits
Show all changes
12 commits
Select commit
Hold shift + click to select a range
62f718c
readsb-wiedehopf: add package at 3.16.11
billmcilhargey 125dbb6
readsb-wiedehopf: fix feeder probe diagnostics
billmcilhargey ee29fc2
readsb-wiedehopf: correct SDR configuration and helper behavior
billmcilhargey 5d71ad3
readsb-wiedehopf: fix feeder failures and SDR selection
billmcilhargey 2ac056d
readsb-wiedehopf: check feeder updates and preserve test status
billmcilhargey df15d88
readsb-wiedehopf: isolate UCI updates and complete helper metadata
billmcilhargey aa3e58d
readsb-wiedehopf: guard pending UCI edits and refine CLI behavior
billmcilhargey a05026d
readsb-wiedehopf: add opt-in feeder companion setup
billmcilhargey b9a4935
readsb-wiedehopf: address startup and companion review feedback
billmcilhargey 00782e6
readsb-wiedehopf: keep extra arguments literal at startup
billmcilhargey f5a238c
readsb-wiedehopf: preserve probe and cleanup failure semantics
billmcilhargey 5cbce77
readsb-wiedehopf: normalize netcat failures and guard empty pins
billmcilhargey File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Some comments aren't visible on the classic Files Changed page.
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,174 @@ | ||
| # SPDX-License-Identifier: GPL-2.0-only | ||
| # | ||
| # Copyright (C) 2026 OpenWrt.org | ||
| # | ||
| # This is free software, licensed under the GNU General Public License v2. | ||
| # See /LICENSE for more information. | ||
|
|
||
| include $(TOPDIR)/rules.mk | ||
|
|
||
| PKG_NAME:=readsb-wiedehopf | ||
| PKG_VERSION:=3.16.11 | ||
| PKG_RELEASE:=1 | ||
| PKG_SOURCE:=readsb-$(PKG_VERSION).tar.gz | ||
| PKG_SOURCE_URL:=https://codeload.github.com/wiedehopf/readsb/tar.gz/v$(PKG_VERSION)? | ||
| PKG_HASH:=ac0488a2deadd20b373a56928b7d297b5e9262566dd84ec9c72cffaedff2cc78 | ||
|
|
||
| PKG_BUILD_DIR:=$(BUILD_DIR)/readsb-$(PKG_VERSION) | ||
|
|
||
| PKG_LICENSE:=GPL-3.0-or-later BSD-3-Clause GPL-2.0-only | ||
| PKG_LICENSE_FILES:=LICENSE COPYING | ||
|
|
||
| PKG_MAINTAINER:=Dr Bill Mcilhargey <contributor@mcilhargey.com> | ||
|
|
||
| PKG_BUILD_DEPENDS:=!USE_GLIBC:argp-standalone | ||
| PKG_BUILD_PARALLEL:=1 | ||
| PKG_BUILD_FLAGS:=gc-sections lto | ||
| # Upstream 3.16.11 supplies _FORTIFY_SOURCE=2 before OPTIMIZE. | ||
| # Suppress OpenWrt's extra definition to avoid a -Werror redefinition; | ||
| # upstream fortification remains enabled. Recheck on upstream updates. | ||
| PKG_FORTIFY_SOURCE:=0 | ||
|
billmcilhargey marked this conversation as resolved.
|
||
|
|
||
| include $(INCLUDE_DIR)/package.mk | ||
|
|
||
| define Package/readsb-wiedehopf/default | ||
| SECTION:=utils | ||
| CATEGORY:=Utilities | ||
| TITLE:=Mode-S/ADSB/TIS decoder (wiedehopf fork) | ||
| URL:=https://github.com/wiedehopf/readsb | ||
| # Upstream creates viewadsb by copying the fully linked readsb binary. | ||
| DEPENDS:=+libncurses +librtlsdr +libzstd +zlib | ||
| endef | ||
|
billmcilhargey marked this conversation as resolved.
|
||
|
|
||
| define Package/readsb-wiedehopf | ||
| $(call Package/readsb-wiedehopf/default) | ||
| TITLE+= (readsb) | ||
| DEPENDS+=+jsonfilter +ca-bundle +uclient-fetch | ||
| PROVIDES:=readsb | ||
| CONFLICTS:=readsb | ||
| endef | ||
|
|
||
| define Package/readsb-wiedehopf/description | ||
| readsb is a Mode-S/ADSB/TIS decoder for RTL-SDR and other SDR devices. | ||
| This is the wiedehopf fork (https://github.com/wiedehopf/readsb), an | ||
| actively maintained alternative to the `readsb` package (which tracks | ||
| the now-archived Mictronics upstream). It adds many features used by | ||
| aggregators (BeastReduce, UUIDs, globe history, heatmaps, JSON/binCraft | ||
| outputs, http API) and is the upstream used by tar1090, adsb.lol, | ||
| airplanes.live, adsb.fi and similar projects. | ||
|
|
||
| Installs /usr/bin/readsb and conflicts with the readsb package; either | ||
| can satisfy a `readsb` dependency. | ||
|
|
||
| Interactive setup is provided by /usr/sbin/readsb-setup (full guided | ||
| first-boot configuration: lat/lon, station UUID, aggregator feeders, | ||
| service reload). Per-area CLIs: readsb-uuid, readsb-geoip, readsb-feeder. | ||
|
|
||
| Optional companion packages (not pulled in automatically): | ||
| * resolveip -- improves per-host socket attribution in readsb-feeder | ||
| when multiple feeders share a remote port. Without it, successful | ||
| TCP probes still confirm reachability; inconclusive checks report | ||
| SKIP / DEGRADED instead of claiming the feeder is unreachable. | ||
|
|
||
| See https://github.com/openwrt/packages/blob/master/utils/readsb-wiedehopf/README.md | ||
| for the full configuration reference, aggregator preset list, and | ||
| operational notes. | ||
| endef | ||
|
|
||
| define Package/viewadsb-wiedehopf | ||
| $(call Package/readsb-wiedehopf/default) | ||
| TITLE+= (viewadsb) | ||
| PROVIDES:=viewadsb | ||
| CONFLICTS:=viewadsb | ||
| endef | ||
|
|
||
| define Package/viewadsb-wiedehopf/description | ||
| Console viewer companion to readsb (wiedehopf fork). Connects to a | ||
| running readsb instance over the network and displays an interactive | ||
| list of received aircraft. | ||
| endef | ||
|
|
||
| MAKE_FLAGS += \ | ||
| BLADERF=no \ | ||
| HACKRF=no \ | ||
| HAVE_BIASTEE=yes \ | ||
| PLUTOSDR=no \ | ||
| SOAPYSDR=no \ | ||
| OPTIMIZE="$(TARGET_CFLAGS)" \ | ||
| RTLSDR=yes \ | ||
| UNAME="Linux" | ||
|
|
||
| TARGET_LDFLAGS += \ | ||
| $(if $(CONFIG_USE_GLIBC),,-largp) \ | ||
| -lncurses \ | ||
| -Wl,--as-needed | ||
|
billmcilhargey marked this conversation as resolved.
|
||
|
|
||
| define Package/readsb-wiedehopf/conffiles | ||
| /etc/config/readsb | ||
| endef | ||
|
|
||
| define Package/readsb-wiedehopf/install | ||
| $(INSTALL_DIR) $(1)/etc/config | ||
| $(INSTALL_CONF) ./files/readsb.config $(1)/etc/config/readsb | ||
| $(INSTALL_DIR) $(1)/etc/init.d | ||
| $(INSTALL_BIN) ./files/readsb.init $(1)/etc/init.d/readsb | ||
| $(INSTALL_DIR) $(1)/etc/hotplug.d/usb | ||
| $(INSTALL_BIN) ./files/readsb.hotplug $(1)/etc/hotplug.d/usb/30-readsb | ||
| $(INSTALL_DIR) $(1)/usr/lib/readsb | ||
| $(INSTALL_DATA) ./files/readsb.functions.sh $(1)/usr/lib/readsb/functions.sh | ||
| $(INSTALL_DIR) $(1)/usr/sbin | ||
| $(INSTALL_BIN) ./files/readsb-geoip $(1)/usr/sbin/readsb-geoip | ||
| $(INSTALL_BIN) ./files/readsb-uuid $(1)/usr/sbin/readsb-uuid | ||
| $(INSTALL_BIN) ./files/readsb-feeder $(1)/usr/sbin/readsb-feeder | ||
| $(INSTALL_BIN) ./files/readsb-setup $(1)/usr/sbin/readsb-setup | ||
| $(INSTALL_DIR) $(1)/usr/bin | ||
| $(INSTALL_BIN) $(PKG_BUILD_DIR)/readsb $(1)/usr/bin/readsb | ||
| endef | ||
|
|
||
| define Package/readsb-wiedehopf/postinst | ||
| #!/bin/sh | ||
| [ -n "$${IPKG_INSTROOT}" ] && exit 0 | ||
| [ "$${PKG_UPGRADE}" = "1" ] && { | ||
| /etc/init.d/readsb enabled && /etc/init.d/readsb restart | ||
| exit 0 | ||
| } | ||
|
billmcilhargey marked this conversation as resolved.
|
||
| /etc/init.d/readsb enable | ||
| /etc/init.d/readsb start | ||
| # Print the orientation banner so `opkg install` shows it on the console. | ||
| echo | ||
| echo "readsb-wiedehopf installed and started." | ||
| /usr/sbin/readsb-setup --help | ||
| logger -t readsb -p daemon.notice -- "installed; run 'readsb-setup' to configure (location, UUID, feeders)" | ||
| exit 0 | ||
| endef | ||
|
|
||
| define Package/readsb-wiedehopf/prerm | ||
| #!/bin/sh | ||
| # Stop and disable readsb before opkg removes /etc/init.d/readsb. | ||
| # Both calls are best-effort: a stopped daemon, missing procd | ||
| # registration or ubus timeout must not surface a non-zero exit OR | ||
| # stream chatter to opkg. Some builds emit "Command failed: Not found" | ||
| # to stdout instead of stderr, so redirect both streams. | ||
| [ -n "$${IPKG_INSTROOT}" ] && exit 0 | ||
| [ "$${PKG_UPGRADE}" = "1" ] && exit 0 | ||
| [ -x /etc/init.d/readsb ] && { | ||
| /etc/init.d/readsb stop >/dev/null 2>&1 | ||
| /etc/init.d/readsb disable >/dev/null 2>&1 | ||
| } | ||
| exit 0 | ||
| endef | ||
|
|
||
| define Package/readsb-wiedehopf/postrm | ||
| #!/bin/sh | ||
| [ -n "$${IPKG_INSTROOT}" ] && exit 0 | ||
| rm -rf /var/run/readsb | ||
| exit 0 | ||
| endef | ||
|
|
||
| define Package/viewadsb-wiedehopf/install | ||
| $(INSTALL_DIR) $(1)/usr/bin | ||
| $(INSTALL_BIN) $(PKG_BUILD_DIR)/viewadsb $(1)/usr/bin/viewadsb | ||
| endef | ||
|
|
||
| $(eval $(call BuildPackage,readsb-wiedehopf)) | ||
| $(eval $(call BuildPackage,viewadsb-wiedehopf)) | ||
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.