blob: af78793f240b7b3d35e1eba464e4e3154e5b58c1 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
|
# Copyright 1999-2014 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: /var/cvsroot/gentoo-x86/net-wireless/kismet-ubertooth/kismet-ubertooth-2014.04.1.ebuild,v 1.2 2014/04/08 03:37:38 zerochaos Exp $
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-2012.02.2:= \
>=net-libs/libbtbb-2012.02.2:= \
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."
}
|