This commit is contained in:
Guido Kroon 2019-11-12 12:28:56 +01:00 committed by Yury Martynov
parent 2f7530ffff
commit d208812bd4
No known key found for this signature in database
GPG key ID: EBE62DD0CCEAE19E
3 changed files with 44 additions and 35 deletions

View file

@ -0,0 +1,8 @@
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
<pkgmetadata>
<maintainer type="project">
<email>proxy-maint@gentoo.org</email>
<name>Proxy Maintainers</name>
</maintainer>
</pkgmetadata>

View file

@ -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}
}

View file

@ -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}"
}