proposing ebuild for smbmap

This commit is contained in:
Guido Kroon 2018-09-25 00:01:32 +02:00
parent 877669aa5c
commit 10ad9c1130
No known key found for this signature in database
GPG key ID: 394C398C531EFAB0
3 changed files with 47 additions and 0 deletions

View file

@ -0,0 +1 @@
DIST smbmap-20180508.tar.gz 25888 BLAKE2B 601528b28264b1462e29cb185a66685c59ed0cf1258e4e50242f23dee8e5768518341f9bf6028d3ff41a66ff3db485562f26062c40682c1bd5673e7810a1baf8 SHA512 65baca537d1cc94e78a964bb2be36c1ba8c669446ed4c92d7cc4bd0e93370100570db5c302145bf5bd0733d327d66d49e5cb2176ea036a4b520eabc4f9b6dac8

View file

@ -0,0 +1,45 @@
# Copyright 1999-2018 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
EAPI=6
PYTHON_COMPAT=( python2_7 )
EGO_PN=github.com/ShawnDEvans/${PN}
inherit python-single-r1
if [[ ${PV} = *9999* ]]; then
inherit git-r3
EGIT_REPO_URI="https://github.com/madengr/ham2mon.git"
KEYWORDS=""
else
KEYWORDS="~amd64 ~x86"
EGIT_COMMIT="b55fc051afa477943c017c5f0afe86e9e2f241ad"
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"
KEYWORDS="~amd64 ~x86"
IUSE=""
RDEPEND=""
DEPEND="${RDEPEND}"
S="${WORKDIR}/${PN}-${EGIT_COMMIT}"
src_prepare() {
# Dirty hack to actually add a shebang to the file, so that we can then fix
# it using python_fix_shebang. Without a shebang, python_fix_shebang won't
# even work
sed -i '1 s|^.*$|#!/usr/bin/env python|' "${PN}.py"
python_fix_shebang "${PN}.py"
eapply_user
}
src_install() {
newbin "${PN}.py" "${PN}"
}

View file

@ -118,3 +118,4 @@ net-analyzer/amass
~net-analyzer/ham2mon-20170603
~net-analyzer/cipherscan-20180519
~net-analyzer/gobuster-2.0.1
~net-analyzer/smbmap-20180508