From 6d691ad5b6239929063441bbd14c489e92e7396e Mon Sep 17 00:00:00 2001 From: V3n3RiX Date: Fri, 5 Mar 2021 09:25:57 +0000 Subject: gentoo resync : 05.03.2021 --- net-analyzer/scapy/Manifest | 3 +- net-analyzer/scapy/files/scapy-2.4.4-libc.patch | 13 +++++++ net-analyzer/scapy/scapy-2.4.4-r1.ebuild | 48 +++++++++++++++++++++++++ net-analyzer/scapy/scapy-2.4.4.ebuild | 46 ------------------------ 4 files changed, 63 insertions(+), 47 deletions(-) create mode 100644 net-analyzer/scapy/files/scapy-2.4.4-libc.patch create mode 100644 net-analyzer/scapy/scapy-2.4.4-r1.ebuild delete mode 100644 net-analyzer/scapy/scapy-2.4.4.ebuild (limited to 'net-analyzer/scapy') diff --git a/net-analyzer/scapy/Manifest b/net-analyzer/scapy/Manifest index 85a797e1ed0b..081ad7953afe 100644 --- a/net-analyzer/scapy/Manifest +++ b/net-analyzer/scapy/Manifest @@ -1,4 +1,5 @@ +AUX scapy-2.4.4-libc.patch 406 BLAKE2B deec0a79cc1edf60fb5cae49945e0b3384d3671fbc8bbe5850134a7538d83bbcd41041c14820a678e8859e4bc32618a862a32ba4f8457bacaeef9519d5f9036a SHA512 ec5608d2cf3cdcba3dd5450087ca872da5a68ed97a2bcb51006657a634ed4679b9c013fea8b4005896afa27d668cf9a536c515994bbfa575e2b250811caa5bdf DIST scapy-2.4.4.tar.gz 3240890 BLAKE2B 38b4fc0c34f229bb33f4d488ae9ba20905db572e3dd3caa15a92e8a33ba7305ba86a2b32a2664779c5085e53d44b4c55336d7afa8d65b90ffa3babcdc94bff25 SHA512 b8ad138ae2563967af07d123339ac73468fadb8f7687123aed364ad6d45198e9039314e17a155c37d01ef084e25571c587330dfd21777527110342c01821a389 -EBUILD scapy-2.4.4.ebuild 1091 BLAKE2B cfacba22672232b8062ae8875eb0647e2fbf06ea57e849eae69fcc26ad3a1b9e375276b747a85b00bfa40c63c728aae91974f514eb64b21e8dc0c318a89adbc8 SHA512 111dc8aa7edf2529cca7a51ef6aa8b3d50e0e8dd99ad2c26ce5c16c71b9f1e6223960e7401a33c7d16ad6128ba53355a13d9e177e370f576ee413a7290176a75 +EBUILD scapy-2.4.4-r1.ebuild 1132 BLAKE2B 9e443884839312921260be7323baae52abf5a85799f6cab9d499cc02ac982b75746f097e48050bbd6ede928d35b5f4c37fb2eebf8baed4b2b6fd4c81af7c7e1d SHA512 9f8d9da8c924689ae39adfa19f5dd30b53e3808aea70e11df8b4a8927eac3d3a4c7401dc194b2df875e67825b25851ce304be4213ac31b1fa48e878a2190ab32 EBUILD scapy-9999.ebuild 1018 BLAKE2B c892db076650ed6ebdc294a1d3c8edad12b981a910ce0b961d7c5b5bc84b9a2cc7523c2aed1cafdf739b1bc1ab97064d8a2683bb97c18667541fe15cf5946773 SHA512 912e7e95e42842c5c7cda3ac93d7ab7147c9924017d91906e333f896174c08036b97e1ab1500cbe2de54171b13fd0f3d1116902109c929e08675b323c82e4b86 MISC metadata.xml 584 BLAKE2B a5b6c42179b511881bdc9c7946bb059f38a67e7e56edb76a81d021674badb4fca4a0ef51302d71adf64b6ce06b165d05d9cf43c3fefdd6127469736e6e37efee SHA512 a3193634b17020af3d35454f160ac6fc5289d5cadcc7a50c95e44d9ee98d26f102489334a750bb806f98e2e978dafe25718ef7468bf7159499ff33f5064da89d diff --git a/net-analyzer/scapy/files/scapy-2.4.4-libc.patch b/net-analyzer/scapy/files/scapy-2.4.4-libc.patch new file mode 100644 index 000000000000..dd27896b5658 --- /dev/null +++ b/net-analyzer/scapy/files/scapy-2.4.4-libc.patch @@ -0,0 +1,13 @@ +diff --git a/scapy/arch/bpf/core.py b/scapy/arch/bpf/core.py +index 0ebdb53..c74902a 100644 +--- a/scapy/arch/bpf/core.py ++++ b/scapy/arch/bpf/core.py +@@ -27,7 +27,7 @@ from scapy.modules.six.moves import range + + # ctypes definitions + +-LIBC = cdll.LoadLibrary(find_library("libc")) ++LIBC = cdll.LoadLibrary(find_library("c")) + LIBC.ioctl.argtypes = [c_int, c_ulong, c_char_p] + LIBC.ioctl.restype = c_int + diff --git a/net-analyzer/scapy/scapy-2.4.4-r1.ebuild b/net-analyzer/scapy/scapy-2.4.4-r1.ebuild new file mode 100644 index 000000000000..ebda6205e3bf --- /dev/null +++ b/net-analyzer/scapy/scapy-2.4.4-r1.ebuild @@ -0,0 +1,48 @@ +# Copyright 1999-2021 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=7 +PYTHON_COMPAT=( python3_{7,8,9} ) +DISTUTILS_USE_SETUPTOOLS=rdepend +inherit distutils-r1 readme.gentoo-r1 + +DESCRIPTION="A Python interactive packet manipulation program for mastering the network" +HOMEPAGE="https://scapy.net/ https://github.com/secdev/scapy" +SRC_URI="https://github.com/secdev/${PN}/archive/v${PV}.tar.gz -> ${P}.tar.gz" + +LICENSE="GPL-2" +SLOT="0" +KEYWORDS="amd64 ~arm ~arm64 x86" +DOC_CONTENTS=" +Scapy has optional support for the following packages: + + dev-python/cryptography + dev-python/ipython + dev-python/matplotlib + dev-python/pyx + media-gfx/graphviz + net-analyzer/tcpdump + net-analyzer/tcpreplay + net-libs/libpcap + virtual/imagemagick-tools + + See also ""${EPREFIX}/usr/share/doc/${PF}/installation.rst"" +" + +PATCHES=("${FILESDIR}/${P}-libc.patch") + +src_prepare() { + if ! [[ -f ${PN}/VERSION ]]; then + echo ${PV} > ${PN}/VERSION || die + else + die + fi + + distutils-r1_src_prepare +} + +src_install() { + distutils-r1_src_install + dodoc -r doc/${PN}/* + DISABLE_AUTOFORMATTING=plz readme.gentoo_create_doc +} diff --git a/net-analyzer/scapy/scapy-2.4.4.ebuild b/net-analyzer/scapy/scapy-2.4.4.ebuild deleted file mode 100644 index efc71e5bac27..000000000000 --- a/net-analyzer/scapy/scapy-2.4.4.ebuild +++ /dev/null @@ -1,46 +0,0 @@ -# Copyright 1999-2020 Gentoo Authors -# Distributed under the terms of the GNU General Public License v2 - -EAPI=7 -PYTHON_COMPAT=( python3_{7,8,9} ) -DISTUTILS_USE_SETUPTOOLS=rdepend -inherit distutils-r1 readme.gentoo-r1 - -DESCRIPTION="A Python interactive packet manipulation program for mastering the network" -HOMEPAGE="https://scapy.net/ https://github.com/secdev/scapy" -SRC_URI="https://github.com/secdev/${PN}/archive/v${PV}.tar.gz -> ${P}.tar.gz" - -LICENSE="GPL-2" -SLOT="0" -KEYWORDS="amd64 ~arm ~arm64 x86" -DOC_CONTENTS=" -Scapy has optional support for the following packages: - - dev-python/cryptography - dev-python/ipython - dev-python/matplotlib - dev-python/pyx - media-gfx/graphviz - net-analyzer/tcpdump - net-analyzer/tcpreplay - net-libs/libpcap - virtual/imagemagick-tools - - See also ""${EPREFIX}/usr/share/doc/${PF}/installation.rst"" -" - -src_prepare() { - if ! [[ -f ${PN}/VERSION ]]; then - echo ${PV} > ${PN}/VERSION || die - else - die - fi - - distutils-r1_src_prepare -} - -src_install() { - distutils-r1_src_install - dodoc -r doc/${PN}/* - DISABLE_AUTOFORMATTING=plz readme.gentoo_create_doc -} -- cgit v1.2.3