blob: 7caad05755d22aa7e52ab4cada0ae11420e34598 (
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
55
|
# Copyright 1999-2010 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: $
EAPI=2
PYTHON_USE_WITH="sqlite"
PYTHON_DEPEND="2"
inherit multilib python versionator
MY_P=${PN}-"$(replace_version_separator 2 '-')"
DESCRIPTION="Web Application Attack and Audit Framework"
HOMEPAGE="http://w3af.sourceforge.net/"
SRC_URI="mirror://sourceforge/${PN}/${MY_P}.tar.bz2"
LICENSE="GPL-2"
SLOT="0"
KEYWORDS="~amd64 ~x86"
IUSE="doc gtk"
RDEPEND="dev-python/beautifulsoup
>=dev-python/fpconst-0.7.2
dev-python/nltk
dev-python/pyopenssl
dev-python/pyPdf
dev-python/pysqlite
dev-python/soappy
net-analyzer/scapy
gtk? ( media-gfx/graphviz
>dev-python/pygtk-2.0 )"
S=${WORKDIR}/${PN}
src_prepare(){
for i in BeautifulSoup.py fpconst-0.7.2 jsonpy nltk nltk_contrib pygoogle pyPdf scapy SOAPpy yaml; do
rm -r "${S}"/extlib/$i || die
done
}
src_install() {
insinto /usr/$(get_libdir)/w3af
doins -r * || die "initial copy failed"
dosym /usr/$(get_libdir)/w3af/w3af_gui usr/bin/w3af_gui || die "making w3af_gui symlink failed"
dosym /usr/$(get_libdir)/w3af/w3af_console usr/bin/w3af_console || die "making w3af_console symlink failed"
chmod +x "${D}"/usr/$(get_libdir)/w3af/w3af_gui || die
chmod +x "${D}"/usr/$(get_libdir)/w3af/w3af_console || die
#use flag doc is here because doc is bigger than 3 Mb
if use doc ; then
dodir /usr/share/doc/${PF} || die "dodir failed"
mv "${D}"/usr/$(get_libdir)/w3af/readme "${D}"/usr/share/doc/${PF} || die
else
rm -r "${D}"/usr/$(get_libdir)/w3af/readme || die "rm of docs failed"
fi
}
|