From 77133c3a3cc83d074473bac71ad36a2f7c51c499 Mon Sep 17 00:00:00 2001 From: Michael Lawnce Date: Tue, 27 Apr 2021 14:56:05 -0500 Subject: [PATCH] update ebuild for review --- net-analyzer/honeypots/honeypots-0.14.ebuild | 1 + ...pots-0.11.ebuild => honeypots-9999.ebuild} | 33 +++++++++++-------- 2 files changed, 20 insertions(+), 14 deletions(-) create mode 120000 net-analyzer/honeypots/honeypots-0.14.ebuild rename net-analyzer/honeypots/{honeypots-0.11.ebuild => honeypots-9999.ebuild} (54%) diff --git a/net-analyzer/honeypots/honeypots-0.14.ebuild b/net-analyzer/honeypots/honeypots-0.14.ebuild new file mode 120000 index 000000000..758cafcc2 --- /dev/null +++ b/net-analyzer/honeypots/honeypots-0.14.ebuild @@ -0,0 +1 @@ +honeypots-9999.ebuild \ No newline at end of file diff --git a/net-analyzer/honeypots/honeypots-0.11.ebuild b/net-analyzer/honeypots/honeypots-9999.ebuild similarity index 54% rename from net-analyzer/honeypots/honeypots-0.11.ebuild rename to net-analyzer/honeypots/honeypots-9999.ebuild index dee35d50f..dcb8e0490 100644 --- a/net-analyzer/honeypots/honeypots-0.11.ebuild +++ b/net-analyzer/honeypots/honeypots-9999.ebuild @@ -5,23 +5,28 @@ EAPI=7 PYTHON_COMPAT=( python3_{7..9} ) -inherit distutils-r1 eutils +inherit distutils-r1 #eutils -DESCRIPTION="16 different honeypots "swissarmy-knife" in a single PyPI package for monitoring network traffic" +DESCRIPTION="16 different honeypots 'swissarmy-knife' in a single PyPI package for monitoring network traffic" HOMEPAGE="https://github.com/qeeqbox/honeypots" ## also has varrious python OSINT tools github.com/qeeqbox/ ..... SRC_URI="mirror://pypi/${P:0:1}/${PN}/${P}.tar.gz" -# EGIT_REPO_URI=="https://github.com/qeeqbox/honeypots.git" +if [[ ${PV} == *9999 ]]; then + inherit git-r3 + EGIT_REPO_URI=="https://github.com/qeeqbox/honeypots.git" + case "${PVR}" in + 9999) EGIT_BRANCH=main ;; + esac +fi LICENSE="AGPL-3.0" SLOT="0" KEYWORDS="amd64 ~arm64 x86" IUSE="" -#### dev-python/psycopg2 https://pypi.org/project/psycopg2/ , https://github.com/psycopg/psycopg2/ - # dev-python/psycopg2cffi::tgbugs-overlay , mplementation of the psycopg2 module using cffi. Compatible with Psycopg 2.5. -RDEPEND="${PYTHON_DEPS} + +RDEPEND="${PYTHON_DEPS} ${DEPEND}" dev-python/pipenv dev-python/twisted dev-python/psutil @@ -36,14 +41,14 @@ RDEPEND="${PYTHON_DEPS} dev-python/vncdotool dev-python/service_identity dev-python/PySocks - dev-python/pygments -DEPEND="${RDEPEND}" + dev-python/pygments + DEPEND="|| ( dev-python/psycopg dev-python/psycopg2cffi )" +# dev-python/psycopg in gentoo / psycopg2cffi rappid c++ extensions either should run. +# dev-python/psycopg2cffi::tgbugs-overlay , implementation of the psycopg2 module using cffi. Compatible with Psycopg 2.5. +SLOT="0" +KEYWORDS="~amd64 ~x86 ~arm ~arm64" +S="${WORKDIR}/${PN}-${MY_PV}" -src_compile() { - compile_python() { - distutils-r1_python_compile --dynamic-linking - } - python_foreach_impl compile_python -} +einfo "https://pypi.org/project/honeypots/ https://github.com/qeeqbox/honeypots for wiki/directions"