mirror of
https://github.com/pentoo/pentoo-overlay
synced 2026-04-20 13:51:00 +02:00
theHarvester: testing upstream issue # https://github.com/laramies/theHarvester/issues/52
This commit is contained in:
parent
b86cec106f
commit
8cbf0463a8
2 changed files with 60 additions and 0 deletions
|
|
@ -1,2 +1,3 @@
|
|||
DIST theHarvester-3.0.4.tar.gz 1061009 BLAKE2B b1943d2e6346d323d76a9e88e6f1451eabb35bae1f95cd40dc5f87ba1fb56fe0d39f57186e9f06d3eff1087df7bfb971eec5c104ba109e4bfe6b9260d3cc1b45 SHA512 c4ed5dda6ab94d25dab60d28b151081c0643e38efcb8c29b889e140cb247c1d27fe11bb30857a415837b1cc0c1735f86a6f150c5c353097d6e2e54cb35428d31
|
||||
DIST theHarvester-3.0.6.tar.gz 1067923 BLAKE2B 7a3bfd6176f48e4fd13f8580066677a1e932553f3d770740a415b5db57ef5a7d9bc568dfb6af58fc1a26e0f01e81ed8e3c6b41a469f294267d1e0b9874c3f271 SHA512 79e00cf4fddc0a6bed6377756f60cae8868ebdae49df57e5876ca5e1e952640faeb8a4513180abd6fe736b92d44e1854725ec44ea5ca07d02c47e65791711ce0
|
||||
DIST theHarvester-3.0.6_p20190101.tar.gz 1072222 BLAKE2B b989654ae1458bff734de2200e9ea3cd86837ec86b9320123b526a0554965b69f1bebc942f65383b1ce80a1faa97c82ba6a5f19b3d7884a8b406e8130be41bdf SHA512 e352062f3948fcfaf8ef89a8a5db658a607d97856b6f85cae4e9bb3dbda366d1fbddcb950b00dcf27f3b848bb01137b88b69168dbbd64f84750cab2f76642fd2
|
||||
|
|
|
|||
|
|
@ -0,0 +1,59 @@
|
|||
# Copyright 1999-2019 Gentoo Authors
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
|
||||
EAPI=7
|
||||
|
||||
PYTHON_COMPAT=( python3_{5,6,7} )
|
||||
|
||||
inherit python-single-r1 python-utils-r1
|
||||
|
||||
HASH_COMMIT="90846b0f151eaa90966193d0636b60d5143ecaba"
|
||||
|
||||
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/${HASH_COMMIT}.tar.gz -> ${P}.tar.gz"
|
||||
|
||||
LICENSE="GPL-2"
|
||||
SLOT="0"
|
||||
#KEYWORDS="~amd64 ~ppc ~x86"
|
||||
IUSE=""
|
||||
|
||||
RDEPEND="net-analyzer/wfuzz[${PYTHON_USEDEP}]
|
||||
>=dev-python/requests-2.18.4[${PYTHON_USEDEP}]
|
||||
dev-python/beautifulsoup:4[${PYTHON_USEDEP}]
|
||||
"
|
||||
DEPEND="${RDEPEND}"
|
||||
|
||||
src_prepare() {
|
||||
python_fix_shebang .
|
||||
|
||||
#make it a module
|
||||
sed -e 's|from discovery|from theHarvester.discovery|' -i theHarvester.py || die "sed failed"
|
||||
sed -e 's|from lib|from theHarvester.lib|' -i theHarvester.py || die "sed failed"
|
||||
sed -e 's|import stash|import theHarvester.stash|' -i theHarvester.py || die "sed failed"
|
||||
sed -e 's|from lib|from theHarvester.lib|' -i lib/htmlExport.py || die "sed failed"
|
||||
# for i in discovery/*.py; do
|
||||
# sed -e 's|import myparser|from theHarvester import myparser|' -i $i
|
||||
# done
|
||||
touch __init__.py
|
||||
|
||||
default
|
||||
}
|
||||
|
||||
S="${WORKDIR}/${PN}-${HASH_COMMIT}"
|
||||
|
||||
src_install() {
|
||||
python_moduleinto ${PN}
|
||||
python_domodule __init__.py stash.py discovery lib parsers
|
||||
|
||||
# old installation, just in case
|
||||
# insinto $(python_get_sitedir)
|
||||
# doins myparser.py
|
||||
# insinto $(python_get_sitedir)/discovery
|
||||
# doins -r discovery/*
|
||||
# insinto $(python_get_sitedir)/lib
|
||||
# doins lib/*.py
|
||||
|
||||
newbin theHarvester.py theharvester
|
||||
dodoc README.md LICENSES
|
||||
}
|
||||
Loading…
Reference in a new issue