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