theHarvester: v4.0.0, no longer x86

This commit is contained in:
Anton Bolshakov 2021-07-03 13:08:45 +08:00
parent e15c18f54e
commit 8b945843d0
No known key found for this signature in database
GPG key ID: 32BDCED870788F04
13 changed files with 167 additions and 6 deletions

View file

@ -1,4 +1,4 @@
# Copyright 1999-2020 Gentoo Authors
# Copyright 1999-2021 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
EAPI=7
@ -13,7 +13,7 @@ SRC_URI="mirror://pypi/${P:0:1}/${PN}/${P}.tar.gz"
LICENSE="Apache-2.0"
SLOT="0"
KEYWORDS="~amd64 ~x86 ~amd64-linux ~x86-linux"
KEYWORDS="~amd64 ~arm64 ~x86"
IUSE="test"
REQUIRED_USE="${PYTHON_REQUIRED_USE}"

View file

@ -0,0 +1 @@
DIST limits-1.5.1.tar.gz 37893 BLAKE2B 8aae1e88b24901e2118f79ef0e4ae5c549f0dd9df3f984bd2cc3858184631893c81da5543daddd3004d8b07a7e3a55b423efce0ae21e56f3246c4cf489409012 SHA512 db7bf00c8469eaf2938c963af454045ae4647b0d5b37246c02f7a863042ff876079038e045f2b67eb8e1ed8f3dbee6d51c0f67262b7b431cb218cc3880a466f3

View file

@ -0,0 +1,21 @@
# Copyright 1999-2021 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
EAPI=7
PYTHON_COMPAT=( python3_{7..9} )
inherit distutils-r1
DESCRIPTION="Rate limiting utilities"
HOMEPAGE="https://limits.readthedocs.org/"
SRC_URI="mirror://pypi/${P:0:1}/${PN}/${P}.tar.gz"
LICENSE="MIT"
SLOT="0"
KEYWORDS="~amd64 ~arm64 ~x86"
IUSE="test"
RDEPEND=">=dev-python/six-1.4.1[${PYTHON_USEDEP}]"
DEPEND="${RDEPEND}"
REQUIRED_USE="${PYTHON_REQUIRED_USE}"

View file

@ -0,0 +1,2 @@
DIST orjson-bin-3.5.4_aarch64.zip 211534 BLAKE2B d16a767d66f0dd23ce18c02decfc163e0370c5ff99df292f295d7fa599b6dad359b30c582312f5f21e30a1eefcdf371489ff8f4813050f59d02baa6735f0d217 SHA512 30f992302ffcec64460f7b3f0001d39f321a70417a2cb71370777486c56ce5d4aa86de6c59ffd830f267536e609f7fd941f703f0281530feb4c3e64b3a35f757
DIST orjson-bin-3.5.4_x86_64.zip 229738 BLAKE2B 2e7be6ae80b434f60fb95a2f748b0e5788db41d452d191557c8b160f0a8788749ad7a5eccaf72a71b97fcc1b87c1e462550159a58126303b5c7ca75ca6f67de8 SHA512 68f9fce3b56a41294efd4f9b2da3841719ca5df222c656a32f5d9bd80a660774eb2e5f28a63324a9fffe15184745fef68a67c6482398b3443252b46324cb7e6f

View file

