1 |
commit: 5a2535e582a4cde585f7b413d1654016b08a1595 |
2 |
Author: Sam James <sam <AT> gentoo <DOT> org> |
3 |
AuthorDate: Thu Oct 14 09:58:18 2021 +0000 |
4 |
Commit: Sam James <sam <AT> gentoo <DOT> org> |
5 |
CommitDate: Thu Oct 14 09:58:18 2021 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=5a2535e5 |
7 |
|
8 |
net-wireless/dump1090: add 6.1 |
9 |
|
10 |
Bug: https://bugs.gentoo.org/818130 |
11 |
Signed-off-by: Sam James <sam <AT> gentoo.org> |
12 |
|
13 |
net-wireless/dump1090/Manifest | 1 + |
14 |
net-wireless/dump1090/dump1090-6.1.ebuild | 99 +++++++++++++++++++++++++++++++ |
15 |
2 files changed, 100 insertions(+) |
16 |
|
17 |
diff --git a/net-wireless/dump1090/Manifest b/net-wireless/dump1090/Manifest |
18 |
index c9f99e8b0b2..5d3488f84d7 100644 |
19 |
--- a/net-wireless/dump1090/Manifest |
20 |
+++ b/net-wireless/dump1090/Manifest |
21 |
@@ -1,2 +1,3 @@ |
22 |
DIST dump1090-4.0.tar.gz 6663754 BLAKE2B bf0a6c8dfd8b2da5ed0e7ae5f7b862c57a54e5d48bc24b29e42ebffec4e0606604fbe4b8502e85df60a3a618568bf9e2eba88e5ad2fdec7fb93043b823435362 SHA512 97dc872e4d0ac8df2f46e17b590e970a62a78baf81e18a9beeb23d37a4401a2e52591ca96cc01e1465b22aa234cf9e88f84a7b0f27d0144b3afeac62f6252c95 |
23 |
DIST dump1090-5.0.tar.gz 10124422 BLAKE2B d6b26a444f73cccd002558b6863431537078e1fe9f61e4e240d4a5f06181b9ff713387aad623c2ee8257c2568bd4dd373746606c356ac3ff0f27f411d4949997 SHA512 1104982308db788993bf5dc130a5ca369c8bfaaae56cd5a435bbd22ed99b0633594789334d7f256bad2b288c4906923baf8bc73e2f7b7f9f52f7068b9b519142 |
24 |
+DIST dump1090-6.1.tar.gz 9879362 BLAKE2B 716c1abe6df7958fb5ec94c35ed6af75fdb6180a56cdfba72443a7b34d1614cede6ec29aaac22a1e15f31d05bf1d1971eebccdff21cf9442ae69617e7c535ae6 SHA512 5f20d52f1fda754e33774faab852252d802ae5da8694e768cbf92df56f7693cd2da788df9e0a422f1801603e62498fb0af0143f5ea3292e9d607296cd5983dc2 |
25 |
|
26 |
diff --git a/net-wireless/dump1090/dump1090-6.1.ebuild b/net-wireless/dump1090/dump1090-6.1.ebuild |
27 |
new file mode 100644 |
28 |
index 00000000000..6b101b8de14 |
29 |
--- /dev/null |
30 |
+++ b/net-wireless/dump1090/dump1090-6.1.ebuild |
31 |
@@ -0,0 +1,99 @@ |
32 |
+# Copyright 1999-2021 Gentoo Authors |
33 |
+# Distributed under the terms of the GNU General Public License v2 |
34 |
+ |
35 |
+EAPI=7 |
36 |
+ |
37 |
+inherit tmpfiles toolchain-funcs |
38 |
+ |
39 |
+DESCRIPTION="simple Mode S decoder for RTLSDR devices" |
40 |
+HOMEPAGE="https://github.com/flightaware/dump1090" |
41 |
+ |
42 |
+if [[ ${PV} == *9999 ]] ; then |
43 |
+ inherit git-r3 |
44 |
+ EGIT_REPO_URI="https://github.com/flightaware/${PN}.git" |
45 |
+else |
46 |
+ KEYWORDS="amd64 ~x86" |
47 |
+ SRC_URI="https://github.com/flightaware/dump1090/archive/v${PV}.tar.gz -> ${P}.tar.gz" |
48 |
+fi |
49 |
+ |
50 |
+LICENSE="BSD" |
51 |
+SLOT="0" |
52 |
+IUSE="bladerf hackrf +rtlsdr minimal" |
53 |
+ |
54 |
+DEPEND=" |
55 |
+ sys-libs/ncurses:=[tinfo] |
56 |
+ bladerf? ( net-wireless/bladerf:= virtual/libusb:1 ) |
57 |
+ hackrf? ( net-libs/libhackrf:= virtual/libusb:1 ) |
58 |
+ rtlsdr? ( net-wireless/rtl-sdr:= virtual/libusb:1 )" |
59 |
+RDEPEND="${DEPEND}" |
60 |
+BDEPEND="virtual/pkgconfig" |
61 |
+ |
62 |
+src_prepare() { |
63 |
+ default |
64 |
+ sed -i -e '/CFLAGS/s# -O3 -g -Wall -Wmissing-declarations -Werror -W # #' Makefile || die |
65 |
+ sed -i -e "/LIBS_CURSES/s#-lncurses#$($(tc-getPKG_CONFIG) --libs ncurses)#" Makefile || die |
66 |
+} |
67 |
+ |
68 |
+src_compile() { |
69 |
+ emake CC="$(tc-getCC)" \ |
70 |
+ BLADERF=$(usex bladerf) \ |
71 |
+ RTLSDR=$(usex rtlsdr) \ |
72 |
+ HACKRF=$(usex hackrf) \ |
73 |
+ CPUFEATURES=yes \ |
74 |
+ LIMESDR=no |
75 |
+} |
76 |
+ |
77 |
+src_install() { |
78 |
+ dobin ${PN} |
79 |
+ dobin view1090 |
80 |
+ dodoc README.md README-json.md |
81 |
+ # DSP config for bladerf |
82 |
+ if use bladerf; then |
83 |
+ insinto usr/share/${PN}/bladerf |
84 |
+ doins bladerf/* |
85 |
+ fi |
86 |
+ |
87 |
+ newtmpfiles "${FILESDIR}"/tmpfilesd-dump1090-5.0.conf ${PN}.conf |
88 |
+ newconfd "${FILESDIR}"/dump1090-5.0.confd ${PN} |
89 |
+ newinitd "${FILESDIR}"/dump1090-5.0.initd ${PN} |
90 |
+ |
91 |
+ if use !minimal; then |
92 |
+ insinto /usr/share/${PN} |
93 |
+ doins -r tools |
94 |
+ |
95 |
+ # Some tooling expects the -fa variant directory to contain the files |
96 |
+ dosym ../../usr/share/${PN} /usr/share/dump1090-fa |
97 |
+ |
98 |
+ # Older HTML |
99 |
+ insinto /usr/share/${PN}/html |
100 |
+ doins -r public_html/* |
101 |
+ # Newer HTML |
102 |
+ insinto /usr/share/skyaware/html |
103 |
+ doins -r public_html_merged/* |
104 |
+ |
105 |
+ # One of these this should be included into other lighttpd configs |
106 |
+ insinto /usr/share/${PN}/lighttpd |
107 |
+ # Old style: |
108 |
+ doins debian/lighttpd/89-dump1090-fa.conf |
109 |
+ doins debian/lighttpd/88-dump1090-fa-statcache.conf |
110 |
+ # New style: |
111 |
+ doins debian/lighttpd/89-skyaware.conf |
112 |
+ |
113 |
+ # See README.md for how to use custom wisdom files |
114 |
+ exeinto /usr/share/${PN}/wisdom |
115 |
+ doexe debian/generate-wisdom |
116 |
+ insinto /usr/share/${PN}/wisdom |
117 |
+ doins wisdom.* |
118 |
+ doins wisdom/wisdom.* |
119 |
+ # For /etc/dump1090-fa/wisdom.local |
120 |
+ keepdir /etc/dump1090-fa/ |
121 |
+ |
122 |
+ # Tooling to generate custom wisdom: |
123 |
+ exeinto /usr/libexec/${PN} |
124 |
+ doexe starch-benchmark |
125 |
+ fi |
126 |
+} |
127 |
+ |
128 |
+pkg_postinst() { |
129 |
+ tmpfiles_process ${PN}.conf |
130 |
+} |