summaryrefslogtreecommitdiff
path: root/net-wireless/bluemaho/bluemaho-090417-r1.ebuild
blob: 8e84602e1fbdd66bf9fde33aab1f2e4ce6e983bd (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
# Copyright 1999-2010 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: $

EAPI=2

inherit eutils

MY_P="${PN}_v${PV}"

DESCRIPTION="BlueMaho is GUI-shell (interface) for suite of tools for testing security of bluetooth devices"
HOMEPAGE="http://wiki.thc.org/BlueMaho"
SRC_URI="http://wiki.thc.org/BlueMaho?action=AttachFile&do=get&target=${MY_P}.tgz"

LICENSE="GPL-2"
SLOT="0"
KEYWORDS="x86"
IUSE=""
RDEPEND="net-wireless/bluez[test-programs]
	 net-wireless/bt-audit
	 dev-libs/libxml2
	 dev-python/wxpython
	 dev-libs/libusb
	 sys-libs/readline"
DEPEND="${RDEPEND}"
S="${WORKDIR}/${MY_P/_v/-}"

src_compile() {
	epatch "${FILESDIR}"/btftp-libxml.patch
	sed -e 's/Eterm/xterm/'	-i config/default.conf
	cd config
	sh build.sh || die "emake failed"
}

src_install() {
	dodir /usr/lib/${PN}
	cp -R "${S}"/* "${D}"/usr/lib/${PN} || die "Copy files failed"
	dobin "${FILESDIR}/${PN}"
}