mirror of
https://github.com/pentoo/pentoo-overlay
synced 2026-05-08 12:30:44 +02:00
NetExec: more deps fix, https://github.com/pentoo/pentoo-overlay/issues/2324
This commit is contained in:
parent
d3a8827930
commit
0acfc75ede
5 changed files with 88 additions and 2 deletions
|
|
@ -26,3 +26,12 @@ REQUIRED_USE="${PYTHON_REQUIRED_USE}"
|
|||
|
||||
RESTRICT="test"
|
||||
#distutils_enable_tests pytest
|
||||
|
||||
python_prepare_all() {
|
||||
# do not install data files under Gentoo
|
||||
sed -i -e "s|Darwin|Linux|" setup.py || die
|
||||
#use pycryptodome instead of pycryptodomex
|
||||
#the only thing different appears to be the namespace and gentoo is removing pycryptodomex
|
||||
sed -i -e 's#Cryptodome#Crypto#' $(grep -r --color=never 'Cryptodome' | awk -F':' '{print $1}') || die
|
||||
distutils-r1_python_prepare_all
|
||||
}
|
||||
|
|
|
|||
|
|
@ -26,3 +26,10 @@ REQUIRED_USE="${PYTHON_REQUIRED_USE}"
|
|||
|
||||
RESTRICT="test"
|
||||
#distutils_enable_tests pytest
|
||||
|
||||
python_prepare_all() {
|
||||
#use pycryptodome instead of pycryptodomex
|
||||
#the only thing different appears to be the namespace and gentoo is removing pycryptodomex
|
||||
sed -i -e 's#Cryptodome#Crypto#' $(grep -r --color=never 'Cryptodome' | awk -F':' '{print $1}') || die
|
||||
distutils-r1_python_prepare_all
|
||||
}
|
||||
|
|
@ -1,2 +1,3 @@
|
|||
DIST impacket-0.11.0.tar.gz 1511223 BLAKE2B 8e848459cf69f8909424cabf2f48191d2eb1233724eb30acddfdafb2c2a7420d4ba4d358e767be6de89f2787f42a981594d17ab6169fb88c103a3e0ce9cc2c9e SHA512 bda52a44701af633b6ba5eab9f8fba120903398da40c17a3669332f71b883497ace7c5112dcf4d61ea40912323b7363662f8f36a904391faf2ead099863512f0
|
||||
DIST impacket-0.12.0.tar.gz 1585562 BLAKE2B f97f27e64b4d670c253fa311777196e3fd3e6e3126602b5925a50923cc1dc6e8f57c84d2bf50a382c03c463cff2591ca2de80105ccc88ed4d482c5aa576868c4 SHA512 3d30209f6ef73dd002fb5619af3366cc403c9a3d8ce7bc47b88f33facb1bc752266c148c8c7389fbd5720a10adf60f0d90334c33687a49a7d9a8051987648e63
|
||||
DIST impacket-0.12.0_p20250516.gh.tar.gz 1609508 BLAKE2B 393a356f8054a89012246dc4853db653753b0257379378d34b5ae65fb0c15751256262c0df047e74f480d0a5fe7567d76ca9e463ebd0ddbda8759cd29551b3b7 SHA512 ca2035a41c9047401b0980bd1c786c5c5cfa62dada80792e5ef010f92cd8d4519038c95d526d3f090193e6f137c02981d39bd44b5f417dbea70cf3c6ec422443
|
||||
|
|
|
|||
58
dev-python/impacket/impacket-0.12.0_p20250516.ebuild
Normal file
58
dev-python/impacket/impacket-0.12.0_p20250516.ebuild
Normal file
|
|
@ -0,0 +1,58 @@
|
|||
# Copyright 1999-2024 Gentoo Authors
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
|
||||
EAPI=8
|
||||
|
||||
DISTUTILS_USE_PEP517=setuptools
|
||||
PYTHON_COMPAT=( python3_{11..13} )
|
||||
|
||||
inherit distutils-r1
|
||||
|
||||
#pypi: use github for now, as it switched from Cryptodome (pycryptodomex) -> Crypto (pycryptodome)
|
||||
DESCRIPTION="A collection of Python classes focused on providing access to network packets"
|
||||
HOMEPAGE="https://github.com/fortra/impacket"
|
||||
|
||||
#if [[ ${PV} == *9999 ]]; then
|
||||
# inherit git-r3
|
||||
# EGIT_REPO_URI="https://github.com/fortra/impacket"
|
||||
#else
|
||||
#SRC_URI="https://github.com/fortra/impacket/archive/impacket_${PV//./_}.tar.gz -> ${P}.tar.gz"
|
||||
|
||||
HASH_COMMIT="a63c6522d694a73195e15958734df7de53b43c11"
|
||||
SRC_URI="https://github.com/fortra/impacket/archive/${HASH_COMMIT}.tar.gz -> ${P}.gh.tar.gz"
|
||||
S="${WORKDIR}/${PN}-${HASH_COMMIT}"
|
||||
|
||||
KEYWORDS="amd64 ~arm64 x86"
|
||||
#fi
|
||||
|
||||
LICENSE="Apache-2.0"
|
||||
SLOT="0"
|
||||
|
||||
RDEPEND="${PYTHON_DEPS}
|
||||
dev-python/charset-normalizer[${PYTHON_USEDEP}]
|
||||
>=dev-python/pyasn1-0.2.3[${PYTHON_USEDEP}]
|
||||
dev-python/pyasn1-modules[${PYTHON_USEDEP}]
|
||||
dev-python/pycryptodome[${PYTHON_USEDEP}]
|
||||
>=dev-python/pyopenssl-0.16.2[${PYTHON_USEDEP}]
|
||||
dev-python/six[${PYTHON_USEDEP}]
|
||||
dev-python/ldap3[${PYTHON_USEDEP}]
|
||||
>=dev-python/ldapdomaindump-0.9.0[${PYTHON_USEDEP}]
|
||||
>=dev-python/flask-1.0[${PYTHON_USEDEP}]
|
||||
"
|
||||
# dev-python/chardet[${PYTHON_USEDEP}]
|
||||
|
||||
DEPEND="${RDEPEND}"
|
||||
|
||||
python_prepare_all() {
|
||||
# do not install data files under Gentoo
|
||||
sed -i -e "s|Darwin|Linux|" setup.py || die
|
||||
#use pycryptodome instead of pycryptodomex
|
||||
#the only thing different appears to be the namespace and gentoo is removing pycryptodomex
|
||||
sed -i -e 's#Cryptodome#Crypto#' $(grep -r --color=never 'Cryptodome' | awk -F':' '{print $1}') || die
|
||||
distutils-r1_python_prepare_all
|
||||
}
|
||||
|
||||
python_test() {
|
||||
cd tests || die
|
||||
./runall.sh || die
|
||||
}
|
||||
|
|
@ -57,9 +57,20 @@ RDEPEND="
|
|||
DEPEND="${RDEPEND}"
|
||||
REQUIRED_USE="${PYTHON_REQUIRED_USE}"
|
||||
|
||||
src_prepare() {
|
||||
#src_prepare() {
|
||||
# sed -i -e 's#, "poetry-dynamic-versioning>=1.0.0,<2.0.0"##' pyproject.toml || die
|
||||
# sed -i -e 's#poetry_dynamic_versioning.backend#poetry.core.masonry.api#' pyproject.toml || die
|
||||
# #sed -i -e '/impacket/d' -e '/pynfsclient/d' pyproject.toml || die
|
||||
# default
|
||||
#}
|
||||
|
||||
python_prepare_all() {
|
||||
sed -i -e 's#, "poetry-dynamic-versioning>=1.0.0,<2.0.0"##' pyproject.toml || die
|
||||
sed -i -e 's#poetry_dynamic_versioning.backend#poetry.core.masonry.api#' pyproject.toml || die
|
||||
#sed -i -e '/impacket/d' -e '/pynfsclient/d' pyproject.toml || die
|
||||
default
|
||||
|
||||
#use pycryptodome instead of pycryptodomex
|
||||
#the only thing different appears to be the namespace and gentoo is removing pycryptodomex
|
||||
sed -i -e 's#Cryptodome#Crypto#' $(grep -r --color=never 'Cryptodome' | awk -F':' '{print $1}') || die
|
||||
distutils-r1_python_prepare_all
|
||||
}
|
||||
Loading…
Reference in a new issue