This commit is contained in:
Anton Bolshakov 2021-02-22 22:55:03 +08:00
parent 7b39fd5342
commit 3d9420f806
No known key found for this signature in database
GPG key ID: 32BDCED870788F04
3 changed files with 70 additions and 0 deletions

View file

@ -0,0 +1 @@
DIST scapy-2.4.4_p20210220.tar.gz 3318810 BLAKE2B 0111f40726a451c81f69ce6e525965327b3269535ca177764820d133b15f85767ed3a81afe38cd5cadb888598b4023d5a8721723a75c8d5225e1a7a0cf7dba31 SHA512 8cbc664c915c457ae9caa6f7d52577aa8f37b6f99c948067b97c7789ae94acff487dd07bff67e99d8b1c23c14b7ea5a53f7c51627aa721d6b1cf05c7c059a6f6

View file

@ -0,0 +1,20 @@
<?xml version='1.0' encoding='UTF-8'?>
<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
<pkgmetadata>
<maintainer type="person">
<email>ikelos@gentoo.org</email>
<name>Mike Auty</name>
</maintainer>
<maintainer type="person">
<email>sam@gentoo.org</email>
<name>Sam James</name>
</maintainer>
<maintainer type="project">
<email>netmon@gentoo.org</email>
<name>Gentoo network monitoring and analysis project</name>
</maintainer>
<stabilize-allarches/>
<upstream>
<remote-id type="github">secdev/scapy</remote-id>
</upstream>
</pkgmetadata>

View file

@ -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
}