1 |
commit: 3ed4bfb11a9fa7cf1bba3746eb75f1f2724ec45f |
2 |
Author: Michał Górny <mgorny <AT> gentoo <DOT> org> |
3 |
AuthorDate: Mon Feb 17 10:53:06 2020 +0000 |
4 |
Commit: Michał Górny <mgorny <AT> gentoo <DOT> org> |
5 |
CommitDate: Mon Feb 17 10:55:33 2020 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=3ed4bfb1 |
7 |
|
8 |
net-analyzer/scapy: Revert "Remove old for gnuplot-py cleanup" |
9 |
|
10 |
Reverts: b29ebf2ae1f4a697e1861f5ed28b88c7e9744c30 |
11 |
Signed-off-by: Michał Górny <mgorny <AT> gentoo.org> |
12 |
|
13 |
net-analyzer/scapy/Manifest | 2 ++ |
14 |
net-analyzer/scapy/scapy-2.3.2-r1.ebuild | 28 +++++++++++++++++++++ |
15 |
net-analyzer/scapy/scapy-2.4.2.ebuild | 42 ++++++++++++++++++++++++++++++++ |
16 |
3 files changed, 72 insertions(+) |
17 |
|
18 |
diff --git a/net-analyzer/scapy/Manifest b/net-analyzer/scapy/Manifest |
19 |
index 7318eca11ce..5abcf8942c4 100644 |
20 |
--- a/net-analyzer/scapy/Manifest |
21 |
+++ b/net-analyzer/scapy/Manifest |
22 |
@@ -1 +1,3 @@ |
23 |
+DIST scapy-2.3.2.tar.gz 1166056 BLAKE2B bce5f37bd833dc457089cdfebd2dc019c4f7bed636935b4a6b51a2cf7355f5761fadaa304e93c276daa2200c48ab0e1c0a08bd278e30dfea1faa01321a0b957e SHA512 6b15e102708d1bd0ca0c910e2d82416cd172634409f93c506542a7dc6b69ddc9c9afef6ec07929f70cc0f8f4c455cdc84d9b35bc2c5b72f79dd7e6785306dc7a |
24 |
+DIST scapy-2.4.2.tar.gz 3330071 BLAKE2B a40074594cd561b33d04364fba743fa5fe741b06b2ad8f8f9ebe9dfb0b9a3bc4f641cd16d99a4ba070fc0763d7cfeb8d3ecd056f162d509070cdd57d55d6ad9c SHA512 980f708a849ae26edca3eb6618a41668818c5883bca699f347f47a8964b3ee44a6ceefe4a12cb7d5fe6c13f5cbe2b7547938e53139f4ec9e6ef384e30c9bb6db |
25 |
DIST scapy-2.4.3.tar.gz 2969754 BLAKE2B 83ab6500dbc0424b728253661f03391d450f77b19c0059b8a605a19f48b4ddd7344743310a5cb7c741fcf750876ba125daf883d04714981ff81ef4db97519ae0 SHA512 579e3f326f90e10b2839aee805949e14ecab9431f360ef75e60080a971653e1f48a240d812b8ace77754b01b07a2ddb8533d1e6b18ee8804280bf9b2c237cede |
26 |
|
27 |
diff --git a/net-analyzer/scapy/scapy-2.3.2-r1.ebuild b/net-analyzer/scapy/scapy-2.3.2-r1.ebuild |
28 |
new file mode 100644 |
29 |
index 00000000000..e3f662d3328 |
30 |
--- /dev/null |
31 |
+++ b/net-analyzer/scapy/scapy-2.3.2-r1.ebuild |
32 |
@@ -0,0 +1,28 @@ |
33 |
+# Copyright 1999-2019 Gentoo Authors |
34 |
+# Distributed under the terms of the GNU General Public License v2 |
35 |
+ |
36 |
+EAPI="5" |
37 |
+ |
38 |
+PYTHON_COMPAT=( python2_7 ) |
39 |
+ |
40 |
+inherit eutils distutils-r1 |
41 |
+ |
42 |
+DESCRIPTION="A Python interactive packet manipulation program for mastering the network" |
43 |
+HOMEPAGE="https://scapy.net/ https://github.com/secdev/scapy" |
44 |
+SRC_URI="https://github.com/secdev/${PN}/archive/v${PV}.tar.gz -> ${P}.tar.gz" |
45 |
+ |
46 |
+LICENSE="GPL-2" |
47 |
+SLOT="0" |
48 |
+KEYWORDS="amd64 x86" |
49 |
+IUSE="gnuplot pyx crypt graphviz imagemagick tcpreplay" |
50 |
+ |
51 |
+RDEPEND=" |
52 |
+ net-analyzer/tcpdump |
53 |
+ gnuplot? ( dev-python/gnuplot-py[${PYTHON_USEDEP}] ) |
54 |
+ pyx? ( dev-python/pyx[${PYTHON_USEDEP}] ) |
55 |
+ crypt? ( || ( dev-python/pycryptodome[${PYTHON_USEDEP}] |
56 |
+ dev-python/pycrypto[${PYTHON_USEDEP}] ) ) |
57 |
+ graphviz? ( media-gfx/graphviz ) |
58 |
+ imagemagick? ( virtual/imagemagick-tools ) |
59 |
+ tcpreplay? ( net-analyzer/tcpreplay ) |
60 |
+" |
61 |
|
62 |
diff --git a/net-analyzer/scapy/scapy-2.4.2.ebuild b/net-analyzer/scapy/scapy-2.4.2.ebuild |
63 |
new file mode 100644 |
64 |
index 00000000000..a9ccc7667e9 |
65 |
--- /dev/null |
66 |
+++ b/net-analyzer/scapy/scapy-2.4.2.ebuild |
67 |
@@ -0,0 +1,42 @@ |
68 |
+# Copyright 1999-2020 Gentoo Authors |
69 |
+# Distributed under the terms of the GNU General Public License v2 |
70 |
+ |
71 |
+EAPI=6 |
72 |
+PYTHON_COMPAT=( python{2_7,3_{6,7}} ) |
73 |
+inherit distutils-r1 readme.gentoo-r1 |
74 |
+ |
75 |
+DESCRIPTION="A Python interactive packet manipulation program for mastering the network" |
76 |
+HOMEPAGE="https://scapy.net/ https://github.com/secdev/scapy" |
77 |
+SRC_URI="https://github.com/secdev/${PN}/archive/v${PV/_/}.tar.gz -> ${P}.tar.gz" |
78 |
+ |
79 |
+LICENSE="GPL-2" |
80 |
+SLOT="0" |
81 |
+KEYWORDS="~amd64 ~x86" |
82 |
+RDEPEND=" |
83 |
+ net-analyzer/tcpdump |
84 |
+" |
85 |
+S=${WORKDIR}/${P/_/} |
86 |
+DOC_CONTENTS=" |
87 |
+Scapy has optional support for the following packages: |
88 |
+ |
89 |
+ dev-python/cryptography |
90 |
+ dev-python/gnuplot-py |
91 |
+ dev-python/ipython |
92 |
+ dev-python/pyx |
93 |
+ media-gfx/graphviz |
94 |
+ net-analyzer/tcpreplay |
95 |
+ virtual/imagemagick-tools |
96 |
+ |
97 |
+ See also ""${EPREFIX}/usr/share/doc/${PF}/installation.rst"" |
98 |
+" |
99 |
+ |
100 |
+src_prepare() { |
101 |
+ echo ${PV/_/} > ${PN}/VERSION |
102 |
+ distutils-r1_src_prepare |
103 |
+} |
104 |
+ |
105 |
+src_install() { |
106 |
+ distutils-r1_src_install |
107 |
+ dodoc -r doc/${PN}/* |
108 |
+ DISABLE_AUTOFORMATTING=plz readme.gentoo_create_doc |
109 |
+} |