Gentoo Archives: gentoo-commits

From: Rick Farina <zerochaos@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: net-wireless/ubertooth/
Date: Thu, 07 Jan 2021 03:00:10
Message-Id: 1609988366.0b2d3b367f31ba27428683775fb870e007c5dfd8.zerochaos@gentoo
1 commit: 0b2d3b367f31ba27428683775fb870e007c5dfd8
2 Author: Rick Farina <zerochaos <AT> gentoo <DOT> org>
3 AuthorDate: Thu Jan 7 02:58:31 2021 +0000
4 Commit: Rick Farina <zerochaos <AT> gentoo <DOT> org>
5 CommitDate: Thu Jan 7 02:59:26 2021 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=0b2d3b36
7
8 net-wireless/ubertooth: bump
9
10 Package-Manager: Portage-3.0.12, Repoman-3.0.2
11 Signed-off-by: Rick Farina <zerochaos <AT> gentoo.org>
12
13 net-wireless/ubertooth/Manifest | 1 +
14 net-wireless/ubertooth/ubertooth-2020.12.1.ebuild | 69 +++++++++++++++++++++++
15 2 files changed, 70 insertions(+)
16
17 diff --git a/net-wireless/ubertooth/Manifest b/net-wireless/ubertooth/Manifest
18 index c515f631608..03ea22126d6 100644
19 --- a/net-wireless/ubertooth/Manifest
20 +++ b/net-wireless/ubertooth/Manifest
21 @@ -1 +1,2 @@
22 DIST ubertooth-2018-12-R1.tar.xz 704208 BLAKE2B 7a17830a0ed417a737d78aa22c5a6a270a67b350a3a5e9a0aebabd4b38547d8d35551e061ea3d5260996f8fe1a366c75c8773d5e3a6abf37a0930f93200da3fc SHA512 409fdb403d6a3fa84b92757e0fd8672b1403ba3d24888fbde4d6d6923d8e0796914c20d38e2fc58909f81fcb8a0b6290bcf91282bb02354c310e6e91ad85e23b
23 +DIST ubertooth-2020-12-R1.tar.xz 763952 BLAKE2B 592c5fa689e0f944875bd777dedfd83394ebe5c9c65c1ac2c19006a949daeda8440dc102e537cf97b4547e0730df8f47d5c2a420d84d5dc770577b6039e16b28 SHA512 f127cae09d9b20dc34ffad080871f4505cbeccc1117e0e4e841ecf4a30f578d02b67b52786d7a82bdfc43d06562919008c076f8eb9befc7e4bd95def05a3864c
24
25 diff --git a/net-wireless/ubertooth/ubertooth-2020.12.1.ebuild b/net-wireless/ubertooth/ubertooth-2020.12.1.ebuild
26 new file mode 100644
27 index 00000000000..c3cfc479045
28 --- /dev/null
29 +++ b/net-wireless/ubertooth/ubertooth-2020.12.1.ebuild
30 @@ -0,0 +1,69 @@
31 +# Copyright 1999-2021 Gentoo Authors
32 +# Distributed under the terms of the GNU General Public License v2
33 +
34 +EAPI="7"
35 +
36 +inherit cmake udev
37 +
38 +HOMEPAGE="http://ubertooth.sourceforge.net/"
39 +
40 +LICENSE="GPL-2"
41 +SLOT="0"
42 +IUSE="+bluez static-libs +ubertooth1-firmware +udev"
43 +
44 +DEPEND="bluez? ( net-wireless/bluez:= )
45 + >=net-libs/libbtbb-${PV}:=[static-libs?]
46 + static-libs? ( dev-libs/libusb[static-libs] )
47 + virtual/libusb:1="
48 +RDEPEND="${DEPEND}
49 + udev? ( virtual/udev )"
50 +
51 +MY_PV=${PV/\./-}
52 +MY_PV=${MY_PV/./-R}
53 +if [[ ${PV} == "9999" ]] ; then
54 + EGIT_REPO_URI="https://github.com/greatscottgadgets/ubertooth.git"
55 + inherit git-r3
56 + S="${WORKDIR}/${P}/host"
57 +else
58 + S="${WORKDIR}/${PN}-${MY_PV}/host"
59 + SRC_URI="https://github.com/greatscottgadgets/${PN}/releases/download/${MY_PV}/${PN}-${MY_PV}.tar.xz"
60 + KEYWORDS="~amd64 ~arm ~x86"
61 +fi
62 +DESCRIPTION="open source wireless development platform suitable for Bluetooth experimentation"
63 +
64 +#readd firmware building, but do it right
65 +#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
66 +
67 +src_configure() {
68 + local mycmakeargs=(
69 + -DUSE_BLUEZ=$(usex bluez)
70 + -DBUILD_STATIC_LIB=$(usex static-libs)
71 + -DINSTALL_UDEV_RULES=$(usex udev)
72 + -DENABLE_PYTHON=false
73 + )
74 + if use udev; then
75 + mycmakeargs+=(
76 + -DUDEV_RULES_GROUP=usb
77 + -DUDEV_RULES_PATH="$(get_udevdir)/rules.d"
78 + )
79 + fi
80 + cmake_src_configure
81 +}
82 +
83 +src_install() {
84 + cmake_src_install
85 +
86 + insinto /usr/share/${PN}
87 + pushd "${WORKDIR}/${PN}-${MY_PV}" || die
88 + if [[ ${PV} == "9999" ]] ; then
89 + ewarn "Firmware isn't available for git releases, we assume you are already"
90 + ewarn "on the latest and/or can build your own."
91 + else
92 + use ubertooth1-firmware && newins ubertooth-one-firmware-bin/bluetooth_rxtx.dfu ${PN}-one-${PV}-bluetooth_rxtx.dfu
93 + use ubertooth1-firmware && newins ubertooth-one-firmware-bin/bluetooth_rx_only.dfu ${PN}-one-${PV}-bluetooth_rx_only.dfu
94 + fi
95 + popd
96 +
97 + elog "Everyone can read from the ubertooth, but to talk to it"
98 + elog "your user needs to be in the usb group."
99 +}