mirror of
https://github.com/pentoo/pentoo-overlay
synced 2025-12-06 08:25:01 +01:00
metagoofil: fix https://github.com/pentoo/pentoo-overlay/issues/624
This commit is contained in:
parent
3aa78bdadd
commit
6b15d147a3
7 changed files with 21 additions and 52 deletions
|
|
@ -13,7 +13,7 @@ if [[ ${PV} = *9999* ]]; then
|
|||
EGIT_REPO_URI="https://github.com/MarioVilas/googlesearch.git"
|
||||
KEYWORDS=""
|
||||
else
|
||||
KEYWORDS="~amd64 ~x86"
|
||||
KEYWORDS="amd64 ~arm64 x86"
|
||||
EGIT_COMMIT="bce138ac60572bc624a477cdeb553f4b52cf3307"
|
||||
SRC_URI="https://${EGO_PN}/archive/${EGIT_COMMIT}.tar.gz -> ${P}.tar.gz"
|
||||
fi
|
||||
|
|
@ -24,10 +24,7 @@ S="${WORKDIR}/${PN}-${EGIT_COMMIT}"
|
|||
|
||||
LICENSE="BSD"
|
||||
SLOT="0"
|
||||
KEYWORDS="~amd64"
|
||||
IUSE=""
|
||||
|
||||
RDEPEND=">=dev-python/beautifulsoup-4.5.1[${PYTHON_USEDEP}]"
|
||||
DEPEND="${RDEPEND}
|
||||
dev-python/setuptools[${PYTHON_USEDEP}]
|
||||
"
|
||||
DEPEND="${RDEPEND}"
|
||||
|
|
|
|||
|
|
@ -1,2 +1 @@
|
|||
DIST metagoofil-1.4b.tar 34304 BLAKE2B cb6c7fd0a1725c0aee1d3571c1d29c088f8965968980974884d7930da58c22f5a50e8ce8a0eb2345dd6135877f5f93c0998cfe2d47b20d32e50a41e2fa3e3767 SHA512 340c7df7c56b83e7f4977d342c5b1a5982d267a009fcc4f3e64c61dc77fb070d7512d69809db07d69a8d759ad60a4cf4b22a1faf7a4c3c43a5d17331d572ac44
|
||||
DIST metagoofil-2.2.zip 699382 BLAKE2B 7318732d3f6502e3352e8d0af1598cc2a03e6f4a798e49e67b6c373639f4bab5e32c8c1c66adf368bd8c3fc8a2c3675493fe3f564fb610699a1c7f8116794ba2 SHA512 dc25ffe8bd2527cc4f8cd4eda869cbb37a32fc87a62ed7c18e76d465ecc8783c509f717615fee52a9bcfaead75e9652e5857e953a7bdb94629dc8a2e205f24f6
|
||||
DIST metagoofil-2.2_p20201005.zip 17037 BLAKE2B 6ab87f9f19153d7ba96d76b8b724b6eeaa783bd407480325ec28db913fb0eea757a986fdd96dacfef969b7ef1640197934f42103b4d8ed0d9e386b8850d2a873 SHA512 dd2f81e72ad96792cc31c6ad436f08de7f8a1911c295ca07bf4f4eadc984a1c7268427705ea2033a0b7900893064394b6648de8a4cea949d2a3e7baf0feb7e82
|
||||
|
|
|
|||
|
|
@ -1,4 +1,4 @@
|
|||
#!/bin/sh
|
||||
|
||||
cd /usr/share/metagoofil
|
||||
python2 ./metagoofil.py "$@"
|
||||
python3 ./metagoofil.py "$@"
|
||||
|
|
|
|||
|
|
@ -1,35 +0,0 @@
|
|||
# Copyright 1999-2018 Gentoo Foundation
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
|
||||
EAPI="5"
|
||||
|
||||
PYTHON_COMPAT=( python2_7 )
|
||||
inherit python-single-r1
|
||||
|
||||
DESCRIPTION="Information gathering tool designed for extracting metadata of public documents"
|
||||
HOMEPAGE="http://www.edge-security.com/metagoofil.php"
|
||||
SRC_URI="http://www.edge-security.com/soft/${P}.tar"
|
||||
|
||||
LICENSE="GPL-2"
|
||||
SLOT="0"
|
||||
KEYWORDS="~amd64 ~ppc ~x86"
|
||||
IUSE=""
|
||||
|
||||
DEPEND=""
|
||||
RDEPEND="media-libs/libextractor"
|
||||
|
||||
S="${WORKDIR}/${PN}"
|
||||
|
||||
src_configure() {
|
||||
# Add the following line, so metagoofil.py can be executed directly.
|
||||
sed -i '1i#!\/usr\/bin\/python' "${PN}".py || die
|
||||
|
||||
# change libextractor default location
|
||||
sed -i -e "s:/opt/local/bin/extract:/usr/bin/extract:g" "${PN}".py || die
|
||||
}
|
||||
|
||||
src_install() {
|
||||
newbin ${PN}.py ${PN}
|
||||
python_fix_shebang "${ED}"usr/bin
|
||||
dodoc README
|
||||
}
|
||||
|
|
@ -1,24 +1,29 @@
|
|||
# Copyright 1999-2018 Gentoo Foundation
|
||||
# Copyright 1999-2020 Gentoo Authors
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
|
||||
EAPI=6
|
||||
EAPI=7
|
||||
|
||||
PYTHON_COMPAT=( python2_7 )
|
||||
PYTHON_COMPAT=( python3_{6,7,8} )
|
||||
inherit python-single-r1
|
||||
|
||||
MY_COMMIT="823b1146eb13a6e5c4f72b33461af5289b191abb"
|
||||
MY_COMMIT="fc989b1b9e8869f9182922dcafd58a1f30cb8973"
|
||||
|
||||
DESCRIPTION="Information gathering tool designed for extracting metadata of public documents"
|
||||
HOMEPAGE="http://www.edge-security.com/metagoofil.php"
|
||||
SRC_URI="https://github.com/laramies/metagoofil/archive/${MY_COMMIT}.zip -> ${P}.zip"
|
||||
SRC_URI="https://github.com/opsdisk/metagoofil/archive/${MY_COMMIT}.zip -> ${P}.zip"
|
||||
|
||||
LICENSE="GPL-2"
|
||||
SLOT="0"
|
||||
KEYWORDS="~amd64 ~ppc ~x86"
|
||||
KEYWORDS="~amd64 ~x86"
|
||||
IUSE=""
|
||||
|
||||
DEPEND=""
|
||||
RDEPEND="media-libs/libextractor"
|
||||
RDEPEND="media-libs/libextractor
|
||||
$(python_gen_cond_dep '
|
||||
dev-python/requests[${PYTHON_MULTI_USEDEP}]
|
||||
dev-python/googlesearch[${PYTHON_MULTI_USEDEP}]
|
||||
')
|
||||
"
|
||||
|
||||
S=${WORKDIR}/${PN}-${MY_COMMIT}
|
||||
|
||||
|
|
@ -28,6 +33,9 @@ src_configure() {
|
|||
|
||||
# change libextractor default location
|
||||
# sed -i -e "s:/opt/local/bin/extract:/usr/bin/extract:g" "${PN}".py || die
|
||||
|
||||
#relax deps
|
||||
sed -i "s|==|>=|g" requirements.txt
|
||||
}
|
||||
|
||||
src_install() {
|
||||
|
|
@ -36,5 +44,5 @@ src_install() {
|
|||
dodir /usr/share/"${PN}"
|
||||
cp -r . "${ED}"/usr/share/${PN}/
|
||||
|
||||
dodoc README LICENSES
|
||||
dodoc README.md LICENSE
|
||||
}
|
||||
|
|
@ -244,7 +244,6 @@ dev-python/htmlentities
|
|||
|
||||
# required by net-analyzer/dirhunt
|
||||
~dev-python/geoip2-python-3.0.0
|
||||
~dev-python/googlesearch-2.0.3
|
||||
~dev-python/proxy-db-0.2.5
|
||||
|
||||
# required by net-analyzer/xsstrike
|
||||
|
|
|
|||
|
|
@ -20,6 +20,7 @@ net-analyzer/gobuster
|
|||
net-analyzer/kismet-analyzer
|
||||
net-analyzer/masscan
|
||||
net-analyzer/medusa
|
||||
net-analyzer/metagoofil
|
||||
net-analyzer/ncrack
|
||||
net-analyzer/nikto
|
||||
net-analyzer/nmap-vulners
|
||||
|
|
|
|||
Loading…
Reference in a new issue