diff --git a/net-analyzer/scapy/Manifest b/net-analyzer/scapy/Manifest new file mode 100644 index 000000000..ce9aea51e --- /dev/null +++ b/net-analyzer/scapy/Manifest @@ -0,0 +1 @@ +DIST scapy-2.4.4_p20210220.tar.gz 3318810 BLAKE2B 0111f40726a451c81f69ce6e525965327b3269535ca177764820d133b15f85767ed3a81afe38cd5cadb888598b4023d5a8721723a75c8d5225e1a7a0cf7dba31 SHA512 8cbc664c915c457ae9caa6f7d52577aa8f37b6f99c948067b97c7789ae94acff487dd07bff67e99d8b1c23c14b7ea5a53f7c51627aa721d6b1cf05c7c059a6f6 diff --git a/net-analyzer/scapy/metadata.xml b/net-analyzer/scapy/metadata.xml new file mode 100644 index 000000000..b3243d196 --- /dev/null +++ b/net-analyzer/scapy/metadata.xml @@ -0,0 +1,20 @@ + + + + + ikelos@gentoo.org + Mike Auty + + + sam@gentoo.org + Sam James + + + netmon@gentoo.org + Gentoo network monitoring and analysis project + + + + secdev/scapy + + diff --git a/net-analyzer/scapy/scapy-2.4.4_p20210220.ebuild b/net-analyzer/scapy/scapy-2.4.4_p20210220.ebuild new file mode 100644 index 000000000..bfc012a38 --- /dev/null +++ b/net-analyzer/scapy/scapy-2.4.4_p20210220.ebuild @@ -0,0 +1,49 @@ +# Copyright 1999-2021 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=7 +PYTHON_COMPAT=( python3_{7..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" +HASH_COMMIT="c38a4782928aaa0e657c41638ce1f469aac2edb1" +SRC_URI="https://github.com/secdev/${PN}/archive/${HASH_COMMIT}.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"" +" + +S="${WORKDIR}/${PN}-${HASH_COMMIT}" + +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 +}