net-wireless/nrf802154_sniffer: initial import, add to pentoo-radio

This commit is contained in:
Rick Farina (Zero_Chaos) 2022-07-25 14:51:00 -04:00
parent 64be7dbef7
commit e892d59c4f
No known key found for this signature in database
GPG key ID: A29433C0AA431DDC
6 changed files with 114 additions and 1 deletions

35
licenses/Nordic-5 Normal file
View file

@ -0,0 +1,35 @@
Copyright (c) 2019, Nordic Semiconductor ASA
All rights reserved.
Redistribution and use in source and binary forms, with or without modification,
are permitted provided that the following conditions are met:
1. Redistributions of source code must retain the above copyright notice, this
list of conditions and the following disclaimer.
2. Redistributions in binary form, except as embedded into a Nordic
Semiconductor ASA integrated circuit in a product or a software update for
such product, must reproduce the above copyright notice, this list of
conditions and the following disclaimer in the documentation and/or other
materials provided with the distribution.
3. Neither the name of Nordic Semiconductor ASA nor the names of its
contributors may be used to endorse or promote products derived from this
software without specific prior written permission.
4. This software, with or without modification, must only be used with a
Nordic Semiconductor ASA integrated circuit.
5. Any software provided in binary form under this license must not be reverse
engineered, decompiled, modified and/or disassembled.
THIS SOFTWARE IS PROVIDED BY NORDIC SEMICONDUCTOR ASA "AS IS" AND ANY EXPRESS
OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES
OF MERCHANTABILITY, NONINFRINGEMENT, AND FITNESS FOR A PARTICULAR PURPOSE ARE
DISCLAIMED. IN NO EVENT SHALL NORDIC SEMICONDUCTOR ASA OR CONTRIBUTORS BE
LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE
GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT
OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.

View file

@ -0,0 +1 @@
DIST nrf802154_sniffer-0.7.2_p20220511.tar.gz 137284 BLAKE2B c18e7701d127183608f5240710677b47d85966179d374049702ba60519aaccfe73b696269b54d8e8b2b3d0ebe6bc7f145ee1634aa29794ebbbeff9ae5c986bfe SHA512 9d5004de26896d85c54bc23a42f0fd524ffa643f1e64e2eba0cc9f1b5798df6d2b9e15f34a3aeb0ab69f982410641f73810883b1bf9c4bc962081c8b545b899c

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-based 802.15.4 sniffer"
HOMEPAGE="https://github.com/NordicSemiconductor/nRF-Sniffer-for-802.15.4"
if [ "${PV}" = "9999" ]; then
inherit git-r3
EGIT_REPO_URI="https://github.com/NordicSemiconductor/nRF-Sniffer-for-802.15.4.git"
else
COMMIT="2b76efe20d4bc1938803a90c60ea29db59bc1069"
SRC_URI="https://github.com/NordicSemiconductor/nRF-Sniffer-for-802.15.4/archive/${COMMIT}.tar.gz -> ${P}.tar.gz"
KEYWORDS="amd64 arm arm64 x86"
S="${WORKDIR}/nRF-Sniffer-for-802.15.4-${COMMIT}"
fi
LICENSE="Nordic-5"
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 nrf802154_sniffer/nrf802154_sniffer.hex
doins nrf802154_sniffer/nrf802154_sniffer_dongle.hex
insinto "/usr/$(get_libdir)/wireshark/extcap"
doins nrf802154_sniffer/nrf802154_sniffer.py
}

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-based 802.15.4 sniffer"
HOMEPAGE="https://github.com/NordicSemiconductor/nRF-Sniffer-for-802.15.4"
if [ "${PV}" = "9999" ]; then
inherit git-r3
EGIT_REPO_URI="https://github.com/NordicSemiconductor/nRF-Sniffer-for-802.15.4.git"
else
COMMIT="2b76efe20d4bc1938803a90c60ea29db59bc1069"
SRC_URI="https://github.com/NordicSemiconductor/nRF-Sniffer-for-802.15.4/archive/${COMMIT}.tar.gz -> ${P}.tar.gz"
KEYWORDS="amd64 arm arm64 x86"
S="${WORKDIR}/nRF-Sniffer-for-802.15.4-${COMMIT}"
fi
LICENSE="Nordic-5"
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 nrf802154_sniffer/nrf802154_sniffer.hex
doins nrf802154_sniffer/nrf802154_sniffer_dongle.hex
insinto "/usr/$(get_libdir)/wireshark/extcap"
doins nrf802154_sniffer/nrf802154_sniffer.py
}

View file

@ -41,6 +41,7 @@ PDEPEND="net-wireless/gnuradio[uhd?]
net-wireless/qdmr
net-wireless/dump1090
net-wireless/gr-ieee802154
net-wireless/nrf802154_sniffer
net-wireless/gr-rds
net-wireless/inspectrum
net-wireless/killerbee

View file

@ -65,7 +65,7 @@ PORTAGE_RSYNC_EXTRA_OPTS="--omit-dir-times"
DISTDIR="${PORTDIR}/distfiles"
PKGDIR="${PORTDIR}/packages"
ACCEPT_LICENSE="* -@EULA intel-ucode-20180807 FraunhoferFDK Intel-SDP"
ACCEPT_LICENSE="* -@EULA intel-ucode-20180807 FraunhoferFDK Intel-SDP Nordic-5"
GPSD_PROTOCOLS="nmea0183 nmea2000"