mirror of
https://github.com/gentoo-mirror/gentoo.git
synced 2026-09-24 04:59:14 -07:00
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>
This commit is contained in:
@@ -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
|
||||
@@ -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
|
||||
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user