summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRick Farina <zerochaos@gentoo.org>2013-12-23 18:48:10 +0000
committerRick Farina <zerochaos@gentoo.org>2013-12-23 18:48:10 +0000
commit70b34851d2cc76532f18763f3632852c8afb9c72 (patch)
tree5ea50114906d714dc02a312a9c8b76b97716f47e /net-analyzer/w3af
parentAdd patches for CVE-2013-4319 (#484320). (diff)
downloadgentoo-2-70b34851d2cc76532f18763f3632852c8afb9c72.tar.gz
gentoo-2-70b34851d2cc76532f18763f3632852c8afb9c72.tar.bz2
gentoo-2-70b34851d2cc76532f18763f3632852c8afb9c72.zip
update w3af-1.1 to python-single-r1 and most of an ebuild for 1.5 (need to fix deps but out of time)
(Portage version: 2.2.7/cvs/Linux x86_64, signed Manifest commit with key DD11F94A)
Diffstat (limited to 'net-analyzer/w3af')
-rw-r--r--net-analyzer/w3af/ChangeLog10
-rw-r--r--net-analyzer/w3af/w3af-1.1-r1.ebuild66
-rw-r--r--net-analyzer/w3af/w3af-1.5.ebuild70
3 files changed, 145 insertions, 1 deletions
diff --git a/net-analyzer/w3af/ChangeLog b/net-analyzer/w3af/ChangeLog
index 2d94b8bc3bae..81515fa7b0a2 100644
--- a/net-analyzer/w3af/ChangeLog
+++ b/net-analyzer/w3af/ChangeLog
@@ -1,6 +1,14 @@
# ChangeLog for net-analyzer/w3af
# Copyright 1999-2013 Gentoo Foundation; Distributed under the GPL v2
-# $Header: /var/cvsroot/gentoo-x86/net-analyzer/w3af/ChangeLog,v 1.18 2013/01/30 18:56:35 hwoarang Exp $
+# $Header: /var/cvsroot/gentoo-x86/net-analyzer/w3af/ChangeLog,v 1.19 2013/12/23 18:48:10 zerochaos Exp $
+
+*w3af-1.5 (23 Dec 2013)
+*w3af-1.1-r1 (23 Dec 2013)
+
+ 23 Dec 2013; Rick Farina <zerochaos@gentoo.org> +w3af-1.1-r1.ebuild,
+ +w3af-1.5.ebuild:
+ update w3af-1.1 to python-single-r1 and most of an ebuild for 1.5 (need to fix
+ deps but out of time)
30 Jan 2013; Markos Chandras <hwoarang@gentoo.org> metadata.xml:
Update metadata.xml
diff --git a/net-analyzer/w3af/w3af-1.1-r1.ebuild b/net-analyzer/w3af/w3af-1.1-r1.ebuild
new file mode 100644
index 000000000000..0286fbc64592
--- /dev/null
+++ b/net-analyzer/w3af/w3af-1.1-r1.ebuild
@@ -0,0 +1,66 @@
+# Copyright 1999-2013 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Header: /var/cvsroot/gentoo-x86/net-analyzer/w3af/w3af-1.1-r1.ebuild,v 1.1 2013/12/23 18:48:10 zerochaos Exp $
+
+EAPI=5
+
+PYTHON_COMPAT=( python{2_6,2_7} )
+PYTHON_REQ_USE="sqlite"
+
+inherit multilib python-single-r1 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/fpconst-0.7.2
+ dev-python/lxml
+ dev-python/nltk
+ dev-python/pybloomfiltermmap
+ dev-python/pyopenssl
+ dev-python/pyPdf
+ dev-python/python-cluster
+ dev-python/pyyaml
+ dev-python/simplejson
+ dev-python/soappy
+ dev-python/pysvn
+ || (
+ net-analyzer/gnu-netcat
+ net-analyzer/netcat
+ net-analyzer/netcat6 )
+ >=net-analyzer/scapy-2
+ gtk? ( media-gfx/graphviz
+ >dev-python/pygtk-2.0
+ dev-python/pygtksourceview )"
+
+S=${WORKDIR}/${PN}
+
+src_prepare(){
+ rm -r extlib/{cluster,fpconst-0.7.2,pyPdf,SOAPpy,yaml} || die
+ sed -i 's,extlib.pyPdf.,,' core/data/parsers/pdfParser.py || die
+ rm readme/{GPL,INSTALL} || die
+ rm plugins/attack/payloads/code/netcat || die #bug 349780
+ find "${S}" -type d -name .svn -exec rm -R {} +
+}
+
+src_install() {
+ insinto /usr/$(get_libdir)/w3af
+ doins -r core extlib locales plugins profiles scripts tools w3af_gui w3af_console || die
+ fperms +x /usr/$(get_libdir)/w3af/w3af_{gui,console} || die
+ dobin "${FILESDIR}"/w3af_console || die
+ if use gtk ; then
+ dobin "${FILESDIR}"/w3af_gui || die
+ fi
+ #use flag doc is here because doc is bigger than 3 Mb
+ if use doc ; then
+ insinto /usr/share/doc/${PF}/
+ doins -r readme/* || die
+ fi
+ python_fix_shebang "${ED}"usr/$(get_libdir)/${PN}
+}
diff --git a/net-analyzer/w3af/w3af-1.5.ebuild b/net-analyzer/w3af/w3af-1.5.ebuild
new file mode 100644
index 000000000000..63d46b3eb9fc
--- /dev/null
+++ b/net-analyzer/w3af/w3af-1.5.ebuild
@@ -0,0 +1,70 @@
+# Copyright 1999-2013 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Header: /var/cvsroot/gentoo-x86/net-analyzer/w3af/w3af-1.5.ebuild,v 1.1 2013/12/23 18:48:10 zerochaos Exp $
+
+EAPI=5
+
+PYTHON_COMPAT=( python2_7 )
+PYTHON_REQ_USE="sqlite"
+
+inherit multilib python-single-r1
+
+DESCRIPTION="Web Application Attack and Audit Framework"
+HOMEPAGE="http://w3af.sourceforge.net/"
+SRC_URI="https://github.com/andresriancho/${PN}/archive/${PV}.tar.gz"
+
+LICENSE="GPL-2"
+SLOT="0"
+KEYWORDS=""
+IUSE="doc gtk"
+
+#w3af seems to ship sqlmap? maybe we should split this out...
+
+QA_PREBUILT="usr/$(get_libdir)/${PN}/plugins/attack/db/sqlmap/udf/mysql/linux/32/lib_mysqludf_sys.so
+ usr/$(get_libdir)/${PN}/plugins/attack/db/sqlmap/udf/mysql/linux/64/lib_mysqludf_sys.so
+ usr/$(get_libdir)/${PN}/plugins/attack/db/sqlmap/udf/postgresql/linux/*/8.2/lib_postgresqludf_sys.so
+ usr/$(get_libdir)/${PN}/plugins/attack/db/sqlmap/udf/postgresql/linux/*/8.3/lib_postgresqludf_sys.so
+ usr/$(get_libdir)/${PN}/plugins/attack/db/sqlmap/udf/postgresql/linux/*/8.4/lib_postgresqludf_sys.so
+ usr/$(get_libdir)/${PN}/plugins/attack/db/sqlmap/udf/postgresql/linux/*/9.0/lib_postgresqludf_sys.so"
+
+RDEPEND=">=dev-python/fpconst-0.7.2
+ dev-python/lxml
+ dev-python/nltk
+ dev-python/pybloomfiltermmap
+ dev-python/pyopenssl
+ dev-python/pyPdf
+ dev-python/python-cluster
+ dev-python/pyyaml
+ dev-python/simplejson
+ dev-python/soappy
+ dev-python/pysvn
+ || (
+ net-analyzer/gnu-netcat
+ net-analyzer/netcat
+ net-analyzer/netcat6 )
+ >=net-analyzer/scapy-2
+ gtk? ( media-gfx/graphviz
+ >dev-python/pygtk-2.0
+ dev-python/pygtksourceview )"
+
+src_prepare(){
+ rm doc/{GPL,INSTALL} || die
+}
+
+src_install() {
+ insinto /usr/$(get_libdir)/${PN}
+ doins -r core locales plugins profiles scripts tools w3af_gui w3af_console || die
+ fperms +x /usr/$(get_libdir)/${PN}/${PN}_{gui,console} || die
+ dobin "${FILESDIR}"/${PN}_console || die
+ if use gtk ; then
+ dobin "${FILESDIR}"/${PN}_gui || die
+ else
+ rm "${ED}"/usr/$(get_libdir)/${PN}/w3af_gui
+ fi
+ #use flag doc is here because doc is bigger than 3 Mb
+ if use doc ; then
+ insinto /usr/share/doc/${PF}/
+ doins -r doc/* || die
+ fi
+ python_fix_shebang "${ED}"usr/$(get_libdir)/${PN}
+}