mirror of
https://github.com/pentoo/pentoo-overlay
synced 2025-12-06 08:25:01 +01:00
s3scanner: bump to 3.0.1, qa fixes
This commit is contained in:
parent
ca7d5633b1
commit
55625008a4
4 changed files with 8 additions and 68 deletions
|
|
@ -1,2 +1 @@
|
|||
DIST s3scanner-1.0.0_p20190928.tar.gz 11971 BLAKE2B fcd5690a3232f87c9b088f29213dd859873bbb06d1c214837e983d72156c4d7e532fb5c13016d80f5f795f6b3dd832f723baadb8fece00694732bebbca5106c2 SHA512 b630241a09b689a77f96337dee82cf9581d27f94569d50008016d26dedb636c4f2a998b19b8e5ac8608b09d74e070627e5f95bfa5f5606a75826306cefe0ebfc
|
||||
DIST s3scanner-2.0.1.tar.gz 11971 BLAKE2B fcd5690a3232f87c9b088f29213dd859873bbb06d1c214837e983d72156c4d7e532fb5c13016d80f5f795f6b3dd832f723baadb8fece00694732bebbca5106c2 SHA512 b630241a09b689a77f96337dee82cf9581d27f94569d50008016d26dedb636c4f2a998b19b8e5ac8608b09d74e070627e5f95bfa5f5606a75826306cefe0ebfc
|
||||
DIST s3scanner-3.0.1.tar.gz 11971 BLAKE2B fcd5690a3232f87c9b088f29213dd859873bbb06d1c214837e983d72156c4d7e532fb5c13016d80f5f795f6b3dd832f723baadb8fece00694732bebbca5106c2 SHA512 b630241a09b689a77f96337dee82cf9581d27f94569d50008016d26dedb636c4f2a998b19b8e5ac8608b09d74e070627e5f95bfa5f5606a75826306cefe0ebfc
|
||||
|
|
|
|||
|
|
@ -5,4 +5,7 @@
|
|||
<email>unknown@pentoo.ch</email>
|
||||
<name>Author Unknown</name>
|
||||
</maintainer>
|
||||
<upstream>
|
||||
<remote-id type="github">sa7mon/S3Scanner</remote-id>
|
||||
</upstream>
|
||||
</pkgmetadata>
|
||||
|
|
|
|||
|
|
@ -1,63 +0,0 @@
|
|||
# Copyright 1999-2021 Gentoo Authors
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
|
||||
EAPI=7
|
||||
|
||||
PYTHON_COMPAT=( python3_{10..11} )
|
||||
|
||||
inherit eutils python-single-r1
|
||||
|
||||
DESCRIPTION="Scan for open AWS S3 buckets and dump the contents"
|
||||
HOMEPAGE="https://github.com/sa7mon/S3Scanner"
|
||||
|
||||
if [[ ${PV} = *9999 ]]; then
|
||||
inherit git-r3
|
||||
EGIT_REPO_URI="https://github.com/sa7mon/S3Scanner.git"
|
||||
else
|
||||
HASH_COMMIT="28f6ab4e04ddb55b6e0d2f517ced181d5111072a"
|
||||
|
||||
SRC_URI="https://github.com/sa7mon/S3Scanner/archive/${HASH_COMMIT}.tar.gz -> ${P}.tar.gz"
|
||||
KEYWORDS="~amd64"
|
||||
fi
|
||||
|
||||
LICENSE="MIT"
|
||||
SLOT="0"
|
||||
|
||||
RDEPEND="${PYTHON_DEPS}
|
||||
$(python_gen_cond_dep '
|
||||
app-admin/awscli[${PYTHON_USEDEP}]
|
||||
dev-python/boto3[${PYTHON_USEDEP}]
|
||||
dev-python/coloredlogs[${PYTHON_USEDEP}]
|
||||
dev-python/pytest-xdist[${PYTHON_USEDEP}]
|
||||
dev-python/requests[${PYTHON_USEDEP}]
|
||||
')"
|
||||
DEPEND="${RDEPEND}"
|
||||
|
||||
S="${WORKDIR}/S3Scanner-${HASH_COMMIT}"
|
||||
|
||||
pkg_setup() {
|
||||
python-single-r1_pkg_setup
|
||||
}
|
||||
|
||||
src_prepare() {
|
||||
default
|
||||
|
||||
# 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 '1i#!/usr/bin/env python' "${PN}.py" || die
|
||||
python_fix_shebang "${S}"
|
||||
}
|
||||
|
||||
src_install() {
|
||||
insinto /usr/share/${PN}
|
||||
doins *.py sites.txt
|
||||
|
||||
python_optimize "${D}/usr/share/${PN}"
|
||||
|
||||
# s3scanner needs to be run from its installation directory.
|
||||
make_wrapper $PN \
|
||||
"${EPYTHON} /usr/share/${PN}/${PN}.py"
|
||||
|
||||
dodoc README.md Dockerfile
|
||||
}
|
||||
|
|
@ -1,11 +1,11 @@
|
|||
# Copyright 1999-2021 Gentoo Authors
|
||||
# Copyright 1999-2023 Gentoo Authors
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
|
||||
EAPI=7
|
||||
EAPI=8
|
||||
|
||||
PYTHON_COMPAT=( python3_{10..11} )
|
||||
|
||||
inherit eutils python-single-r1
|
||||
inherit python-single-r1 wrapper
|
||||
|
||||
DESCRIPTION="Scan for open AWS S3 buckets and dump the contents"
|
||||
HOMEPAGE="https://github.com/sa7mon/S3Scanner"
|
||||
|
|
@ -32,6 +32,7 @@ RDEPEND="${PYTHON_DEPS}
|
|||
dev-python/requests[${PYTHON_USEDEP}]
|
||||
')"
|
||||
DEPEND="${RDEPEND}"
|
||||
REQUIRED_USE="${PYTHON_REQUIRED_USE}"
|
||||
|
||||
S="${WORKDIR}/S3Scanner-${HASH_COMMIT}"
|
||||
|
||||
Loading…
Reference in a new issue