recon-ng-5.1.2.ebuild

This commit is contained in:
Anton Bolshakov 2022-02-02 18:19:28 +08:00
parent b1e9c22f0a
commit 0d62015917
No known key found for this signature in database
GPG key ID: 32BDCED870788F04
4 changed files with 16 additions and 10 deletions

View file

@ -1 +1,2 @@
DIST recon-ng-5.1.1.tar.gz 69542 BLAKE2B 8e9f0721521c5bd066e63fe37b0dcf84da201748e7fb2104966477d72a92ff4c7b653c2622bbc360c2bf5e8adeca96f48764080dff83b28bd3a70cfaa4727b72 SHA512 ca45488555b7b48ddc1596b9eb7322064ae6bbec0c5b0cbce2cfd58821a788bc65cf7239f7c6736bede891b848e25bb5eaacd377add26236c426f7e695a4441a
DIST recon-ng-5.1.2.tar.gz 69567 BLAKE2B 8f78d960a33632d930d0b3c60e3b1ec0d66b5929485126edd74a10d1ee8f2e7d82da73ebd016260e023d5279f4765283651caac6f8c8ca4b0730b76ce63edd2b SHA512 7b0a22b62495d885ac94a6b8e6998209a639f313099f6cb0dbc5cab5eff2926af81bf1a1d96f8b0165a8f5982c71dd11ebe35fc98ce9c648457d630dbbd93d26

View file

@ -0,0 +1 @@
./recon-ng-9999.ebuild

View file

@ -1,4 +1,4 @@
# Copyright 1999-2021 Gentoo Authors
# Copyright 1999-2022 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
EAPI=7
@ -11,9 +11,10 @@ inherit python-r1
DESCRIPTION="Web Reconnaissance Framework"
HOMEPAGE="https://github.com/lanmaster53/recon-ng"
if [[ ${PV} == *9999 ]]; then
if [[ "${PV}" == *9999 ]]; then
inherit git-r3
EGIT_REPO_URI="https://github.com/lanmaster53/recon-ng"
KEYWORDS=""
else
SRC_URI="https://github.com/lanmaster53/recon-ng/archive/v${PV}.tar.gz -> ${P}.tar.gz"
KEYWORDS="~amd64 ~x86"
@ -23,26 +24,29 @@ LICENSE="GPL-3"
SLOT=0
IUSE=""
DEPEND=""
DEPEND="${PYTHON_DEPS}"
#sync with REQUIREMENTS
RDEPEND="${PYTHON_DEPS}
dev-python/dicttoxml[${PYTHON_USEDEP}]
dev-python/lxml[${PYTHON_USEDEP}]
>=dev-python/mechanize-0.4.2[${PYTHON_USEDEP}]
dev-python/requests[${PYTHON_USEDEP}]
dev-python/flask[${PYTHON_USEDEP}]
dev-python/flask-restful[${PYTHON_USEDEP}]
dev-python/flasgger[${PYTHON_USEDEP}]
dev-python/dicttoxml[${PYTHON_USEDEP}]
dev-python/xlsxwriter[${PYTHON_USEDEP}]
dev-python/flask[${PYTHON_USEDEP}]
dev-python/unicodecsv[${PYTHON_USEDEP}]
dev-python/requests[${PYTHON_USEDEP}]
dev-python/pyyaml[${PYTHON_USEDEP}]
dev-python/dnspython[${PYTHON_USEDEP}]"
dev-python/rq[${PYTHON_USEDEP}]"
src_prepare() {
# disable updates checking, add "__version__" variable instead
# reading VERSION file and set to latest/current version
sed -e 's/self._check_version()//' \
-e "s/exec(open(os.path.join(sys.path\[0\], 'VERSION')).read())/__version__ = '${PV}'/" \
-e "s/exec(open(os.path.join(Path(os.path.abspath(__file__)).parents\[2\], 'VERSION')).read())/__version__ = '${PV}'/" \
-i recon/core/base.py || die 'sed failed!'
default
eapply_user
}
src_install() {

View file

@ -103,7 +103,7 @@ dev-python/protobuf-python amd64
#required by net-analyzer/recon-ng
~dev-python/mechanize-0.4.3
~dev-python/flasgger-0.9.5
=dev-python/rq-1.5*
~dev-python/rq-1.10.1
=dev-python/redis-py-3.5*
#wafwoof