theHarvester: 2.7.3 hackish bump, upstream doesn't care: https://github.com/laramies/theHarvester/issues/82

This commit is contained in:
blshkv 2018-05-27 08:56:32 +08:00
parent 2b8eb2f591
commit 2775d6bd03
No known key found for this signature in database
GPG key ID: 273E3E90D1A6294F
3 changed files with 60 additions and 2 deletions

View file

@ -1 +1,2 @@
DIST theHarvester-2.7.tar.gz 58241 SHA256 dc0ff455ac5c41d53709cfc1de65dac7e96d2d9c33f9706789cca106d5a5ee76 SHA512 de60f2d9e3869f6951990748df4d153059e5b090b0f2c67fe59b6dfc403d4fc2b6a6d4ff9163efef17f69547f8b1ae70a662ab7f4a8d103a1f8595cd4e6ff6cf WHIRLPOOL e236a05d69bfaf8f0a8aae117943b445f086fa52a9e6631b26a593a5d60f57ab20bb78b8bb7748922dcadaeb8bc7154aafaa3a0bb8103d7178cca70bc6c44c63
DIST theHarvester-2.7.3.tar.gz 62170 BLAKE2B aa565850506f1dc11cacd8e8fda67579972f35d45863b7a0af97706391943fcb272cffa89a9ccb267e42f9aac6849aaf58288aff961fb71e50f880d679c89b0b SHA512 9e4d1cf04ff49291d0366486fc80eb84f42d82fc34da0d270e10b3544e66f2026c680798e5652528bdce3383024b7eb023206eed4d1d99e21f1ead2cda1cd627
DIST theHarvester-2.7.tar.gz 58241 BLAKE2B 97405ac2987c501feb87c23f079985c0778b47a134f2037078db05d140fff385d4f2aff87ec83c0487534c9ea2655c19dac7a3b10164382fd8e975d2a653b955 SHA512 de60f2d9e3869f6951990748df4d153059e5b090b0f2c67fe59b6dfc403d4fc2b6a6d4ff9163efef17f69547f8b1ae70a662ab7f4a8d103a1f8595cd4e6ff6cf

View file

@ -0,0 +1,57 @@
# Copyright 1999-2018 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
EAPI=6
PYTHON_COMPAT=( python2_7 )
inherit python-single-r1 python-utils-r1
DESCRIPTION="The Harvester is a tool designed to collect email accounts of the target domain"
HOMEPAGE="http://www.edge-security.com/theharvester.php"
COMMIT="5b1fc4634cc0436a1e693183c09a6a6d3ecb9004"
MY_P="${PN}-${COMMIT}"
SRC_URI="https://github.com/laramies/theHarvester/archive/${COMMIT}.tar.gz -> ${P}.tar.gz"
LICENSE="GPL-2"
SLOT="0"
KEYWORDS="~amd64 ~ppc ~x86"
IUSE=""
RDEPEND="net-analyzer/wfuzz[${PYTHON_USEDEP}]"
DEPEND="${RDEPEND}"
S=${WORKDIR}/"${PN}-${COMMIT}"
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
}
src_install() {
python_moduleinto ${PN}
python_domodule __init__.py myparser.py stash.py discovery lib
# 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 LICENSES
}

View file

@ -98,7 +98,7 @@ net-analyzer/snort
~net-analyzer/tcpdump-4.3.0
~net-analyzer/thc-ipv6-3.2
~net-analyzer/thc-pptp-bruter-0.1.4
~net-analyzer/theHarvester-2.7
=net-analyzer/theHarvester-2.7*
~net-analyzer/upnpscan-0.4
~net-analyzer/upnpwn-0.8.0
~net-analyzer/vomit-0.2c