diff --git a/net-misc/wascan/Manifest b/net-misc/wascan/Manifest new file mode 100644 index 000000000..a54180662 --- /dev/null +++ b/net-misc/wascan/Manifest @@ -0,0 +1 @@ +DIST wascan-0.2.1.tar.gz 583160 BLAKE2B 02da1195feb50929b3c36ee90bce7f22f96132472e6d0919effcdf4b2e5f2862872058c4659b6a090d0e609e7994bfd0ddaa212bdac76a2953be4bf49b30e8ff SHA512 7383d665e20c20b84ef6e1a79cc40be6ae7c1cc6d4a58265bd29b3d929c075517c7ffdb7a69e7d47c40c4239c8981b3c2d33f2196f9a936f057ef09f694bfa24 diff --git a/net-misc/wascan/metadata.xml b/net-misc/wascan/metadata.xml new file mode 100644 index 000000000..ebc718e70 --- /dev/null +++ b/net-misc/wascan/metadata.xml @@ -0,0 +1,8 @@ + + + + + email@linxon.ru + Yury Martynov + + diff --git a/net-misc/wascan/wascan-0.2.1.ebuild b/net-misc/wascan/wascan-0.2.1.ebuild new file mode 120000 index 000000000..a05dbb6d4 --- /dev/null +++ b/net-misc/wascan/wascan-0.2.1.ebuild @@ -0,0 +1 @@ +wascan-9999.ebuild \ No newline at end of file diff --git a/net-misc/wascan/wascan-9999.ebuild b/net-misc/wascan/wascan-9999.ebuild new file mode 100644 index 000000000..b12b49691 --- /dev/null +++ b/net-misc/wascan/wascan-9999.ebuild @@ -0,0 +1,44 @@ +# Copyright 1999-2019 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=7 +PYTHON_COMPAT=( python2_7 ) + +inherit eutils python-r1 + +DESCRIPTION="Web Application Scanner" +HOMEPAGE="https://github.com/m4ll0k/WAScan" + +if [[ ${PV} == *9999 ]]; then + inherit git-r3 + EGIT_REPO_URI="https://github.com/m4ll0k/WAScan" +else + SRC_URI="https://github.com/m4ll0k/WAScan/archive/v${PV}.tar.gz -> ${P}.tar.gz" + KEYWORDS="~amd64 ~arm ~x86" + S="${WORKDIR}/WAScan-${PV}" +fi + +LICENSE="GPL-3" +SLOT="0" +DEPEND="${PYTHON_DEPS}" +RDEPEND="${DEPEND} + dev-python/requests[${PYTHON_USEDEP}] + dev-python/beautifulsoup:4[${PYTHON_USEDEP}]" + +src_install() { + local assets=( + "lib" + "plugins" + ) + + insinto /usr/share/${PN} + for x in ${assets[@]} ${PN}.py; do + doins -r ${x} + done + + dodoc README.md + make_wrapper \ + "${PN}" \ + "python2 /usr/share/${PN}/${PN}.py" \ + "/usr/share/${PN}/" +}