From 6de4e36846c583f1188325c6a424c5acadee8c4a Mon Sep 17 00:00:00 2001 From: Zero_Chaos Date: Sun, 6 Sep 2015 17:25:35 -0400 Subject: net-libs/libbtbb;net-wireless/{kismet-,}ubertooth: new release, plus rx_only firmware --- net-wireless/kismet-ubertooth/Manifest | 2 +- .../kismet-ubertooth-2015.09.1.ebuild | 54 ----------- .../kismet-ubertooth-2015.09.2.ebuild | 54 +++++++++++ net-wireless/ubertooth/Manifest | 3 +- net-wireless/ubertooth/ubertooth-2015.09.1.ebuild | 102 -------------------- net-wireless/ubertooth/ubertooth-2015.09.2.ebuild | 104 +++++++++++++++++++++ 6 files changed, 161 insertions(+), 158 deletions(-) delete mode 100644 net-wireless/kismet-ubertooth/kismet-ubertooth-2015.09.1.ebuild create mode 100644 net-wireless/kismet-ubertooth/kismet-ubertooth-2015.09.2.ebuild delete mode 100644 net-wireless/ubertooth/ubertooth-2015.09.1.ebuild create mode 100644 net-wireless/ubertooth/ubertooth-2015.09.2.ebuild (limited to 'net-wireless') diff --git a/net-wireless/kismet-ubertooth/Manifest b/net-wireless/kismet-ubertooth/Manifest index 9da99dbd282f..22b1af36eae8 100644 --- a/net-wireless/kismet-ubertooth/Manifest +++ b/net-wireless/kismet-ubertooth/Manifest @@ -1 +1 @@ -DIST ubertooth-2015-09-R1.tar.xz 1707712 SHA256 3d02e3a2e2d000583c62c47a7745db0ab676266dfdf6f89bfaa3e7a141f90bf1 SHA512 a56070fa5da545b0cfa0ac65b6f537e8f27fab0da0fc4ac73e11456d52a58d1e2dbf71835083190dd4f3fe90dc36487ba0aa4ceb0b4a66e07d41e438e339d9e3 WHIRLPOOL 6e14447f5bbc87771d582e0fe77ae0abab39942cb921f3996700e2f7fac4e43c11891136e7097cf45ff08ceac290f534022dd32eb153ed7150729c5f8296a0f3 +DIST ubertooth-2015-09-R2.tar.xz 1706712 SHA256 f2088c8c0e754df47dd8dbf604d5822bf5894b91e4505276c6f9e26b6a23b56d SHA512 240f6d682fe0addc05bb8ccf7eec931534449adfa9c1369b484aeac73d9bcaf75c211aeede21c6c219e363773ce3d63e4aa0ee6b662acc83409587bd7ac7e4da WHIRLPOOL 9fba78d1740efd342f3892ffc3cf914d1919ef1c7d282786a64afb72d6ed306dec3600363e3f85f2f70d9ccfba6b62f826a72942cb7c9316d151dd2718f79b09 diff --git a/net-wireless/kismet-ubertooth/kismet-ubertooth-2015.09.1.ebuild b/net-wireless/kismet-ubertooth/kismet-ubertooth-2015.09.1.ebuild deleted file mode 100644 index 3c32ca25ce9a..000000000000 --- a/net-wireless/kismet-ubertooth/kismet-ubertooth-2015.09.1.ebuild +++ /dev/null @@ -1,54 +0,0 @@ -# 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/kismet-ubertooth/kismet-ubertooth-2015.09.2.ebuild b/net-wireless/kismet-ubertooth/kismet-ubertooth-2015.09.2.ebuild new file mode 100644 index 000000000000..3c32ca25ce9a --- /dev/null +++ b/net-wireless/kismet-ubertooth/kismet-ubertooth-2015.09.2.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 9da99dbd282f..0c78e62c2b3c 100644 --- a/net-wireless/ubertooth/Manifest +++ b/net-wireless/ubertooth/Manifest @@ -1 +1,2 @@ -DIST ubertooth-2015-09-R1.tar.xz 1707712 SHA256 3d02e3a2e2d000583c62c47a7745db0ab676266dfdf6f89bfaa3e7a141f90bf1 SHA512 a56070fa5da545b0cfa0ac65b6f537e8f27fab0da0fc4ac73e11456d52a58d1e2dbf71835083190dd4f3fe90dc36487ba0aa4ceb0b4a66e07d41e438e339d9e3 WHIRLPOOL 6e14447f5bbc87771d582e0fe77ae0abab39942cb921f3996700e2f7fac4e43c11891136e7097cf45ff08ceac290f534022dd32eb153ed7150729c5f8296a0f3 +DIST ubertooth-2015-09-R2.tar.xz 1706712 SHA256 f2088c8c0e754df47dd8dbf604d5822bf5894b91e4505276c6f9e26b6a23b56d SHA512 240f6d682fe0addc05bb8ccf7eec931534449adfa9c1369b484aeac73d9bcaf75c211aeede21c6c219e363773ce3d63e4aa0ee6b662acc83409587bd7ac7e4da WHIRLPOOL 9fba78d1740efd342f3892ffc3cf914d1919ef1c7d282786a64afb72d6ed306dec3600363e3f85f2f70d9ccfba6b62f826a72942cb7c9316d151dd2718f79b09 +DIST ubertooth_one_rx_only.dfu 32060 SHA256 fefc034ff19fa8b4b307d77c875bfeaa639e2aa0ecf8b8337e6424618480b1b5 SHA512 daeaeae90cb2aa591db2787466cbdc7365ce4e74ce5f7af4f61c9c1a22af93e846ea9230acca64f88a85a959d0db447b19da4dc4d213601db8dd1ad3d9978fa7 WHIRLPOOL 3069bf540c87d317e4f612b25ef4af10c3a9197ec9ead69082021442e0cc70d4b381488ba4bd509f75535a43f8f7b5fcebae313b96623513de846edb51cf63a0 diff --git a/net-wireless/ubertooth/ubertooth-2015.09.1.ebuild b/net-wireless/ubertooth/ubertooth-2015.09.1.ebuild deleted file mode 100644 index ae358ea08dad..000000000000 --- a/net-wireless/ubertooth/ubertooth-2015.09.1.ebuild +++ /dev/null @@ -1,102 +0,0 @@ -# Copyright 1999-2015 Gentoo Foundation -# Distributed under the terms of the GNU General Public License v2 -# $Id$ - -EAPI="5" - -PYTHON_COMPAT=( python2_7 ) -DISTUTILS_OPTIONAL=1 - -inherit multilib distutils-r1 cmake-utils udev - -HOMEPAGE="http://ubertooth.sourceforge.net/" - -LICENSE="GPL-2" -SLOT="0" -IUSE="+bluez +specan +pcap +ubertooth1-firmware +udev" -REQUIRED_USE=" specan? ( ${PYTHON_REQUIRED_USE} )" -DEPEND="bluez? ( net-wireless/bluez:= ) - >=net-libs/libbtbb-${PV}:= - pcap? ( net-libs/libbtbb[pcap] ) - specan? ( ${PYTHON_DEPS} ) - virtual/libusb:1=" -RDEPEND="${DEPEND} - specan? ( >=dev-qt/qtgui-4.7.2:4 - >=dev-python/pyside-1.0.2[${PYTHON_USEDEP}] - >=dev-python/numpy-1.3[${PYTHON_USEDEP}] ) - udev? ( virtual/udev )" - -MY_PV=${PV/\./-} -MY_PV=${MY_PV/./-R} -if [[ ${PV} == "9999" ]] ; then - EGIT_REPO_URI="https://github.com/greatscottgadgets/ubertooth.git" - inherit git-r3 - KEYWORDS="" - S="${WORKDIR}/${P}/host" -else - S="${WORKDIR}/${PN}-${MY_PV}/host" - SRC_URI="https://github.com/greatscottgadgets/${PN}/releases/download/${MY_PV}/${PN}-${MY_PV}.tar.xz" - KEYWORDS="~amd64 ~arm ~x86" -fi -DESCRIPTION="An open source wireless development platform suitable for Bluetooth experimentation" - -#readd firmware building, but do it right -#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 - -src_prepare() { - cmake-utils_src_prepare - if use specan; then - pushd python/specan_ui || die - distutils-r1_src_prepare - popd - fi -} - -src_configure() { - mycmakeargs=( - $(cmake-utils_use_enable bluez USE_BLUEZ) - $(cmake-utils_use pcap USE_PCAP) - $(cmake-utils_use_enable udev INSTALL_UDEV_RULES) - -DDISABLE_PYTHON=true - ) - if use udev; then - mycmakeargs+=( - -DUDEV_RULES_GROUP=usb - -DUDEV_RULES_PATH="$(get_udevdir)/rules.d" - ) - fi - cmake-utils_src_configure -} - -src_compile() { - cmake-utils_src_compile - - if use specan; then - pushd python/specan_ui || die - distutils-r1_src_compile - popd - fi -} - -src_install() { - cmake-utils_src_install - - insinto /usr/share/${PN} - pushd "${WORKDIR}/${PN}-${MY_PV}" || die - if [[ ${PV} == "9999" ]] ; then - 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 - fi - popd - - if use specan; then - pushd python/specan_ui || die - distutils-r1_src_install - popd - fi - - 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-2015.09.2.ebuild b/net-wireless/ubertooth/ubertooth-2015.09.2.ebuild new file mode 100644 index 000000000000..efbfbb07c093 --- /dev/null +++ b/net-wireless/ubertooth/ubertooth-2015.09.2.ebuild @@ -0,0 +1,104 @@ +# Copyright 1999-2015 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Id$ + +EAPI="5" + +PYTHON_COMPAT=( python2_7 ) +DISTUTILS_OPTIONAL=1 + +inherit multilib distutils-r1 cmake-utils udev + +HOMEPAGE="http://ubertooth.sourceforge.net/" + +LICENSE="GPL-2" +SLOT="0" +IUSE="+bluez +specan +pcap +ubertooth1-firmware +udev" +REQUIRED_USE=" specan? ( ${PYTHON_REQUIRED_USE} )" +DEPEND="bluez? ( net-wireless/bluez:= ) + >=net-libs/libbtbb-${PV}:= + pcap? ( net-libs/libbtbb[pcap] ) + specan? ( ${PYTHON_DEPS} ) + virtual/libusb:1=" +RDEPEND="${DEPEND} + specan? ( >=dev-qt/qtgui-4.7.2:4 + >=dev-python/pyside-1.0.2[${PYTHON_USEDEP}] + >=dev-python/numpy-1.3[${PYTHON_USEDEP}] ) + udev? ( virtual/udev )" + +MY_PV=${PV/\./-} +MY_PV=${MY_PV/./-R} +if [[ ${PV} == "9999" ]] ; then + EGIT_REPO_URI="https://github.com/greatscottgadgets/ubertooth.git" + inherit git-r3 + KEYWORDS="" + S="${WORKDIR}/${P}/host" +else + S="${WORKDIR}/${PN}-${MY_PV}/host" + SRC_URI="https://github.com/greatscottgadgets/${PN}/releases/download/${MY_PV}/${PN}-${MY_PV}.tar.xz + https://github.com/greatscottgadgets/${PN}/releases/download/${MY_PV}/${PN}_one_rx_only.dfu" + KEYWORDS="~amd64 ~arm ~x86" +fi +DESCRIPTION="An open source wireless development platform suitable for Bluetooth experimentation" + +#readd firmware building, but do it right +#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 + +src_prepare() { + cmake-utils_src_prepare + if use specan; then + pushd python/specan_ui || die + distutils-r1_src_prepare + popd + fi +} + +src_configure() { + mycmakeargs=( + $(cmake-utils_use_enable bluez USE_BLUEZ) + $(cmake-utils_use pcap USE_PCAP) + $(cmake-utils_use_enable udev INSTALL_UDEV_RULES) + -DDISABLE_PYTHON=true + ) + if use udev; then + mycmakeargs+=( + -DUDEV_RULES_GROUP=usb + -DUDEV_RULES_PATH="$(get_udevdir)/rules.d" + ) + fi + cmake-utils_src_configure +} + +src_compile() { + cmake-utils_src_compile + + if use specan; then + pushd python/specan_ui || die + distutils-r1_src_compile + popd + fi +} + +src_install() { + cmake-utils_src_install + + insinto /usr/share/${PN} + pushd "${WORKDIR}/${PN}-${MY_PV}" || die + if [[ ${PV} == "9999" ]] ; then + 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 "${DISTDIR}"/${PN}_one_rx_only.dfu ${PN}-one-${PV}-bluetooth_rx_only.dfu + fi + popd + + if use specan; then + pushd python/specan_ui || die + distutils-r1_src_install + popd + fi + + elog "Everyone can read from the ubertooth, but to talk to it" + elog "your user needs to be in the usb group." +} -- cgit v1.2.3-18-g5258