mirror of
https://github.com/pentoo/pentoo-overlay
synced 2026-04-28 01:31:04 +02:00
corstest: new tool
This commit is contained in:
parent
c2c6d8a71d
commit
257e71dacd
4 changed files with 56 additions and 0 deletions
1
net-misc/corstest/Manifest
Normal file
1
net-misc/corstest/Manifest
Normal file
|
|
@ -0,0 +1 @@
|
|||
DIST corstest-20190704.tar.gz 2072381 BLAKE2B 6aa2bc7268d8a9f6771b9f3b72f82cc8997c8cf0ea95f7d3d26813134378ec031e2774fe9cd4737673976f999b89bd6ca79deea2e546a0fb4519a451a6d9e59e SHA512 bdb2c58129a24bc7071b3d0cdf6249590bfce1bbc24e6775b348373dfae46bedc81025bf396db8f9b3e959f0b5a6405915146d41ab7bd63522dfbdfc45cd4915
|
||||
1
net-misc/corstest/corstest-20190704.ebuild
Symbolic link
1
net-misc/corstest/corstest-20190704.ebuild
Symbolic link
|
|
@ -0,0 +1 @@
|
|||
./corstest-99999999.ebuild
|
||||
46
net-misc/corstest/corstest-99999999.ebuild
Normal file
46
net-misc/corstest/corstest-99999999.ebuild
Normal file
|
|
@ -0,0 +1,46 @@
|
|||
# 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-single-r1
|
||||
|
||||
DESCRIPTION="A simple CORS misconfiguration scanner"
|
||||
HOMEPAGE="https://github.com/RUB-NDS/CORStest"
|
||||
|
||||
if [[ ${PV} == *9999 ]]; then
|
||||
inherit git-r3
|
||||
EGIT_REPO_URI="https://github.com/RUB-NDS/CORStest"
|
||||
else
|
||||
# snapshot: 20190704
|
||||
HASH_COMMIT="d8ddce2425b100f309269d73e17583c0ce365d66"
|
||||
|
||||
SRC_URI="https://github.com/RUB-NDS/CORStest/archive/${HASH_COMMIT}.tar.gz -> ${P}.tar.gz"
|
||||
KEYWORDS="~amd64 ~arm ~arm64 ~mips ~x86"
|
||||
S="${WORKDIR}/CORStest-${HASH_COMMIT}"
|
||||
fi
|
||||
|
||||
LICENSE="GPL-2"
|
||||
SLOT=0
|
||||
|
||||
IUSE=""
|
||||
REQUIRED_USE="${PYTHON_REQUIRED_USE}"
|
||||
RDEPEND="${PYTHON_DEPS}
|
||||
dev-python/requests[${PYTHON_USEDEP}]"
|
||||
|
||||
src_install() {
|
||||
insinto "/usr/share/${PN}"
|
||||
doins -r \
|
||||
tldlist.dat \
|
||||
*.cors \
|
||||
*.py
|
||||
|
||||
python_optimize "${D}/usr/share/${PN}"
|
||||
|
||||
make_wrapper $PN \
|
||||
"python2 /usr/share/${PN}/corstest.py"
|
||||
|
||||
dodoc *.md
|
||||
}
|
||||
8
net-misc/corstest/metadata.xml
Normal file
8
net-misc/corstest/metadata.xml
Normal file
|
|
@ -0,0 +1,8 @@
|
|||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
|
||||
<pkgmetadata>
|
||||
<maintainer type="person">
|
||||
<email>email@linxon.ru</email>
|
||||
<name>Yury Martynov</name>
|
||||
</maintainer>
|
||||
</pkgmetadata>
|
||||
Loading…
Reference in a new issue