diff --git a/dev-python/impacket/Manifest b/dev-python/impacket/Manifest index 384d4cece..5c1af38b3 100644 --- a/dev-python/impacket/Manifest +++ b/dev-python/impacket/Manifest @@ -1 +1,2 @@ DIST impacket-0.9.20.tar.gz 1242341 BLAKE2B 91093dd46565d4c9b1d5a117ec875987a91a04fe72ef6827f4916844fb95c0255c7c8b9f19ffd2df26761be3a80e5daad0b2332ffa54bfbedcc9ea738a2bc567 SHA512 14e97d03352b8a86701f0f6cdd688b8a7b9952eef5bf3ed9b984fbec6ee60b427c7d8f4200ddc0ae44279c78db30b6a2a48330243da80de25f7d9541a202e731 +DIST impacket-0.9.21.tar.gz 1269120 BLAKE2B 2f1bd11fb12b995d5c64f55151859296c55e5c2b27bfbcdea852972da3581959d5b4ef108891ac408f669f03d5f1a2d34f801fce2244d8dc2fedae89ce84dfe3 SHA512 9602019461cc07c2fc1e1a7baf40da0558a6cea4f6086e3c4ee16562cf0298c099c88f32ff7842ba403fc1560ccf29c1b3e9671cddcacb3ff6473d95dc11df2a diff --git a/dev-python/impacket/impacket-0.9.20.ebuild b/dev-python/impacket/impacket-0.9.20.ebuild deleted file mode 120000 index b9ad4af89..000000000 --- a/dev-python/impacket/impacket-0.9.20.ebuild +++ /dev/null @@ -1 +0,0 @@ -impacket-9999.ebuild \ No newline at end of file diff --git a/dev-python/impacket/impacket-0.9.20.ebuild b/dev-python/impacket/impacket-0.9.20.ebuild new file mode 100644 index 000000000..793982e46 --- /dev/null +++ b/dev-python/impacket/impacket-0.9.20.ebuild @@ -0,0 +1,48 @@ +# Copyright 1999-2020 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=7 + +# TODO: add py3.* support +PYTHON_COMPAT=( python3_{6,7} ) + +inherit distutils-r1 + +DESCRIPTION="A collection of Python classes focused on providing access to network packets" +HOMEPAGE="https://github.com/CoreSecurity/impacket" + +if [[ ${PV} == *9999 ]]; then + inherit git-r3 + EGIT_REPO_URI="https://github.com/CoreSecurity/impacket" +else + SRC_URI="https://github.com/CoreSecurity/impacket/archive/impacket_${PV//./_}.tar.gz -> ${P}.tar.gz" + + KEYWORDS="~amd64 ~x86" + S="${WORKDIR}/${PN}-${PN}_${PV//./_}" +fi + +LICENSE="Apache-2.0" +SLOT="0" + +RDEPEND="${PYTHON_DEPS} + dev-python/future[${PYTHON_USEDEP}] + dev-python/pyasn1[${PYTHON_USEDEP}] + dev-python/pyopenssl[${PYTHON_USEDEP}] + >=dev-python/ldap3-2.5.1[${PYTHON_USEDEP}] + dev-python/ldapdomaindump[${PYTHON_USEDEP}] + dev-python/flask[${PYTHON_USEDEP}] + dev-python/six[${PYTHON_USEDEP}] + dev-python/pycryptodomex[${PYTHON_USEDEP}]" + +DEPEND="${RDEPEND}" + +python_prepare_all() { + # do not install data files under Gentoo + sed -i -e "s|Darwin|Linux|" setup.py || die + distutils-r1_python_prepare_all +} + +python_test() { + cd tests || die + ./runall.sh || die +} diff --git a/dev-python/impacket/impacket-0.9.21.ebuild b/dev-python/impacket/impacket-0.9.21.ebuild new file mode 120000 index 000000000..b9ad4af89 --- /dev/null +++ b/dev-python/impacket/impacket-0.9.21.ebuild @@ -0,0 +1 @@ +impacket-9999.ebuild \ No newline at end of file diff --git a/dev-python/impacket/impacket-9999.ebuild b/dev-python/impacket/impacket-9999.ebuild index 793982e46..0474c7c75 100644 --- a/dev-python/impacket/impacket-9999.ebuild +++ b/dev-python/impacket/impacket-9999.ebuild @@ -25,14 +25,13 @@ LICENSE="Apache-2.0" SLOT="0" RDEPEND="${PYTHON_DEPS} - dev-python/future[${PYTHON_USEDEP}] - dev-python/pyasn1[${PYTHON_USEDEP}] + =dev-python/pyasn1-0.2.3[${PYTHON_USEDEP}] + dev-python/pycryptodomex[${PYTHON_USEDEP}] dev-python/pyopenssl[${PYTHON_USEDEP}] - >=dev-python/ldap3-2.5.1[${PYTHON_USEDEP}] - dev-python/ldapdomaindump[${PYTHON_USEDEP}] - dev-python/flask[${PYTHON_USEDEP}] dev-python/six[${PYTHON_USEDEP}] - dev-python/pycryptodomex[${PYTHON_USEDEP}]" + >=dev-python/ldap3-2.5.1[${PYTHON_USEDEP}] + >=dev-python/ldapdomaindump-0.9.0[${PYTHON_USEDEP}] + >=dev-python/flask-1.0[${PYTHON_USEDEP}]" DEPEND="${RDEPEND}"