2020-01-05 20:52:58 +03:00
|
|
|
# Copyright 1999-2020 Gentoo Authors
|
2019-07-02 08:21:35 +03:00
|
|
|
# Distributed under the terms of the GNU General Public License v2
|
|
|
|
|
|
|
|
EAPI=7
|
2020-01-05 20:52:58 +03:00
|
|
|
PYTHON_COMPAT=( python3_{6,7} )
|
2019-07-02 08:21:35 +03:00
|
|
|
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"
|
2020-02-10 00:28:22 +03:00
|
|
|
KEYWORDS="amd64 x86"
|
2019-07-02 08:21:35 +03:00
|
|
|
RDEPEND="
|
|
|
|
net-analyzer/tcpdump
|
|
|
|
"
|
|
|
|
S=${WORKDIR}/${P/_/}
|
|
|
|
DOC_CONTENTS="
|
|
|
|
Scapy has optional support for the following packages:
|
|
|
|
|
|
|
|
dev-python/cryptography
|
|
|
|
dev-python/ipython
|
2020-02-03 09:06:56 +03:00
|
|
|
dev-python/matplotlib
|
2019-07-02 08:21:35 +03:00
|
|
|
dev-python/pyx
|
|
|
|
media-gfx/graphviz
|
|
|
|
net-analyzer/tcpreplay
|
|
|
|
virtual/imagemagick-tools
|
|
|
|
|
|
|
|
See also ""${EPREFIX}/usr/share/doc/${PF}/installation.rst""
|
|
|
|
"
|
|
|
|
|
|
|
|
src_prepare() {
|
|
|
|
echo ${PV/_/} > ${PN}/VERSION
|
|
|
|
distutils-r1_src_prepare
|
|
|
|
}
|
|
|
|
|
|
|
|
src_install() {
|
|
|
|
distutils-r1_src_install
|
|
|
|
dodoc -r doc/${PN}/*
|
|
|
|
DISABLE_AUTOFORMATTING=plz readme.gentoo_create_doc
|
|
|
|
}
|