This commit is contained in:
blshkv 2019-11-02 16:17:45 +08:00
parent 97fb2594db
commit 413cf6c3af
No known key found for this signature in database
GPG key ID: 273E3E90D1A6294F
3 changed files with 7 additions and 20 deletions

View file

@ -1 +1 @@
DIST smbmap-20180508.tar.gz 25888 BLAKE2B 601528b28264b1462e29cb185a66685c59ed0cf1258e4e50242f23dee8e5768518341f9bf6028d3ff41a66ff3db485562f26062c40682c1bd5673e7810a1baf8 SHA512 65baca537d1cc94e78a964bb2be36c1ba8c669446ed4c92d7cc4bd0e93370100570db5c302145bf5bd0733d327d66d49e5cb2176ea036a4b520eabc4f9b6dac8
DIST smbmap-1.1.0.tar.gz 26090 BLAKE2B bdc9faceba78ad65d3e5a90713c9c9e98ec3681e3c454b1bdce6556e9d22510181cef0fa0bbddf83d5ecf17db614b3f5b111bb7d1bc55188b4a8a4ac20efedf0 SHA512 9e94953a17cd9b84d782a3afb12b2fea71c50c5a80c3b9e1274aa7b9de74ecf30fa22831a1c00035c89d26808859b2a840a6cfb3ade0efcf87e4586f77cef097

View file

@ -1,12 +1,12 @@
# Copyright 1999-2018 Gentoo Foundation
# Copyright 1999-2019 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
EAPI=6
EAPI=7
PYTHON_COMPAT=( python2_7 )
PYTHON_COMPAT=( python3_{6,7} )
EGO_PN=github.com/ShawnDEvans/${PN}
inherit python-single-r1
inherit python-r1
if [[ ${PV} = *9999* ]]; then
inherit git-r3
@ -14,7 +14,7 @@ if [[ ${PV} = *9999* ]]; then
KEYWORDS=""
else
KEYWORDS="~amd64 ~x86"
EGIT_COMMIT="b55fc051afa477943c017c5f0afe86e9e2f241ad"
EGIT_COMMIT="${PV}"
SRC_URI="https://${EGO_PN}/archive/${EGIT_COMMIT}.tar.gz -> ${P}.tar.gz"
fi
@ -23,23 +23,11 @@ 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

@ -1,6 +1,6 @@
### Pentoo ###
=net-analyzer/theHarvester-3.1*
net-analyzer/smbmap
### Gentoo (unverified) ###
@ -122,7 +122,6 @@ net-analyzer/subfinder
~net-analyzer/ham2mon-20170603
~net-analyzer/cipherscan-20180519
=net-analyzer/gobuster-3.0*
~net-analyzer/smbmap-20180508
=net-analyzer/yersinia-0.8*
=net-analyzer/xsstrike-3.1*