commit:     4ee823569a6e626c666eda1e74ec967a28c4ca3a
Author:     Zero_Chaos <zerochaos <AT> gentoo <DOT> org>
AuthorDate: Mon Oct 12 22:27:28 2015 +0000
Commit:     Richard Farina <zerochaos <AT> gentoo <DOT> org>
CommitDate: Mon Oct 12 22:28:01 2015 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=4ee82356

net-wireless/ubertooth net-wireless/kismet-ubertooth net-libs/libbtbb: version 
bump

 net-libs/libbtbb/Manifest                          |   1 +
 net-libs/libbtbb/libbtbb-2015.10.1.ebuild          | 133 +++++++++++++++++++++
 net-wireless/kismet-ubertooth/Manifest             |   1 +
 .../kismet-ubertooth-2015.10.1.ebuild              |  54 +++++++++
 net-wireless/ubertooth/Manifest                    |   1 +
 ...ooth-9999.ebuild => ubertooth-2015.10.1.ebuild} |   3 +-
 net-wireless/ubertooth/ubertooth-9999.ebuild       |   3 +-
 7 files changed, 194 insertions(+), 2 deletions(-)

diff --git a/net-libs/libbtbb/Manifest b/net-libs/libbtbb/Manifest
index 222fa65..952fe8d 100644
--- a/net-libs/libbtbb/Manifest
+++ b/net-libs/libbtbb/Manifest
@@ -1,2 +1,3 @@
 DIST libbtbb-2015-09-R2.tar.gz 222045 SHA256 
35ce44636649163f0d9a4de5905f686470f54c79b408959760db8c8182853161 SHA512 
e300ec09de34644a0cd2f4aba2fe0b03021aaa0b0fe5035022f1e698ff10867adfd84850d0d40e9c070fbd622efee1b614221c1f5b1818f1d4f5d58cc3f31919
 WHIRLPOOL 
99d8c621b263cd3cd82e423eabff21d4979b0407c31430aa26424d273c9e3ed802e68833e3a100588a46a9a2126a84d0be56e41c1b609ea2eed4a3d64203c995
+DIST libbtbb-2015-10-R1.tar.gz 221859 SHA256 
95f493d379a53ec1134cfb36349cc9aac95d77260db4fdb557313b0dbb5c1d5a SHA512 
550d793326cfb4d31ed00d46faf3521ccafc133614f866961ba6226dff41d3deda428b45f01178e0dea7925635a64e843f0510049408c3f299ad427f2c0832ac
 WHIRLPOOL 
4ac8697150ff5215765a5331695bfc6d2967ff61a4fc89820dd8e3c72f52f51f3d5aff2b4f020de6c728cd368a295a90bbd0bb1cebb60d895c84d5219cc70e77
 DIST libbtbb-2015.09.2-rename-plugins.patch.xz 15636 SHA256 
391a51ef542deecbb680d7d14f1649e8190096bce38a38965bc00fe1e97ad038 SHA512 
40af251835fae9031a28720bf15ec9a903eac5fc42f38a0edf234021861e3c64e3fb77c03675ac7623b6dae901988d28f3ef90d53ea9e2b62b2d692ca0bf2d2f
 WHIRLPOOL 
eb15206c66f6293d509affa855f186ccfbb32c9d745675217c1228e7d07c0ef587bd6f997f664c1141e9fa0f4c453faefed3b82982b4099b53b81ec233b2dfec

