mirror of
https://github.com/pentoo/pentoo-overlay
synced 2026-02-10 17:33:52 +01:00
commit
5100a34cba
3 changed files with 65 additions and 2 deletions
|
|
@ -1 +1,2 @@
|
|||
DIST s3scanner-3.0.1.tar.gz 11971 BLAKE2B fcd5690a3232f87c9b088f29213dd859873bbb06d1c214837e983d72156c4d7e532fb5c13016d80f5f795f6b3dd832f723baadb8fece00694732bebbca5106c2 SHA512 b630241a09b689a77f96337dee82cf9581d27f94569d50008016d26dedb636c4f2a998b19b8e5ac8608b09d74e070627e5f95bfa5f5606a75826306cefe0ebfc
|
||||
DIST s3scanner-3.1.1.tar.gz 11971 BLAKE2B fcd5690a3232f87c9b088f29213dd859873bbb06d1c214837e983d72156c4d7e532fb5c13016d80f5f795f6b3dd832f723baadb8fece00694732bebbca5106c2 SHA512 b630241a09b689a77f96337dee82cf9581d27f94569d50008016d26dedb636c4f2a998b19b8e5ac8608b09d74e070627e5f95bfa5f5606a75826306cefe0ebfc
|
||||
|
|
|
|||
|
|
@ -19,6 +19,7 @@ else
|
|||
SRC_URI="https://github.com/sa7mon/S3Scanner/archive/${HASH_COMMIT}.tar.gz -> ${P}.tar.gz"
|
||||
KEYWORDS="~amd64"
|
||||
fi
|
||||
S="${WORKDIR}/S3Scanner-${HASH_COMMIT}"
|
||||
|
||||
LICENSE="MIT"
|
||||
SLOT="0"
|
||||
|
|
@ -34,8 +35,6 @@ RDEPEND="${PYTHON_DEPS}
|
|||
DEPEND="${RDEPEND}"
|
||||
REQUIRED_USE="${PYTHON_REQUIRED_USE}"
|
||||
|
||||
S="${WORKDIR}/S3Scanner-${HASH_COMMIT}"
|
||||
|
||||
pkg_setup() {
|
||||
python-single-r1_pkg_setup
|
||||
}
|
||||
|
|
|
|||
63
net-analyzer/s3scanner/s3scanner-3.1.1.ebuild
Normal file
63
net-analyzer/s3scanner/s3scanner-3.1.1.ebuild
Normal file
|
|
@ -0,0 +1,63 @@
|
|||
# Copyright 2025 Gentoo Authors
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
|
||||
EAPI=8
|
||||
|
||||
PYTHON_COMPAT=( python3_{11..13} )
|
||||
|
||||
inherit python-single-r1 wrapper
|
||||
|
||||
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
|
||||
S="${WORKDIR}/S3Scanner-${HASH_COMMIT}"
|
||||
|
||||
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}"
|
||||
REQUIRED_USE="${PYTHON_REQUIRED_USE}"
|
||||
|
||||
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
|
||||
}
|
||||
Loading…
Reference in a new issue