diff options
author | Rick Farina <zerochaos@gentoo.org> | 2019-11-09 14:38:42 -0500 |
---|---|---|
committer | Rick Farina <zerochaos@gentoo.org> | 2019-11-09 14:39:21 -0500 |
commit | 1be3799efab53adb3b4d9d3e3abd06f57bb6545c (patch) | |
tree | 8d9b27dc65ed835118bf702dd8706a76fc8e9a17 /net-wireless | |
parent | net-wireless/airspy: initial import (diff) | |
download | gentoo-1be3799efab53adb3b4d9d3e3abd06f57bb6545c.tar.gz gentoo-1be3799efab53adb3b4d9d3e3abd06f57bb6545c.tar.bz2 gentoo-1be3799efab53adb3b4d9d3e3abd06f57bb6545c.zip |
net-wireless/tempestsdr: initial commit
Package-Manager: Portage-2.3.78, Repoman-2.3.17
Signed-off-by: Rick Farina <zerochaos@gentoo.org>
Diffstat (limited to 'net-wireless')
-rw-r--r-- | net-wireless/tempestsdr/metadata.xml | 9 | ||||
-rw-r--r-- | net-wireless/tempestsdr/tempestsdr-9999.ebuild | 46 |
2 files changed, 55 insertions, 0 deletions
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 @@ +<?xml version="1.0" encoding="UTF-8"?> +<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd"> +<pkgmetadata> + <maintainer type="person"> + <email>zerochaos@gentoo.org</email> + </maintainer> + <longdescription lang="en"> + </longdescription> +</pkgmetadata> 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 +} |