Merge pull request #64 from ephemer0l/master

w3af: v1.6.49 bump with deps, pull #64
This commit is contained in:
Anton Bolshakov 2016-01-11 09:59:10 +08:00
commit 11b167c259
5 changed files with 196 additions and 0 deletions

View file

@ -0,0 +1,24 @@
# Copyright 1999-2016 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Id$
EAPI=5
PYTHON_COMPAT=( python2_7 )
inherit distutils-r1
DESCRIPTION="a version of dict that keeps keys in insertion resp. sorted order"
HOMEPAGE="https://bitbucket.org/ruamel/ordereddict"
#SRC_URI="mirror://pypi/${PN:0:1}/ruamel.${PN}/ruamel.${P}.tar.gz"
SRC_URI="https://pypi.python.org/packages/source/r/ruamel.ordereddict/ruamel.ordereddict-0.4.6.tar.gz -> ${P}.tar.gz"
LICENSE="MIT"
SLOT="0"
KEYWORDS="~amd64"
IUSE=""
S=${WORKDIR}/ruamel.ordereddict-0.4.6
DEPEND=""
RDEPEND="${DEPEND}"

View file

@ -0,0 +1,31 @@
# Copyright 1999-2016 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Id$
EAPI=5
PYTHON_COMPAT=( python{2_7,3_4} )
inherit distutils-r1
DESCRIPTION="Traceback fiddling library"
HOMEPAGE="https://github.com/ionelmc/python-tblib"
if [[ ${PV} == "9999" ]] ; then
EGIT_REPO_URI="https://github.com/ionelmc/python-tblib"
KEYWORDS=""
inherit git-r3
else
SRC_URI="https://github.com/ionelmc/python-tblib/archive/v${PV}.tar.gz -> ${P}.tar.gz"
KEYWORDS="~amd64 ~x86"
fi
LICENSE="as-is"
SLOT="0"
KEYWORDS="~amd64"
IUSE=""
S=${WORKDIR}/python-${P}
DEPEND=""
RDEPEND="${DEPEND}"

View file

@ -0,0 +1,24 @@
# Copyright 1999-2016 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Id$
EAPI=5
PYTHON_COMPAT=( python2_7 )
inherit distutils-r1
DESCRIPTION="Python SDK to access the vulnerability database"
HOMEPAGE="https://github.com/vulndb/python-sdk/"
SRC_URI="https://pypi.python.org/packages/source/v/vulndb/vulndb-0.0.19.tar.gz"
LICENSE="BSD-3"
SLOT="0"
KEYWORDS="~amd64"
IUSE=""
DEPEND="dev-python/nose
dev-python/pylint
>=dev-python/setuptools-git-1.1
"
RDEPEND="${DEPEND}"

View file

@ -0,0 +1,25 @@
diff -urN w3af-1.6.0.3.orig/w3af/core/controllers/dependency_check/dependency_check.py w3af-1.6.0.3/w3af/core/controllers/dependency_check/dependency_check.py
--- w3af-1.6.0.3.orig/w3af/core/controllers/dependency_check/dependency_check.py 2014-06-12 20:37:39.000000000 +0800
+++ w3af-1.6.0.3/w3af/core/controllers/dependency_check/dependency_check.py 2014-06-14 14:37:29.096864811 +0800
@@ -61,6 +61,8 @@
disable_warnings()
+ return True;
+
platform = get_current_platform()
#
diff -urN w3af-1.6.0.3.orig/w3af/core/ui/gui/dependency_check/dependency_check.py w3af-1.6.0.3/w3af/core/ui/gui/dependency_check/dependency_check.py
--- w3af-1.6.0.3.orig/w3af/core/ui/gui/dependency_check/dependency_check.py 2014-06-12 20:37:39.000000000 +0800
+++ w3af-1.6.0.3/w3af/core/ui/gui/dependency_check/dependency_check.py 2014-06-14 14:39:01.775871623 +0800
@@ -36,6 +36,9 @@
we extend() the lists present in the base module before passing them to
mdep_check()
"""
+
+ return True
+
should_exit = mdep_check(dependency_set=GUI, exit_on_failure=False)
try:

View file

@ -0,0 +1,92 @@
# Copyright 1999-2014 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: blshkv Exp $
EAPI=5
PYTHON_REQ_USE="sqlite"
PYTHON_COMPAT=( python2_7 )
inherit multilib python-r1 versionator git-r3
MY_P=${PN}-"$(replace_version_separator 2 '-')"
DESCRIPTION="Web Application Attack and Audit Framework"
HOMEPAGE="http://w3af.sourceforge.net/"
EGIT_REPO_URI="https://github.com/andresriancho/w3af.git"
LICENSE="GPL-2"
SLOT="0"
KEYWORDS=""
IUSE="doc gtk clamav"
RDEPEND="dev-python/pyClamd
net-proxy/mitmproxy
dev-python/netlib
dev-python/pywebkitgtk
dev-python/tblib
dev-python/ordereddict
dev-python/vulndb
>=dev-python/fpconst-0.7.2
=app-text/pdfminer-20131113
dev-python/chardet
clamav? ( dev-python/clamd )
dev-python/esmre
>=dev-python/git-python-1.0.1
dev-python/esmre
dev-python/guess-language
dev-python/halberd
dev-python/msgpack
=dev-python/nltk-2.0.4
dev-python/phply
dev-python/pyopenssl
dev-python/pysvn
dev-python/python-cluster
dev-python/python-ntlm
dev-python/PyGithub
dev-python/pyyaml
dev-python/simplejson
dev-python/soappy
|| (
net-analyzer/gnu-netcat
net-analyzer/netcat
net-analyzer/netcat6 )
>=net-analyzer/scapy-2
dev-db/sqlmap
dev-python/lxml
dev-python/pybloomfiltermmap
dev-python/futures
gtk? ( dev-python/pygraphviz
>dev-python/pygtk-2.0
=dev-python/xdot-0.6
dev-python/pygtksourceview )
dev-python/DartsPyLRU"
DEPEND=""
src_prepare(){
rm doc/{GPL,INSTALL} || die
find "${S}" -type d -name .svn -exec rm -R {} +
#bundled sqlmap
rm -r w3af/plugins/attack/db/sqlmap || die
use clamav || rm w3af/plugins/grep/clamav.py
#Halberd hmap is also bundled
epatch "${FILESDIR}"/${P}_disable_deps_check.patch
}
src_install() {
insinto /usr/$(get_libdir)/w3af
doins -r w3af profiles scripts tools w3af_console
if use gtk ; then
doins w3af_gui
fperms +x /usr/$(get_libdir)/w3af/w3af_gui || die
fi
fperms +x /usr/$(get_libdir)/w3af/w3af_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 doc/* || die
fi
}