public inbox for gentoo-commits@lists.gentoo.org
 help / color / mirror / Atom feed
From: "Sam James" <sam@gentoo.org>
To: gentoo-commits@lists.gentoo.org
Subject: [gentoo-commits] repo/gentoo:master commit in: net-wireless/dump1090/
Date: Thu, 14 Oct 2021 10:00:10 +0000 (UTC)	[thread overview]
Message-ID: <1634205498.5a2535e582a4cde585f7b413d1654016b08a1595.sam@gentoo> (raw)

commit:     5a2535e582a4cde585f7b413d1654016b08a1595
Author:     Sam James <sam <AT> gentoo <DOT> org>
AuthorDate: Thu Oct 14 09:58:18 2021 +0000
Commit:     Sam James <sam <AT> gentoo <DOT> org>
CommitDate: Thu Oct 14 09:58:18 2021 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=5a2535e5

net-wireless/dump1090: add 6.1

Bug: https://bugs.gentoo.org/818130
Signed-off-by: Sam James <sam <AT> gentoo.org>

 net-wireless/dump1090/Manifest            |  1 +
 net-wireless/dump1090/dump1090-6.1.ebuild | 99 +++++++++++++++++++++++++++++++
 2 files changed, 100 insertions(+)

diff --git a/net-wireless/dump1090/Manifest b/net-wireless/dump1090/Manifest
index c9f99e8b0b2..5d3488f84d7 100644
--- a/net-wireless/dump1090/Manifest
+++ b/net-wireless/dump1090/Manifest
@@ -1,2 +1,3 @@
 DIST dump1090-4.0.tar.gz 6663754 BLAKE2B bf0a6c8dfd8b2da5ed0e7ae5f7b862c57a54e5d48bc24b29e42ebffec4e0606604fbe4b8502e85df60a3a618568bf9e2eba88e5ad2fdec7fb93043b823435362 SHA512 97dc872e4d0ac8df2f46e17b590e970a62a78baf81e18a9beeb23d37a4401a2e52591ca96cc01e1465b22aa234cf9e88f84a7b0f27d0144b3afeac62f6252c95
 DIST dump1090-5.0.tar.gz 10124422 BLAKE2B d6b26a444f73cccd002558b6863431537078e1fe9f61e4e240d4a5f06181b9ff713387aad623c2ee8257c2568bd4dd373746606c356ac3ff0f27f411d4949997 SHA512 1104982308db788993bf5dc130a5ca369c8bfaaae56cd5a435bbd22ed99b0633594789334d7f256bad2b288c4906923baf8bc73e2f7b7f9f52f7068b9b519142
+DIST dump1090-6.1.tar.gz 9879362 BLAKE2B 716c1abe6df7958fb5ec94c35ed6af75fdb6180a56cdfba72443a7b34d1614cede6ec29aaac22a1e15f31d05bf1d1971eebccdff21cf9442ae69617e7c535ae6 SHA512 5f20d52f1fda754e33774faab852252d802ae5da8694e768cbf92df56f7693cd2da788df9e0a422f1801603e62498fb0af0143f5ea3292e9d607296cd5983dc2

