btle-sniffer: new tool, BTLE sniffer using hackrf/bladerf hardware

This commit is contained in:
blshkv 2016-11-05 17:33:24 +08:00
parent c6bb271068
commit a3438099a3
No known key found for this signature in database
GPG key ID: 9CCF6FCB8D8A14BF
2 changed files with 32 additions and 0 deletions

View file

@ -0,0 +1 @@
DIST btle-sniffer-0.2.tar.gz 863342 SHA256 883e9275c7f53bf325d57c6da58258530fe1a1fe3e7dec75a038e93dd2e74f60 SHA512 c4eaad98d7bc41e8dcd993037b670a890b49ff681657c123b0b58fd615084a404a1cb8580fb3dcef8f7cd0c922d777a9d95f4cd1208a49ccc7d9dce141c29aa6 WHIRLPOOL 6ed7e55bf03d9f1fba756e3e998aff0f0eefe95be21f4bb656b5ed20ebee9af294525e09f17cba70f540adbc69a1a7f498b11b864a2c31cc04659390242a8d24

View file

@ -0,0 +1,31 @@
# Copyright 1999-2016 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Id$
EAPI=5
inherit cmake-utils
DESCRIPTION="A BTLE (Bluetooth Low energy)/BT4.0 radio packet sniffer/scanner and sender"
HOMEPAGE="http://sdr-x.github.io/BTLE-SNIFFER/"
SRC_URI="https://github.com/JiaoXianjun/BTLE/archive/v${PV}.tar.gz -> ${P}.tar.gz"
KEYWORDS="~amd64 ~x86"
LICENSE="GPL-2"
SLOT="0"
IUSE="bladerf +hackrf"
DEPEND="hackrf? ( net-libs/libhackrf )"
RDEPEND="${DEPEND}"
REQUIRED_USE="^^ ( bladerf hackrf )"
S="${WORKDIR}/BTLE-${PV}/host"
src_configure() {
#without -DUSE_BLADERF=1 means HACKRF will be used by default
local mycmakeargs=(
$(usex bladerf -DUSE_BLADERF=1)
)
cmake-utils_src_configure
}