From d208812bd4c32eb8cffc8ce0d5b3f2d740959091 Mon Sep 17 00:00:00 2001 From: Guido Kroon Date: Tue, 12 Nov 2019 12:28:56 +0100 Subject: [PATCH] smbmap: fix dep and urls (Closes: https://github.com/pentoo/pentoo-overlay/pull/529) --- net-analyzer/smbmap/metadata.xml | 8 +++++ net-analyzer/smbmap/smbmap-1.1.0-r1.ebuild | 36 ++++++++++++++++++++++ net-analyzer/smbmap/smbmap-1.1.0.ebuild | 35 --------------------- 3 files changed, 44 insertions(+), 35 deletions(-) create mode 100644 net-analyzer/smbmap/metadata.xml create mode 100644 net-analyzer/smbmap/smbmap-1.1.0-r1.ebuild delete mode 100644 net-analyzer/smbmap/smbmap-1.1.0.ebuild diff --git a/net-analyzer/smbmap/metadata.xml b/net-analyzer/smbmap/metadata.xml new file mode 100644 index 000000000..4fa8ff351 --- /dev/null +++ b/net-analyzer/smbmap/metadata.xml @@ -0,0 +1,8 @@ + + + + + proxy-maint@gentoo.org + Proxy Maintainers + + diff --git a/net-analyzer/smbmap/smbmap-1.1.0-r1.ebuild b/net-analyzer/smbmap/smbmap-1.1.0-r1.ebuild new file mode 100644 index 000000000..4900cb912 --- /dev/null +++ b/net-analyzer/smbmap/smbmap-1.1.0-r1.ebuild @@ -0,0 +1,36 @@ +# Copyright 1999-2019 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=7 + +PYTHON_COMPAT=( python3_{5,6} ) + +inherit python-r1 + +DESCRIPTION="SMBMap is a handy SMB enumeration tool" +HOMEPAGE="https://github.com/ShawnDEvans/smbmap" + +if [[ ${PV} = *9999 ]]; then + inherit git-r3 + EGIT_REPO_URI="https://github.com/ShawnDEvans/smbmap" +else + SRC_URI="https://github.com/ShawnDEvans/smbmap/archive/${PV}.tar.gz -> ${P}.tar.gz" + KEYWORDS="~amd64 ~x86" +fi + +LICENSE="GPL-3" +SLOT="0" + +RDEPEND="${PYTHON_DEPS} + dev-python/impacket[${PYTHON_USEDEP}] + dev-python/pyasn1[${PYTHON_USEDEP}] + dev-python/pycryptodomex[${PYTHON_USEDEP}]" +DEPEND="${RDEPEND}" + +pkg_setup() { + python_setup +} + +src_install() { + python_foreach_impl python_newscript ${PN}.py ${PN} +} diff --git a/net-analyzer/smbmap/smbmap-1.1.0.ebuild b/net-analyzer/smbmap/smbmap-1.1.0.ebuild deleted file mode 100644 index 72aec5af9..000000000 --- a/net-analyzer/smbmap/smbmap-1.1.0.ebuild +++ /dev/null @@ -1,35 +0,0 @@ -# Copyright 1999-2019 Gentoo Authors -# Distributed under the terms of the GNU General Public License v2 - -EAPI=7 - -PYTHON_COMPAT=( python3_{6,7} ) -EGO_PN=github.com/ShawnDEvans/${PN} - -inherit python-r1 - -if [[ ${PV} = *9999* ]]; then - inherit git-r3 - EGIT_REPO_URI="https://github.com/madengr/ham2mon.git" - KEYWORDS="" -else - KEYWORDS="~amd64 ~x86" - EGIT_COMMIT="${PV}" - SRC_URI="https://${EGO_PN}/archive/${EGIT_COMMIT}.tar.gz -> ${P}.tar.gz" -fi - -DESCRIPTION="SMBMap is a handy SMB enumeration tool." -HOMEPAGE="https://github.com/ShawnDEvans/smbmap" - -LICENSE="GPL-3" -SLOT="0" -IUSE="" - -RDEPEND=">=dev-python/impacket-0.9.20[${PYTHON_USEDEP}] - dev-python/pyasn1[${PYTHON_USEDEP}] - dev-python/pycryptodomex[${PYTHON_USEDEP}]" -DEPEND="${RDEPEND}" - -src_install() { - newbin "${PN}.py" "${PN}" -}