diff --git a/net-misc/corscanner/Manifest b/net-misc/corscanner/Manifest new file mode 100644 index 000000000..f5140bed1 --- /dev/null +++ b/net-misc/corscanner/Manifest @@ -0,0 +1 @@ +DIST corscanner-20190721.tar.gz 2249760 BLAKE2B 81c35fe140893813070344bcbbee74da121da91f217a354b9e77c1f99b9b05a19326be44c4d9c0fe6f1f31279c04cece99cb399af90987dc92243501f8596bf0 SHA512 d7d20aed656484dad23f10e1a83b5d400da39e908182e09ad259d066f6ab14674af239f86378d128a08f61409652e8dfdbc52d565775aa94eb17b521802671df diff --git a/net-misc/corscanner/corscanner-20190721.ebuild b/net-misc/corscanner/corscanner-20190721.ebuild new file mode 120000 index 000000000..12b28d4f6 --- /dev/null +++ b/net-misc/corscanner/corscanner-20190721.ebuild @@ -0,0 +1 @@ +./corscanner-99999999.ebuild \ No newline at end of file diff --git a/net-misc/corscanner/corscanner-99999999.ebuild b/net-misc/corscanner/corscanner-99999999.ebuild new file mode 100644 index 000000000..893c8197a --- /dev/null +++ b/net-misc/corscanner/corscanner-99999999.ebuild @@ -0,0 +1,50 @@ +# 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="Fast CORS misconfiguration vulnerabilities scannerbeers" +HOMEPAGE="https://github.com/chenjj/CORScanner" + +if [[ ${PV} == *9999 ]]; then + inherit git-r3 + EGIT_REPO_URI="https://github.com/chenjj/CORScanner" +else + # snapshot: 20190721 + HASH_COMMIT="a4894211115ad7f3a59fbd3e69b20575fd74e435" + + SRC_URI="https://github.com/chenjj/CORScanner/archive/${HASH_COMMIT}.tar.gz -> ${P}.tar.gz" + KEYWORDS="~amd64 ~arm64 ~mips ~x86" + S="${WORKDIR}/CORScanner-${HASH_COMMIT}" +fi + +LICENSE="MIT" +SLOT=0 + +IUSE="" +REQUIRED_USE="${PYTHON_REQUIRED_USE}" +RDEPEND="${PYTHON_DEPS} + dev-python/requests[${PYTHON_USEDEP}] + dev-python/gevent[${PYTHON_USEDEP}] + dev-python/tldextract[${PYTHON_USEDEP}] + dev-python/argparse[${PYTHON_USEDEP}] + dev-python/colorama[${PYTHON_USEDEP}]" + +src_install() { + insinto "/usr/share/${PN}" + doins -r common \ + origins.json \ + *domains.txt \ + *.py + + python_optimize "${D}/usr/share/${PN}" + + make_wrapper "cors_scan" \ + "python3 /usr/share/${PN}/cors_scan.py" + + dodoc *.md +} diff --git a/net-misc/corscanner/metadata.xml b/net-misc/corscanner/metadata.xml new file mode 100644 index 000000000..ebc718e70 --- /dev/null +++ b/net-misc/corscanner/metadata.xml @@ -0,0 +1,8 @@ + + + + + email@linxon.ru + Yury Martynov + +