From 4cf4817f843e375e69885c8c3a2a4aba97a60dc9 Mon Sep 17 00:00:00 2001 From: Rick Farina Date: Fri, 23 Feb 2024 14:16:30 -0500 Subject: net-wireless/hackrf-tools: add 2024.02.1 minor qa Signed-off-by: Rick Farina --- net-wireless/hackrf-tools/Manifest | 1 + .../hackrf-tools/hackrf-tools-2023.01.1.ebuild | 3 +- .../hackrf-tools/hackrf-tools-2024.02.1.ebuild | 47 ++++++++++++++++++++++ net-wireless/hackrf-tools/hackrf-tools-9999.ebuild | 3 +- 4 files changed, 50 insertions(+), 4 deletions(-) create mode 100644 net-wireless/hackrf-tools/hackrf-tools-2024.02.1.ebuild (limited to 'net-wireless/hackrf-tools') diff --git a/net-wireless/hackrf-tools/Manifest b/net-wireless/hackrf-tools/Manifest index cf1f0ee7dde5..872055496e53 100644 --- a/net-wireless/hackrf-tools/Manifest +++ b/net-wireless/hackrf-tools/Manifest @@ -1 +1,2 @@ DIST hackrf-2023.01.1.tar.xz 23030956 BLAKE2B f0ea4f92208d1db5b4e1c11231e4420db757c08e28e7a80d79e70b02d868689ddf516bc6f003fc208f60c221c9153412a12fe3cbdf8f58001c1f7cdd26383ac0 SHA512 7c2ef9c5c050e258a0d1695240f9163955cb3ea9ab9163aad6bdbdebfdb82cde9925818ced3323342fe9c4ddb80dcedbc5a7986caaa4e0b7036e8e07bec0296e +DIST hackrf-2024.02.1.tar.xz 21734672 BLAKE2B 493a886719aa90e1b52229beaec45cb9db315dc91d001c275dd3989cde56fe6a312d4fca1c27b4c1366a4653880e74ab3d1e4363ee392d0f93deb631b7fddac4 SHA512 d057574f1e9b1bc2cebcd06773054b7fcba55d44e4c028f4f95e67874b71bd0a83906795a391e283c15d2b21ad7f3e8337be5aa0ee2f6a3c57632a70da10e2e4 diff --git a/net-wireless/hackrf-tools/hackrf-tools-2023.01.1.ebuild b/net-wireless/hackrf-tools/hackrf-tools-2023.01.1.ebuild index c5e13f482da1..b60dec9c16a1 100644 --- a/net-wireless/hackrf-tools/hackrf-tools-2023.01.1.ebuild +++ b/net-wireless/hackrf-tools/hackrf-tools-2023.01.1.ebuild @@ -1,4 +1,4 @@ -# Copyright 1999-2023 Gentoo Authors +# Copyright 1999-2024 Gentoo Authors # Distributed under the terms of the GNU General Public License v2 EAPI=8 @@ -21,7 +21,6 @@ fi LICENSE="BSD" SLOT="0" -IUSE="" DEPEND="~net-libs/libhackrf-${PV}:= sci-libs/fftw:3.0=" diff --git a/net-wireless/hackrf-tools/hackrf-tools-2024.02.1.ebuild b/net-wireless/hackrf-tools/hackrf-tools-2024.02.1.ebuild new file mode 100644 index 000000000000..8438e9697bb7 --- /dev/null +++ b/net-wireless/hackrf-tools/hackrf-tools-2024.02.1.ebuild @@ -0,0 +1,47 @@ +# Copyright 1999-2024 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=8 + +inherit cmake + +DESCRIPTION="tools for communicating with HackRF SDR platform" +HOMEPAGE="http://greatscottgadgets.com/hackrf/" + +if [[ ${PV} == "9999" ]] ; then + EGIT_REPO_URI="https://github.com/greatscottgadgets/hackrf.git" + inherit git-r3 + EGIT_CHECKOUT_DIR="${WORKDIR}/hackrf" + S="${WORKDIR}/hackrf/host/hackrf-tools" +else + S="${WORKDIR}/hackrf-${PV}/host/hackrf-tools" + SRC_URI="https://github.com/greatscottgadgets/hackrf/releases/download/v${PV}/hackrf-${PV}.tar.xz" + KEYWORDS="~amd64 ~arm ~ppc ~x86" +fi + +LICENSE="BSD" +SLOT="0" + +DEPEND="~net-libs/libhackrf-${PV}:= + sci-libs/fftw:3.0=" +RDEPEND="${DEPEND}" + +src_install() { + cmake_src_install + 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 + newins "${WORKDIR}/hackrf-${PV}/firmware-bin/hackrf_jawbreaker_usb.dfu" hackrf_jawbreaker_usb-${PV}.dfu + newins "${WORKDIR}/hackrf-${PV}/firmware-bin/hackrf_one_usb.bin" hackrf_one_usb-${PV}.bin + newins "${WORKDIR}/hackrf-${PV}/firmware-bin/hackrf_one_usb.dfu" hackrf_one_usb-${PV}.dfu + newins "${WORKDIR}/hackrf-${PV}/firmware/cpld/sgpio_if/default.xsvf" hackrf_cpld_default-${PV}.xsvf + ln -s hackrf_one_usb-${PV}.bin "${ED}/usr/share/hackrf/hackrf_one_usb_rom_to_ram.bin" + ln -s hackrf_one_usb-${PV}.bin "${ED}/usr/share/hackrf/hackrf_one_usb.bin" + ln -s hackrf_one_usb-${PV}.dfu "${ED}/usr/share/hackrf/hackrf_one_usb_ram.dfu" + ln -s hackrf_one_usb-${PV}.dfu "${ED}/usr/share/hackrf/hackrf_one_usb.dfu" + else + ewarn "The compiled firmware files are only available in the versioned releases, you are on your own for this." + ewarn "A hackrf-firmware ebuild is available in the pentoo overlay, if you feel adventurous." + fi +} diff --git a/net-wireless/hackrf-tools/hackrf-tools-9999.ebuild b/net-wireless/hackrf-tools/hackrf-tools-9999.ebuild index 0e79b121fd86..8438e9697bb7 100644 --- a/net-wireless/hackrf-tools/hackrf-tools-9999.ebuild +++ b/net-wireless/hackrf-tools/hackrf-tools-9999.ebuild @@ -1,4 +1,4 @@ -# Copyright 1999-2022 Gentoo Authors +# Copyright 1999-2024 Gentoo Authors # Distributed under the terms of the GNU General Public License v2 EAPI=8 @@ -21,7 +21,6 @@ fi LICENSE="BSD" SLOT="0" -IUSE="" DEPEND="~net-libs/libhackrf-${PV}:= sci-libs/fftw:3.0=" -- cgit v1.2.3-65-gdbad