diff options
author | V3n3RiX <venerix@redcorelinux.org> | 2021-08-14 10:30:13 +0100 |
---|---|---|
committer | V3n3RiX <venerix@redcorelinux.org> | 2021-08-14 10:30:13 +0100 |
commit | 616579b5d773c50af31ee56f00105d96ce641ca2 (patch) | |
tree | 2ad4d3ba1429bd93a36ab99a2f5ec3490412115e /net-wireless/dump1090 | |
parent | 068424b26532f3551a81421a9be67ed206e5c11a (diff) |
gentoo resync : 14.08.2021
Diffstat (limited to 'net-wireless/dump1090')
-rw-r--r-- | net-wireless/dump1090/Manifest | 11 | ||||
-rw-r--r-- | net-wireless/dump1090/dump1090-4.0.ebuild | 4 | ||||
-rw-r--r-- | net-wireless/dump1090/dump1090-5.0.ebuild | 95 | ||||
-rw-r--r-- | net-wireless/dump1090/dump1090-9999.ebuild | 69 | ||||
-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/tmpfilesd-dump1090-5.0.conf | 4 | ||||
-rw-r--r-- | net-wireless/dump1090/metadata.xml | 2 |
8 files changed, 200 insertions, 20 deletions
diff --git a/net-wireless/dump1090/Manifest b/net-wireless/dump1090/Manifest index db5c6cbc893f..d6967e3a08d7 100644 --- a/net-wireless/dump1090/Manifest +++ b/net-wireless/dump1090/Manifest @@ -1,4 +1,9 @@ +AUX dump1090-5.0.confd 927 BLAKE2B 144a8c2f51ba714b7c41a50ae58e893c1cfa2e9494a962c9033201c09fc889411b4b868b16934521709fe7402e593767be77ad6c43c0a4b4a9fba8b231756f58 SHA512 930267650aedb8012c2a92c1555d318789cf29ab42568109a9935a7d83a13fba4482cffff91b27062f74d9fde514e95060e0a53cb9438d39ede292ea9ca15b90 +AUX dump1090-5.0.initd 372 BLAKE2B f4e1ca0db565f56c104401b221af77966f499ad00f1fba5c804ee529fbc61fd75149c3d2d503d4a5e119784fcc10998ebbbad80cb09c1a27dba804a0d8a86c24 SHA512 0f9717d3f161658aefcd29f135bd3401bb539a0e83f40fdacf7326b48a96782d211dde1fc9237a822ee3d09a8b5b17ab22da63f6e93aceb526ff22c02eaa300e +AUX tmpfilesd-dump1090-5.0.conf 212 BLAKE2B 081b8340377a40adbb3a9dfa87ede06729979ad50a138cb3caf6b0dac55203222df6c71714103c096b6fbdcd2b115dd2c40bd767b7e5ff1dd0360addc021882a SHA512 d44170620addbc3590d524ae540c38be31115d22f69fd55a075877ab482c0bbcdfe86e2eac3c3007c5476408c18623a0e179fadd2247beab01d1df296d7467b6 DIST dump1090-4.0.tar.gz 6663754 BLAKE2B bf0a6c8dfd8b2da5ed0e7ae5f7b862c57a54e5d48bc24b29e42ebffec4e0606604fbe4b8502e85df60a3a618568bf9e2eba88e5ad2fdec7fb93043b823435362 SHA512 97dc872e4d0ac8df2f46e17b590e970a62a78baf81e18a9beeb23d37a4401a2e52591ca96cc01e1465b22aa234cf9e88f84a7b0f27d0144b3afeac62f6252c95 -EBUILD dump1090-4.0.ebuild 1226 BLAKE2B 0ad47e190bb3e294442d7f3f13d1e970b2926925c62e8042d99bf71b48ae5f48ae72c4546a6b20afe631c8672df40803fec6c0809343bd50848bbb92381bd081 SHA512 c7c48306087f09640925083b877b236d7f8405881b60d9e883e38b662706a46c1a10406249767bf32553592d07f3f74e5c37b15012098fe0c85078bff9c0e0d1 -EBUILD dump1090-9999.ebuild 1205 BLAKE2B aa83de2ba3171eac0ef146a7b511fd21529a429c6286a268270e543f7f4367cbd373b1d137ac8528afba4c7121666b0baf7eca3a561f8dc76a8cab9e44b959e0 SHA512 b21698db27ddeb678929a18d70725c7a05284166e70d1818959b349f7df9832842c94d2934b5dc920ab24155258117accfb788acfcbe7cb325b52c14fc7694d9 -MISC metadata.xml 475 BLAKE2B 65a7e4651f29eabc99e389d7ec78482bb20b87891e4313cd5d8f9b70d6f6567591dc30b8f81ef8b81d37f0a83fcde56b7616b142105639609f82054162ff7e4b SHA512 c91e0b24df8c2a90daa48fb1f94e3968fa4586b986e05d853d937d4a570d3828216840dd2c4babe0f5ee257f19079c94461a230a2327e9d2c2966d7b01d68999 +DIST dump1090-5.0.tar.gz 10124422 BLAKE2B d6b26a444f73cccd002558b6863431537078e1fe9f61e4e240d4a5f06181b9ff713387aad623c2ee8257c2568bd4dd373746606c356ac3ff0f27f411d4949997 SHA512 1104982308db788993bf5dc130a5ca369c8bfaaae56cd5a435bbd22ed99b0633594789334d7f256bad2b288c4906923baf8bc73e2f7b7f9f52f7068b9b519142 +EBUILD dump1090-4.0.ebuild 1250 BLAKE2B acd1dc457eced589b99528333cdbfa5bb0c29bacac3cb0eb18c6daaa902f3c5f498c7c6a6810c83f92155b87f6e3511fd87d1dff51fb46e462b48af47fa66948 SHA512 27c238ddb2d0d2223f1cbc286c0bf6860706d6ef6c76902af25c3c542deb6382ac71c5ab2f9b8576b2d0906633bd1acb72b6ba870f8cb62b9b353d96818cc5d9 +EBUILD dump1090-5.0.ebuild 2486 BLAKE2B be1a047aa5ec00290039f65a8799bf0a8c274c45f4c6f3669293b48643f8abc82d39c48f17e2239b267e4b01b8286781ddd9b9bca34a238fc30b6a11f99e9033 SHA512 0f28dcebdea0c9c02aead1a75244a68de21a700626aad07ae0eba33f50206a1c096159b61c6925a29e7bdd3a4f390695ce8857d2cf7b0bf6c801e840dbd031d4 +EBUILD dump1090-9999.ebuild 2486 BLAKE2B be1a047aa5ec00290039f65a8799bf0a8c274c45f4c6f3669293b48643f8abc82d39c48f17e2239b267e4b01b8286781ddd9b9bca34a238fc30b6a11f99e9033 SHA512 0f28dcebdea0c9c02aead1a75244a68de21a700626aad07ae0eba33f50206a1c096159b61c6925a29e7bdd3a4f390695ce8857d2cf7b0bf6c801e840dbd031d4 +MISC metadata.xml 657 BLAKE2B 60a8e50e55c77a69408088f0593688e1a3df47b670396a9f491364a28dbb219eb1392b85a7e111890a5d13149b001b88bc20d54924b6ea8e86df10b86999e79e SHA512 486547762f7e600f161db6419b845a10852ce8b3a30c2b71285484015c9b25025506ed06da330f309003446b3d983202cf8ccdf0d298ac00c4ef14b43f82fb49 diff --git a/net-wireless/dump1090/dump1090-4.0.ebuild b/net-wireless/dump1090/dump1090-4.0.ebuild index acbbbb805755..c49bf27909f2 100644 --- a/net-wireless/dump1090/dump1090-4.0.ebuild +++ b/net-wireless/dump1090/dump1090-4.0.ebuild @@ -30,8 +30,8 @@ BDEPEND="virtual/pkgconfig" src_prepare() { default - sed -i -e 's#-O3 -g -Wall -Wmissing-declarations -Werror -W##' Makefile || die - sed -i -e "s#-lncurses#$($(tc-getPKG_CONFIG) --libs ncurses)#" Makefile || die + 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() { diff --git a/net-wireless/dump1090/dump1090-5.0.ebuild b/net-wireless/dump1090/dump1090-5.0.ebuild new file mode 100644 index 000000000000..dc9893bd0a78 --- /dev/null +++ b/net-wireless/dump1090/dump1090-5.0.ebuild @@ -0,0 +1,95 @@ +# 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 +} diff --git a/net-wireless/dump1090/dump1090-9999.ebuild b/net-wireless/dump1090/dump1090-9999.ebuild index b6d89bd1d31a..dc9893bd0a78 100644 --- a/net-wireless/dump1090/dump1090-9999.ebuild +++ b/net-wireless/dump1090/dump1090-9999.ebuild @@ -3,7 +3,7 @@ EAPI=7 -inherit toolchain-funcs +inherit tmpfiles toolchain-funcs DESCRIPTION="simple Mode S decoder for RTLSDR devices" HOMEPAGE="https://github.com/flightaware/dump1090" @@ -18,39 +18,78 @@ fi LICENSE="BSD" SLOT="0" -IUSE="bladerf +rtlsdr" +IUSE="bladerf hackrf +rtlsdr minimal" DEPEND=" sys-libs/ncurses:=[tinfo] - virtual/libusb:1 - bladerf? ( net-wireless/bladerf:= ) - rtlsdr? ( net-wireless/rtl-sdr:= )" + 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 's#-O2 -g -Wall -Werror -W##' Makefile || die - sed -i -e "s#-lncurses#$($(tc-getPKG_CONFIG) --libs ncurses)#" Makefile || die + 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) + RTLSDR=$(usex rtlsdr) \ + HACKRF=$(usex hackrf) \ + CPUFEATURES=yes \ + LIMESDR=no } src_install() { dobin ${PN} dobin view1090 - dodoc README.md + dodoc README.md README-json.md + # DSP config for bladerf + if use bladerf; then + insinto usr/share/${PN}/bladerf + doins bladerf/* + fi - insinto /usr/share/${PN}/html - doins -r public_html/* + newtmpfiles "${FILESDIR}"/tmpfilesd-dump1090-5.0.conf ${PN}.conf + newconfd "${FILESDIR}"/dump1090-5.0.confd ${PN} + newinitd "${FILESDIR}"/dump1090-5.0.initd ${PN} - insinto /usr/share/${PN} - doins -r tools + if use !minimal; then + insinto /usr/share/${PN} + doins -r tools - insinto /usr/share/${PN} - newins debian/lighttpd/89-dump1090-fa.conf lighttpd.conf + # 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 } 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/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 index da238ebeece0..f515f0879802 100644 --- a/net-wireless/dump1090/metadata.xml +++ b/net-wireless/dump1090/metadata.xml @@ -7,7 +7,9 @@ </maintainer> <use> <flag name="bladerf">Build with Nuand BladeRF support</flag> + <flag name="hackrf">Build with Great Scott Gadgets HackRF support</flag> <flag name="rtlsdr">Build with Realtek RTL2832U (rtlsdr) support</flag> + <flag name="minimal">Exclude all HTML/webserver extras for a tiny build, e.g. to export data only</flag> </use> <upstream> <remote-id type="github">flightaware/dump1090</remote-id> |