--- /dev/null
+DIST 93c238725bdcf2f50c8a1d3789cf56e90f7bab7f.tar.gz 67322675 BLAKE2B 6ad4b5c4a32e70e7336d1bcac9f9c3e0dd1bdc0ca42e67bef20e9f31475e127f212d3558e20d275e18651cef018c134e233c5b8c0c9e85e558414e2c15993ac6 SHA512 2f29ad22d8ae2e71cdd359e066989928576a7e8c0ff344833445843df4cdb343ae1d6336810595fe720cb3d56867c8c17d8776dcb3bfda02eb53b85c9c930ef1
--- /dev/null
+# Copyright 2020 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=7
+
+inherit java-pkg-2
+
+DESCRIPTION="Remote video eavesdropping using a software-defined radio platform"
+HOMEPAGE="https://github.com/deltj/TempestSDR.git"
+
+LICENSE="GPL-3"
+SLOT="0"
+if [ "${PV}" = "9999" ]; then
+ inherit git-r3
+ EGIT_REPO_URI="https://github.com/deltj/TempestSDR.git"
+else
+ KEYWORDS="~amd64 ~x86"
+ COMMIT="93c238725bdcf2f50c8a1d3789cf56e90f7bab7f"
+ SRC_URI="https://github.com/deltj/TempestSDR/archive/${COMMIT}.tar.gz"
+ S="${WORKDIR}/TempestSDR-${COMMIT}"
+fi
+IUSE=""
+
+DEPEND=">=virtual/jdk-1.7:*
+ net-wireless/airspy
+ net-wireless/uhd:=
+ net-wireless/rtl-sdr
+ net-wireless/bladerf:=
+ net-wireless/hackrf-tools"
+RDEPEND="${DEPEND}"
+BDEPEND=""
+
+src_compile() {
+ emake 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
+}
-# Copyright 2019 Gentoo Authors
+# Copyright 2020 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
EAPI=7
-inherit git-r3 java-pkg-2
+inherit java-pkg-2
DESCRIPTION="Remote video eavesdropping using a software-defined radio platform"
HOMEPAGE="https://github.com/deltj/TempestSDR.git"
-EGIT_REPO_URI="https://github.com/deltj/TempestSDR.git"
LICENSE="GPL-3"
SLOT="0"
-KEYWORDS=""
+if [ "${PV}" = "9999" ]; then
+ inherit git-r3
+ EGIT_REPO_URI="https://github.com/deltj/TempestSDR.git"
+else
+ KEYWORDS="~amd64 ~x86"
+ COMMIT="93c238725bdcf2f50c8a1d3789cf56e90f7bab7f"
+ SRC_URI="https://github.com/deltj/TempestSDR/archive/${COMMIT}.tar.gz"
+ S="${WORKDIR}/TempestSDR-${COMMIT}"
+fi
IUSE=""
DEPEND=">=virtual/jdk-1.7:*
RDEPEND="${DEPEND}"
BDEPEND=""
-src_prepare() {
- #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 all
}