mirror of
https://github.com/pentoo/pentoo-overlay
synced 2026-01-26 10:07:03 +01:00
ubertooth: all needed utilities for happiness
This commit is contained in:
parent
01a2eb6c5a
commit
d3071ee4fd
4 changed files with 100 additions and 0 deletions
3
net-wireless/ubertooth/Manifest
Normal file
3
net-wireless/ubertooth/Manifest
Normal file
|
|
@ -0,0 +1,3 @@
|
|||
AUX 40-ubertooth.rules 104 RMD160 e66c7d425ea1285d1243413e49f54b886f1980c3 SHA1 5fec642ad451b749eea0f4061726f8d80d0caf3e SHA256 558f32470c422459f504acc7ab5eb5416306b842393b011ea8ba249f0ff14d78
|
||||
AUX makefile.patch 1779 RMD160 cdf685db2a6de4bbdc4dd501f70f990233010860 SHA1 d08b7085ceeb52916dceb23fc08599d03f5b573a SHA256 8bda636ae8e2e24d07d34bb63aad8f031777f217147f8afbfb095ed04064c653
|
||||
EBUILD ubertooth-9999.ebuild 1479 RMD160 dd92b477db6cfd97b4e4d19ffab9c0ae3c1d4b1f SHA1 b12d05e07532a3e31fb5a30a2e104a01b2070152 SHA256 d8737fc369eadc9c2e49c21a5afc0e703026820e494cbbd84e1bda5a8e689bf1
|
||||
1
net-wireless/ubertooth/files/40-ubertooth.rules
Normal file
1
net-wireless/ubertooth/files/40-ubertooth.rules
Normal file
|
|
@ -0,0 +1 @@
|
|||
'ACTION=="add" BUS=="usb" SYSFS{idVendor}=="ffff" SYSFS{idProduct}=="0004" GROUP:="users" MODE:="0660"'
|
||||
42
net-wireless/ubertooth/files/makefile.patch
Normal file
42
net-wireless/ubertooth/files/makefile.patch
Normal file
|
|
@ -0,0 +1,42 @@
|
|||
diff -Naur trunk-orig/host/kismet/plugin-ubertooth/Makefile trunk/host/kismet/plugin-ubertooth/Makefile
|
||||
--- trunk-orig/host/kismet/plugin-ubertooth/Makefile 2011-05-31 20:08:49.000000000 -0400
|
||||
+++ trunk/host/kismet/plugin-ubertooth/Makefile 2011-05-31 20:29:49.000000000 -0400
|
||||
@@ -2,6 +2,7 @@
|
||||
KIS_INC_DIR ?= $(KIS_SRC_DIR)
|
||||
RXTX_SRC_DIR ?= ../../bluetooth_rxtx
|
||||
RXTX_INC_DIR ?= $(RXTX_SRC_DIR)
|
||||
+LIBDIR ?= /lib
|
||||
|
||||
include $(KIS_SRC_DIR)/Makefile.inc
|
||||
|
||||
@@ -11,6 +12,7 @@
|
||||
PLUGINLDFLAGS ?= $(LDFLAGS)
|
||||
PLUGINLDFLAGS += -shared -rdynamic
|
||||
LIBS += -lstdc++ -lusb-1.0 -lpthread -lbtbb
|
||||
+CFLAGS ?= $(CFLAGS) $(CPPFLAGS)
|
||||
CFLAGS += -I/usr/include -I$(KIS_INC_DIR) -I$(RXTX_INC_DIR) -g -fPIC
|
||||
|
||||
SRVOBJS = packetsource_ubertooth.o packet_btbb.o packet_btbb_types.o \
|
||||
@@ -23,16 +25,16 @@
|
||||
all: $(SRVOUT) $(CLIOUT)
|
||||
|
||||
$(CLIOUT): $(CLIOBJS)
|
||||
- $(LD) $(PLUGINLDFLAGS) $(CLIOBJS) -o $(CLIOUT) $(LIBS)
|
||||
+ $(CC) $(PLUGINLDFLAGS) $(CFLAGS) $(CLIOBJS) -o $(CLIOUT) $(LIBS)
|
||||
|
||||
$(SRVOUT): $(SRVOBJS)
|
||||
- $(LD) $(PLUGINLDFLAGS) $(SRVOBJS) -o $(SRVOUT) $(LIBS)
|
||||
+ $(CC) $(PLUGINLDFLAGS) $(CFLAGS) $(SRVOBJS) -o $(SRVOUT) $(LIBS)
|
||||
|
||||
install: $(SRVOUT) $(CLIOUT)
|
||||
- mkdir -p $(DESTDIR)$(prefix)/lib/kismet/
|
||||
- install -o $(INSTUSR) -g $(INSTGRP) -m 644 $(SRVOUT) $(DESTDIR)$(prefix)/lib/kismet/$(SRVOUT)
|
||||
- mkdir -p $(DESTDIR)$(prefix)/lib/kismet_client/
|
||||
- install -o $(INSTUSR) -g $(INSTGRP) -m 644 $(CLIOUT) $(DESTDIR)$(prefix)/lib/kismet_client/$(CLIOUT)
|
||||
+ mkdir -p $(DESTDIR)$(prefix)/$(LIBDIR)/kismet/
|
||||
+ install -o $(INSTUSR) -g $(INSTGRP) -m 644 $(SRVOUT) $(DESTDIR)$(prefix)/$(LIBDIR)/kismet/$(SRVOUT)
|
||||
+ mkdir -p $(DESTDIR)$(prefix)/$(LIBDIR)/kismet_client/
|
||||
+ install -o $(INSTUSR) -g $(INSTGRP) -m 644 $(CLIOUT) $(DESTDIR)$(prefix)/$(LIBDIR)/kismet_client/$(CLIOUT)
|
||||
|
||||
|
||||
userinstall: $(SRVOUT) $(CLIOUT)
|
||||
54
net-wireless/ubertooth/ubertooth-9999.ebuild
Normal file
54
net-wireless/ubertooth/ubertooth-9999.ebuild
Normal file
|
|
@ -0,0 +1,54 @@
|
|||
# Copyright 1999-2011 Gentoo Foundation
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
# $Header: $
|
||||
|
||||
EAPI="4"
|
||||
|
||||
inherit subversion
|
||||
|
||||
DESCRIPTION="An open source wireless development platform suitable for Bluetooth experimentation"
|
||||
HOMEPAGE="http://ubertooth.sourceforge.net/"
|
||||
SRC_URI=""
|
||||
|
||||
LICENSE="GPL-2"
|
||||
SLOT="0"
|
||||
KEYWORDS="~arm ~amd64 ~x86"
|
||||
IUSE="+python +specan +dfu"
|
||||
|
||||
DEPEND=""
|
||||
RDEPEND=">=net-wireless/kismet-2011.03.2-r1 \
|
||||
>=net-libs/libbtbb-0.5 \
|
||||
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 )
|
||||
python? ( >=dev-python/pyusb-1.0.0_alpha1 )
|
||||
dfu? ( >=dev-python/pyusb-1.0.0_alpha1 )"
|
||||
|
||||
ESVN_REPO_URI="https://ubertooth.svn.sourceforge.net/svnroot/ubertooth/trunk/host"
|
||||
|
||||
|
||||
src_compile() {
|
||||
cd "${WORKDIR}/${P}/bluetooth_rxtx"
|
||||
emake
|
||||
use python && cd "${WORKDIR}"/${P}/bluetooth_rxtx/python
|
||||
use python && python setup.py build
|
||||
}
|
||||
|
||||
src_install() {
|
||||
dobin bluetooth_rxtx/ubertooth-dump bluetooth_rxtx/ubertooth-lap \
|
||||
bluetooth_rxtx/ubertooth-specan bluetooth_rxtx/ubertooth-uap \
|
||||
bluetooth_rxtx/ubertooth-util
|
||||
|
||||
use python && cd "${WORKDIR}"/${P}/bluetooth_rxtx/python
|
||||
use python && python setup.py install
|
||||
|
||||
use specan && dobin specan_ui/specan.py specan_ui/specan_ui.py
|
||||
|
||||
use dfu && dobin usb_dfu/usb_dfu.py
|
||||
|
||||
insinto "${ED}"/etc/udev/rules.d/
|
||||
doins "${FILESDIR}"/40-ubertooth.rules
|
||||
}
|
||||
Loading…
Reference in a new issue