pentoo-overlay/net-analyzer/scapy/scapy-2.4.0.ebuild
2018-03-28 09:15:49 +08:00

55 lines
1.4 KiB
Bash

# Copyright 1999-2018 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
EAPI=6
PYTHON_COMPAT=( python{2_7,3_{4,5,6}} )
inherit distutils-r1 readme.gentoo-r1
DESCRIPTION="A Python interactive packet manipulation program for mastering the network"
HOMEPAGE="http://www.secdev.org/projects/scapy/ 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 ~x86"
IUSE="gnuplot pyx crypt graphviz imagemagick visual tcpreplay"
RDEPEND="
net-analyzer/tcpdump
gnuplot? ( dev-python/gnuplot-py )
pyx? ( dev-python/pyx )
crypt? ( dev-python/cryptography )
graphviz? ( media-gfx/graphviz )
imagemagick? ( virtual/imagemagick-tools )
visual? ( dev-python/visual )
tcpreplay? ( net-analyzer/tcpreplay )
!<net-analyzer/scapy-2.3.3-r1
!dev-python/scapy-python3
!virtual/python-scapy"
S="${WORKDIR}/${P}"
DOC_CONTENTS="
Scapy has optional support for the following packages:
dev-python/cryptography
dev-python/gnuplot-py
dev-python/ipython
dev-python/pyx
dev-python/visual
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
}