mirror of
https://github.com/pentoo/pentoo-overlay
synced 2026-01-17 05:35:26 +01:00
xsstrike: fix dependency.bad
This commit is contained in:
parent
5c1a8d1296
commit
a42e3ac40f
4 changed files with 77 additions and 42 deletions
12
net-analyzer/xsstrike/files/disable_update_opt.patch
Normal file
12
net-analyzer/xsstrike/files/disable_update_opt.patch
Normal file
|
|
@ -0,0 +1,12 @@
|
|||
diff -ur a/xsstrike.py b/xsstrike.py
|
||||
--- a/xsstrike.py 2019-04-08 11:26:10.000000000 +0300
|
||||
+++ b/xsstrike.py 2019-12-10 09:44:33.284473315 +0300
|
||||
@@ -40,8 +40,6 @@
|
||||
parser.add_argument('-e', '--encode', help='encode payloads', dest='encode')
|
||||
parser.add_argument('--fuzzer', help='fuzzer',
|
||||
dest='fuzz', action='store_true')
|
||||
-parser.add_argument('--update', help='update',
|
||||
- dest='update', action='store_true')
|
||||
parser.add_argument('--timeout', help='timeout',
|
||||
dest='timeout', type=int, default=core.config.timeout)
|
||||
parser.add_argument('--proxy', help='use prox(y|ies)',
|
||||
11
net-analyzer/xsstrike/metadata.xml
Normal file
11
net-analyzer/xsstrike/metadata.xml
Normal file
|
|
@ -0,0 +1,11 @@
|
|||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
|
||||
<pkgmetadata>
|
||||
<maintainer type="project">
|
||||
<email>proxy-maint@gentoo.org</email>
|
||||
<name>Proxy Maintainers</name>
|
||||
</maintainer>
|
||||
<upstream>
|
||||
<remote-id type="github">s0md3v/XSStrike</remote-id>
|
||||
</upstream>
|
||||
</pkgmetadata>
|
||||
|
|
@ -1,42 +0,0 @@
|
|||
# Copyright 1999-2019 Gentoo Authors
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
|
||||
EAPI=7
|
||||
|
||||
PYTHON_COMPAT=( python{3_5,3_6,3_7} )
|
||||
inherit python-single-r1
|
||||
|
||||
KEYWORDS="~amd64 ~x86"
|
||||
SRC_URI="https://github.com/s0md3v/XSStrike/archive/${PV}.tar.gz -> ${P}.tar.gz"
|
||||
DESCRIPTION="Advanced XSS detection suite"
|
||||
HOMEPAGE="https://github.com/s0md3v/XSStrike"
|
||||
|
||||
LICENSE="GPL-3"
|
||||
SLOT="0"
|
||||
KEYWORDS="~amd64 ~x86"
|
||||
IUSE=""
|
||||
|
||||
RDEPEND="dev-python/tld[${PYTHON_USEDEP}]
|
||||
dev-python/fuzzywuzzy[${PYTHON_USEDEP}]
|
||||
dev-python/requests[${PYTHON_USEDEP}]
|
||||
dev-python/selenium[${PYTHON_USEDEP}]"
|
||||
DEPEND="${RDEPEND}"
|
||||
|
||||
S="${WORKDIR}/XSStrike-${PV}"
|
||||
|
||||
src_prepare() {
|
||||
cat > ${PN} << EOF
|
||||
#!/bin/sh
|
||||
cd /usr/share/xsstrike
|
||||
exec ./xsstrike.py "\${@}"
|
||||
EOF
|
||||
eapply_user
|
||||
}
|
||||
|
||||
src_install() {
|
||||
dobin ${PN}
|
||||
python_fix_shebang "${PN}.py"
|
||||
insinto "/usr/share/${PN}"
|
||||
doins -r core db modes plugins "${PN}.py"
|
||||
fperms 0755 "/usr/share/${PN}/${PN}.py"
|
||||
}
|
||||
54
net-analyzer/xsstrike/xsstrike-3.1.4-r2.ebuild
Normal file
54
net-analyzer/xsstrike/xsstrike-3.1.4-r2.ebuild
Normal file
|
|
@ -0,0 +1,54 @@
|
|||
# Copyright 1999-2019 Gentoo Authors
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
|
||||
EAPI=7
|
||||
|
||||
PYTHON_COMPAT=( python3_{5,6} )
|
||||
|
||||
inherit eutils python-single-r1
|
||||
|
||||
DESCRIPTION="Advanced XSS detection suite"
|
||||
HOMEPAGE="https://github.com/s0md3v/XSStrike"
|
||||
|
||||
if [[ ${PV} == *9999 ]]; then
|
||||
inherit git-r3
|
||||
EGIT_REPO_URI="https://github.com/s0md3v/XSStrike"
|
||||
else
|
||||
SRC_URI="https://github.com/s0md3v/XSStrike/archive/${PV}.tar.gz -> ${P}.tar.gz"
|
||||
S="${WORKDIR}/XSStrike-${PV}"
|
||||
|
||||
KEYWORDS="~amd64 ~x86"
|
||||
fi
|
||||
|
||||
LICENSE="GPL-3"
|
||||
SLOT="0"
|
||||
|
||||
DEPEND="${PYTHON_DEPS}"
|
||||
RDEPEND="${DEPEND}
|
||||
dev-python/tld[${PYTHON_USEDEP}]
|
||||
dev-python/fuzzywuzzy[${PYTHON_USEDEP}]
|
||||
dev-python/requests[${PYTHON_USEDEP}]
|
||||
dev-python/selenium[${PYTHON_USEDEP}]"
|
||||
|
||||
pkg_setup() {
|
||||
python-single-r1_pkg_setup
|
||||
}
|
||||
|
||||
src_prepare() {
|
||||
eapply "${FILESDIR}/disable_update_opt.patch"
|
||||
python_fix_shebang "${S}"
|
||||
default
|
||||
}
|
||||
|
||||
src_install() {
|
||||
insinto "/usr/share/${PN}"
|
||||
doins -r core/ db/ modes/ plugins/ "${PN}.py"
|
||||
|
||||
python_optimize "${ED}/usr/share/${PN}"
|
||||
|
||||
make_wrapper $PN \
|
||||
"${PYTHON} /usr/share/${PN}/${PN}.py" \
|
||||
"/usr/share/${PN}"
|
||||
|
||||
dodoc CHANGELOG.md README.md
|
||||
}
|
||||
Loading…
Reference in a new issue