diff options
author | Zero_Chaos <zerochaos@gentoo.org> | 2018-08-16 19:50:50 +0000 |
---|---|---|
committer | Zero_Chaos <zerochaos@gentoo.org> | 2018-08-16 20:45:24 +0000 |
commit | d11f8926a489b84eb3bde5441a67b6a5c2edf27c (patch) | |
tree | d1122908702b4c3369bb8ca61cedca7dee4d2cf4 /net-wireless/dump1090 | |
parent | net-wireless/bladerf: fix deps (diff) | |
download | gentoo-d11f8926a489b84eb3bde5441a67b6a5c2edf27c.tar.gz gentoo-d11f8926a489b84eb3bde5441a67b6a5c2edf27c.tar.bz2 gentoo-d11f8926a489b84eb3bde5441a67b6a5c2edf27c.zip |
net-wireless/dump1090: dump to mutability
Package-Manager: Portage-2.3.46, Repoman-2.3.10
Diffstat (limited to 'net-wireless/dump1090')
-rw-r--r-- | net-wireless/dump1090/Manifest | 1 | ||||
-rw-r--r-- | net-wireless/dump1090/dump1090-0.0_p20180509.ebuild | 56 |
2 files changed, 57 insertions, 0 deletions
diff --git a/net-wireless/dump1090/Manifest b/net-wireless/dump1090/Manifest index 2070308ba1b8..806756ce7a23 100644 --- a/net-wireless/dump1090/Manifest +++ b/net-wireless/dump1090/Manifest @@ -1 +1,2 @@ DIST dump1090-0.0_p20140919.tar.xz 445108 BLAKE2B 96da9faae0139710b92adfeb921f7b84ea3342c3916d69baebfb2709076c9f3d8e3be3457d8f2c074d3b58255ad745cda9f35a71f6707b8184a83c0c8a54e141 SHA512 4b7f915d5dd9c728da36298ecfe6c0e1da17bb9082e5f1c41376e6425dce429c099b0fd2d8436a966f5d3189788b818602f26fb0aea62e5dbe753e489bf0a760 +DIST dump1090-0.0_p20180509.tar.gz 1032244 BLAKE2B 2d91c8bdbe2fca787e9653ac08eb40a4faab181ab10f7247a9dedf6390f35520642caee548dbadb58c5347c0f0284a66e000da747bc39b3dab1e4cbce0fbbc3d SHA512 08d7f1d031a5d3a26ea73bce543209bd84054b1acd94ba72a0dca206cc7f11c1778fb5d6286bfe434812f6647ccaab73b56bc6539ae594e2aa3364851428cad3 diff --git a/net-wireless/dump1090/dump1090-0.0_p20180509.ebuild b/net-wireless/dump1090/dump1090-0.0_p20180509.ebuild new file mode 100644 index 000000000000..73b4a4c99b08 --- /dev/null +++ b/net-wireless/dump1090/dump1090-0.0_p20180509.ebuild @@ -0,0 +1,56 @@ +# Copyright 1999-2018 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 + +EAPI=6 + +inherit toolchain-funcs eutils + +DESCRIPTION="simple Mode S decoder for RTLSDR devices" +#Original repo +#HOMEPAGE="https://github.com/antirez/dump1090" +#Repo that has actually been touched recenly +HOMEPAGE="https://github.com/mutability/dump1090" + +if [[ ${PV} == "9999" ]] ; then + inherit git-r3 + EGIT_REPO_URI="https://github.com/mutability/${PN}.git" + KEYWORDS="" +else + KEYWORDS="~amd64 ~x86" + COMMIT="fb5942dba6505a21cbafc7905a5a7c513b214dc9" + SRC_URI="https://github.com/mutability/dump1090/archive/${COMMIT}.tar.gz -> ${P}.tar.gz" + S="${WORKDIR}/${PN}-${COMMIT}" +fi + +LICENSE="BSD" +SLOT="0" +IUSE="" + +RDEPEND="net-wireless/rtl-sdr + virtual/libusb:1" +DEPEND="${RDEPEND}" + +src_compile() { + emake CC="$(tc-getCC)" \ + UNAME="Linux" + CFLAGS="$($(tc-getPKG_CONFIG) --cflags librtlsdr) ${CFLAGS}" \ + EXTRACFLAGS="-DHTMLPATH='/usr/share/dump1090/html'" \ + LIBS="${LDFLAGS} $($(tc-getPKG_CONFIG) --libs librtlsdr) -lm -lpthread" +} + +src_install() { + dobin ${PN} + dobin view1090 + dodoc README.md + + insinto /usr/share/${PN}/html + doins -r public_html/* + + insinto /usr/share/${PN}/tools + doins -r tools/* + + #insinto /etc/lighttpd/conf-available + #doins -r debian/lighttpd/* + #insinto /etc/nginx/sites-available + #doins -r debian/nginx/* +} |