diff --git a/dev-python/cc2538-bsl/cc2538-bsl-9999.ebuild b/dev-python/cc2538-bsl/cc2538-bsl-9999.ebuild new file mode 100644 index 0000000000..218a8cb06a --- /dev/null +++ b/dev-python/cc2538-bsl/cc2538-bsl-9999.ebuild @@ -0,0 +1,27 @@ +# Copyright 2024 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=8 + +DISTUTILS_USE_PEP517=setuptools +PYTHON_COMPAT=( python3_{11..13} ) + +inherit distutils-r1 git-r3 + +DESCRIPTION="upload firmware via the serial boot loader onto the CC13xx, CC2538 and CC26xx" +HOMEPAGE="https://github.com/JelmerT/cc2538-bsl" +# Using a fork for sonoff support +# https://github.com/JelmerT/cc2538-bsl/pull/168 +# https://github.com/JelmerT/cc2538-bsl/pull/173 +EGIT_REPO_URI="https://github.com/sultanqasim/cc2538-bsl.git" + +LICENSE="BSD" +SLOT="0" + +RDEPEND=" + dev-python/intelhex + dev-python/python-magic +" +BDEPEND="test? ( dev-python/scripttest )" + +distutils_enable_tests pytest diff --git a/net-wireless/Sniffle/Manifest b/net-wireless/Sniffle/Manifest new file mode 100644 index 0000000000..354064e715 --- /dev/null +++ b/net-wireless/Sniffle/Manifest @@ -0,0 +1,11 @@ +DIST Sniffle-1.9.3.tar.gz 97388 BLAKE2B 069804ca685913351ffadf9510a236042e64c32d379fda923887ec5363c17eadaf4d49fce253d8298c1724860fa6bc90a75b8bb898ea88a4d81d648fb3a0f640 SHA512 0254dcf166135bd7f0c94238fa9b0fa15e984b6eb5556d55d356687d36dd45b7a983911832228b3c8846f8751976e74edf9692a0f8a3e25f50227f1cc7c586b9 +DIST sniffle_cc1352p1_cc2652p1.hex 173957 BLAKE2B 19ca0fc676c8a724caeabc79f0c52b754079a05ef22854512073f6cef05782b4c6417a817bc20dc429f54a24d0e9037d18fddd291cc6f6dacb7fc3b626a358a5 SHA512 2a010c82ee0b833e69cf15decd9c9804fa2dce99ee85397417ab0056844a030da10b44a536466528284d700c9c786f42b56339a821e364b044c13e423d6b927c +DIST sniffle_cc1352p1_cc2652p1_1M.hex 173957 BLAKE2B 33e9a205c97dfffb08f0887facfd48970abb55d37adba4b5a36dceb8bf136259cc2e0c09fc8a6247e9ad77513e3d81a20259d33dd87ca562cd4b2aefb339d99d SHA512 ed2d7e786c1a4dfb2e387b6e01553c93c48d2bd5b6180994c2c8f0f62698e02756637fc9d864524bcf63344bf5d39def7ef36f0e11993e8a25d184bb4470cb7d +DIST sniffle_cc1352p7.hex 173110 BLAKE2B 06301b550f1dc49b5537c4b0da276fbabef15e683d1bba0e817e1e813d4677825f9d872755fe1aa2f97569506188ba953da19b8c9224ba7533305ed3aff5e8dc SHA512 8433f7ea2d7084d3ad5488894689a16345d64cbc706497999bb282648e8f05f660b12f7c36b63a360553cb39c4325cda779856bd1f2135d3aa981b603cd4a726 +DIST sniffle_cc1352r1.hex 172787 BLAKE2B abb900da908ff670de1580fb1d3d1d21047fb16958067bf48e72078ce0a9f3f456ff740852d38e7e1bf63dbb16bce6dabfc4aeef586d048857681b4563f5c20f SHA512 eb6c4dbd842c3378ba1c45405cc17bd09538e963343e9c7b83d40ff4201a9e96faf2c0c562ea14cfe64cfef6e1cea3fb790cfbf6cb7399807497cd8772dbebb2 +DIST sniffle_cc1354p10.hex 181644 BLAKE2B 475d7cd9b4e3233ddbce14249f3fc51b10f53f6b0e977556ce507adfd27a9c61d7a987d912b6e696c77e2b0ba62ad3f8b9c733e095097b0f80361356de215ff2 SHA512 17d037a983c792e60a35affd8a192cf3b6a5a9725f665ee86cbd7f43e53b994a4ed08d8adb8df9e4bed7db45905e70d0a3baf3e07663c60d9ade59c491647418 +DIST sniffle_cc2651p3.hex 168880 BLAKE2B 304f6c9dee162ce33c7b5dc903c6b40d6b6c713bd77d74831dadd695e4f95fde8c8aabb604cdedbedb1416677cdb3389ba82ed676651771c79739522c022102d SHA512 e09e128e1d7546ea6c79e7a96a8db0eba7e4ff9801a47df751f2fc7be7da289832e5ed01f7274e5e2f63009f5dc029fc6d7b5b665577cb0d0cec6efdb4dfbf50 +DIST sniffle_cc2652r1.hex 172787 BLAKE2B f252cdda33f02be4631cdccddf0245f1eb42fff179110ddcf63e435edb402cff33e5ce9988ec11054c7ff8b994a0f7be1ee8f012cfbbbda168853244dad82355 SHA512 7255276f8f56fa2626cfe8ce66ba94340b43537c9e87be3d89e69401f35cdf35216915b9298bb3a75dff9d74226e72ec2a378620d948ca8fc7c0c3ec817d3b50 +DIST sniffle_cc2652r7.hex 171924 BLAKE2B 40966fcf2654eff01ab900a97905567b9e65ae390f6683eab1ba411c71863ffcd9914b2a973bc56ab7b373f420c72d23ffa13145f8c2724903b5c098e1b0cf14 SHA512 8d65df03064bd6e99fccf594dd9c0257967e140cc54e80c20a2cea17e4165727f336c2a07fb1c804b9be4e960e44e24f9081750df984d22d516d392b993e2aa1 +DIST sniffle_cc2652rb.hex 187717 BLAKE2B 552d47ebb9462e14daf969f979566f966f06a24d576e84fcbc96088e76ebf9c448bcd131dd8e69fbde12e734423f4224843842c9273917fb9955ccc7e516db05 SHA512 3c4b079547370ea498586e079ab14b25358c925f9c72c79f16821e00d052a92d9f3e3b5588ca88a048ce46b3319aa484479c8b7499f5d762772fb45a47cb3b2a +DIST sniffle_cc2652rb_1M.hex 187717 BLAKE2B 01808f6b712231fe947ecc1693b15fdaa57ef9a94701a890d25dbc9c30ee1d72d2da2c98fec5c07c4b1c0f077382b7d3d5aa414c242d3f65176e4fee01b68eab SHA512 319f356ed13a5ef13738055e82897b74f61f9d4a58b1d3e79fa7f92277d82e7d935848ef916e690ab4b6bac78baaa964c7f58f18c26073d3bc1599788e775ee1 diff --git a/net-wireless/Sniffle/Sniffle-1.9.3.ebuild b/net-wireless/Sniffle/Sniffle-1.9.3.ebuild new file mode 100644 index 0000000000..809294be22 --- /dev/null +++ b/net-wireless/Sniffle/Sniffle-1.9.3.ebuild @@ -0,0 +1,53 @@ +# Copyright 2024 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=8 + +PYTHON_COMPAT=( python3_{11..12} ) + +inherit python-single-r1 + +DESCRIPTION="A sniffer for Bluetooth 5 and 4.x LE" +HOMEPAGE="https://github.com/nccgroup/Sniffle" + +SRC_URI="https://github.com/nccgroup/Sniffle/archive/v${PV}.tar.gz -> ${P}.tar.gz \ + https://github.com/nccgroup/Sniffle/releases/download/v${PV}/sniffle_cc1352p1_cc2652p1.hex \ + https://github.com/nccgroup/Sniffle/releases/download/v${PV}/sniffle_cc1352p1_cc2652p1_1M.hex \ + https://github.com/nccgroup/Sniffle/releases/download/v${PV}/sniffle_cc1352p7.hex \ + https://github.com/nccgroup/Sniffle/releases/download/v${PV}/sniffle_cc1352r1.hex \ + https://github.com/nccgroup/Sniffle/releases/download/v${PV}/sniffle_cc1354p10.hex \ + https://github.com/nccgroup/Sniffle/releases/download/v${PV}/sniffle_cc2651p3.hex \ + https://github.com/nccgroup/Sniffle/releases/download/v${PV}/sniffle_cc2652r1.hex \ + https://github.com/nccgroup/Sniffle/releases/download/v${PV}/sniffle_cc2652r7.hex \ + https://github.com/nccgroup/Sniffle/releases/download/v${PV}/sniffle_cc2652rb.hex \ + https://github.com/nccgroup/Sniffle/releases/download/v${PV}/sniffle_cc2652rb_1M.hex" +LICENSE="GPL-3" +SLOT="0" +#KEYWORDS="~amd64 ~x86" +REQUIRED_USE="${PYTHON_REQUIRED_USE}" + +RDEPEND="$(python_gen_cond_dep 'dev-python/cc2538-bsl[${PYTHON_USEDEP}]') + ${PYTHON_DEPS}" + +src_install() { + insinto "/usr/share/${PN}" + doins "${DISTDIR}/sniffle_cc1352p1_cc2652p1.hex" + doins "${DISTDIR}/sniffle_cc1352p1_cc2652p1_1M.hex" + doins "${DISTDIR}/sniffle_cc1352p7.hex" + doins "${DISTDIR}/sniffle_cc1352r1.hex" + doins "${DISTDIR}/sniffle_cc1354p10.hex" + doins "${DISTDIR}/sniffle_cc2651p3.hex" + doins "${DISTDIR}/sniffle_cc2652r1.hex" + doins "${DISTDIR}/sniffle_cc2652r7.hex" + doins "${DISTDIR}/sniffle_cc2652rb.hex" + doins "${DISTDIR}/sniffle_cc2652rb_1M.hex" + + insinto "/usr/$(get_libdir)/wireshark/extcap" + doins python_cli/*.py + exeinto "/usr/$(get_libdir)/wireshark/extcap" + doexe python_cli/sniffle_extcap.py +} + +pkg_postinst() { + einfo "Pre-compiled firmwares from upstream are installed in /usr/share/${PN}" +} diff --git a/net-wireless/Sniffle/metadata.xml b/net-wireless/Sniffle/metadata.xml new file mode 100644 index 0000000000..18281d003b --- /dev/null +++ b/net-wireless/Sniffle/metadata.xml @@ -0,0 +1,11 @@ + + + + + sidhayn@gmail.com + Zero_Chaos + + + nccgroup/Sniffle + +