diff --git a/net-wireless/dump1090/dump1090-6.1.ebuild b/net-wireless/dump1090/dump1090-6.1.ebuild
new file mode 100644
index 00000000000..6b101b8de14
--- /dev/null
+++ b/net-wireless/dump1090/dump1090-6.1.ebuild
@@ -0,0 +1,99 @@
+# Copyright 1999-2021 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=7
+
+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"
+SLOT="0"
+IUSE="bladerf hackrf +rtlsdr minimal"
+
+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"
+
+src_prepare() {
+	default
+	sed -i -e '/CFLAGS/s# -O3 -g -Wall -Wmissing-declarations -Werror -W # #' Makefile || die
+	sed -i -e "/LIBS_CURSES/s#-lncurses#$($(tc-getPKG_CONFIG) --libs ncurses)#" Makefile || die
+}
+
+src_compile() {
+	emake CC="$(tc-getCC)" \
+		BLADERF=$(usex bladerf) \
+		RTLSDR=$(usex rtlsdr) \
+		HACKRF=$(usex hackrf) \
+		CPUFEATURES=yes \
+		LIMESDR=no
+}
+
+src_install() {
+	dobin ${PN}
+	dobin view1090
+	dodoc README.md README-json.md
+	# DSP config for bladerf
+	if use bladerf; then
+		insinto usr/share/${PN}/bladerf
+		doins bladerf/*
+	fi
+
+	newtmpfiles "${FILESDIR}"/tmpfilesd-dump1090-5.0.conf ${PN}.conf
+	newconfd "${FILESDIR}"/dump1090-5.0.confd ${PN}
+	newinitd "${FILESDIR}"/dump1090-5.0.initd ${PN}
+
+	if use !minimal; then
+		insinto /usr/share/${PN}
+		doins -r tools
+
+		# Some tooling expects the -fa variant directory to contain the files
+		dosym ../../usr/share/${PN} /usr/share/dump1090-fa
+
+		# Older HTML
+		insinto /usr/share/${PN}/html
+		doins -r public_html/*
+		# Newer HTML
+		insinto /usr/share/skyaware/html
+		doins -r public_html_merged/*
+
+		# One of these this should be included into other lighttpd configs
+		insinto /usr/share/${PN}/lighttpd
+		# Old style:
+		doins debian/lighttpd/89-dump1090-fa.conf
+		doins debian/lighttpd/88-dump1090-fa-statcache.conf
+		# New style:
+		doins debian/lighttpd/89-skyaware.conf
+
+		# See README.md for how to use custom wisdom files
+		exeinto /usr/share/${PN}/wisdom
+		doexe debian/generate-wisdom
+		insinto /usr/share/${PN}/wisdom
+		doins wisdom.*
+		doins wisdom/wisdom.*
+		# For /etc/dump1090-fa/wisdom.local
+		keepdir /etc/dump1090-fa/
+
+		# Tooling to generate custom wisdom:
+		exeinto /usr/libexec/${PN}
+		doexe starch-benchmark
+	fi
+}
+
+pkg_postinst() {
+	tmpfiles_process ${PN}.conf
+}


             reply	other threads:[~2021-10-14 10:00 UTC|newest]

Thread overview: 26+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2021-10-14 10:00 Sam James [this message]
  -- strict thread matches above, loose matches on Subject: below --
2025-03-01 23:27 [gentoo-commits] repo/gentoo:master commit in: net-wireless/dump1090/ Conrad Kostecki
2025-03-01  1:14 Conrad Kostecki
2025-03-01  1:14 Conrad Kostecki
2024-12-03 11:14 Sam James
2024-12-03 11:14 Sam James
2021-10-15  6:00 Agostino Sarubbo
2021-10-14 10:00 Sam James
2021-10-12 18:06 Marek Szuba
2021-09-26 19:36 Conrad Kostecki
2021-01-20 10:13 David Seifert
2021-01-20  9:29 Sam James
2021-01-19 14:24 Sam James
2020-12-29 10:11 David Seifert
2020-12-28 14:48 David Seifert
2020-12-28 14:48 David Seifert
2020-01-21 10:42 Agostino Sarubbo
2020-01-20 12:52 Agostino Sarubbo
2019-09-27 14:05 Rick Farina
2019-07-03  5:22 Rick Farina
2018-08-19 22:29 Michael Weber
2018-08-19 22:05 Michael Weber
2018-08-16 20:45 Richard Farina
2017-07-30 10:04 Michał Górny
2017-05-11  2:06 Richard Farina
2017-01-31  9:55 Mike Frysinger

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=1634205498.5a2535e582a4cde585f7b413d1654016b08a1595.sam@gentoo \
    --to=sam@gentoo.org \
    --cc=gentoo-commits@lists.gentoo.org \
    --cc=gentoo-dev@lists.gentoo.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox