kismet-ubertooth: it's official, pentoo can sniff bluetooth

This commit is contained in:
Zero_Chaos 2011-05-28 23:17:38 +00:00
parent e996c2b627
commit 8652b038ea
3 changed files with 65 additions and 0 deletions

View file

@ -0,0 +1,2 @@
AUX makefile.patch 1205 RMD160 2de9c3d87a968ef5ca1d47b51aec1e0c97688334 SHA1 50f9a2d0a8d78792e06d3cb06f204c98398fde62 SHA256 afdcfd26574c4d050d48cf5aa3a0ba57b3ca4311d1d1f1fabbe8ae00c8559f49
EBUILD kismet-ubertooth-9999.ebuild 849 RMD160 6359f0b15650bf5544bb1566f0bb50d175b901cb SHA1 e8ba940ab3d6c962714903f26841db8a3126e2f7 SHA256 4bc198a0f84996f5f83ea848d00211bdab94283387621b18a243377145c3191a

View file

@ -0,0 +1,26 @@
diff -Naur trunk/host/kismet/plugin-ubertooth/Makefile trunk-new/host/kismet/plugin-ubertooth/Makefile
--- trunk/host/kismet/plugin-ubertooth/Makefile 2011-03-17 22:21:25.000000000 -0400
+++ trunk-new/host/kismet/plugin-ubertooth/Makefile 2011-05-28 18:50:14.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
@@ -29,10 +30,10 @@
$(LD) $(PLUGINLDFLAGS) $(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)

View file

@ -0,0 +1,37 @@
# Copyright 1999-2011 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: $
EAPI="4"
inherit subversion
DESCRIPTION="Provides basic bluetooth support in kismet"
HOMEPAGE="http://ubertooth.sourceforge.net/"
SRC_URI=""
LICENSE="GPL-2"
SLOT="0"
KEYWORDS="~arm ~amd64 ~x86"
IUSE=""
DEPEND=""
RDEPEND=">=net-wireless/kismet-2009.11.1-r1"
ESVN_REPO_URI="https://ubertooth.svn.sourceforge.net/svnroot/ubertooth/trunk/host"
#S="${WORKDIR}/kismet/plugin-ubertooth"
src_prepare() {
epatch "${FILESDIR}/makefile.patch"
}
src_compile() {
cd "${WORKDIR}/${P}/kismet/plugin-ubertooth"
emake KIS_SRC_DIR="/usr/include/kismet/"
}
src_install() {
cd "${WORKDIR}/${P}/kismet/plugin-ubertooth"
emake DESTDIR="${ED}" LIBDIR="$(get_libdir)" KIS_SRC_DIR="/usr/include/kismet/" KIS_DEST_DIR="${D}/usr/" install
}