net-wireless/tempestsdr: add a stable candidate
authorRick Farina <zerochaos@gentoo.org>
Fri, 21 Feb 2020 19:41:36 +0000 (14:41 -0500)
committerRick Farina <zerochaos@gentoo.org>
Fri, 21 Feb 2020 19:41:48 +0000 (14:41 -0500)
Package-Manager: Portage-2.3.89, Repoman-2.3.20
Signed-off-by: Rick Farina <zerochaos@gentoo.org>
net-wireless/tempestsdr/Manifest [new file with mode: 0644]
net-wireless/tempestsdr/tempestsdr-0.0_p20200221.ebuild [new file with mode: 0644]
net-wireless/tempestsdr/tempestsdr-9999.ebuild

diff --git a/net-wireless/tempestsdr/Manifest b/net-wireless/tempestsdr/Manifest
new file mode 100644 (file)
index 0000000..d26505e
--- /dev/null
@@ -0,0 +1 @@
+DIST 93c238725bdcf2f50c8a1d3789cf56e90f7bab7f.tar.gz 67322675 BLAKE2B 6ad4b5c4a32e70e7336d1bcac9f9c3e0dd1bdc0ca42e67bef20e9f31475e127f212d3558e20d275e18651cef018c134e233c5b8c0c9e85e558414e2c15993ac6 SHA512 2f29ad22d8ae2e71cdd359e066989928576a7e8c0ff344833445843df4cdb343ae1d6336810595fe720cb3d56867c8c17d8776dcb3bfda02eb53b85c9c930ef1
diff --git a/net-wireless/tempestsdr/tempestsdr-0.0_p20200221.ebuild b/net-wireless/tempestsdr/tempestsdr-0.0_p20200221.ebuild
new file mode 100644 (file)
index 0000000..94ad5e3
--- /dev/null
@@ -0,0 +1,46 @@
+# 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
+}
index a7f4aecfedadabb7db95ce9abf03edc49ad4d0b7..94ad5e3071f5117a281b4cde13362784f5487988 100644 (file)
@@ -1,17 +1,24 @@
-# 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:*
@@ -23,12 +30,6 @@ 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
 }