1 |
commit: 31829e0c487e47b3a0499780f3b511a616b63d1c |
2 |
Author: Jeroen Roovers <jer <AT> gentoo <DOT> org> |
3 |
AuthorDate: Fri Sep 25 16:02:50 2020 +0000 |
4 |
Commit: Jeroen Roovers <jer <AT> gentoo <DOT> org> |
5 |
CommitDate: Fri Sep 25 16:03:00 2020 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=31829e0c |
7 |
|
8 |
net-misc/nemesis: Version 1.7 |
9 |
|
10 |
Package-Manager: Portage-3.0.8, Repoman-3.0.1 |
11 |
Signed-off-by: Jeroen Roovers <jer <AT> gentoo.org> |
12 |
|
13 |
net-misc/nemesis/Manifest | 1 + |
14 |
.../nemesis/files/nemesis-1.7-fno-common.patch | 86 ++++++++++++++++++++++ |
15 |
net-misc/nemesis/nemesis-1.4-r2.ebuild | 8 +- |
16 |
.../{nemesis-1.4-r2.ebuild => nemesis-1.7.ebuild} | 13 +--- |
17 |
4 files changed, 95 insertions(+), 13 deletions(-) |
18 |
|
19 |
diff --git a/net-misc/nemesis/Manifest b/net-misc/nemesis/Manifest |
20 |
index f22967545a2..a2667476693 100644 |
21 |
--- a/net-misc/nemesis/Manifest |
22 |
+++ b/net-misc/nemesis/Manifest |
23 |
@@ -1 +1,2 @@ |
24 |
DIST nemesis-1.4.tar.gz 144187 BLAKE2B 9b16fa37283e4a659312bbd24e5ab850cf11cbee9c598f9e57bda517f462448a0a74721425144ec00afb2cde5ba86fcb020d2d7dbf4d6df688b67f7c282d9d38 SHA512 a8d4b434a9b0287e704ab923900c43051dc3aac4a7063e702aa93d7c89cfdeac287a6f40138bdca140e2c889e024f885288c4953940104ac12631cf7394501c8 |
25 |
+DIST nemesis-1.7.tar.gz 93423 BLAKE2B d46d19ae46852ea5a5f745b719779f3e4fbd77b918c8f53eaf743beb53d3ee345fa1663350d98095519481e819c5174fbe41b356da643b0aff9a2d5825494436 SHA512 6085cb91535c895325ca04e7583b29df9073731d8bee1d48ef46d09d25042d5220a73b2d02d77b4101de649877c0a2d0f4af5c06f125389fbd97c7350449134b |
26 |
|
27 |
diff --git a/net-misc/nemesis/files/nemesis-1.7-fno-common.patch b/net-misc/nemesis/files/nemesis-1.7-fno-common.patch |
28 |
new file mode 100644 |
29 |
index 00000000000..fba7641a493 |
30 |
--- /dev/null |
31 |
+++ b/net-misc/nemesis/files/nemesis-1.7-fno-common.patch |
32 |
@@ -0,0 +1,86 @@ |
33 |
+--- a/src/nemesis.h |
34 |
++++ b/src/nemesis.h |
35 |
+@@ -164,10 +164,10 @@ |
36 |
+ extern int verbose; |
37 |
+ extern int interval; |
38 |
+ extern int count; |
39 |
+-int got_link; |
40 |
+-int got_payload; |
41 |
+-int got_ipoptions; |
42 |
+-int got_tcpoptions; |
43 |
++extern int got_link; |
44 |
++extern int got_payload; |
45 |
++extern int got_ipoptions; |
46 |
++extern int got_tcpoptions; |
47 |
+ |
48 |
+ struct file { |
49 |
+ uint8_t *file_buf; /* pointer to file memory */ |
50 |
+--- a/src/nemesis.c |
51 |
++++ b/src/nemesis.c |
52 |
+@@ -10,6 +10,9 @@ |
53 |
+ #include <string.h> |
54 |
+ #include <unistd.h> |
55 |
+ |
56 |
++int got_payload; |
57 |
++int mode; |
58 |
++ |
59 |
+ extern int optind; |
60 |
+ |
61 |
+ static int usage(char *arg) |
62 |
+--- a/src/nemesis-icmp.c |
63 |
++++ b/src/nemesis-icmp.c |
64 |
+@@ -12,6 +12,8 @@ |
65 |
+ #include <pcap.h> |
66 |
+ #endif |
67 |
+ |
68 |
++int got_origoptions; |
69 |
++ |
70 |
+ static ETHERhdr etherhdr; |
71 |
+ static IPhdr iphdr; |
72 |
+ static IPhdr ipunreach; |
73 |
+--- a/src/nemesis-icmp.h |
74 |
++++ b/src/nemesis-icmp.h |
75 |
+@@ -39,8 +39,8 @@ |
76 |
+ #include "nemesis.h" |
77 |
+ #include <libnet.h> |
78 |
+ |
79 |
+-int mode; /* ICMP injection mode */ |
80 |
+-int got_origoptions; |
81 |
++extern int mode; /* ICMP injection mode */ |
82 |
++extern int got_origoptions; |
83 |
+ |
84 |
+ int buildicmp(ETHERhdr *, IPhdr *, ICMPhdr *, IPhdr *, struct file *, struct file *, struct file *, libnet_t *); |
85 |
+ |
86 |
+--- a/src/nemesis-ospf.h |
87 |
++++ b/src/nemesis-ospf.h |
88 |
+@@ -43,7 +43,7 @@ |
89 |
+ extern NETLSAhdr netlsahdr; |
90 |
+ extern SUMLSAhdr sumlsahdr; |
91 |
+ |
92 |
+-int mode; /* OSPF injection mode */ |
93 |
++extern int mode; /* OSPF injection mode */ |
94 |
+ |
95 |
+ int buildospf(ETHERhdr *, IPhdr *, struct file *, struct file *, libnet_t *, int); |
96 |
+ |
97 |
+--- a/src/nemesis-dns.c |
98 |
++++ b/src/nemesis-dns.c |
99 |
+@@ -12,6 +12,8 @@ |
100 |
+ #include <pcap.h> |
101 |
+ #endif |
102 |
+ |
103 |
++int state; |
104 |
++ |
105 |
+ static ETHERhdr etherhdr; |
106 |
+ static IPhdr iphdr; |
107 |
+ static TCPhdr tcphdr; |
108 |
+--- a/src/nemesis-dns.h |
109 |
++++ b/src/nemesis-dns.h |
110 |
+@@ -29,7 +29,7 @@ |
111 |
+ #include "nemesis.h" |
112 |
+ #include <libnet.h> |
113 |
+ |
114 |
+-int state; /* default to UDP */ |
115 |
++extern int state; /* default to UDP */ |
116 |
+ |
117 |
+ int builddns(ETHERhdr *, IPhdr *, TCPhdr *, UDPhdr *, DNShdr *, struct file *, struct file *, struct file *, libnet_t *); |
118 |
+ |
119 |
|
120 |
diff --git a/net-misc/nemesis/nemesis-1.4-r2.ebuild b/net-misc/nemesis/nemesis-1.4-r2.ebuild |
121 |
index 12ed858e34a..0d74247451f 100644 |
122 |
--- a/net-misc/nemesis/nemesis-1.4-r2.ebuild |
123 |
+++ b/net-misc/nemesis/nemesis-1.4-r2.ebuild |
124 |
@@ -23,10 +23,10 @@ DEPEND=" |
125 |
DOCS="CREDITS ChangeLog README" |
126 |
|
127 |
PATCHES=( |
128 |
- "${FILESDIR}"/${P}-fileio.patch |
129 |
- "${FILESDIR}"/${P}-libnet-1.0.patch |
130 |
- "${FILESDIR}"/${P}-prototcp.patch |
131 |
- "${FILESDIR}"/${P}-fno-common.patch |
132 |
+ "${FILESDIR}"/${PN}-1.4-fileio.patch |
133 |
+ "${FILESDIR}"/${PN}-1.4-libnet-1.0.patch |
134 |
+ "${FILESDIR}"/${PN}-1.4-prototcp.patch |
135 |
+ "${FILESDIR}"/${PN}-1.4-fno-common.patch |
136 |
) |
137 |
|
138 |
src_prepare() { |
139 |
|
140 |
diff --git a/net-misc/nemesis/nemesis-1.4-r2.ebuild b/net-misc/nemesis/nemesis-1.7.ebuild |
141 |
similarity index 59% |
142 |
copy from net-misc/nemesis/nemesis-1.4-r2.ebuild |
143 |
copy to net-misc/nemesis/nemesis-1.7.ebuild |
144 |
index 12ed858e34a..5dce3d23490 100644 |
145 |
--- a/net-misc/nemesis/nemesis-1.4-r2.ebuild |
146 |
+++ b/net-misc/nemesis/nemesis-1.7.ebuild |
147 |
@@ -5,8 +5,8 @@ EAPI=7 |
148 |
inherit autotools |
149 |
|
150 |
DESCRIPTION="A commandline-based, portable human IP stack for UNIX/Linux" |
151 |
-HOMEPAGE="http://nemesis.sourceforge.net/" |
152 |
-SRC_URI="mirror://sourceforge/${PN}/${P/_}.tar.gz" |
153 |
+HOMEPAGE="https://github.com/libnet/nemesis" |
154 |
+SRC_URI="https://github.com/libnet/${PN}/archive/v${PV}.tar.gz -> ${P}.tar.gz" |
155 |
|
156 |
LICENSE="BSD" |
157 |
SLOT="0" |
158 |
@@ -19,14 +19,9 @@ DEPEND=" |
159 |
${RDEPEND} |
160 |
=net-libs/libnet-1.0* |
161 |
" |
162 |
- |
163 |
-DOCS="CREDITS ChangeLog README" |
164 |
- |
165 |
+DOCS="ChangeLog.md docs/CONTRIBUTING.md docs/CREDITS README.md" |
166 |
PATCHES=( |
167 |
- "${FILESDIR}"/${P}-fileio.patch |
168 |
- "${FILESDIR}"/${P}-libnet-1.0.patch |
169 |
- "${FILESDIR}"/${P}-prototcp.patch |
170 |
- "${FILESDIR}"/${P}-fno-common.patch |
171 |
+ "${FILESDIR}"/${PN}-1.7-fno-common.patch |
172 |
) |
173 |
|
174 |
src_prepare() { |