wesng: qa fixes

This commit is contained in:
Rick Farina (Zero_Chaos) 2023-09-05 20:47:09 -04:00
parent 80b46dce8d
commit 8eb65b460d
No known key found for this signature in database
GPG key ID: A29433C0AA431DDC
2 changed files with 5 additions and 58 deletions

View file

@ -1,54 +0,0 @@
# Copyright 1999-2020 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="Windows Exploit Suggester - Next Generation"
HOMEPAGE="https://github.com/bitsadmin/wesng"
if [[ ${PV} == *9999 ]]; then
inherit git-r3
EGIT_REPO_URI="https://github.com/bitsadmin/wesng"
else
HASH_COMMIT="7dbdaf26d5e8345fd09b78c2d6ec411f4c4fb9bc" # 20200616
SRC_URI="https://github.com/bitsadmin/wesng/archive/${HASH_COMMIT}.tar.gz -> ${P}.tar.gz"
KEYWORDS="~amd64 ~x86"
S="${WORKDIR}/${PN}-${HASH_COMMIT}"
fi
LICENSE="BSD"
SLOT="0"
DEPEND="${PYTHON_DEPS}"
RDEPEND="${DEPEND}
$(python_gen_cond_dep '
dev-python/chardet[${PYTHON_USEDEP}]
dev-python/MechanicalSoup[${PYTHON_USEDEP}]
')"
pkg_setup() {
python-single-r1_pkg_setup
}
src_prepare() {
python_fix_shebang "${S}"
default
}
src_install() {
insinto "/usr/share/${PN}"
doins -r collector/ validation/ definitions.zip *.py
python_optimize "${D}/usr/share/${PN}"
make_wrapper wes \
"${PYTHON} /usr/share/${PN}/wes.py" \
"/usr/share/${PN}"
dodoc README.md CHANGELOG.md CMDLINE.md
}

View file

@ -0,0 +1 @@
wesng-99999999.ebuild

View file

@ -1,11 +1,11 @@
# Copyright 1999-2020 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} )
PYTHON_COMPAT=( python3_{10..12} )
inherit eutils python-single-r1
inherit python-single-r1 wrapper
DESCRIPTION="Windows Exploit Suggester - Next Generation"
HOMEPAGE="https://github.com/bitsadmin/wesng"