From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from lists.gentoo.org (pigeon.gentoo.org [208.92.234.80]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by finch.gentoo.org (Postfix) with ESMTPS id 3DA221382C5 for ; Tue, 30 Mar 2021 23:25:38 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id 5B9C9E0823; Tue, 30 Mar 2021 23:25:37 +0000 (UTC) Received: from smtp.gentoo.org (dev.gentoo.org [IPv6:2001:470:ea4a:1:5054:ff:fec7:86e4]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by pigeon.gentoo.org (Postfix) with ESMTPS id 3335BE0823 for ; Tue, 30 Mar 2021 23:25:37 +0000 (UTC) Received: from oystercatcher.gentoo.org (oystercatcher.gentoo.org [148.251.78.52]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.gentoo.org (Postfix) with ESMTPS id DBA0C340C7F for ; Tue, 30 Mar 2021 23:25:35 +0000 (UTC) Received: from localhost.localdomain (localhost [IPv6:::1]) by oystercatcher.gentoo.org (Postfix) with ESMTP id 395755B8 for ; Tue, 30 Mar 2021 23:25:34 +0000 (UTC) From: "Sam James" To: gentoo-commits@lists.gentoo.org Content-Transfer-Encoding: 8bit Content-type: text/plain; charset=UTF-8 Reply-To: gentoo-dev@lists.gentoo.org, "Sam James" Message-ID: <1617146692.37fec9fd6d75c8cab44a0470371f3b587be9c176.sam@gentoo> Subject: [gentoo-commits] repo/gentoo:master commit in: net-wireless/ubertooth/ X-VCS-Repository: repo/gentoo X-VCS-Files: net-wireless/ubertooth/Manifest net-wireless/ubertooth/ubertooth-2018.12.1.ebuild X-VCS-Directories: net-wireless/ubertooth/ X-VCS-Committer: sam X-VCS-Committer-Name: Sam James X-VCS-Revision: 37fec9fd6d75c8cab44a0470371f3b587be9c176 X-VCS-Branch: master Date: Tue, 30 Mar 2021 23:25:34 +0000 (UTC) Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-Id: Gentoo Linux mail X-BeenThere: gentoo-commits@lists.gentoo.org X-Auto-Response-Suppress: DR, RN, NRN, OOF, AutoReply X-Archives-Salt: e8b1a0fe-60ff-4751-8fe1-fa0b4aee8da1 X-Archives-Hash: 8d9466026a27b9ae5a10bb463ba0f00a commit: 37fec9fd6d75c8cab44a0470371f3b587be9c176 Author: Sam James gentoo org> AuthorDate: Tue Mar 30 23:24:52 2021 +0000 Commit: Sam James gentoo org> CommitDate: Tue Mar 30 23:24:52 2021 +0000 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=37fec9fd net-wireless/ubertooth: Revert "drop old" (restore stable version) kismet is stable so needs a stable version of ubertooth in tree. This reverts commit 192e85579ff29966aaeca626319646a5f85261f2. Signed-off-by: Sam James gentoo.org> net-wireless/ubertooth/Manifest | 1 + net-wireless/ubertooth/ubertooth-2018.12.1.ebuild | 71 +++++++++++++++++++++++ 2 files changed, 72 insertions(+) diff --git a/net-wireless/ubertooth/Manifest b/net-wireless/ubertooth/Manifest index 5c58d150391..03ea22126d6 100644 --- a/net-wireless/ubertooth/Manifest +++ b/net-wireless/ubertooth/Manifest @@ -1 +1,2 @@ +DIST ubertooth-2018-12-R1.tar.xz 704208 BLAKE2B 7a17830a0ed417a737d78aa22c5a6a270a67b350a3a5e9a0aebabd4b38547d8d35551e061ea3d5260996f8fe1a366c75c8773d5e3a6abf37a0930f93200da3fc SHA512 409fdb403d6a3fa84b92757e0fd8672b1403ba3d24888fbde4d6d6923d8e0796914c20d38e2fc58909f81fcb8a0b6290bcf91282bb02354c310e6e91ad85e23b DIST ubertooth-2020-12-R1.tar.xz 763952 BLAKE2B 592c5fa689e0f944875bd777dedfd83394ebe5c9c65c1ac2c19006a949daeda8440dc102e537cf97b4547e0730df8f47d5c2a420d84d5dc770577b6039e16b28 SHA512 f127cae09d9b20dc34ffad080871f4505cbeccc1117e0e4e841ecf4a30f578d02b67b52786d7a82bdfc43d06562919008c076f8eb9befc7e4bd95def05a3864c diff --git a/net-wireless/ubertooth/ubertooth-2018.12.1.ebuild b/net-wireless/ubertooth/ubertooth-2018.12.1.ebuild new file mode 100644 index 00000000000..d71069e391f --- /dev/null +++ b/net-wireless/ubertooth/ubertooth-2018.12.1.ebuild @@ -0,0 +1,71 @@ +# Copyright 1999-2020 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 + +PATCHES=( "${FILESDIR}"/"${P}"-gcc-10.patch ) + +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." +}