diff options
Diffstat (limited to 'net-wireless/ubertooth')
-rw-r--r-- | net-wireless/ubertooth/Manifest | 2 | ||||
-rw-r--r-- | net-wireless/ubertooth/ubertooth-2020.12.1.ebuild | 69 |
2 files changed, 71 insertions, 0 deletions
diff --git a/net-wireless/ubertooth/Manifest b/net-wireless/ubertooth/Manifest index 414211c1e95a..1f0eaad650da 100644 --- a/net-wireless/ubertooth/Manifest +++ b/net-wireless/ubertooth/Manifest @@ -1,5 +1,7 @@ AUX ubertooth-2018.12.1-gcc-10.patch 783 BLAKE2B e0d79ff3217de27b4c04c8e0427c5217753b739d6ce04ddcbb20bb2ce20f64d695fad4b969415bfd3b01232f4b08dcf6d5ec2b1096618e202c6a330903fac3e5 SHA512 4982db0ade9305520764801a9c4f7b3b2df070cfbc1549e766267136740f66fd392cbe8eeac28a5acd0f4196e9dbe3043a6707a07c770955a7b67a803bcbb70f DIST ubertooth-2018-12-R1.tar.xz 704208 BLAKE2B 7a17830a0ed417a737d78aa22c5a6a270a67b350a3a5e9a0aebabd4b38547d8d35551e061ea3d5260996f8fe1a366c75c8773d5e3a6abf37a0930f93200da3fc SHA512 409fdb403d6a3fa84b92757e0fd8672b1403ba3d24888fbde4d6d6923d8e0796914c20d38e2fc58909f81fcb8a0b6290bcf91282bb02354c310e6e91ad85e23b +DIST ubertooth-2020-12-R1.tar.xz 763952 BLAKE2B 592c5fa689e0f944875bd777dedfd83394ebe5c9c65c1ac2c19006a949daeda8440dc102e537cf97b4547e0730df8f47d5c2a420d84d5dc770577b6039e16b28 SHA512 f127cae09d9b20dc34ffad080871f4505cbeccc1117e0e4e841ecf4a30f578d02b67b52786d7a82bdfc43d06562919008c076f8eb9befc7e4bd95def05a3864c EBUILD ubertooth-2018.12.1.ebuild 2121 BLAKE2B f76d7998e10f672897c463b15f703eba820258f8ae6b6891846495fdb745be299dd0f4c1e902f4c7ebab5ed2b0b0cc0466b031e2909402f6801cfd36d0feb423 SHA512 4f5d29bbb09e2485e589a27ebce1d552504c49330b62b53c83bdca6c25ca164cc78ec02d1d45d616d99583941870e33e24d13d87c67a50341206de4d0b4629cf +EBUILD ubertooth-2020.12.1.ebuild 2077 BLAKE2B 1685985073295a888b4f301cc3a8c3cb4f69e14454a2554f3e2b8cc17ea967e2a23cedac6d2e90448a5136ab0818b810e111632104372fb95a15e831b64f6451 SHA512 2fc8b66630a598d17b77541e6afa96cd457eaad46b6a5fea6e8db220414199df53adbcca31c6479be8022e23c0e9e243267b9ab6f716952ad6d45aff4a070338 EBUILD ubertooth-9999.ebuild 2077 BLAKE2B 0955fc76aa31f91e02986c5c4b1379ea0beed4f8eaa9306feae2fc7e251bff7cbe79c46b121b1923cfeae247c3886244b7995e6c640852f917db638d1e60f4e2 SHA512 1f9e0ea4a0fed9a8e4c27a4f48496ca840103766cdada2799dec452304a88e41be3f68a4b59b4e9f0eb8ef9185c7f15b06a51cce8a1a5ed611190614d7a0a4eb MISC metadata.xml 562 BLAKE2B dea6d366f75fbf852510f4b7204d5b51f5d3e52ef0b55020fe3a67edc486ad757c4b388ed6de36611ba14084e985df57f7986c5cc4e17193a59c546608c6f92d SHA512 b266c4914480613ba2f64519152d73cb7c472755fbd378bd0e547d4e0cf2fe6069636e04bd64fd9c686ff42adcb126118936846d2cbc241f1cc081e28b390400 diff --git a/net-wireless/ubertooth/ubertooth-2020.12.1.ebuild b/net-wireless/ubertooth/ubertooth-2020.12.1.ebuild new file mode 100644 index 000000000000..c3cfc4790455 --- /dev/null +++ b/net-wireless/ubertooth/ubertooth-2020.12.1.ebuild @@ -0,0 +1,69 @@ +# Copyright 1999-2021 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI="7" + +inherit cmake udev + +HOMEPAGE="http://ubertooth.sourceforge.net/" + +LICENSE="GPL-2" +SLOT="0" +IUSE="+bluez static-libs +ubertooth1-firmware +udev" + +DEPEND="bluez? ( net-wireless/bluez:= ) + >=net-libs/libbtbb-${PV}:=[static-libs?] + static-libs? ( dev-libs/libusb[static-libs] ) + virtual/libusb:1=" +RDEPEND="${DEPEND} + udev? ( virtual/udev )" + +MY_PV=${PV/\./-} +MY_PV=${MY_PV/./-R} +if [[ ${PV} == "9999" ]] ; then + EGIT_REPO_URI="https://github.com/greatscottgadgets/ubertooth.git" + inherit git-r3 + S="${WORKDIR}/${P}/host" +else + S="${WORKDIR}/${PN}-${MY_PV}/host" + SRC_URI="https://github.com/greatscottgadgets/${PN}/releases/download/${MY_PV}/${PN}-${MY_PV}.tar.xz" + KEYWORDS="~amd64 ~arm ~x86" +fi +DESCRIPTION="open source wireless development platform suitable for Bluetooth experimentation" + +#readd firmware building, but do it right +#USE="-fortran -mudflap -nls -openmp -multilib" crossdev --without-headers --genv 'EXTRA_ECONF="--with-mode=thumb --with-cpu=cortex-m3 --with-float=soft"' -s4 -t arm-cortexm3-eabi + +src_configure() { + local mycmakeargs=( + -DUSE_BLUEZ=$(usex bluez) + -DBUILD_STATIC_LIB=$(usex static-libs) + -DINSTALL_UDEV_RULES=$(usex udev) + -DENABLE_PYTHON=false + ) + if use udev; then + mycmakeargs+=( + -DUDEV_RULES_GROUP=usb + -DUDEV_RULES_PATH="$(get_udevdir)/rules.d" + ) + fi + cmake_src_configure +} + +src_install() { + cmake_src_install + + insinto /usr/share/${PN} + pushd "${WORKDIR}/${PN}-${MY_PV}" || die + if [[ ${PV} == "9999" ]] ; then + ewarn "Firmware isn't available for git releases, we assume you are already" + ewarn "on the latest and/or can build your own." + else + use ubertooth1-firmware && newins ubertooth-one-firmware-bin/bluetooth_rxtx.dfu ${PN}-one-${PV}-bluetooth_rxtx.dfu + use ubertooth1-firmware && newins ubertooth-one-firmware-bin/bluetooth_rx_only.dfu ${PN}-one-${PV}-bluetooth_rx_only.dfu + fi + popd + + elog "Everyone can read from the ubertooth, but to talk to it" + elog "your user needs to be in the usb group." +} |