mirror of
https://github.com/pentoo/pentoo-overlay
synced 2026-04-20 22:01:11 +02:00
xsstrike: add *9999 live ebuild
This commit is contained in:
parent
a42e3ac40f
commit
c9e5d2cf3e
1 changed files with 54 additions and 0 deletions
54
net-analyzer/xsstrike/xsstrike-9999.ebuild
Normal file
54
net-analyzer/xsstrike/xsstrike-9999.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