summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRick Farina <zerochaos@gentoo.org>2020-08-20 17:26:32 -0400
committerRick Farina <zerochaos@gentoo.org>2020-08-20 17:26:43 -0400
commitc4b3c6c06cfd14130ab9422f1ae4417b87c3f49c (patch)
tree5c731260a4cf98be9bc6900779e165b36ff7f5cb /net-wireless/hackrf-tools
parentmedia-libs/libjpeg-turbo: add some EAPI=7 love (diff)
downloadgentoo-c4b3c6c06cfd14130ab9422f1ae4417b87c3f49c.tar.gz
gentoo-c4b3c6c06cfd14130ab9422f1ae4417b87c3f49c.tar.bz2
gentoo-c4b3c6c06cfd14130ab9422f1ae4417b87c3f49c.zip
net-wireless/hackrf-tools: add support for mayhem
Package-Manager: Portage-3.0.4, Repoman-3.0.1 Signed-off-by: Rick Farina <zerochaos@gentoo.org>
Diffstat (limited to 'net-wireless/hackrf-tools')
-rw-r--r--net-wireless/hackrf-tools/files/hackrf_easy_flash-r1 (renamed from net-wireless/hackrf-tools/files/hackrf_easy_flash)8
-rw-r--r--net-wireless/hackrf-tools/hackrf-tools-2018.01.1-r2.ebuild (renamed from net-wireless/hackrf-tools/hackrf-tools-2018.01.1-r1.ebuild)2
-rw-r--r--net-wireless/hackrf-tools/hackrf-tools-9999.ebuild2
3 files changed, 10 insertions, 2 deletions
diff --git a/net-wireless/hackrf-tools/files/hackrf_easy_flash b/net-wireless/hackrf-tools/files/hackrf_easy_flash-r1
index 78d0c69b0cd5..deece5e31891 100644
--- a/net-wireless/hackrf-tools/files/hackrf_easy_flash
+++ b/net-wireless/hackrf-tools/files/hackrf_easy_flash-r1
@@ -50,6 +50,9 @@ list_firmware() {
if [ -r "/usr/share/hackrf/portapack-h1-havoc.bin" ]; then
printf "portapack-havoc (--havoc)\n"
fi
+ if [ -r "/usr/share/hackrf/portapack-h1_h2-mayhem.bin" ]; then
+ printf "portapack-mayhem (--mayhem)\n"
+ fi
}
#parse args
@@ -78,6 +81,11 @@ while [ -n "${1}" ]; do
TARGET=havoc
shift
;;
+ mayhem|--mayhem)
+ firmware="/usr/share/hackrf/portapack-h1_h2-mayhem.bin"
+ TARGET=mayhem
+ shift
+ ;;
cpld|--cpld)
CPLD=1
get_cpld
diff --git a/net-wireless/hackrf-tools/hackrf-tools-2018.01.1-r1.ebuild b/net-wireless/hackrf-tools/hackrf-tools-2018.01.1-r2.ebuild
index 85077b67001e..bc7430341b07 100644
--- a/net-wireless/hackrf-tools/hackrf-tools-2018.01.1-r1.ebuild
+++ b/net-wireless/hackrf-tools/hackrf-tools-2018.01.1-r2.ebuild
@@ -30,7 +30,7 @@ RDEPEND="${DEPEND}"
src_install() {
cmake_src_install
- dosbin "${FILESDIR}/hackrf_easy_flash"
+ newsbin "${FILESDIR}/hackrf_easy_flash-r1" hackrf_easy_flash
if [[ ${PV} != "9999" ]] ; then
insinto /usr/share/hackrf
newins "${WORKDIR}/hackrf-${PV}/firmware-bin/hackrf_jawbreaker_usb.bin" hackrf_jawbreaker_usb-${PV}.bin
diff --git a/net-wireless/hackrf-tools/hackrf-tools-9999.ebuild b/net-wireless/hackrf-tools/hackrf-tools-9999.ebuild
index d7c23f080763..db45e737e6b5 100644
--- a/net-wireless/hackrf-tools/hackrf-tools-9999.ebuild
+++ b/net-wireless/hackrf-tools/hackrf-tools-9999.ebuild
@@ -30,7 +30,7 @@ RDEPEND="${DEPEND}"
src_install() {
cmake_src_install
- dosbin "${FILESDIR}/hackrf_easy_flash"
+ newsbin "${FILESDIR}/hackrf_easy_flash-r1" hackrf_easy_flash
if [[ ${PV} != "9999" ]] ; then
insinto /usr/share/hackrf
newins "${WORKDIR}/hackrf-${PV}/firmware-bin/hackrf_jawbreaker_usb.bin" hackrf_jawbreaker_usb-${PV}.bin