mirror of
https://github.com/pentoo/pentoo-overlay
synced 2026-05-08 20:43:38 +02:00
smbmap: fix dep and urls (Closes: https://github.com/pentoo/pentoo-overlay/pull/529)
This commit is contained in:
parent
2f7530ffff
commit
d208812bd4
3 changed files with 44 additions and 35 deletions
8
net-analyzer/smbmap/metadata.xml
Normal file
8
net-analyzer/smbmap/metadata.xml
Normal 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>
|
||||
36
net-analyzer/smbmap/smbmap-1.1.0-r1.ebuild
Normal file
36
net-analyzer/smbmap/smbmap-1.1.0-r1.ebuild
Normal 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}
|
||||
}
|
||||
|
|
@ -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}"
|
||||
}
|
||||
Loading…
Reference in a new issue