summaryrefslogtreecommitdiff
path: root/net-wireless/wifitap/wifitap-0.4.0-r4.ebuild
blob: 9894af104d7b199f4457577ae754d4bdd88a0840 (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
# Copyright 1999-2010 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: /root/portage/net-wireless/wifitap/wifitap-0.3.7.ebuild,v 1.1.1.1 2006/03/29 19:41:59 grimmlin Exp $

inherit python

DESCRIPTION="A wireless tool to do direct connection to client without passing through an AP"
HOMEPAGE="http://sid.rstack.org/index.php/Wifitap_EN"
SRC_URI="http://sid.rstack.org/code/${PN}/${P}.tgz"

LICENSE="GPL-2"
SLOT="0"
KEYWORDS="~amd64 ~x86"
IUSE=""

DEPEND="<net-analyzer/scapy-2.0
	dev-python/gnuplot-py
	dev-python/pyx"

S=${WORKDIR}/${PN}

src_install() {
	exeinto /usr/bin
	newexe wifitap.py wifitap
	newexe wifidns.py wifidns
	newexe wifiping.py wifiping

	# also install scapy as a importable python module
	insinto /usr/$(get_libdir)/python$(python_get_version)/site-packages
	rm scapy.py
	doins *.py

	dodoc AUTHORS README Changelog BUGS TODO
}

pkg_postinst() {
	python_mod_optimize
}

pkg_postrm() {
	python_mod_cleanup
}