diff --git a/licenses/Nordic-5 b/licenses/Nordic-5 new file mode 100644 index 000000000..ac1320cd6 --- /dev/null +++ b/licenses/Nordic-5 @@ -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. diff --git a/net-wireless/nrf802154_sniffer/Manifest b/net-wireless/nrf802154_sniffer/Manifest new file mode 100644 index 000000000..236023a8d --- /dev/null +++ b/net-wireless/nrf802154_sniffer/Manifest @@ -0,0 +1 @@ +DIST nrf802154_sniffer-0.7.2_p20220511.tar.gz 137284 BLAKE2B c18e7701d127183608f5240710677b47d85966179d374049702ba60519aaccfe73b696269b54d8e8b2b3d0ebe6bc7f145ee1634aa29794ebbbeff9ae5c986bfe SHA512 9d5004de26896d85c54bc23a42f0fd524ffa643f1e64e2eba0cc9f1b5798df6d2b9e15f34a3aeb0ab69f982410641f73810883b1bf9c4bc962081c8b545b899c diff --git a/net-wireless/nrf802154_sniffer/nrf802154_sniffer-0.7.2_p20220511.ebuild b/net-wireless/nrf802154_sniffer/nrf802154_sniffer-0.7.2_p20220511.ebuild new file mode 100644 index 000000000..d3d61fdbf --- /dev/null +++ b/net-wireless/nrf802154_sniffer/nrf802154_sniffer-0.7.2_p20220511.ebuild @@ -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 +} diff --git a/net-wireless/nrf802154_sniffer/nrf802154_sniffer-9999.ebuild b/net-wireless/nrf802154_sniffer/nrf802154_sniffer-9999.ebuild new file mode 100644 index 000000000..d3d61fdbf --- /dev/null +++ b/net-wireless/nrf802154_sniffer/nrf802154_sniffer-9999.ebuild @@ -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 +} diff --git a/pentoo/pentoo-radio/pentoo-radio-2022.1.ebuild b/pentoo/pentoo-radio/pentoo-radio-2022.2.ebuild similarity index 97% rename from pentoo/pentoo-radio/pentoo-radio-2022.1.ebuild rename to pentoo/pentoo-radio/pentoo-radio-2022.2.ebuild index 367070c47..3a6442d31 100644 --- a/pentoo/pentoo-radio/pentoo-radio-2022.1.ebuild +++ b/pentoo/pentoo-radio/pentoo-radio-2022.2.ebuild @@ -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 diff --git a/profiles/pentoo/base/make.defaults b/profiles/pentoo/base/make.defaults index c5d10f68b..21d68707d 100644 --- a/profiles/pentoo/base/make.defaults +++ b/profiles/pentoo/base/make.defaults @@ -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"