From 1be3799efab53adb3b4d9d3e3abd06f57bb6545c Mon Sep 17 00:00:00 2001 From: Rick Farina Date: Sat, 9 Nov 2019 14:38:42 -0500 Subject: [PATCH] net-wireless/tempestsdr: initial commit Package-Manager: Portage-2.3.78, Repoman-2.3.17 Signed-off-by: Rick Farina --- net-wireless/tempestsdr/metadata.xml | 9 ++++ .../tempestsdr/tempestsdr-9999.ebuild | 46 +++++++++++++++++++ 2 files changed, 55 insertions(+) create mode 100644 net-wireless/tempestsdr/metadata.xml create mode 100644 net-wireless/tempestsdr/tempestsdr-9999.ebuild diff --git a/net-wireless/tempestsdr/metadata.xml b/net-wireless/tempestsdr/metadata.xml new file mode 100644 index 000000000000..48e2501c039f --- /dev/null +++ b/net-wireless/tempestsdr/metadata.xml @@ -0,0 +1,9 @@ + + + + + zerochaos@gentoo.org + + + + diff --git a/net-wireless/tempestsdr/tempestsdr-9999.ebuild b/net-wireless/tempestsdr/tempestsdr-9999.ebuild new file mode 100644 index 000000000000..167bdba6e6f6 --- /dev/null +++ b/net-wireless/tempestsdr/tempestsdr-9999.ebuild @@ -0,0 +1,46 @@ +# Copyright 2019 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=7 + +inherit git-r3 java-pkg-2 + +DESCRIPTION="Remote video eavesdropping using a software-defined radio platform" +HOMEPAGE="https://github.com/tanpc/TempestSDR" +EGIT_REPO_URI="https://github.com/tanpc/TempestSDR.git" + +LICENSE="GPL-3" +SLOT="0" +KEYWORDS="" +IUSE="" + +RDEPEND=">=virtual/jre-1.7" +DEPEND=">=virtual/jdk-1.7" +BDEPEND="" + +src_prepare() { + sed -i -e 's#javah#javac -h .#' \ + -e 's#-jni martin.tempest.core.TSDRLibrary##' \ + -e 's#-o TSDRLibraryNDK.h#../src/martin/tempest/core/TSDRLibrary.java#' JavaGUI/jni/makefile || die + sed -i -e 's#TSDRLibraryNDK.h#martin_tempest_core_TSDRLibrary.h#g' JavaGUI/jni/TSDRLibraryNDK.c + #airspy mini support, but may degrade airspy support, needs testing + #sed -i -e 's#10e6#6e6#g' -e 's#10000000#6000000#g' TSDRPlugin_Airspy/src/TSDRPlugin_Airspy.cpp + default +} + +src_compile() { + emake clean + #this absolutely breaks in wierd ways when built parallel + emake -j1 all +} + +src_install() { + insinto /usr/share/${PN} + doins JavaGUI/JTempestSDR.jar + dodir /usr/bin + cat <<-EOF > "${ED}/usr/bin/tempestsdr" +#!/bin/sh +java -jar /usr/share/tempestsdr/JTempestSDR.jar +EOF + fperms +x /usr/bin/tempestsdr +} -- 2.26.2