net-wireless/nrf_sniffer_ble: add ebuild, add to pentoo-radio

This commit is contained in:
Rick Farina (Zero_Chaos) 2022-07-25 15:20:53 -04:00
parent e892d59c4f
commit 416f7872d1
No known key found for this signature in database
GPG key ID: A29433C0AA431DDC
3 changed files with 40 additions and 0 deletions

View file

@ -0,0 +1 @@
DIST nrf_sniffer_ble-4.1.0.zip 1159131 BLAKE2B 503638e50f983c4cc4c281d734fc4aefd7e614dbf8d0fa9f299555993dc1d79ba87e352d6751e5e5a8f8f168c8376ca4cd7bc50d796a2edfa6fc5cca334ea7bc SHA512 a43f63afb51daca48ba069dc705142f5a6a5ec4ebcae12592971961ffd9732ba36569082068c43a470296e880ee3e46cc8d5cb95f4b01de3c52dc411058efdc9

View file

@ -0,0 +1,38 @@
# Copyright 2022 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
EAPI=8
PYTHON_COMPAT=( python3_{8..10} )
inherit python-any-r1
DESCRIPTION="nRF Sniffer for Bluetooth LE"
HOMEPAGE="https://www.nordicsemi.com/Products/Development-tools/nRF-Sniffer-for-Bluetooth-LE"
SRC_URI="https://www.nordicsemi.com/-/media/Software-and-other-downloads/Desktop-software/nRF-Sniffer/sw/nrf_sniffer_for_bluetooth_le_4.1.0.zip -> ${P}.zip"
KEYWORDS="amd64 arm arm64 x86"
S="${WORKDIR}"
LICENSE="MIT"
SLOT="0"
DEPEND="net-analyzer/wireshark
${PYTHON_DEPS}"
RDEPEND="${DEPEND}
$(python_gen_any_dep 'dev-python/pyserial[${PYTHON_USEDEP}]')"
BDEPEND=""
src_install() {
insinto /usr/share/${PN}
doins "hex/sniffer_nrf51dk_nrf51422_${PV}.hex"
doins "hex/sniffer_nrf52833dk_nrf52833_${PV}.hex"
doins "hex/sniffer_nrf52840dongle_nrf52840_${PV}.hex"
doins "hex/sniffer_nrf51dongle_nrf51422_${PV}.hex"
doins "hex/sniffer_nrf52840dk_nrf52840_${PV}.hex"
doins "hex/sniffer_nrf52dk_nrf52832_${PV}.hex"
exeinto "/usr/$(get_libdir)/wireshark/extcap"
doexe extcap/nrf_sniffer_ble.py
insinto "/usr/$(get_libdir)/wireshark/extcap"
doins -r extcap/SnifferAPI
}

View file

@ -21,6 +21,7 @@ PDEPEND="net-wireless/gnuradio[uhd?]
rtlsdr? ( net-wireless/rtl-sdr )
bluetooth? (
net-wireless/nrf_sniffer_ble
bladerf? ( net-wireless/btle-sniffer )
hackrf? ( net-wireless/btle-sniffer )
)