blob: 1bfc79c508567de8dd3262eb8b39208b157715b2 (
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
|
# Copyright 1999-2015 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
EAPI="5"
PYTHON_COMPAT=( python2_7 )
inherit eutils flag-o-matic python-single-r1
DESCRIPTION="Tool for generic packet injection on 802.11"
HOMEPAGE="http://airpwn.sf.net"
SRC_URI="mirror://sourceforge/airpwn/$P.tgz"
LICENSE="GPL-2"
SLOT="0"
KEYWORDS=""
IUSE="+examples"
REQUIRED_USE="${PYTHON_REQUIRED_USE}"
DEPEND="${PYTHON_DEPS}
dev-libs/libpcre
dev-libs/openssl:0=
net-libs/libnet:1.1=
net-libs/libpcap
net-wireless/lorcon-old"
RDEPEND="${DEPEND}"
src_configure() {
econf
sed -i "s/python2.4/${EPYTHON}/g" conf.h || die
sed -i "s|-lorcon -lpthread -lpcre -lpcap -lnet|-lorcon -lpthread -lpcre -lpcap -lnet -lcrypto -l${EPYTHON}|g" Makefile || die
}
src_install() {
default
if use examples; then
insinto /usr/share/${PN}
ecvs_clean
sed -i "s#content/#/usr/share/${PN}/content/#" conf/* || die
doins -r conf content
fi
}
|