diff options
| author | root <root@alpha.trunkmasters.com> | 2026-06-04 05:48:38 -0500 |
|---|---|---|
| committer | root <root@alpha.trunkmasters.com> | 2026-06-04 05:48:38 -0500 |
| commit | bfd9c39e4712ebdb442d4ca0673061faed1e70e1 (patch) | |
| tree | 0d7a74b4463ee387f9cf9368ceb1b757f694f72a /net-wireless/dump1090 | |
| parent | f716a9fe6455d39eef01e718aae68dae61c19704 (diff) | |
| download | baldeagleos-repo-bfd9c39e4712ebdb442d4ca0673061faed1e70e1.tar.gz baldeagleos-repo-bfd9c39e4712ebdb442d4ca0673061faed1e70e1.tar.xz baldeagleos-repo-bfd9c39e4712ebdb442d4ca0673061faed1e70e1.zip | |
Revert "Adding metadata"
This reverts commit f716a9fe6455d39eef01e718aae68dae61c19704.
Diffstat (limited to 'net-wireless/dump1090')
| -rw-r--r-- | net-wireless/dump1090/Manifest | 2 | ||||
| -rw-r--r-- | net-wireless/dump1090/dump1090-10.2.ebuild | 117 | ||||
| -rw-r--r-- | net-wireless/dump1090/dump1090-11.0-r1.ebuild | 117 | ||||
| -rw-r--r-- | net-wireless/dump1090/dump1090-9999.ebuild | 120 | ||||
| -rw-r--r-- | net-wireless/dump1090/files/dump1090-10.0.1-gcc15.patch | 45 | ||||
| -rw-r--r-- | net-wireless/dump1090/files/dump1090-5.0.confd | 20 | ||||
| -rw-r--r-- | net-wireless/dump1090/files/dump1090-5.0.initd | 15 | ||||
| -rw-r--r-- | net-wireless/dump1090/files/dump1090-6.1-libdir.patch | 16 | ||||
| -rw-r--r-- | net-wireless/dump1090/files/tmpfilesd-dump1090-5.0.conf | 4 | ||||
| -rw-r--r-- | net-wireless/dump1090/metadata.xml | 21 |
10 files changed, 477 insertions, 0 deletions
diff --git a/net-wireless/dump1090/Manifest b/net-wireless/dump1090/Manifest new file mode 100644 index 000000000000..c7bd79f9e634 --- /dev/null +++ b/net-wireless/dump1090/Manifest @@ -0,0 +1,2 @@ +DIST dump1090-10.2.tar.gz 5777409 BLAKE2B 865f44e31d5626a2a0d24e247936119911ff02e852ebbdb98453d5f5ac051445d7c9794bdfd2afe15794c91440d33fd031c31800901d5dced46135b0a284c04c SHA512 367958e624447b9ae9d5ab523c68662c94343579f644f5ea8382c3822c973622085634c76ddd2dec6d0f910cd4f18880b6e0d62b3af9899bee4adfad2e2a18e5 +DIST dump1090-11.0.tar.gz 5870954 BLAKE2B 9c0837e6ede3b8344a7f6a7c3b7d5755de630e3bddf7156d5df599c17d4fa077708c5a39d315c2c9d7ffc634ae89368897f4f10c1830a5fae1d27961e837a3ca SHA512 16acb78f2576cb07935a2611630e4462f0e8a6b7b8d62617bd9bab9ee424625af58b13fe24ae6147e4976f19750a15322116b653d7dc8b0c1bfed27d1897cda5 diff --git a/net-wireless/dump1090/dump1090-10.2.ebuild b/net-wireless/dump1090/dump1090-10.2.ebuild new file mode 100644 index 000000000000..f58f38667d3a --- /dev/null +++ b/net-wireless/dump1090/dump1090-10.2.ebuild @@ -0,0 +1,117 @@ +# Copyright 1999-2025 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=8 + +inherit tmpfiles toolchain-funcs + +DESCRIPTION="Simple Mode S decoder for RTLSDR devices" +HOMEPAGE="https://github.com/flightaware/dump1090" + +if [[ ${PV} == *9999 ]] ; then + inherit git-r3 + EGIT_REPO_URI="https://github.com/flightaware/${PN}.git" +else + KEYWORDS="amd64 x86" + SRC_URI="https://github.com/flightaware/dump1090/archive/v${PV}.tar.gz -> ${P}.tar.gz" +fi + +LICENSE="BSD GPL-2+" +SLOT="0" +IUSE="bladerf hackrf minimal +rtlsdr" + +DEPEND=" + sys-libs/ncurses:=[tinfo] + bladerf? ( + net-wireless/bladerf:= + virtual/libusb:1 + ) + hackrf? ( + net-libs/libhackrf:= + virtual/libusb:1 + ) + rtlsdr? ( + net-wireless/rtl-sdr:= + virtual/libusb:1 + ) +" +RDEPEND="${DEPEND}" +BDEPEND="virtual/pkgconfig" + +PATCHES=( + "${FILESDIR}"/${PN}-6.1-libdir.patch + "${FILESDIR}"/${PN}-10.0.1-gcc15.patch +) + +src_prepare() { + default + + sed \ + -e '/CFLAGS/s/-Werror//g' \ + -e "/LIBS_CURSES/s|-lncurses|$($(tc-getPKG_CONFIG) --libs ncurses)|g" \ + -i Makefile || die +} + +src_compile() { + myemakeargs=( + BLADERF="$(usex bladerf)" + CC="$(tc-getCC)" + CPUFEATURES="yes" + HACKRF="$(usex hackrf)" + LIMESDR="no" + RTLSDR="$(usex rtlsdr)" + ) + + emake "${myemakeargs[@]}" +} + +src_install() { + dobin dump1090 view1090 + + # DSP config files for bladeRF + if use bladerf; then + insinto usr/share/dump1090/bladerf + doins bladerf/* + fi + + newtmpfiles "${FILESDIR}"/tmpfilesd-dump1090-5.0.conf dump1090.conf + newconfd "${FILESDIR}"/dump1090-5.0.confd dump1090 + newinitd "${FILESDIR}"/dump1090-5.0.initd dump1090 + + einstalldocs + + if use !minimal; then + # Install tools + insinto /usr/share/dump1090 + doins -r tools + + # Install lighthttps example files + insinto /usr/share/dump1090/lighttpd + doins debian/lighttpd/{88-dump1090-fa-statcache.conf,89-skyaware.conf} + + # Some tooling expects the -fa variant directory to contain the files + dosym ../../usr/share/dump1090 /usr/share/dump1090-fa + + # Install html docs + docinto html + doins -r public_html/* + + # See README.md for how to use custom wisdom files + exeinto /usr/share/dump1090/wisdom + doexe debian/generate-wisdom + insinto /usr/share/dump1090/wisdom + doins wisdom.* + doins wisdom/wisdom.* + + # For /etc/dump1090-fa/wisdom.local + keepdir /etc/dump1090-fa/ + + # Tooling to generate custom wisdom: + exeinto /usr/libexec/dump1090 + doexe starch-benchmark + fi +} + +pkg_postinst() { + tmpfiles_process dump1090.conf +} diff --git a/net-wireless/dump1090/dump1090-11.0-r1.ebuild b/net-wireless/dump1090/dump1090-11.0-r1.ebuild new file mode 100644 index 000000000000..86933a7eb689 --- /dev/null +++ b/net-wireless/dump1090/dump1090-11.0-r1.ebuild @@ -0,0 +1,117 @@ +# Copyright 1999-2026 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=8 + +inherit tmpfiles toolchain-funcs + +DESCRIPTION="Simple Mode S decoder for RTLSDR devices" +HOMEPAGE="https://github.com/flightaware/dump1090" + +if [[ ${PV} == *9999 ]] ; then + inherit git-r3 + EGIT_REPO_URI="https://github.com/flightaware/${PN}.git" +else + KEYWORDS="~amd64 ~x86" + SRC_URI="https://github.com/flightaware/dump1090/archive/v${PV}.tar.gz -> ${P}.tar.gz" +fi + +LICENSE="BSD GPL-2+" +SLOT="0" +IUSE="bladerf hackrf minimal +rtlsdr" + +DEPEND=" + sys-libs/ncurses:=[tinfo] + bladerf? ( + net-wireless/bladerf:= + virtual/libusb:1 + ) + hackrf? ( + net-libs/libhackrf:= + virtual/libusb:1 + ) + rtlsdr? ( + || ( + net-wireless/rtl-sdr + net-wireless/rtl-sdr-blog + ) + virtual/libusb:1 + ) +" +RDEPEND="${DEPEND}" +BDEPEND="virtual/pkgconfig" + +PATCHES=( "${FILESDIR}"/${PN}-6.1-libdir.patch ) + +src_prepare() { + default + + sed \ + -e '/CFLAGS/s/-Werror//g' \ + -e "/LIBS_CURSES/s|-lncurses|$($(tc-getPKG_CONFIG) --libs ncurses)|g" \ + -i Makefile || die +} + +src_compile() { + myemakeargs=( + BLADERF="$(usex bladerf)" + CC="$(tc-getCC)" + CPUFEATURES="yes" + HACKRF="$(usex hackrf)" + LIMESDR="no" + RTLSDR="$(usex rtlsdr)" + ) + + emake "${myemakeargs[@]}" +} + +src_install() { + dobin dump1090 view1090 + + # DSP config files for bladeRF + if use bladerf; then + insinto usr/share/dump1090/bladerf + doins bladerf/* + fi + + newtmpfiles "${FILESDIR}"/tmpfilesd-dump1090-5.0.conf dump1090.conf + newconfd "${FILESDIR}"/dump1090-5.0.confd dump1090 + newinitd "${FILESDIR}"/dump1090-5.0.initd dump1090 + + einstalldocs + + if use !minimal; then + # Install tools + insinto /usr/share/dump1090 + doins -r tools + + # Install lighthttps example files + insinto /usr/share/dump1090/lighttpd + doins debian/lighttpd/{88-dump1090-fa-statcache.conf,89-skyaware.conf} + + # Some tooling expects the -fa variant directory to contain the files + dosym ../../usr/share/dump1090 /usr/share/dump1090-fa + + # Install html docs + docinto html + doins -r public_html/* + + # See README.md for how to use custom wisdom files + exeinto /usr/share/dump1090/wisdom + doexe debian/generate-wisdom + insinto /usr/share/dump1090/wisdom + doins wisdom.* + doins wisdom/wisdom.* + + # For /etc/dump1090-fa/wisdom.local + keepdir /etc/dump1090-fa/ + + # Tooling to generate custom wisdom: + exeinto /usr/libexec/dump1090 + doexe starch-benchmark + fi +} + +pkg_postinst() { + tmpfiles_process dump1090.conf +} diff --git a/net-wireless/dump1090/dump1090-9999.ebuild b/net-wireless/dump1090/dump1090-9999.ebuild new file mode 100644 index 000000000000..e1886a6dfb2a --- /dev/null +++ b/net-wireless/dump1090/dump1090-9999.ebuild @@ -0,0 +1,120 @@ +# Copyright 1999-2026 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=8 + +inherit tmpfiles toolchain-funcs + +DESCRIPTION="Simple Mode S decoder for RTLSDR devices" +HOMEPAGE="https://github.com/flightaware/dump1090" + +if [[ ${PV} == *9999 ]] ; then + inherit git-r3 + EGIT_REPO_URI="https://github.com/flightaware/${PN}.git" +else + KEYWORDS="~amd64 ~x86" + SRC_URI="https://github.com/flightaware/dump1090/archive/v${PV}.tar.gz -> ${P}.tar.gz" +fi + +LICENSE="BSD GPL-2+" +SLOT="0" +IUSE="bladerf hackrf minimal +rtlsdr" + +DEPEND=" + sys-libs/ncurses:=[tinfo] + bladerf? ( + net-wireless/bladerf:= + virtual/libusb:1 + ) + hackrf? ( + net-libs/libhackrf:= + virtual/libusb:1 + ) + rtlsdr? ( + || ( + net-wireless/rtl-sdr + net-wireless/rtl-sdr-blog + ) + virtual/libusb:1 + ) +" +RDEPEND="${DEPEND}" +BDEPEND="virtual/pkgconfig" + +PATCHES=( + "${FILESDIR}"/${PN}-6.1-libdir.patch + "${FILESDIR}"/${PN}-10.0.1-gcc15.patch +) + +src_prepare() { + default + + sed \ + -e '/CFLAGS/s/-Werror//g' \ + -e "/LIBS_CURSES/s|-lncurses|$($(tc-getPKG_CONFIG) --libs ncurses)|g" \ + -i Makefile || die +} + +src_compile() { + myemakeargs=( + BLADERF="$(usex bladerf)" + CC="$(tc-getCC)" + CPUFEATURES="yes" + HACKRF="$(usex hackrf)" + LIMESDR="no" + RTLSDR="$(usex rtlsdr)" + ) + + emake "${myemakeargs[@]}" +} + +src_install() { + dobin dump1090 view1090 + + # DSP config files for bladeRF + if use bladerf; then + insinto usr/share/dump1090/bladerf + doins bladerf/* + fi + + newtmpfiles "${FILESDIR}"/tmpfilesd-dump1090-5.0.conf dump1090.conf + newconfd "${FILESDIR}"/dump1090-5.0.confd dump1090 + newinitd "${FILESDIR}"/dump1090-5.0.initd dump1090 + + einstalldocs + + if use !minimal; then + # Install tools + insinto /usr/share/dump1090 + doins -r tools + + # Install lighthttps example files + insinto /usr/share/dump1090/lighttpd + doins debian/lighttpd/{88-dump1090-fa-statcache.conf,89-skyaware.conf} + + # Some tooling expects the -fa variant directory to contain the files + dosym ../../usr/share/dump1090 /usr/share/dump1090-fa + + # Install html docs + docinto html + doins -r public_html/* + + # See README.md for how to use custom wisdom files + exeinto /usr/share/dump1090/wisdom + doexe debian/generate-wisdom + insinto /usr/share/dump1090/wisdom + doins wisdom.* + doins wisdom/wisdom.* + + # For /etc/dump1090-fa/wisdom.local + keepdir /etc/dump1090-fa/ + + # Tooling to generate custom wisdom: + exeinto /usr/libexec/dump1090 + doexe starch-benchmark + fi +} + +pkg_postinst() { + tmpfiles_process dump1090.conf +} diff --git a/net-wireless/dump1090/files/dump1090-10.0.1-gcc15.patch b/net-wireless/dump1090/files/dump1090-10.0.1-gcc15.patch new file mode 100644 index 000000000000..ed0431405c21 --- /dev/null +++ b/net-wireless/dump1090/files/dump1090-10.0.1-gcc15.patch @@ -0,0 +1,45 @@ +From 93be1da123215e8ac15a0deaffedd480e8899f77 Mon Sep 17 00:00:00 2001 +From: Conrad Kostecki <conrad@kostecki.com> +Date: Tue, 22 Apr 2025 00:41:31 +0200 +Subject: [PATCH] Fix compilation with GCC15 + +--- + ais_charset.c | 2 +- + ais_charset.h | 2 +- + interactive.c | 2 +- + 3 files changed, 3 insertions(+), 3 deletions(-) + +diff --git a/ais_charset.c b/ais_charset.c +index a487e3cc7..0d3af0392 100644 +--- a/ais_charset.c ++++ b/ais_charset.c +@@ -1,3 +1,3 @@ + #include "ais_charset.h" + +-char ais_charset[64] = "@ABCDEFGHIJKLMNOPQRSTUVWXYZ[\\]^_ !\"#$%&'()*+,-./0123456789:;<=>?"; ++char ais_charset[65] = "@ABCDEFGHIJKLMNOPQRSTUVWXYZ[\\]^_ !\"#$%&'()*+,-./0123456789:;<=>?"; +diff --git a/ais_charset.h b/ais_charset.h +index 93d4a7293..95ef373dc 100644 +--- a/ais_charset.h ++++ b/ais_charset.h +@@ -1,6 +1,6 @@ + #ifndef AIS_CHARSET_H + #define AIS_CHARSET_H + +-extern char ais_charset[64]; ++extern char ais_charset[65]; + + #endif +diff --git a/interactive.c b/interactive.c +index 8761c955d..75775ad35 100644 +--- a/interactive.c ++++ b/interactive.c +@@ -140,7 +140,7 @@ void interactiveShowData(void) { + static bool need_clear = true; + uint64_t now = mstime(); + char progress; +- char spinner[4] = "|/-\\"; ++ char spinner[5] = "|/-\\"; + int valid = 0; + double signalMax = -100.0; + double signalMin = +100.0; diff --git a/net-wireless/dump1090/files/dump1090-5.0.confd b/net-wireless/dump1090/files/dump1090-5.0.confd new file mode 100644 index 000000000000..3350294ae8c0 --- /dev/null +++ b/net-wireless/dump1090/files/dump1090-5.0.confd @@ -0,0 +1,20 @@ +# These variable names are chose to be as close as possible to the upstream & Debian options. +RECEIVER_OPTIONS="--device-index 0 --gain -10 --ppm 0" +DECODER_OPTIONS="--max-range 360 --fix" +NET_OPTIONS="--net --net-heartbeat 60 --net-ro-size 1300 --net-ro-interval 0.2 --net-ri-port 0 --net-ro-port 30002 --net-sbs-port 30003 --net-bi-port 30004,30104 --net-bo-port 30005" +JSON_OPTIONS="--json-location-accuracy 1 --write-json /run/dump1090/" + +# See README.md for custom wisdom, or use one of the bundled wisdom files +WISDOM_FILE= +[ -f /etc/dump1090-fa/wisdom.local ] && WISDOM_FILE=/etc/dump1090-fa/wisdom.local + +# Optional, populate these with your location +#PIAWARE_LAT= +#PIAWARE_LON= +# Or populate file /var/cache/piaware/location.env +[ -f /var/cache/piaware/location.env ] && source /var/cache/piaware/location.env + +if [ -n "$PIAWARE_LAT" -a -n "$PIAWARE_LON" ] +then + POSITION="--lat $PIAWARE_LAT --lon $PIAWARE_LON" +fi diff --git a/net-wireless/dump1090/files/dump1090-5.0.initd b/net-wireless/dump1090/files/dump1090-5.0.initd new file mode 100644 index 000000000000..47c2d240bb54 --- /dev/null +++ b/net-wireless/dump1090/files/dump1090-5.0.initd @@ -0,0 +1,15 @@ +#!/sbin/openrc-run +# Copyright 2021 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +name="dump1090" +description="" +command=/usr/bin/dump1090 +command_args="$RECEIVER_OPTIONS $DECODER_OPTIONS $NET_OPTIONS $JSON_OPTIONS $POSITION ${WISDOM_FILE:+--wisdom} ${WISDOM_FILE}" + +depend() { + use rtl_tcp +} +pre_start() { + mkdir -p /run/dump1090/ +} diff --git a/net-wireless/dump1090/files/dump1090-6.1-libdir.patch b/net-wireless/dump1090/files/dump1090-6.1-libdir.patch new file mode 100644 index 000000000000..b55fa95d2ea3 --- /dev/null +++ b/net-wireless/dump1090/files/dump1090-6.1-libdir.patch @@ -0,0 +1,16 @@ +diff --git a/Makefile b/Makefile +index d4a5ff6..5d69505 100644 +--- a/Makefile ++++ b/Makefile +@@ -99,9 +99,9 @@ ifeq ($(RTLSDR), yes) + ifdef RTLSDR_PREFIX + CPPFLAGS += -I$(RTLSDR_PREFIX)/include + ifeq ($(STATIC), yes) +- LIBS_SDR += -L$(RTLSDR_PREFIX)/lib -Wl,-Bstatic -lrtlsdr -Wl,-Bdynamic $(LIBS_USB) ++ LIBS_SDR += -Wl,-Bstatic -lrtlsdr -Wl,-Bdynamic $(LIBS_USB) + else +- LIBS_SDR += -L$(RTLSDR_PREFIX)/lib -lrtlsdr $(LIBS_USB) ++ LIBS_SDR += -lrtlsdr $(LIBS_USB) + endif + else + # some packaged .pc files are massively broken, try to handle it diff --git a/net-wireless/dump1090/files/tmpfilesd-dump1090-5.0.conf b/net-wireless/dump1090/files/tmpfilesd-dump1090-5.0.conf new file mode 100644 index 000000000000..67341178bfe2 --- /dev/null +++ b/net-wireless/dump1090/files/tmpfilesd-dump1090-5.0.conf @@ -0,0 +1,4 @@ +# The daemon will write out JSON files for the webserver here +d /run/dump1090/ 755 root root - +# The some upstream configs expect it to be in /run/dump1090-fa/ +L /run/dump1090-fa - - - - /run/dump1090/ diff --git a/net-wireless/dump1090/metadata.xml b/net-wireless/dump1090/metadata.xml new file mode 100644 index 000000000000..77285a4f188c --- /dev/null +++ b/net-wireless/dump1090/metadata.xml @@ -0,0 +1,21 @@ +<?xml version="1.0" encoding="UTF-8"?> +<!DOCTYPE pkgmetadata SYSTEM "https://www.gentoo.org/dtd/metadata.dtd"> +<pkgmetadata> + <maintainer type="project"> + <email>radio@gentoo.org</email> + <name>Radio</name> + </maintainer> + <maintainer type="person"> + <email>conikost@gentoo.org</email> + <name>Conrad kostecki</name> + </maintainer> + <use> + <flag name="bladerf">Build with Nuand BladeRF support</flag> + <flag name="hackrf">Build with Great Scott Gadgets HackRF support</flag> + <flag name="minimal">Exclude all HTML/webserver extras for a tiny build, e.g. to export data only</flag> + <flag name="rtlsdr">Build with Realtek RTL2832U (rtlsdr) support</flag> + </use> + <upstream> + <remote-id type="github">flightaware/dump1090</remote-id> + </upstream> +</pkgmetadata> |