@ -0,0 +1,44 @@
# Copyright 1999-2021 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
EAPI=7
PYTHON_COMPAT=( python3_{7..9} )
inherit python-r1 python-utils-r1
DESCRIPTION="Fast, correct Python JSON library supporting dataclasses, datetimes, and numpy"
HOMEPAGE="https://github.com/ijl/orjson"
SRC_URI="
amd64? (
https://files.pythonhosted.org/packages/ea/e0/916840ad7082d0fd30b344a81c21380421f1b50461c994f7377a520b2c58/orjson-3.5.4-cp310-cp310-manylinux_2_24_x86_64.whl -> ${P}_x86_64.zip
)
arm64? (
https://files.pythonhosted.org/packages/36/cb/745cbd1f16ee64da14e3fe08e3e0528e3901a6265afe52de16bf3e2d20cc/orjson-3.5.4-cp310-cp310-manylinux_2_24_aarch64.whl -> ${P}_aarch64.zip
)
"
LICENSE="Apache-2.0"
SLOT="0"
KEYWORDS="~amd64 ~arm64"
IUSE="test"
S="${WORKDIR}/"
pkg_setup() {
python_setup
}
src_install(){
insinto "$(python_get_sitedir)"
if use amd64; then
doins orjson.cpython-310-x86_64-linux-gnu.so
dosym $(python_get_sitedir)/orjson.cpython-310-x86_64-linux-gnu.so $(python_get_sitedir)/orjson.cpython-39-x86_64-linux-gnu.so
dosym $(python_get_sitedir)/orjson.cpython-310-x86_64-linux-gnu.so $(python_get_sitedir)/orjson.cpython-38-x86_64-linux-gnu.so
dosym $(python_get_sitedir)/orjson.cpython-310-x86_64-linux-gnu.so $(python_get_sitedir)/orjson.cpython-37-x86_64-linux-gnu.so
elif use arm64; then
doins orjson.cpython-310-aarch64-linux-gnu.so
dosym $(python_get_sitedir)/orjson.cpython-310-aarch64-linux-gnu.so $(python_get_sitedir)/orjson.cpython-39-aarch64-linux-gnu.so
dosym $(python_get_sitedir)/orjson.cpython-310-aarch64-linux-gnu.so $(python_get_sitedir)/orjson.cpython-38-aarch64-linux-gnu.so
dosym $(python_get_sitedir)/orjson.cpython-310-aarch64-linux-gnu.so $(python_get_sitedir)/orjson.cpython-37-aarch64-linux-gnu.so
fi
}

View file

@ -0,0 +1 @@
DIST slowapi-0.1.4.tar.gz 12172 BLAKE2B e7a199a58f710aecd79be90e50ef682b6eb9dee4799da5b4baffbe609d1624578d10745d9555f5f42aeddfc9148bcd044c96df3268d673a6b222615828bdf23a SHA512 4ad6536b2230b0ee6f1fa9390705ade6726725dde4184bb874ea72b23487310fba6e34da99c1fcfcfa1e6225bba301b34c7a028bab5ddd3000825b52ccfde77a

View file

@ -0,0 +1,23 @@
# Copyright 1999-2021 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
EAPI=7
PYTHON_COMPAT=( python3_{7..9} )
inherit distutils-r1
DESCRIPTION="A rate limiting extension for Starlette and Fastapi"
HOMEPAGE="https://github.com/laurents/slowapi"
SRC_URI="mirror://pypi/${P:0:1}/${PN}/${P}.tar.gz"
LICENSE="MIT"
SLOT="0"
KEYWORDS="~amd64 ~arm64 ~x86"
IUSE="test"
RDEPEND=">=dev-python/limits-1.5[${PYTHON_USEDEP}]
>=dev-python/redis-py-3.4.1[${PYTHON_USEDEP}]
"
DEPEND="${RDEPEND}"
REQUIRED_USE="${PYTHON_REQUIRED_USE}"

View file

@ -1,4 +1,4 @@
# Copyright 1999-2020 Gentoo Authors
# Copyright 1999-2021 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
EAPI=7
@ -10,7 +10,7 @@ DESCRIPTION="Ultra-fast implementation of asyncio event loop on top of libuv"
HOMEPAGE="https://github.com/magicstack/uvloop"
SRC_URI="mirror://pypi/${PN:0:1}/${PN}/${P}.tar.gz"
KEYWORDS="amd64 x86"
KEYWORDS="amd64 ~arm64 x86"
LICENSE="MIT"
SLOT="0"
IUSE="doc examples test"

View file

@ -1,2 +1,2 @@
DIST theHarvester-3.2.3.tar.gz 1050496 BLAKE2B 136c6f3e518b9ad9d927a72b6a94e6d4e1b46e1788fb6f82d768d17383d51f90f24e7d323fb0e93d9ccbd21bfe65dfa42fa3e5e43d93c0c390ac8fd744dd028f SHA512 e9a240c5f8674c14fb1ab6d8c66e54a0ab277244e6b0ceffd17108f4bd19dc959a9ca0215d7d84a5548d530c3af7334bc73b94ce7607de31b61ca64ad7be6860
DIST theHarvester-3.2.4.tar.gz 1051742 BLAKE2B 5eb38c37c24e8a001eff911ee2079fde5578f5215f01ba5bf278f039e1bdfa84aeefad5372bc47e204b4ecb9187817a90516cba5a82ae43a7c328669b68213b9 SHA512 fd8aaac2bc308ecd82ee6995ae63147d5f3be0dc003635e0ab4247ce01fd8dcaa7173541c3ea31a72b83fd7619646fabad15b845ee16e73b22cc9977088352b7
DIST theHarvester-4.0.0.tar.gz 850346 BLAKE2B 4ef6f5271a37470f472f85c022cd055f107e3f1eee200c4b258c0ed880142458e02d03d4d4db585ce276fb1d7fda674e4923a21177445d46534251deb39d4007 SHA512 8d59a2f8e50fc8ff3be384b33ef3267bc1033714d8e5252f9c38945fafde1a0ab271503f109df32099918926bbf891a96dab8379ee6d8489d6305e36c2640d1e

