2011-12-05 09:06:10 +00:00
|
|
|
# Copyright 1999-2010 Gentoo Foundation
|
|
|
|
# Distributed under the terms of the GNU General Public License v2
|
|
|
|
# $Header: $
|
|
|
|
|
2011-12-08 05:27:11 +00:00
|
|
|
# based on pentoo.ch ebuilds - quark <it@startux.de>
|
|
|
|
|
2011-12-05 09:06:10 +00:00
|
|
|
SUPPORT_PYTHON_ABIS="1"
|
|
|
|
|
2011-12-08 05:07:42 +00:00
|
|
|
inherit eutils python
|
2011-12-05 09:06:10 +00:00
|
|
|
|
|
|
|
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="http://theharvester.googlecode.com/files/${PN}-ng-${PV}.tar"
|
|
|
|
SRC_URI="http://theharvester.googlecode.com/files/theHarvester-2.1_BH2011_Arsenal.tar"
|
|
|
|
|
|
|
|
LICENSE="GPL-2"
|
|
|
|
SLOT="0"
|
|
|
|
KEYWORDS="~amd64 ~ppc ~x86"
|
|
|
|
IUSE=""
|
|
|
|
EAPI="3"
|
|
|
|
|
|
|
|
DEPEND=""
|
|
|
|
RDEPEND=""
|
|
|
|
|
|
|
|
RESTRICT_PYTHON_ABIS="3.*"
|
|
|
|
|
|
|
|
S="${WORKDIR}"/"${PN}-ng-blackhat"
|
|
|
|
|
|
|
|
src_prepare() {
|
2011-12-08 05:07:42 +00:00
|
|
|
epatch "${FILESDIR}"/dns-names_path.patch
|
|
|
|
|
2011-12-05 09:06:10 +00:00
|
|
|
python_convert_shebangs 2 theHarvester.py;
|
|
|
|
}
|
|
|
|
|
|
|
|
src_install() {
|
|
|
|
installation() {
|
|
|
|
insinto $(python_get_sitedir)/${PN}
|
|
|
|
doins myparser.py
|
2011-12-08 05:07:42 +00:00
|
|
|
exeinto $(python_get_sitedir)/${PN}
|
|
|
|
doexe theHarvester.py
|
2011-12-05 09:06:10 +00:00
|
|
|
insinto $(python_get_sitedir)/${PN}/discovery
|
|
|
|
doins discovery/*.py
|
|
|
|
insinto $(python_get_sitedir)/${PN}/discovery/DNS
|
|
|
|
doins discovery/DNS/*.py
|
|
|
|
insinto $(python_get_sitedir)/${PN}/discovery/shodan
|
|
|
|
doins discovery/shodan/*.py
|
|
|
|
insinto $(python_get_sitedir)/${PN}/lib
|
|
|
|
doins lib/*.py
|
2011-12-08 05:07:42 +00:00
|
|
|
|
|
|
|
dosym $(python_get_sitedir)/${PN}/theHarvester.py /usr/bin/theHarvester.py
|
2011-12-05 09:06:10 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
python_execute_function installation
|
|
|
|
insinto /usr/share/"${PN}"
|
|
|
|
doins dns-names.txt
|
2011-12-08 05:07:42 +00:00
|
|
|
# doins discovery/nameservers.txt
|
2011-12-05 09:06:10 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
pkg_postinst() {
|
|
|
|
python_mod_optimize ${PN}/discovery ${PN}/discovery/DNS ${PN}/discovery/shodan ${PN}/lib ${PN}/theHarvester.py ${PN}/myparser.py
|
|
|
|
}
|
|
|
|
|
|
|
|
pkg_postrm() {
|
|
|
|
python_mod_cleanup ${PN}/discovery ${PN}/discovery/DNS ${PN}/discovery/shodan ${PN}/lib ${PN}/theHarvester.py ${PN}/myparser.py
|
|
|
|
}
|