From 8a633a6a1ea25dc6ab09e464214aa13e95cc45a4 Mon Sep 17 00:00:00 2001 From: Zero_Chaos Date: Fri, 27 Jul 2012 07:38:12 +0000 Subject: [PATCH] ubertooth: moved to gentoo --- net-wireless/ubertooth/Manifest | 5 - .../ubertooth/files/40-ubertooth.rules | 5 - net-wireless/ubertooth/metadata.xml | 11 -- .../ubertooth/ubertooth-0.0_p534.ebuild | 90 -------------- net-wireless/ubertooth/ubertooth-9999.ebuild | 110 ------------------ 5 files changed, 221 deletions(-) delete mode 100644 net-wireless/ubertooth/Manifest delete mode 100644 net-wireless/ubertooth/files/40-ubertooth.rules delete mode 100644 net-wireless/ubertooth/metadata.xml delete mode 100644 net-wireless/ubertooth/ubertooth-0.0_p534.ebuild delete mode 100644 net-wireless/ubertooth/ubertooth-9999.ebuild diff --git a/net-wireless/ubertooth/Manifest b/net-wireless/ubertooth/Manifest deleted file mode 100644 index 5262379ab..000000000 --- a/net-wireless/ubertooth/Manifest +++ /dev/null @@ -1,5 +0,0 @@ -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 3015 SHA256 7fb42ff7c4396d314a2dcca544b0f443b5428ee23cbcf6b89fa18eebf434353b SHA512 e9b36dd304abc5bdb32c67d674a109a92e174ac77c15b864827f5f612c1c66092da81a40f8d177fcdbeee737d7145630ec85a3d70dc1e5d10baaf58b8f48172e WHIRLPOOL b4bb7462b8376c5176ddcefb3731ff1647565fe31726117a033f15660397a107d35e8b9de86227db662a0f6286b034520684c33e9c8be75c1f650a2c42491374 -EBUILD ubertooth-9999.ebuild 3773 SHA256 bab5e2aaa7b34b42dc6f31210ddc119c15382954c9b28935378f0cf5d77d7f0f SHA512 8af92eb72608efa4d7955f86e08d08de0b94bce0d0862544d74ea800517fb5f703ee3fb90e4180d40bc9d86f1096dfa83c9147027163eb14c0a627e8bb31d84b WHIRLPOOL a8056cca174d4875586671e8dcb52841558dd2a9bf6eb5f669c3255a378fd7fdd5a44cb2bb95b4bc5127e451cbf3098c721fe9e70d1a44a2acfb8bf104ce8a79 -MISC metadata.xml 277 SHA256 9c8b8823f3efb6278268bddb1a49badc7f174607e7e84b501a9e5c17601eb08f SHA512 24ccb9b561196e81d3c7512229ba0c86082795bc07adad64fe368e09aa0e69da6b167c4847f7f8e89b7a9138393a4283f9f607b6cffa591866955acc3b831f16 WHIRLPOOL d92008a6c5f1e9d37ff87e271e839e846fcaf734043d9326d303fa01592ee7e94fc7edf35d430e5cc1ddef9de2c6d3af71b652c80b6edd8e0882a07f32ad0100 diff --git a/net-wireless/ubertooth/files/40-ubertooth.rules b/net-wireless/ubertooth/files/40-ubertooth.rules deleted file mode 100644 index e5537aa1f..000000000 --- a/net-wireless/ubertooth/files/40-ubertooth.rules +++ /dev/null @@ -1,5 +0,0 @@ -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 deleted file mode 100644 index e94a7f37f..000000000 --- a/net-wireless/ubertooth/metadata.xml +++ /dev/null @@ -1,11 +0,0 @@ - - - - - zerochaos@gentoo.org - Rick Farina - - - - - diff --git a/net-wireless/ubertooth/ubertooth-0.0_p534.ebuild b/net-wireless/ubertooth/ubertooth-0.0_p534.ebuild deleted file mode 100644 index c56949762..000000000 --- a/net-wireless/ubertooth/ubertooth-0.0_p534.ebuild +++ /dev/null @@ -1,90 +0,0 @@ -# Copyright 1999-2012 Gentoo Foundation -# Distributed under the terms of the GNU General Public License v2 -# $Header: $ - -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 ~arm ~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 deleted file mode 100644 index 594f9cdd4..000000000 --- a/net-wireless/ubertooth/ubertooth-9999.ebuild +++ /dev/null @@ -1,110 +0,0 @@ -# Copyright 1999-2012 Gentoo Foundation -# Distributed under the terms of the GNU General Public License v2 -# $Header: $ - -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" - KEYWORDS="~amd64 ~arm ~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 - 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" - eerror - 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 - - 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." -}