View file

@ -0,0 +1,60 @@
# Copyright 1999-2021 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
EAPI=7
PYTHON_COMPAT=( python3_{7..9} )
inherit distutils-r1
DESCRIPTION="The Harvester is a tool designed to collect email accounts of the target domain"
HOMEPAGE="http://www.edge-security.com/theharvester.php"
SRC_URI="https://github.com/laramies/theHarvester/archive/${PV}.tar.gz -> ${P}.tar.gz"
LICENSE="GPL-2"
SLOT="0"
#dev-python/plotly not stable, no x86 for orjson
KEYWORDS="~amd64 ~arm64"
# IUSE="test"
REQUIRED_USE="${PYTHON_REQUIRED_USE}"
# RESTRICT="!test? ( test )"
RDEPEND="${PYTHON_DEPS}
dev-python/aiodns[${PYTHON_USEDEP}]
dev-python/aiofiles[${PYTHON_USEDEP}]
dev-python/aiohttp[${PYTHON_USEDEP}]
dev-python/aiomultiprocess[${PYTHON_USEDEP}]
dev-python/aiosqlite[${PYTHON_USEDEP}]
dev-python/beautifulsoup:4[${PYTHON_USEDEP}]
dev-python/censys[${PYTHON_USEDEP}]
dev-python/certifi[${PYTHON_USEDEP}]
>=dev-python/dnspython-1.16.0[${PYTHON_USEDEP}]
dev-python/fastapi[${PYTHON_USEDEP}]
dev-python/netaddr[${PYTHON_USEDEP}]
dev-python/orjson-bin
dev-python/pyppeteer[${PYTHON_USEDEP}]
>=dev-python/pyyaml-5.4.1[${PYTHON_USEDEP}]
dev-python/requests[${PYTHON_USEDEP}]
dev-python/retrying[${PYTHON_USEDEP}]
>=dev-python/shodan-1.25.0[${PYTHON_USEDEP}]
dev-python/slowapi[${PYTHON_USEDEP}]
dev-python/starlette[${PYTHON_USEDEP}]
dev-python/lxml[${PYTHON_USEDEP}]
dev-util/unicorn[${PYTHON_USEDEP}]
dev-python/uvloop[${PYTHON_USEDEP}]
"
DEPEND="${RDEPEND}"
# test? (
# dev-python/flake8[${PYTHON_USEDEP}]
# dev-python/mypy[${PYTHON_USEDEP}]
# )"
# distutils_enable_tests pytest
src_prepare() {
# network required for tests
rm -r tests || die
default
}

View file

@ -26,7 +26,7 @@ PDEPEND="
net-analyzer/recon-ng
net-analyzer/scanssh
net-analyzer/siphon
net-analyzer/theHarvester
!x86? ( net-analyzer/theHarvester )
net-analyzer/wfuzz
net-analyzer/xprobe
)"

View file

@ -223,6 +223,14 @@ dev-python/grequests
dev-python/plotly
dev-python/aiomultiprocess
dev-python/aiosqlite
#testing
dev-python/fastapi
dev-python/limits
dev-python/orjson-bin
dev-python/starlette
dev-python/pydantic
dev-python/aiofiles
dev-python/slowapi
#Gentoo unstable
=dev-python/click-plugins-1*

View file

@ -45,6 +45,7 @@ def portage_mapping(search):
"dev-python/flask-BabelEx": "dev-python/flask-babelex",
"dev-python/scapy": "net-analyzer/scapy",
"dev-python/PyYAML": "dev-python/pyyaml",
"dev-python/redis": "dev-python/redis-py",
"dev-python/ropgadget": "app-exploits/ROPgadget",
"dev-python/pysocks": "dev-python/PySocks",