summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRichard Farina <zerochaos@gentoo.org>2012-07-27 07:01:25 +0000
committerRichard Farina <zerochaos@gentoo.org>2012-07-27 07:01:25 +0000
commite8e8c3593f9e3bcb27b5932cc355eae34a27614c (patch)
treed787c06dc9b51c064e5b02a194b717d60b81568c /net-wireless/ubertooth
parentmarked x86 per bug 428042 (diff)
downloadhistorical-e8e8c3593f9e3bcb27b5932cc355eae34a27614c.tar.gz
historical-e8e8c3593f9e3bcb27b5932cc355eae34a27614c.tar.bz2
historical-e8e8c3593f9e3bcb27b5932cc355eae34a27614c.zip
initial commit of ubertooth, a few comments left in the ebuild but mostly functional for all
Package-Manager: portage-2.1.11.9/cvs/Linux x86_64
Diffstat (limited to 'net-wireless/ubertooth')
-rw-r--r--net-wireless/ubertooth/ChangeLog11
-rw-r--r--net-wireless/ubertooth/Manifest26
-rw-r--r--net-wireless/ubertooth/files/40-ubertooth.rules5
-rw-r--r--net-wireless/ubertooth/metadata.xml17
-rw-r--r--net-wireless/ubertooth/ubertooth-0.0_p534.ebuild90
-rw-r--r--net-wireless/ubertooth/ubertooth-9999.ebuild121
6 files changed, 270 insertions, 0 deletions
diff --git a/net-wireless/ubertooth/ChangeLog b/net-wireless/ubertooth/ChangeLog
new file mode 100644
index 000000000000..85b96dea9b22
--- /dev/null
+++ b/net-wireless/ubertooth/ChangeLog
@@ -0,0 +1,11 @@
+# ChangeLog for net-wireless/ubertooth
+# Copyright 1999-2012 Gentoo Foundation; Distributed under the GPL v2
+# $Header: /var/cvsroot/gentoo-x86/net-wireless/ubertooth/ChangeLog,v 1.1 2012/07/27 07:01:25 zerochaos Exp $
+
+*ubertooth-9999 (27 Jul 2012)
+*ubertooth-0.0_p534 (27 Jul 2012)
+
+ 27 Jul 2012; Rick Farina <zerochaos@gentoo.org> +files/40-ubertooth.rules,
+ +metadata.xml, +ubertooth-0.0_p534.ebuild, +ubertooth-9999.ebuild:
+ initial commit of ubertooth, a few comments left in the ebuild but mostly
+ functional for all
diff --git a/net-wireless/ubertooth/Manifest b/net-wireless/ubertooth/Manifest
new file mode 100644
index 000000000000..d737f9e9a9c2
--- /dev/null
+++ b/net-wireless/ubertooth/Manifest
@@ -0,0 +1,26 @@
+-----BEGIN PGP SIGNED MESSAGE-----
+Hash: SHA512
+
+AUX 40-ubertooth.rules 380 SHA256 103f261d0fe795c2a461444566e486c83d9d51141fdfa4466e1739bb5b9fe89a SHA512 ddafd842c06e15384b94a1287113e3d8c1e7374e3e53f7297c6f238ca732d339509829b9c72a79a0c3e029473ad663287c5327790531ab50a5a21e5b9ce9dbc5 WHIRLPOOL 1f6f0792f4f64e7a388ef45f681d012d5522825aef8e147ebc37974e9fb84e81ca2e3c97aeeaa8f80260ad85a986dc8101baf9aec586e3ba83f08b3965ea2694
+DIST ubertooth-r534.tar.gz 2959832 SHA256 5e227872ee8c088fe2cdac936c4a30d1e12b8f7c6ac781c96004ad7528b44730 SHA512 b3e150b8f8a4335f65fd8b7b629316eae08cf0560269991af6632d48e360f17dd98742da975df33852760140cd5f4571f72f36d973fa5e6d8df47932561acfa6 WHIRLPOOL 7d7ea0db033b34cbf16f963ea42d05db9bf8f82f41d5d26dd6510a95ffe339dae3fef54f5cef5d71bfedb1e05531bf33998cbcabe88af611feeaecf1e22a7b10
+EBUILD ubertooth-0.0_p534.ebuild 3088 SHA256 11f6c3d16efb27ca4a0c8362a6401e2fc824315ef65e9a0bed68a01b17024be1 SHA512 d8e8fca6bd4fce7afa7ef23f56331d06b242539cfc6d655b08e0eba21515cdb5eb8e1ffc356dfaf7816b2b360a32353c68259b2da15dc681295cfe03af1dac47 WHIRLPOOL 10c5882ab9d6f53152e101ccc11c89a82de9a88887cad45f656401046b9ab5b5596a8d5c99a6bd5063b8d8c4a2b5f6a3e64c54935796b4376d1014baff846da3
+EBUILD ubertooth-9999.ebuild 4390 SHA256 5e4553040da7ec7a49e9dd15278ba02c4317a2e81078c3809574d916e3fcd0ab SHA512 73b20d3ff5064f8fdea1a73257f48e6749c90b37918505e44fa2b8f5b835750323dc7aaffb18622385ea233f8a2c2acd3bb328542201d0927f106371fd28a2f3 WHIRLPOOL 573308e9299571c56c8b77ae8c7d8cf743167256906b494adb79127bf81ddc4d7aa2605932986b749ffc724e391d21958af1a17ff40f326d64615acf7e250309
+MISC ChangeLog 528 SHA256 9f12aaf4739769d66db319e7ab82f64b7ac08445140a3328c3d0c6cd05022def SHA512 0246127a270b41e4d4c97b74630f4bbceab39bd90307277fd39e67af85f9a6befc5dd69d3a14bac39e0946c42df73a9062d2bb7d063c5576ed488bb836b84887 WHIRLPOOL 4004cd4374750c1cd2a364b5425fbadd2a739ac209ed709136e4434931819abdfb1e0562bcb61f1d5589efdfecb8d4872ac330bec1218a7a397ecf2396f5699b
+MISC metadata.xml 602 SHA256 81fe17f8522e7ba143bf27d12cf487a2b28340aa1119bd70e4222eaaf10b6419 SHA512 bde8dcd6cd8766fd0c544913ac625a00c83d9757b9dedce72b55fe137e27d8a83af3a3bc21ffe6ce5d4d658683e19a6f677a1c345deeeab00103a03c2b199d19 WHIRLPOOL 514f715b4bf29315d199580ff391eaba2eb72984ceb38bd380936f730fd874c8e8905fa88bb8d9b30f87a1f5a2189357cdcca8fce8cf8609ff4e90afc585b2e3
+-----BEGIN PGP SIGNATURE-----
+Version: GnuPG v2.0.19 (GNU/Linux)
+
+iQIcBAEBCgAGBQJQEj0JAAoJEKXdFCfdEflKJSIP/3V+ZajtMGMii5Wxlzbn+5Pt
+5XFn0nvXS0bCSN7e3hU5tYsUKQjUskrLCs3SLLj/3FbmPz3qoV/AEGOorjHGSNMk
+18M12CfOucJxOZDJe+mcp2N+RBitFcj1WsTbdVdEq9Uly40/wFyDdgK6KWTSFzj5
+rbALlFG31KUnyuJ/8Yz9UcG0A+8m8IWq0H6DodwqhzIBz9WqypZrfythIJghm+Dm
+gmfpoXBgr9KTw8HmVXWI2CYqSvP+f/WG+6TmqE5m+wBBhMYEQZ70sbOwJEDUfcKm
+OI7aMM7vXSWA6LlgkP4OYhf2QZRvg9m3+Ge5k1isOI7os32QILJ2KDAR/K0d4hbE
+wsWfm1BM00EtHtBGyOExMmcT8Kuu0muOR0oWmmvpEqAMvTINjF+hciFiMLmi/QK6
++txYPS97F7LkGyBPxCqx06gOS7XfkbMX7gWYUlCMFknKGmVjTM2mpQrue1GPcAkY
+yoZfaYJIoUC+24bTqDKUpLvWaIQh3mDnLn5Ydg0QkXQOJhFK0fd5swIxFheEiEva
+ibAC4SiaJzSfqD2u0nlZSGOyRj/stECT89mB+KhnOfXtwrLvGgNwrB7ASFvX2a9N
+ri1TOpJjaxeydXkoSzZ5wLMmr4I3PoTfN5GV55EmVLCHt304+/9oFYrRTLhEsOk7
++DXfChs17u/rrcvx84AT
+=w+KQ
+-----END PGP SIGNATURE-----
diff --git a/net-wireless/ubertooth/files/40-ubertooth.rules b/net-wireless/ubertooth/files/40-ubertooth.rules
new file mode 100644
index 000000000000..e5537aa1f831
--- /dev/null
+++ b/net-wireless/ubertooth/files/40-ubertooth.rules
@@ -0,0 +1,5 @@
+ATTRS{idVendor}=="ffff", ATTRS{idProduct}=="0004", MODE="0660", GROUP="usb"
+ATTRS{idVendor}=="id50", ATTRS{idProduct}=="6000", MODE="0660", GROUP="usb"
+ATTRS{idVendor}=="id50", ATTRS{idProduct}=="6001", MODE="0660", GROUP="usb"
+ATTRS{idVendor}=="id50", ATTRS{idProduct}=="6002", MODE="0660", GROUP="usb"
+ATTRS{idVendor}=="id50", ATTRS{idProduct}=="6003", MODE="0660", GROUP="usb"
diff --git a/net-wireless/ubertooth/metadata.xml b/net-wireless/ubertooth/metadata.xml
new file mode 100644
index 000000000000..9c73c03cbc28
--- /dev/null
+++ b/net-wireless/ubertooth/metadata.xml
@@ -0,0 +1,17 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+ <maintainer>
+ <email>zerochaos@gentoo.org</email>
+ <name>Rick Farina</name>
+ </maintainer>
+ <longdescription lang="en">
+ </longdescription>
+ <use>
+ <flag name="dfu">Install ubertooth-dfu (needed for read/write of firmware)</flag>
+ <flag name="specan">Enable the ubertooth spectrum analyzer</flag>
+ <flag name="ubertooth0-firmware">Build/install ubertooth0-firmware</flag>
+ <flag name="ubertooth1-firmware">Build/install ubertooth1-firmware</flag>
+ </use>
+</pkgmetadata>
+
diff --git a/net-wireless/ubertooth/ubertooth-0.0_p534.ebuild b/net-wireless/ubertooth/ubertooth-0.0_p534.ebuild
new file mode 100644
index 000000000000..e92e8178d37b
--- /dev/null
+++ b/net-wireless/ubertooth/ubertooth-0.0_p534.ebuild
@@ -0,0 +1,90 @@
+# Copyright 1999-2012 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Header: /var/cvsroot/gentoo-x86/net-wireless/ubertooth/ubertooth-0.0_p534.ebuild,v 1.1 2012/07/27 07:01:25 zerochaos Exp $
+
+EAPI="4"
+
+#inherit flag-o-matic
+
+DESCRIPTION="An open source wireless development platform suitable for Bluetooth experimentation"
+HOMEPAGE="http://ubertooth.sourceforge.net/"
+
+LICENSE="GPL-2"
+SLOT="0"
+IUSE="+dfu +specan ubertooth0-firmware +ubertooth1-firmware"
+REQUIRED_USE="ubertooth0-firmware? ( dfu )
+ ubertooth1-firmware? ( dfu )"
+DEPEND=""
+RDEPEND="specan? ( >=dev-libs/libusb-1.0.8 )
+ dfu? ( >=dev-libs/libusb-1.0.8 )
+ specan? ( >=x11-libs/qt-gui-4.7.2
+ >=dev-python/pyside-1.0.2
+ >=dev-python/numpy-1.3 )
+ specan? ( >=dev-python/pyusb-1.0.0_alpha1 )
+ dfu? ( >=dev-python/pyusb-1.0.0_alpha1 )"
+
+if [[ ${PV} == "9999" ]] ; then
+ ESVN_REPO_URI="https://ubertooth.svn.sourceforge.net/svnroot/ubertooth/trunk/"
+ SRC_URI=""
+ inherit subversion
+ KEYWORDS=""
+ RDEPEND="${RDEPEND}
+ >=net-libs/libbtbb-9999
+ ubertooth0-firmware? ( sys-devel/gcc-arm-embedded-bin )
+ ubertooth1-firmware? ( sys-devel/gcc-arm-embedded-bin )"
+else
+ MY_PV="${PV/p/r}"
+ MY_PV="${MY_PV/0.0_/}"
+ SRC_URI="mirror://sourceforge/${PN}/${PN}-${MY_PV}.tar.gz"
+ KEYWORDS="~amd64 ~x86"
+ S="${WORKDIR}/${PN}-${MY_PV}/"
+ RDEPEND="${RDEPEND}
+ >=net-libs/libbtbb-0.8"
+fi
+
+src_compile() {
+ #sometimes needed to build, remove when a release is made after r534 if not needed
+ #filter-ldflags -Wl,--as-needed
+ cd "${S}/host/bluetooth_rxtx" || die
+ emake
+
+ if [[ ${PV} == "9999" ]] ; then
+ cd "${S}"/firmware/bluetooth_rxtx || die
+ if use ubertooth0-firmware; then
+ SVN_REV_NUM="-D'SVN_REV_NUM'=${ESVN_WC_REVISION}" DFU_TOOL=/usr/bin/ubertooth-dfu BOARD=UBERTOOTH_ZERO emake -j1
+ mv bluetooth_rxtx.bin bluetooth_rxtx_U0.bin || die
+ emake clean
+ fi
+ if use ubertooth1-firmware; then
+ SVN_REV_NUM="-D'SVN_REV_NUM'=${ESVN_WC_REVISION}" DFU_TOOL=/usr/bin/ubertooth-dfu emake -j1
+ mv bluetooth_rxtx.bin bluetooth_rxtx_U1.bin || die
+ fi
+ fi
+}
+
+src_install() {
+ cd host || die
+ dobin bluetooth_rxtx/ubertooth-dump bluetooth_rxtx/ubertooth-lap \
+ bluetooth_rxtx/ubertooth-btle bluetooth_rxtx/ubertooth-uap \
+ bluetooth_rxtx/ubertooth-hop bluetooth_rxtx/ubertooth-util
+
+ use specan && dobin bluetooth_rxtx/ubertooth-specan specan_ui/specan.py specan_ui/ubertooth-specan-ui
+
+ use dfu && dobin usb_dfu/ubertooth-dfu usb_dfu/dfu_suffix.py
+
+ insinto /lib/firmware
+ cd "${S}"
+ if [[ ${PV} == "9999" ]] ; then
+ use ubertooth0-firmware && doins firmware/bluetooth_rxtx/bluetooth_rxtx_U0.bin
+ use ubertooth1-firmware && doins firmware/bluetooth_rxtx/bluetooth_rxtx_U1.bin
+ else
+ use ubertooth0-firmware && newins ubertooth-zero-firmware-bin/bluetooth_rxtx.bin bluetooth_rxtx_U0.bin
+ use ubertooth1-firmware && newins ubertooth-one-firmware-bin/bluetooth_rxtx.bin bluetooth_rxtx_U1.bin
+ fi
+
+ insinto /lib/udev/rules.d/
+ doins "${FILESDIR}"/40-ubertooth.rules
+
+ elog "Everyone can read from the ubertooth, but to talk to it"
+ elog "your user needs to be in the usb group."
+}
diff --git a/net-wireless/ubertooth/ubertooth-9999.ebuild b/net-wireless/ubertooth/ubertooth-9999.ebuild
new file mode 100644
index 000000000000..c1b5be087b9e
--- /dev/null
+++ b/net-wireless/ubertooth/ubertooth-9999.ebuild
@@ -0,0 +1,121 @@
+# Copyright 1999-2012 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Header: /var/cvsroot/gentoo-x86/net-wireless/ubertooth/ubertooth-9999.ebuild,v 1.1 2012/07/27 07:01:25 zerochaos Exp $
+
+EAPI="4"
+
+#inherit flag-o-matic
+
+DESCRIPTION="An open source wireless development platform suitable for Bluetooth experimentation"
+HOMEPAGE="http://ubertooth.sourceforge.net/"
+
+LICENSE="GPL-2"
+SLOT="0"
+IUSE="+dfu +specan ubertooth0-firmware +ubertooth1-firmware"
+REQUIRED_USE="ubertooth0-firmware? ( dfu )
+ ubertooth1-firmware? ( dfu )"
+DEPEND=""
+RDEPEND="specan? ( >=dev-libs/libusb-1.0.8 )
+ dfu? ( >=dev-libs/libusb-1.0.8 )
+ specan? ( >=x11-libs/qt-gui-4.7.2
+ >=dev-python/pyside-1.0.2
+ >=dev-python/numpy-1.3 )
+ specan? ( >=dev-python/pyusb-1.0.0_alpha1 )
+ dfu? ( >=dev-python/pyusb-1.0.0_alpha1 )"
+
+if [[ ${PV} == "9999" ]] ; then
+ ESVN_REPO_URI="https://ubertooth.svn.sourceforge.net/svnroot/ubertooth/trunk/"
+ SRC_URI=""
+ inherit subversion
+ KEYWORDS=""
+ RDEPEND="${RDEPEND}
+ >=net-libs/libbtbb-9999"
+ DEPEND="ubertooth0-firmware? ( sys-devel/crossdev )
+ ubertooth1-firmware? ( sys-devel/crossdev )"
+else
+ MY_PV="${PV/p/r}"
+ MY_PV="${MY_PV/0.0_/}"
+ SRC_URI="mirror://sourceforge/${PN}/${PN}-${MY_PV}.tar.gz"
+ #re-add arm keyword after making a lib-only target
+ KEYWORDS="~amd64 ~x86"
+ S="${WORKDIR}/${PN}-${MY_PV}/"
+ RDEPEND="${RDEPEND}
+ >=net-libs/libbtbb-0.8"
+fi
+
+pkg_setup() {
+ ebegin "arm-none-eabi-gcc"
+ if type -p arm-none-eabi-gcc > /dev/null ; then
+ eend 0
+ else
+ eend 1
+ eerror "Failed to locate 'arm-none-eabi-gcc' in \$PATH. You can install the needed toolchain using:"
+ eerror " $ crossdev --genv 'USE=\"-openmp -fortran\"' -s4 -t arm-none-eabi"
+ die "arm-none-eabi toolchain not found"
+ fi
+}
+
+src_compile() {
+ #sometimes needed to build, remove when a release is made after r534 if not needed
+ #filter-ldflags -Wl,--as-needed
+ cd "${S}/host/bluetooth_rxtx" || die
+ emake
+
+ if [[ ${PV} == "9999" ]] ; then
+ cd "${S}"/firmware/bluetooth_rxtx || die
+ if use ubertooth0-firmware; then
+ SVN_REV_NUM="-D'SVN_REV_NUM'=${ESVN_WC_REVISION}" DFU_TOOL=/usr/bin/ubertooth-dfu BOARD=UBERTOOTH_ZERO emake -j1
+ mv bluetooth_rxtx.bin bluetooth_rxtx_U0.bin || die
+ emake clean
+ fi
+ if use ubertooth1-firmware; then
+ SVN_REV_NUM="-D'SVN_REV_NUM'=${ESVN_WC_REVISION}" DFU_TOOL=/usr/bin/ubertooth-dfu emake -j1
+ mv bluetooth_rxtx.bin bluetooth_rxtx_U1.bin || die
+ fi
+ fi
+}
+
+src_install() {
+ cd host || die
+ dobin bluetooth_rxtx/ubertooth-dump bluetooth_rxtx/ubertooth-lap \
+ bluetooth_rxtx/ubertooth-btle bluetooth_rxtx/ubertooth-uap \
+ bluetooth_rxtx/ubertooth-hop bluetooth_rxtx/ubertooth-util
+
+ use specan && dobin bluetooth_rxtx/ubertooth-specan specan_ui/specan.py specan_ui/ubertooth-specan-ui
+
+ use dfu && dobin usb_dfu/ubertooth-dfu usb_dfu/dfu.py
+
+ #newlib.so bluetooth_rxtx/libubertooth.so.0.svn-exported libubertooth.so.0.svn-"${ESVN_WC_REVISION}"
+ #dosym libubertooth.so.0.svn-"${ESVN_WC_REVISION}" /usr/$(get_libdir)/libubertooth.so.0
+ #dosym libubertooth.so.0.svn-"${ESVN_WC_REVISION}" /usr/$(get_libdir)/libubertooth.so
+ dolib.so bluetooth_rxtx/libubertooth.so.0.1
+ dosym libubertooth.so.0.1 /usr/$(get_libdir)/libubertooth.so.0
+ dosym libubertooth.so.0.1 /usr/$(get_libdir)/libubertooth.so
+
+ insinto /lib/firmware
+ cd "${S}"
+ if [[ ${PV} == "9999" ]] ; then
+ use ubertooth0-firmware && doins firmware/bluetooth_rxtx/bluetooth_rxtx_U0.bin
+ use ubertooth1-firmware && doins firmware/bluetooth_rxtx/bluetooth_rxtx_U1.bin
+ else
+ use ubertooth0-firmware && newins ubertooth-zero-firmware-bin/bluetooth_rxtx.bin bluetooth_rxtx_U0.bin
+ use ubertooth1-firmware && newins ubertooth-one-firmware-bin/bluetooth_rxtx.bin bluetooth_rxtx_U1.bin
+ fi
+
+ insinto /lib/udev/rules.d/
+ doins "${S}"/host/bluetooth_rxtx/40-ubertooth.rules
+
+ elog "Everyone can read from the ubertooth, but to talk to it"
+ elog "your user needs to be in the usb group."
+}
+
+pkg_postinst() {
+ if use ubertooth0-firmware || use ubertooth1-firmware; then
+ ewarn "currently the firmware builds using cross dev but is completely"
+ ewarn "NON-FUNCTIONAL. This is supported for development only."
+ ewarn "If you do not know what you are doing to NOT install this version"
+ ewarn "of the firmware. If you ignore this warning and break your device"
+ ewarn "you can find repair instructions at ${HOMEPAGE}"
+ ewarn "You have been warned."
+ fi
+}