diff --git a/net-libs/libbtbb/libbtbb-2015.10.1.ebuild 
b/net-libs/libbtbb/libbtbb-2015.10.1.ebuild
new file mode 100644
index 0000000..3d12be1
--- /dev/null
+++ b/net-libs/libbtbb/libbtbb-2015.10.1.ebuild
@@ -0,0 +1,133 @@
+# Copyright 1999-2015 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Id$
+
+EAPI=5
+
+inherit multilib cmake-utils
+
+DESCRIPTION="A library to decode Bluetooth baseband packets"
+HOMEPAGE="http://libbtbb.sourceforge.net/";
+
+if [[ ${PV} == "9999" ]] ; then
+       EGIT_REPO_URI="https://github.com/greatscottgadgets/libbtbb.git";
+       inherit git-r3
+       KEYWORDS=""
+else
+       MY_PV=${PV/\./-}
+       MY_PV=${MY_PV/./-R}
+       S=${WORKDIR}/${PN}-${MY_PV}
+       
SRC_URI="https://github.com/greatscottgadgets/${PN}/archive/${MY_PV}.tar.gz -> 
${PN}-${MY_PV}.tar.gz"
+       KEYWORDS="~amd64 ~arm ~x86"
+fi
+
+LICENSE="GPL-2"
+SLOT="0/${PV}"
+IUSE="+pcap +wireshark-plugins"
+
+RDEPEND="
+       pcap? ( net-libs/libpcap )
+       wireshark-plugins? (
+               >=net-analyzer/wireshark-1.8.3-r1:=
+               !>net-analyzer/wireshark-1.98
+       )
+"
+DEPEND="${RDEPEND}
+       wireshark-plugins? ( dev-libs/glib
+                       virtual/pkgconfig )"
+
+get_PV() { local pv=$(best_version $1); pv=${pv#$1-}; pv=${pv%-r*}; 
pv=${pv//_}; echo ${pv}; }
+
+which_plugins() {
+       if has_version '>=net-analyzer/wireshark-1.12.0'; then
+               plugins="btbb btbredr"
+       elif has_version '<net-analyzer/wireshark-1.12.0'; then
+               plugins="btbb btle btsm"
+       fi
+}
+
+src_prepare(){
+       CMAKE_USE_DIR="${S}"
+       BUILD_DIR="${S}"_build
+       cmake-utils_src_prepare
+
+       if use wireshark-plugins; then
+               which_plugins
+               for i in ${plugins}
+               do
+                       sed -i 's#column_info#packet#' 
wireshark/plugins/${i}/cmake/FindWireshark.cmake || die
+                       CMAKE_USE_DIR="${S}"/wireshark/plugins/${i}
+                       BUILD_DIR="${WORKDIR}"/${i}_build
+                       cmake-utils_src_prepare
+               done
+       fi
+}
+
+src_configure() {
+       CMAKE_USE_DIR="${S}"
+       BUILD_DIR="${S}"_build
+       local mycmakeargs=(
+               -DDISABLE_PYTHON=true
+               -DPACKAGE_MANAGER=true
+               $(cmake-utils_use pcap PCAPDUMP)
+               $(cmake-utils_use pcap USE_PCAP)
+       )
+       cmake-utils_src_configure
+
+       if use wireshark-plugins; then
+               for i in ${plugins}
+               do
+                       CMAKE_USE_DIR="${S}"/wireshark/plugins/${i}
+                       BUILD_DIR="${WORKDIR}"/${i}_build
+                       local mycmakeargs=(
+                       
-DCMAKE_INSTALL_LIBDIR="/usr/$(get_libdir)/wireshark/plugins/$(get_PV 
net-analyzer/wireshark)"
+                       )
+                       cmake-utils_src_configure
+               done
+       fi
+}
+
+src_compile(){
+       CMAKE_USE_DIR="${S}"
+       BUILD_DIR="${S}"_build
+       cmake-utils_src_compile
+
+       if use wireshark-plugins; then
+               for i in ${plugins}
+               do
+                       CMAKE_USE_DIR="${S}"/wireshark/plugins/${i}
+                       BUILD_DIR="${WORKDIR}"/${i}_build
+                       cmake-utils_src_compile
+               done
+       fi
+}
+
+src_test(){
+       CMAKE_USE_DIR="${S}"
+       BUILD_DIR="${S}"_build
+       cmake-utils_src_test
+
+       if use wireshark-plugins; then
+               for i in ${plugins}
+               do
+                       CMAKE_USE_DIR="${S}"/wireshark/plugins/${i}
+                       BUILD_DIR="${WORKDIR}"/${i}_build
+                       cmake-utils_src_test
+               done
+       fi
+}
+
+src_install(){
+       CMAKE_USE_DIR="${S}"
+       BUILD_DIR="${S}"_build
+       cmake-utils_src_install
+
+       if use wireshark-plugins; then
+               for i in ${plugins}
+               do
+                       CMAKE_USE_DIR="${S}"/wireshark/plugins/${i}
+                       BUILD_DIR="${WORKDIR}"/${i}_build
+                       cmake-utils_src_install
+               done
+       fi
+}

diff --git a/net-wireless/kismet-ubertooth/Manifest 
b/net-wireless/kismet-ubertooth/Manifest
index 22b1af3..fdbdd18 100644
--- a/net-wireless/kismet-ubertooth/Manifest
+++ b/net-wireless/kismet-ubertooth/Manifest
@@ -1 +1,2 @@
 DIST ubertooth-2015-09-R2.tar.xz 1706712 SHA256 
f2088c8c0e754df47dd8dbf604d5822bf5894b91e4505276c6f9e26b6a23b56d SHA512 
240f6d682fe0addc05bb8ccf7eec931534449adfa9c1369b484aeac73d9bcaf75c211aeede21c6c219e363773ce3d63e4aa0ee6b662acc83409587bd7ac7e4da
 WHIRLPOOL 
9fba78d1740efd342f3892ffc3cf914d1919ef1c7d282786a64afb72d6ed306dec3600363e3f85f2f70d9ccfba6b62f826a72942cb7c9316d151dd2718f79b09
+DIST ubertooth-2015-10-R1.tar.xz 1716840 SHA256 
bc37e7978d137a64d918d7c8f1e7ca9cff093f9921d805e9809b12e5ab12ae35 SHA512 
ad7229c9509db4b4230ec28d1c16200f0780dd7ce55224528ced6d8969f342a79b7317b69e7b9e49d03e93f973203801f4f703dd80dc115400366b0984c965b1
 WHIRLPOOL 
5f46bdc8746481d68fd5c8e3ce04aadbcc1bc704c95b1b5a3d389376704a2a3e702faf819c749f98cb737578e9ccfa3ac01887081bceeceed2e4804493b2c2a8

diff --git a/net-wireless/kismet-ubertooth/kismet-ubertooth-2015.10.1.ebuild 
b/net-wireless/kismet-ubertooth/kismet-ubertooth-2015.10.1.ebuild
new file mode 100644
index 0000000..3c32ca2
--- /dev/null
+++ b/net-wireless/kismet-ubertooth/kismet-ubertooth-2015.10.1.ebuild
@@ -0,0 +1,54 @@
+# Copyright 1999-2015 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Id$
+
+EAPI="5"
+
+inherit multilib
+
+if [[ ${PV} == "9999" ]] ; then
+       EGIT_REPO_URI="https://github.com/greatscottgadgets/ubertooth.git";
+       inherit git-r3
+       KEYWORDS=""
+else
+       MY_PV=${PV/\./-}
+       MY_PV=${MY_PV/./-R}
+       S="${WORKDIR}/ubertooth-${MY_PV}"
+       
SRC_URI="https://github.com/greatscottgadgets/ubertooth/releases/download/${MY_PV}/ubertooth-${MY_PV}.tar.xz";
+       KEYWORDS="~amd64 ~arm ~x86"
+fi
+
+DESCRIPTION="Provides basic bluetooth support in kismet"
+HOMEPAGE="http://ubertooth.sourceforge.net/";
+
+LICENSE="GPL-2"
+SLOT="0/${PV}"
+IUSE=""
+
+DEPEND=">=net-wireless/kismet-2011.03.2-r1:= \
+       >=net-wireless/ubertooth-${PV}:= \
+       >=net-libs/libbtbb-${PV}:= \
+       virtual/libusb:1"
+RDEPEND="${DEPEND}"
+
+src_compile() {
+       if has_version =net-wireless/kismet-9999; then
+               cd "${S}/host/kismet/plugin-ubertooth-phyneutral" || die
+       else
+               cd "${S}/host/kismet/plugin-ubertooth" || die
+       fi
+       emake KIS_SRC_DIR="/usr/include/kismet/"
+}
+
+src_install() {
+       if has_version =net-wireless/kismet-9999; then
+               cd "${S}/host/kismet/plugin-ubertooth-phyneutral" || die
+       else
+               cd "${S}/host/kismet/plugin-ubertooth" || die
+       fi
+       emake DESTDIR="${ED}" LIBDIR="/$(get_libdir)" 
KIS_SRC_DIR="/usr/include/kismet/" install
+}
+
+pkg_postinst() {
+       ewarn "This package must be rebuilt every time kismet is rebuilt. Or 
else."
+}

diff --git a/net-wireless/ubertooth/Manifest b/net-wireless/ubertooth/Manifest
index 0c78e62..40da1f6 100644
--- a/net-wireless/ubertooth/Manifest
+++ b/net-wireless/ubertooth/Manifest
@@ -1,2 +1,3 @@
 DIST ubertooth-2015-09-R2.tar.xz 1706712 SHA256 
f2088c8c0e754df47dd8dbf604d5822bf5894b91e4505276c6f9e26b6a23b56d SHA512 
240f6d682fe0addc05bb8ccf7eec931534449adfa9c1369b484aeac73d9bcaf75c211aeede21c6c219e363773ce3d63e4aa0ee6b662acc83409587bd7ac7e4da
 WHIRLPOOL 
9fba78d1740efd342f3892ffc3cf914d1919ef1c7d282786a64afb72d6ed306dec3600363e3f85f2f70d9ccfba6b62f826a72942cb7c9316d151dd2718f79b09
+DIST ubertooth-2015-10-R1.tar.xz 1716840 SHA256 
bc37e7978d137a64d918d7c8f1e7ca9cff093f9921d805e9809b12e5ab12ae35 SHA512 
ad7229c9509db4b4230ec28d1c16200f0780dd7ce55224528ced6d8969f342a79b7317b69e7b9e49d03e93f973203801f4f703dd80dc115400366b0984c965b1
 WHIRLPOOL 
5f46bdc8746481d68fd5c8e3ce04aadbcc1bc704c95b1b5a3d389376704a2a3e702faf819c749f98cb737578e9ccfa3ac01887081bceeceed2e4804493b2c2a8
 DIST ubertooth_one_rx_only.dfu 32060 SHA256 
fefc034ff19fa8b4b307d77c875bfeaa639e2aa0ecf8b8337e6424618480b1b5 SHA512 
daeaeae90cb2aa591db2787466cbdc7365ce4e74ce5f7af4f61c9c1a22af93e846ea9230acca64f88a85a959d0db447b19da4dc4d213601db8dd1ad3d9978fa7
 WHIRLPOOL 
3069bf540c87d317e4f612b25ef4af10c3a9197ec9ead69082021442e0cc70d4b381488ba4bd509f75535a43f8f7b5fcebae313b96623513de846edb51cf63a0

diff --git a/net-wireless/ubertooth/ubertooth-9999.ebuild 
b/net-wireless/ubertooth/ubertooth-2015.10.1.ebuild
similarity index 91%
copy from net-wireless/ubertooth/ubertooth-9999.ebuild
copy to net-wireless/ubertooth/ubertooth-2015.10.1.ebuild
index ae358ea..c35791d 100644
--- a/net-wireless/ubertooth/ubertooth-9999.ebuild
+++ b/net-wireless/ubertooth/ubertooth-2015.10.1.ebuild
@@ -87,7 +87,8 @@ src_install() {
                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_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
 

diff --git a/net-wireless/ubertooth/ubertooth-9999.ebuild 
b/net-wireless/ubertooth/ubertooth-9999.ebuild
index ae358ea..c35791d 100644
--- a/net-wireless/ubertooth/ubertooth-9999.ebuild
+++ b/net-wireless/ubertooth/ubertooth-9999.ebuild
@@ -87,7 +87,8 @@ src_install() {
                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_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
 

Reply via email to