From 13bea5f9a8e71f397a689b99d4bef0ca68164099 Mon Sep 17 00:00:00 2001 From: Yury Martynov Date: Sun, 22 Dec 2019 17:12:45 +0300 Subject: [PATCH] getsploit: add py37 support --- .../getsploit-0.3.3_p20190531-r1.ebuild | 39 +++++++++++++++++++ 1 file changed, 39 insertions(+) create mode 100644 app-exploits/getsploit/getsploit-0.3.3_p20190531-r1.ebuild diff --git a/app-exploits/getsploit/getsploit-0.3.3_p20190531-r1.ebuild b/app-exploits/getsploit/getsploit-0.3.3_p20190531-r1.ebuild new file mode 100644 index 000000000..96fde0ae0 --- /dev/null +++ b/app-exploits/getsploit/getsploit-0.3.3_p20190531-r1.ebuild @@ -0,0 +1,39 @@ +# Copyright 1999-2019 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=7 + +PYTHON_COMPAT=( python{2_7,3_{5,6,7}} ) +PYTHON_REQ_USE="sqlite" + +inherit distutils-r1 + +DESCRIPTION="Command line utility for searching and downloading exploits" +HOMEPAGE="https://github.com/vulnersCom/getsploit" + +if [[ ${PV} == *9999 ]]; then + inherit git-r3 + EGIT_REPO_URI="https://github.com/vulnersCom/getsploit" +else + # snapshot: 20190531 + HASH_COMMIT="5993293fc22d98d8e9a7a2bd205fcd9824e332f1" + + SRC_URI="https://github.com/vulnersCom/getsploit/archive/${HASH_COMMIT}.tar.gz -> ${P}.tar.gz" + KEYWORDS="amd64 ~x86" + S="${WORKDIR}/${PN}-${HASH_COMMIT}" +fi + +LICENSE="LGPL-3" +SLOT="0" + +DEPEND="${PYTHON_DEPS}" +RDEPEND="${DEPEND} + dev-python/clint[${PYTHON_USEDEP}] + dev-python/six[${PYTHON_USEDEP}] + dev-python/texttable[${PYTHON_USEDEP}] + dev-python/urllib3[${PYTHON_USEDEP}] + dev-python/vulners[${PYTHON_USEDEP}]" + +pkg_postinst() { + elog "\nSee documentation: https://github.com/vulnersCom/getsploit#how-to-use\n" +}