theHarvester: remove workarounds, not really required

This commit is contained in:
Anton Bolshakov 2024-01-06 20:16:32 +08:00
parent b1c4ff0c56
commit 9b8bed1a89
No known key found for this signature in database
GPG key ID: 32BDCED870788F04
3 changed files with 0 additions and 120 deletions

View file

@ -1,2 +1 @@
DIST theHarvester-4.4.4.tar.gz 862445 BLAKE2B acf625bc5ab31628c32f27736a485a0fb294329adb90bad77d411edfc786ff80cc70ecc828fb5ddc8ba32b3a2aba9252445e0051cc461ce6b9bd4c7b5ff904b0 SHA512 8e5b115b320c1aa882afcdec011b29ce4b677f1580315499baef200fb05e5cfe9b554eaf443886aa95e0dd26ccff92a4ade5a7d64ffb227833755d7eedd66d71
DIST theHarvester-4.5.0.tar.gz 864382 BLAKE2B 9b8552432a81f82fe2d1c648eb53f382bc549b017a5fd18d3b0e6d36b8f49af93672de2489a118edcebdf4ea40386c87efc5269a739db03d958dbfcdd1959e31 SHA512 4cc13cfaa951587afcd999296f7fa0cd9fdfa65fb2363bb7389df440bde94e64bd2533de0a7e14d302822c2bf3889988d2224a8000278606675f987fb3b4bc3d

View file

@ -1,87 +0,0 @@
# Copyright 1999-2023 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
EAPI=8
DISTUTILS_USE_PEP517=setuptools
PYTHON_COMPAT=( python3_{10..12} )
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"
KEYWORDS="~amd64"
#IUSE=""
REQUIRED_USE="${PYTHON_REQUIRED_USE}"
# RESTRICT="!test? ( test )"
# requirements/base.txt
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/beautifulsoup4[${PYTHON_USEDEP}]
dev-python/censys[${PYTHON_USEDEP}]
dev-python/certifi[${PYTHON_USEDEP}]
>=dev-python/dnspython-2.1.0[${PYTHON_USEDEP}]
dev-python/fastapi[${PYTHON_USEDEP}]
>=dev-python/lxml-4.6.4[${PYTHON_USEDEP}]
dev-python/netaddr[${PYTHON_USEDEP}]
dev-python/ujson[${PYTHON_USEDEP}]
dev-python/pyppeteer[${PYTHON_USEDEP}]
>=dev-python/pyyaml-6.0[${PYTHON_USEDEP}]
>=dev-python/python-dateutil-2.8.2[${PYTHON_USEDEP}]
dev-python/requests[${PYTHON_USEDEP}]
dev-python/retrying[${PYTHON_USEDEP}]
>=dev-python/shodan-1.28.0[${PYTHON_USEDEP}]
dev-python/slowapi[${PYTHON_USEDEP}]
dev-python/uvicorn[${PYTHON_USEDEP}]
dev-python/uvloop[${PYTHON_USEDEP}]
dev-python/starlette[${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
}
# hack: https://github.com/laramies/theHarvester/issues/1430
# hack needs to symlink "new" location to old location to avoid violating PMS
# * Package 'net-analyzer/theHarvester-4.3.0' has one or more collisions
# * between symlinks and directories, which is explicitly forbidden by PMS
# * section 13.4 (see bug #326685)
python_install_all() {
dodir /etc
mv "${D}$(python_get_sitedir)/etc/theHarvester" "${ED}/etc" || die
rm -r "${D}$(python_get_sitedir)/etc" || die
dosym /etc/theHarvester "$(python_get_sitedir)/etc/theHarvester"
distutils-r1_python_install_all
}
pkg_preinst() {
# Fix the broken hack by keeping /etc/theHarvester as a directory not a symlink
# * Package 'net-analyzer/theHarvester-4.3.0' has one or more collisions
# * between symlinks and directories, which is explicitly forbidden by PMS
# * section 13.4 (see bug #326685)
if [ -L "/etc/theHarvester" ]; then
rm /etc/theHarvester
fi
}

View file

@ -15,11 +15,8 @@ SRC_URI="https://github.com/laramies/theHarvester/archive/${PV}.tar.gz -> ${P}.t
LICENSE="GPL-2"
SLOT="0"
KEYWORDS="~amd64"
#IUSE=""
REQUIRED_USE="${PYTHON_REQUIRED_USE}"
# RESTRICT="!test? ( test )"
# requirements/base.txt
RDEPEND="${PYTHON_DEPS}
dev-python/aiodns[${PYTHON_USEDEP}]
@ -61,32 +58,3 @@ src_prepare() {
rm -r tests || die
default
}
# hack: https://github.com/laramies/theHarvester/issues/1430
# hack needs to symlink "new" location to old location to avoid violating PMS
# * Package 'net-analyzer/theHarvester-4.3.0' has one or more collisions
# * between symlinks and directories, which is explicitly forbidden by PMS
# * section 13.4 (see bug #326685)
#python_install_all() {
# dodir /etc
# mv "${D}$(python_get_sitedir)/theHarvester/data/" "${ED}/etc/theHarvester/" || die
# rm -r "${D}$(python_get_sitedir)/theHarvester/data" || die
# dosym /etc/theHarvester "$(python_get_sitedir)/theHarvester/data"
# distutils-r1_python_install_all
#}
python_install() {
distutils-r1_python_install
#eapi8-dosym, "-r" option expands <target> path
dosym -r "$(python_get_sitedir)/theHarvester/data" /etc/theHarvester
}
pkg_preinst() {
# Fix the broken hack by keeping /etc/theHarvester as a directory not a symlink
# * Package 'net-analyzer/theHarvester-4.3.0' has one or more collisions
# * between symlinks and directories, which is explicitly forbidden by PMS
# * section 13.4 (see bug #326685)
if [ -L "/etc/theHarvester" ]; then
rm /etc/theHarvester
fi
}