1 |
commit: 7b5c188d7e91deb52c739f00ba03336c63f69061 |
2 |
Author: stefson <herrtimson <AT> yahoo <DOT> de> |
3 |
AuthorDate: Wed Jan 3 17:09:35 2018 +0000 |
4 |
Commit: Aric Belsito <lluixhi <AT> gmail <DOT> com> |
5 |
CommitDate: Wed Jan 3 17:09:35 2018 +0000 |
6 |
URL: https://gitweb.gentoo.org/proj/musl.git/commit/?id=7b5c188d |
7 |
|
8 |
net-misc/iputils: in tree works, see #643026 |
9 |
|
10 |
net-misc/iputils/Manifest | 2 - |
11 |
.../files/021109-uclibc-no-ether_ntohost.patch | 24 --- |
12 |
.../files/iputils-20071127-nonroot-floodping.patch | 11 -- |
13 |
.../files/iputils-20121221-add-bits_types_h.patch | 94 ------------ |
14 |
.../files/iputils-20121221-fix-header-order.patch | 18 --- |
15 |
.../files/iputils-20121221-fix-init-elemnt.patch | 23 --- |
16 |
.../files/iputils-20121221-fix-musl-headers.patch | 89 ----------- |
17 |
.../iputils/files/iputils-20121221-makefile.patch | 61 -------- |
18 |
.../iputils-20121221-missing-AI_IDN-NI_IDN.patch | 34 ----- |
19 |
.../files/iputils-20121221-parallel-doc.patch | 74 --------- |
20 |
...ls-20121221-remove-rdisc-glibc-assumption.patch | 30 ---- |
21 |
.../iputils/files/iputils-20121221-strtod.patch | 45 ------ |
22 |
.../iputils/files/iputils-99999999-openssl.patch | 97 ------------ |
23 |
.../files/iputils-99999999-tftpd-syslog.patch | 38 ----- |
24 |
net-misc/iputils/files/rarpd.conf.d | 8 - |
25 |
net-misc/iputils/files/rarpd.init.d | 19 --- |
26 |
net-misc/iputils/iputils-20151218.ebuild | 166 --------------------- |
27 |
net-misc/iputils/metadata.xml | 23 --- |
28 |
18 files changed, 856 deletions(-) |
29 |
|
30 |
diff --git a/net-misc/iputils/Manifest b/net-misc/iputils/Manifest |
31 |
deleted file mode 100644 |
32 |
index d87ff4b..0000000 |
33 |
--- a/net-misc/iputils/Manifest |
34 |
+++ /dev/null |
35 |
@@ -1,2 +0,0 @@ |
36 |
-DIST iputils-s20151218-manpages.tar.xz 22336 SHA256 ae60dcf7a5a83d02008c03888935fd2dcff56c9f86734d4656b6284a7631a28d SHA512 964b9e22b18b67215ea48e046c45768cd86076b53db2131b00ac721be9e7de4edadefb74855d81861f12b4e10dcecd90d29f0098c2c4568d7601d97e756be0a3 WHIRLPOOL 82e3c9930861ed2df00c3b40488212dc36d5d65d62e1e7245d778ff77c6660a93bdd1dd8931cdddba4a631a9321741c0c2246d0cf48b22fc562ee7a066ac75fd |
37 |
-DIST iputils-s20151218.tar.bz2 157187 SHA256 549f58d71951e52b46595829134d4e330642f522f50026917fadc349a54825a1 SHA512 4bf0eed0ae5603e872afb0e09be039df3822a7723e8cbb8cbe578d69d8c457ffac9bdbe2eb17b32c95968e5e4ad6204af955617482c5701671f0f476b560b65c WHIRLPOOL e5b1d89eeaf64c2be97217eff37ef9aea33f69925683067c5366eb8db30a0b8cd8e96c2c18eedb573c965a6508efcb9e67effa66da1ad8bd606a1c1ffff9adf7 |
38 |
|
39 |
diff --git a/net-misc/iputils/files/021109-uclibc-no-ether_ntohost.patch b/net-misc/iputils/files/021109-uclibc-no-ether_ntohost.patch |
40 |
deleted file mode 100644 |
41 |
index e790d2b..0000000 |
42 |
--- a/net-misc/iputils/files/021109-uclibc-no-ether_ntohost.patch |
43 |
+++ /dev/null |
44 |
@@ -1,24 +0,0 @@ |
45 |
---- iputils/rarpd.c.mps 2004-06-10 15:27:01.000000000 +0200 |
46 |
-+++ iputils/rarpd.c 2004-06-10 15:26:29.000000000 +0200 |
47 |
-@@ -42,7 +42,9 @@ int listen_arp; |
48 |
- char *ifname; |
49 |
- char *tftp_dir = "/etc/tftpboot"; |
50 |
- |
51 |
-+#ifndef __UCLIBC__ |
52 |
- extern int ether_ntohost(char *name, unsigned char *ea); |
53 |
-+#endif |
54 |
- void usage(void) __attribute__((noreturn)); |
55 |
- |
56 |
- struct iflink |
57 |
-@@ -305,7 +307,11 @@ struct rarp_map *rarp_lookup(int ifindex |
58 |
- 6, |
59 |
- }; |
60 |
- |
61 |
-+#ifndef __UCLIBC__ |
62 |
- if (ether_ntohost(ename, lladdr) != 0 || |
63 |
-+#else |
64 |
-+ if ( |
65 |
-+#endif |
66 |
- (hp = gethostbyname(ename)) == NULL) { |
67 |
- if (verbose) |
68 |
- syslog(LOG_INFO, "not found in /etc/ethers"); |
69 |
|
70 |
diff --git a/net-misc/iputils/files/iputils-20071127-nonroot-floodping.patch b/net-misc/iputils/files/iputils-20071127-nonroot-floodping.patch |
71 |
deleted file mode 100644 |
72 |
index cae8779..0000000 |
73 |
--- a/net-misc/iputils/files/iputils-20071127-nonroot-floodping.patch |
74 |
+++ /dev/null |
75 |
@@ -1,11 +0,0 @@ |
76 |
---- iputils-s20071127/ping_common.h.orig 2008-06-10 11:16:06.000000000 +0100 |
77 |
-+++ iputils-s20071127/ping_common.h 2008-06-10 11:16:18.000000000 +0100 |
78 |
-@@ -28,7 +28,7 @@ |
79 |
- |
80 |
- #define MAXWAIT 10 /* max seconds to wait for response */ |
81 |
- #define MININTERVAL 10 /* Minimal interpacket gap */ |
82 |
--#define MINUSERINTERVAL 200 /* Minimal allowed interval for non-root */ |
83 |
-+#define MINUSERINTERVAL 0 /* Minimal allowed interval for non-root */ |
84 |
- |
85 |
- #define SCHINT(a) (((a) <= MININTERVAL) ? MININTERVAL : (a)) |
86 |
- |
87 |
|
88 |
diff --git a/net-misc/iputils/files/iputils-20121221-add-bits_types_h.patch b/net-misc/iputils/files/iputils-20121221-add-bits_types_h.patch |
89 |
deleted file mode 100644 |
90 |
index 9ea3418..0000000 |
91 |
--- a/net-misc/iputils/files/iputils-20121221-add-bits_types_h.patch |
92 |
+++ /dev/null |
93 |
@@ -1,94 +0,0 @@ |
94 |
-diff -Naur iputils-s20121221.orig/clockdiff.c iputils-s20121221/clockdiff.c |
95 |
---- iputils-s20121221.orig/clockdiff.c 2014-01-24 15:32:49.111934548 +0000 |
96 |
-+++ iputils-s20121221/clockdiff.c 2014-01-24 15:32:14.438932610 +0000 |
97 |
-@@ -23,6 +23,8 @@ |
98 |
- #include <sys/capability.h> |
99 |
- #endif |
100 |
- |
101 |
-+#include "types.h" |
102 |
-+ |
103 |
- void usage(void) __attribute__((noreturn)); |
104 |
- |
105 |
- #define MAX_HOSTNAMELEN NI_MAXHOST |
106 |
-diff -Naur iputils-s20121221.orig/ping.c iputils-s20121221/ping.c |
107 |
---- iputils-s20121221.orig/ping.c 2014-01-24 15:32:49.111934548 +0000 |
108 |
-+++ iputils-s20121221/ping.c 2014-01-24 15:32:14.459932611 +0000 |
109 |
-@@ -59,6 +59,7 @@ |
110 |
- */ |
111 |
- |
112 |
- #include "ping_common.h" |
113 |
-+#include "types.h" |
114 |
- |
115 |
- #include <netinet/ip.h> |
116 |
- #include <netinet/ip_icmp.h> |
117 |
-diff -Naur iputils-s20121221.orig/ping6.c iputils-s20121221/ping6.c |
118 |
---- iputils-s20121221.orig/ping6.c 2014-01-24 15:32:49.112934549 +0000 |
119 |
-+++ iputils-s20121221/ping6.c 2014-01-24 15:32:14.439932610 +0000 |
120 |
-@@ -67,6 +67,7 @@ |
121 |
- * This program has to run SUID to ROOT to access the ICMP socket. |
122 |
- */ |
123 |
- #include "ping_common.h" |
124 |
-+#include "types.h" |
125 |
- |
126 |
- #include <linux/filter.h> |
127 |
- #include <netinet/ip6.h> |
128 |
-diff -Naur iputils-s20121221.orig/ping_common.c iputils-s20121221/ping_common.c |
129 |
---- iputils-s20121221.orig/ping_common.c 2014-01-24 15:32:49.112934549 +0000 |
130 |
-+++ iputils-s20121221/ping_common.c 2014-01-24 15:32:14.439932610 +0000 |
131 |
-@@ -1,4 +1,5 @@ |
132 |
- #include "ping_common.h" |
133 |
-+#include "types.h" |
134 |
- #include <ctype.h> |
135 |
- #include <sched.h> |
136 |
- #include <math.h> |
137 |
-diff -Naur iputils-s20121221.orig/ping_common.h iputils-s20121221/ping_common.h |
138 |
---- iputils-s20121221.orig/ping_common.h 2014-01-24 15:32:14.419932609 +0000 |
139 |
-+++ iputils-s20121221/ping_common.h 2014-01-24 15:33:08.206935616 +0000 |
140 |
-@@ -35,6 +35,7 @@ |
141 |
- #include <linux/errqueue.h> |
142 |
- |
143 |
- #include "SNAPSHOT.h" |
144 |
-+#include "types.h" |
145 |
- |
146 |
- #define DEFDATALEN (64 - 8) /* default data length */ |
147 |
- |
148 |
-diff -Naur iputils-s20121221.orig/rdisc.c iputils-s20121221/rdisc.c |
149 |
---- iputils-s20121221.orig/rdisc.c 2014-01-24 15:32:49.113934549 +0000 |
150 |
-+++ iputils-s20121221/rdisc.c 2014-01-24 15:32:14.450932610 +0000 |
151 |
-@@ -62,6 +62,7 @@ |
152 |
- #include <syslog.h> |
153 |
- |
154 |
- #include "SNAPSHOT.h" |
155 |
-+#include "types.h" |
156 |
- |
157 |
- struct interface |
158 |
- { |
159 |
-diff -Naur iputils-s20121221.orig/traceroute6.c iputils-s20121221/traceroute6.c |
160 |
---- iputils-s20121221.orig/traceroute6.c 2014-01-24 15:32:49.113934549 +0000 |
161 |
-+++ iputils-s20121221/traceroute6.c 2014-01-24 15:32:14.440932610 +0000 |
162 |
-@@ -267,6 +267,7 @@ |
163 |
- #include <string.h> |
164 |
- #include <unistd.h> |
165 |
- |
166 |
-+#include "types.h" |
167 |
- #include "SNAPSHOT.h" |
168 |
- |
169 |
- #ifndef SOL_IPV6 |
170 |
-diff -Naur iputils-s20121221.orig/types.h iputils-s20121221/types.h |
171 |
---- iputils-s20121221.orig/types.h 1970-01-01 00:00:00.000000000 +0000 |
172 |
-+++ iputils-s20121221/types.h 2014-01-24 15:32:14.440932610 +0000 |
173 |
-@@ -0,0 +1,14 @@ |
174 |
-+/* This is a small version of <bits/types.h> from glibc |
175 |
-+ * to take care of type u_char. |
176 |
-+ * |
177 |
-+ * Anthony G. Basile <blueness@g.o> |
178 |
-+ */ |
179 |
-+#ifndef _BITS_TYPES_H |
180 |
-+#define _BITS_TYPES_H 1 |
181 |
-+ |
182 |
-+typedef unsigned char u_char; |
183 |
-+typedef unsigned short int u_short; |
184 |
-+typedef unsigned int u_int; |
185 |
-+typedef unsigned long int u_long; |
186 |
-+ |
187 |
-+#endif /* mini <bits/types.h> */ |
188 |
|
189 |
diff --git a/net-misc/iputils/files/iputils-20121221-fix-header-order.patch b/net-misc/iputils/files/iputils-20121221-fix-header-order.patch |
190 |
deleted file mode 100644 |
191 |
index 6bfcea4..0000000 |
192 |
--- a/net-misc/iputils/files/iputils-20121221-fix-header-order.patch |
193 |
+++ /dev/null |
194 |
@@ -1,18 +0,0 @@ |
195 |
-diff -Naur iputils-s20121221.orig/tracepath.c iputils-s20121221/tracepath.c |
196 |
---- iputils-s20121221.orig/tracepath.c 2014-11-20 07:39:59.114108620 -0500 |
197 |
-+++ iputils-s20121221/tracepath.c 2014-11-20 07:40:37.813110381 -0500 |
198 |
-@@ -14,13 +14,13 @@ |
199 |
- #include <unistd.h> |
200 |
- #include <sys/socket.h> |
201 |
- #include <linux/types.h> |
202 |
--#include <linux/errqueue.h> |
203 |
- #include <errno.h> |
204 |
- #include <string.h> |
205 |
- #include <netdb.h> |
206 |
- #include <netinet/in.h> |
207 |
- #include <resolv.h> |
208 |
- #include <sys/time.h> |
209 |
-+#include <linux/errqueue.h> |
210 |
- #include <sys/uio.h> |
211 |
- #include <arpa/inet.h> |
212 |
- #include <limits.h> |
213 |
|
214 |
diff --git a/net-misc/iputils/files/iputils-20121221-fix-init-elemnt.patch b/net-misc/iputils/files/iputils-20121221-fix-init-elemnt.patch |
215 |
deleted file mode 100644 |
216 |
index 554ce9b..0000000 |
217 |
--- a/net-misc/iputils/files/iputils-20121221-fix-init-elemnt.patch |
218 |
+++ /dev/null |
219 |
@@ -1,23 +0,0 @@ |
220 |
-diff -Naur iputils-s20121221.orig/ping.c iputils-s20121221/ping.c |
221 |
---- iputils-s20121221.orig/ping.c 2014-01-24 15:05:02.082841335 +0000 |
222 |
-+++ iputils-s20121221/ping.c 2014-01-24 15:17:12.975882203 +0000 |
223 |
-@@ -774,9 +774,16 @@ |
224 |
- |
225 |
- do { |
226 |
- static struct iovec iov = {outpack, 0}; |
227 |
-- static struct msghdr m = { &whereto, sizeof(whereto), |
228 |
-- &iov, 1, &cmsg, 0, 0 }; |
229 |
-- m.msg_controllen = cmsg_len; |
230 |
-+ static struct msghdr m; |
231 |
-+ |
232 |
-+ m.msg_name = &whereto; |
233 |
-+ m.msg_namelen = sizeof(whereto); |
234 |
-+ m.msg_iov = &iov; |
235 |
-+ m.msg_iovlen = 1; |
236 |
-+ m.msg_control = &cmsg; |
237 |
-+ m.msg_controllen = sizeof(cmsg); |
238 |
-+ m.msg_flags = 0; |
239 |
-+ |
240 |
- iov.iov_len = cc; |
241 |
- |
242 |
- i = sendmsg(icmp_sock, &m, confirm); |
243 |
|
244 |
diff --git a/net-misc/iputils/files/iputils-20121221-fix-musl-headers.patch b/net-misc/iputils/files/iputils-20121221-fix-musl-headers.patch |
245 |
deleted file mode 100644 |
246 |
index cd1ff55..0000000 |
247 |
--- a/net-misc/iputils/files/iputils-20121221-fix-musl-headers.patch |
248 |
+++ /dev/null |
249 |
@@ -1,89 +0,0 @@ |
250 |
-diff -Naur iputils-s20121221.orig/arping.c iputils-s20121221/arping.c |
251 |
---- iputils-s20121221.orig/arping.c 2012-12-21 14:01:07.000000000 +0000 |
252 |
-+++ iputils-s20121221/arping.c 2014-01-23 21:19:57.091268011 +0000 |
253 |
-@@ -16,7 +16,7 @@ |
254 |
- #include <linux/sockios.h> |
255 |
- #include <sys/file.h> |
256 |
- #include <sys/time.h> |
257 |
--#include <sys/signal.h> |
258 |
-+#include <signal.h> |
259 |
- #include <sys/ioctl.h> |
260 |
- #include <net/if.h> |
261 |
- #include <linux/if_packet.h> |
262 |
---- iputils-s20121221.orig/clockdiff.c 2012-12-21 14:01:07.000000000 +0000 |
263 |
-+++ iputils-s20121221/clockdiff.c 2014-01-23 21:19:57.093268011 +0000 |
264 |
-@@ -14,7 +14,6 @@ |
265 |
- #include <netinet/ip.h> |
266 |
- #include <netinet/ip_icmp.h> |
267 |
- #define TSPTYPES |
268 |
--#include <protocols/timed.h> |
269 |
- #include <fcntl.h> |
270 |
- #include <netdb.h> |
271 |
- #include <arpa/inet.h> |
272 |
-diff -Naur iputils-s20121221.orig/ping_common.h iputils-s20121221/ping_common.h |
273 |
---- iputils-s20121221.orig/ping_common.h 2012-12-21 14:01:07.000000000 +0000 |
274 |
-+++ iputils-s20121221/ping_common.h 2014-01-23 21:27:07.677292088 +0000 |
275 |
-@@ -7,16 +7,17 @@ |
276 |
- #include <linux/sockios.h> |
277 |
- #include <sys/file.h> |
278 |
- #include <sys/time.h> |
279 |
--#include <sys/signal.h> |
280 |
-+#include <signal.h> |
281 |
- #include <sys/ioctl.h> |
282 |
- #include <net/if.h> |
283 |
- #include <sys/uio.h> |
284 |
--#include <sys/poll.h> |
285 |
-+#include <poll.h> |
286 |
- #include <ctype.h> |
287 |
- #include <errno.h> |
288 |
- #include <string.h> |
289 |
- #include <netdb.h> |
290 |
- #include <setjmp.h> |
291 |
-+#include <linux/param.h> |
292 |
- |
293 |
- #ifdef CAPABILITIES |
294 |
- #include <sys/prctl.h> |
295 |
---- iputils-s20121221.orig/rarpd.c 2014-01-24 13:38:46.816551953 +0000 |
296 |
-+++ iputils-s20121221/rarpd.c 2014-01-24 13:36:51.833545524 +0000 |
297 |
-@@ -19,16 +19,17 @@ |
298 |
- #include <netdb.h> |
299 |
- #include <arpa/inet.h> |
300 |
- #include <sys/ioctl.h> |
301 |
--#include <sys/poll.h> |
302 |
--#include <sys/errno.h> |
303 |
--#include <sys/fcntl.h> |
304 |
-+#include <poll.h> |
305 |
-+#include <errno.h> |
306 |
-+#include <fcntl.h> |
307 |
- #include <sys/socket.h> |
308 |
--#include <sys/signal.h> |
309 |
-+#include <signal.h> |
310 |
- #include <linux/if.h> |
311 |
- #include <linux/if_arp.h> |
312 |
- #include <netinet/in.h> |
313 |
- #include <linux/if_packet.h> |
314 |
- #include <linux/filter.h> |
315 |
-+#include <sys/types.h> |
316 |
- |
317 |
- int do_reload = 1; |
318 |
- |
319 |
---- iputils-s20121221.orig/tracepath.c 2014-01-24 13:38:46.865551956 +0000 |
320 |
-+++ iputils-s20121221/tracepath.c 2014-01-23 21:19:57.109268012 +0000 |
321 |
-@@ -23,6 +23,7 @@ |
322 |
- #include <sys/time.h> |
323 |
- #include <sys/uio.h> |
324 |
- #include <arpa/inet.h> |
325 |
-+#include <limits.h> |
326 |
- #ifdef USE_IDN |
327 |
- #include <idna.h> |
328 |
- #include <locale.h> |
329 |
---- iputils-s20121221.orig/tracepath6.c 2014-01-24 13:38:46.865551956 +0000 |
330 |
-+++ iputils-s20121221/tracepath6.c 2014-01-23 21:20:40.316270428 +0000 |
331 |
-@@ -25,6 +25,7 @@ |
332 |
- #include <sys/time.h> |
333 |
- #include <sys/uio.h> |
334 |
- #include <arpa/inet.h> |
335 |
-+#include <limits.h> |
336 |
- |
337 |
- #ifdef USE_IDN |
338 |
- #include <idna.h> |
339 |
|
340 |
diff --git a/net-misc/iputils/files/iputils-20121221-makefile.patch b/net-misc/iputils/files/iputils-20121221-makefile.patch |
341 |
deleted file mode 100644 |
342 |
index 66424c8..0000000 |
343 |
--- a/net-misc/iputils/files/iputils-20121221-makefile.patch |
344 |
+++ /dev/null |
345 |
@@ -1,61 +0,0 @@ |
346 |
-From c66609d2c830d6fe06f48f5d38c54eb5cc6f2975 Mon Sep 17 00:00:00 2001 |
347 |
-From: Mike Frysinger <vapier@g.o> |
348 |
-Date: Thu, 24 Jan 2013 23:36:16 -0500 |
349 |
-Subject: [PATCH [iputils]] fix handling of CFLAGS |
350 |
- |
351 |
-This defaults CFLAGS to -O3 without clobbering settings people have set |
352 |
-up in the environment already. |
353 |
- |
354 |
-Signed-off-by: Mike Frysinger <vapier@g.o> |
355 |
---- |
356 |
- Makefile | 13 +++++-------- |
357 |
- 1 file changed, 5 insertions(+), 8 deletions(-) |
358 |
- |
359 |
-diff --git a/Makefile b/Makefile |
360 |
-index 2c49940..ecabac3 100644 |
361 |
---- a/Makefile |
362 |
-+++ b/Makefile |
363 |
-@@ -2,8 +2,6 @@ |
364 |
- # Configuration |
365 |
- # |
366 |
- |
367 |
--# CC |
368 |
--CC=gcc |
369 |
- # Path to parent kernel include files directory |
370 |
- LIBC_INCLUDE=/usr/include |
371 |
- # Libraries |
372 |
-@@ -48,11 +46,10 @@ ENABLE_RDISC_SERVER=no |
373 |
- |
374 |
- # ------------------------------------- |
375 |
- # What a pity, all new gccs are buggy and -Werror does not work. Sigh. |
376 |
--# CCOPT=-fno-strict-aliasing -Wstrict-prototypes -Wall -Werror -g |
377 |
--CCOPT=-fno-strict-aliasing -Wstrict-prototypes -Wall -g |
378 |
--CCOPTOPT=-O3 |
379 |
--GLIBCFIX=-D_GNU_SOURCE |
380 |
--DEFINES= |
381 |
-+# CFLAGS+=-fno-strict-aliasing -Wstrict-prototypes -Wall -Werror -g |
382 |
-+CFLAGS?=-O3 -g |
383 |
-+CFLAGS+=-fno-strict-aliasing -Wstrict-prototypes -Wall |
384 |
-+CPPFLAGS+=-D_GNU_SOURCE |
385 |
- LDLIB= |
386 |
- |
387 |
- FUNC_LIB = $(if $(filter static,$(1)),$(LDFLAG_STATIC) $(2) $(LDFLAG_DYNAMIC),$(2)) |
388 |
-@@ -113,7 +110,6 @@ IPV4_TARGETS=tracepath ping clockdiff rdisc arping tftpd rarpd |
389 |
- IPV6_TARGETS=tracepath6 traceroute6 ping6 |
390 |
- TARGETS=$(IPV4_TARGETS) $(IPV6_TARGETS) |
391 |
- |
392 |
--CFLAGS=$(CCOPTOPT) $(CCOPT) $(GLIBCFIX) $(DEFINES) |
393 |
- LDLIBS=$(LDLIB) $(ADDLIB) |
394 |
- |
395 |
- UNAME_N:=$(shell uname -n) |
396 |
-@@ -132,6 +128,7 @@ all: $(TARGETS) |
397 |
- $(COMPILE.c) $< $(DEF_$(patsubst %.o,%,$@)) -S -o $@ |
398 |
- %.o: %.c |
399 |
- $(COMPILE.c) $< $(DEF_$(patsubst %.o,%,$@)) -o $@ |
400 |
-+LINK.o += $(CFLAGS) |
401 |
- $(TARGETS): %: %.o |
402 |
- $(LINK.o) $^ $(LIB_$@) $(LDLIBS) -o $@ |
403 |
- |
404 |
--- |
405 |
-1.8.0.2 |
406 |
- |
407 |
|
408 |
diff --git a/net-misc/iputils/files/iputils-20121221-missing-AI_IDN-NI_IDN.patch b/net-misc/iputils/files/iputils-20121221-missing-AI_IDN-NI_IDN.patch |
409 |
deleted file mode 100644 |
410 |
index b6bf7ea..0000000 |
411 |
--- a/net-misc/iputils/files/iputils-20121221-missing-AI_IDN-NI_IDN.patch |
412 |
+++ /dev/null |
413 |
@@ -1,34 +0,0 @@ |
414 |
-diff -Naur iputils-s20121221.orig/ping6.c iputils-s20121221/ping6.c |
415 |
---- iputils-s20121221.orig/ping6.c 2012-12-21 14:01:07.000000000 +0000 |
416 |
-+++ iputils-s20121221/ping6.c 2015-07-19 00:50:45.254912002 +0000 |
417 |
-@@ -80,6 +80,13 @@ |
418 |
- #include <stringprep.h> |
419 |
- #endif |
420 |
- |
421 |
-+#ifndef AI_IDN |
422 |
-+#define AI_IDN 0x0040 |
423 |
-+#endif |
424 |
-+#ifndef NI_IDN |
425 |
-+#define NI_IDN 32 |
426 |
-+#endif |
427 |
-+ |
428 |
- #include "ping6_niquery.h" |
429 |
- #include "in6_flowlabel.h" |
430 |
- |
431 |
-diff -Naur iputils-s20121221.orig/tracepath6.c iputils-s20121221/tracepath6.c |
432 |
---- iputils-s20121221.orig/tracepath6.c 2012-12-21 14:01:07.000000000 +0000 |
433 |
-+++ iputils-s20121221/tracepath6.c 2015-07-19 00:51:06.490911203 +0000 |
434 |
-@@ -31,6 +31,13 @@ |
435 |
- #include <locale.h> |
436 |
- #endif |
437 |
- |
438 |
-+#ifndef AI_IDN |
439 |
-+#define AI_IDN 0x0040 |
440 |
-+#endif |
441 |
-+#ifndef NI_IDN |
442 |
-+#define NI_IDN 32 |
443 |
-+#endif |
444 |
-+ |
445 |
- #ifndef SOL_IPV6 |
446 |
- #define SOL_IPV6 IPPROTO_IPV6 |
447 |
- #endif |
448 |
|
449 |
diff --git a/net-misc/iputils/files/iputils-20121221-parallel-doc.patch b/net-misc/iputils/files/iputils-20121221-parallel-doc.patch |
450 |
deleted file mode 100644 |
451 |
index 22bfb88..0000000 |
452 |
--- a/net-misc/iputils/files/iputils-20121221-parallel-doc.patch |
453 |
+++ /dev/null |
454 |
@@ -1,74 +0,0 @@ |
455 |
-From 4e322b85a12ba3ef5e8118724e3442b2ebb0f6d6 Mon Sep 17 00:00:00 2001 |
456 |
-From: Mike Frysinger <vapier@g.o> |
457 |
-Date: Wed, 1 Aug 2012 11:43:34 -0400 |
458 |
-Subject: [PATCH iputils] doc: fix parallel build of html/man pages |
459 |
- |
460 |
-The use of the same tempdir prevents building of these files in parallel. |
461 |
-So build all of them in unique tempdirs so we can do them in parallel. |
462 |
- |
463 |
-Signed-off-by: Mike Frysinger <vapier@g.o> |
464 |
---- |
465 |
- doc/Makefile | 37 ++++++++++++++++++++++++------------- |
466 |
- 1 file changed, 24 insertions(+), 13 deletions(-) |
467 |
- |
468 |
-diff --git a/doc/Makefile b/doc/Makefile |
469 |
-index 7ec4f1c..4f930a3 100644 |
470 |
---- a/doc/Makefile |
471 |
-+++ b/doc/Makefile |
472 |
-@@ -12,29 +12,40 @@ man: $(MANFILES) |
473 |
- # lots of some strange temporary junk directories and files. |
474 |
- # So, scope it to a temporary dir and clean all after each run. |
475 |
- |
476 |
--$(HTMLFILES): index.db |
477 |
-- @-rm -rf tmp.db2html |
478 |
-- @mkdir tmp.db2html |
479 |
-- @set -e; cd tmp.db2html; docbook2html ../$< ; mv *.html .. |
480 |
-- @-rm -rf tmp.db2html |
481 |
-+SETUP_TMPDIR = \ |
482 |
-+ t="tmp.db2html.$@"; \ |
483 |
-+ rm -rf $$t; \ |
484 |
-+ mkdir $$t; \ |
485 |
-+ cd $$t |
486 |
-+CLEAN_TMPDIR = \ |
487 |
-+ cd ..; \ |
488 |
-+ rm -rf $$t |
489 |
-+ |
490 |
-+MAKE_HTML = \ |
491 |
-+ @set -e; \ |
492 |
-+ $(SETUP_TMPDIR); \ |
493 |
-+ docbook2html ../$<; \ |
494 |
-+ mv *.html ..; \ |
495 |
-+ $(CLEAN_TMPDIR) |
496 |
- |
497 |
-+$(HTMLFILES): index.db |
498 |
-+ $(MAKE_HTML) |
499 |
- iputils.html: iputils.db |
500 |
-- @-rm -rf tmp.db2html |
501 |
-- @mkdir tmp.db2html |
502 |
-- @set -e; cd tmp.db2html; docbook2html -u -o html ../$< ; mv html/$@ .. |
503 |
-- @-rm -rf tmp.db2html |
504 |
-+ $(MAKE_HTML) |
505 |
- |
506 |
- # docbook2man produces utterly ugly output and I did not find |
507 |
- # any way to customize this but hacking backend perl script a little. |
508 |
- # Well, hence... |
509 |
- |
510 |
- $(MANFILES): index.db |
511 |
-- @-mkdir tmp.db2man |
512 |
-- @set -e; cd tmp.db2man; nsgmls ../$< | sgmlspl ../docbook2man-spec.pl ; mv $@ .. |
513 |
-- @-rm -rf tmp.db2man |
514 |
-+ @set -e; \ |
515 |
-+ $(SETUP_TMPDIR); \ |
516 |
-+ nsgmls ../$< | sgmlspl ../docbook2man-spec.pl; \ |
517 |
-+ mv $@ ..; \ |
518 |
-+ $(CLEAN_TMPDIR) |
519 |
- |
520 |
- clean: |
521 |
-- @rm -rf $(MANFILES) $(HTMLFILES) iputils.html tmp.db2html tmp.db2man |
522 |
-+ @rm -rf $(MANFILES) $(HTMLFILES) iputils.html tmp.db2html* tmp.db2man* |
523 |
- |
524 |
- snapshot: |
525 |
- @date "+%y%m%d" > snapshot.db |
526 |
--- |
527 |
-2.3.5 |
528 |
- |
529 |
|
530 |
diff --git a/net-misc/iputils/files/iputils-20121221-remove-rdisc-glibc-assumption.patch b/net-misc/iputils/files/iputils-20121221-remove-rdisc-glibc-assumption.patch |
531 |
deleted file mode 100644 |
532 |
index 08e764d..0000000 |
533 |
--- a/net-misc/iputils/files/iputils-20121221-remove-rdisc-glibc-assumption.patch |
534 |
+++ /dev/null |
535 |
@@ -1,30 +0,0 @@ |
536 |
-diff -Naur iputils-s20121221.orig/rdisc.c iputils-s20121221/rdisc.c |
537 |
---- iputils-s20121221.orig/rdisc.c 2014-01-24 14:59:29.937822762 +0000 |
538 |
-+++ iputils-s20121221/rdisc.c 2014-01-23 21:25:58.760288234 +0000 |
539 |
-@@ -115,26 +114,7 @@ |
540 |
- |
541 |
- #define MAXIFS 32 |
542 |
- |
543 |
--#if !defined(__GLIBC__) || __GLIBC__ < 2 |
544 |
--/* For router advertisement */ |
545 |
--struct icmp_ra |
546 |
--{ |
547 |
-- u_char icmp_type; /* type of message, see below */ |
548 |
-- u_char icmp_code; /* type sub code */ |
549 |
-- u_short icmp_cksum; /* ones complement cksum of struct */ |
550 |
-- u_char icmp_num_addrs; |
551 |
-- u_char icmp_wpa; /* Words per address */ |
552 |
-- short icmp_lifetime; |
553 |
--}; |
554 |
-- |
555 |
--struct icmp_ra_addr |
556 |
--{ |
557 |
-- __u32 ira_addr; |
558 |
-- __u32 ira_preference; |
559 |
--}; |
560 |
--#else |
561 |
- #define icmp_ra icmp |
562 |
--#endif |
563 |
- |
564 |
- /* Router constants */ |
565 |
- #define MAX_INITIAL_ADVERT_INTERVAL 16 |
566 |
|
567 |
diff --git a/net-misc/iputils/files/iputils-20121221-strtod.patch b/net-misc/iputils/files/iputils-20121221-strtod.patch |
568 |
deleted file mode 100644 |
569 |
index 303acf5..0000000 |
570 |
--- a/net-misc/iputils/files/iputils-20121221-strtod.patch |
571 |
+++ /dev/null |
572 |
@@ -1,45 +0,0 @@ |
573 |
-https://bugs.gentoo.org/472592 |
574 |
- |
575 |
-From dd0aa192626f94d08e399fc2a743ee72c50853fb Mon Sep 17 00:00:00 2001 |
576 |
-From: Mike Frysinger <vapier@g.o> |
577 |
-Date: Fri, 24 Apr 2015 20:41:31 -0400 |
578 |
-Subject: [PATCH iputils] ping: fix -i number parsing in locales |
579 |
- |
580 |
-Always use #.# format for the -i flag even when the current locale uses |
581 |
-a different separator. Locale de_DE which uses #,# normally. |
582 |
- |
583 |
-Simple testcase: |
584 |
-$ make USE_IDN=1 |
585 |
-$ LANG=de_DE.UTF8 ./ping -i 0.5 localhost |
586 |
- |
587 |
-Reported-by: Sergey Fionov <fionov@×××××.com> |
588 |
-Signed-off-by: Mike Frysinger <vapier@g.o> |
589 |
---- |
590 |
- ping_common.c | 8 ++++++++ |
591 |
- 1 file changed, 8 insertions(+) |
592 |
- |
593 |
-diff --git a/ping_common.c b/ping_common.c |
594 |
-index 62f53a6..0a37e09 100644 |
595 |
---- a/ping_common.c |
596 |
-+++ b/ping_common.c |
597 |
-@@ -269,9 +269,17 @@ void common_options(int ch) |
598 |
- double dbl; |
599 |
- char *ep; |
600 |
- |
601 |
-+#ifdef USE_IDN |
602 |
-+ setlocale(LC_ALL, "C"); |
603 |
-+#endif |
604 |
-+ |
605 |
- errno = 0; |
606 |
- dbl = strtod(optarg, &ep); |
607 |
- |
608 |
-+#ifdef USE_IDN |
609 |
-+ setlocale(LC_ALL, ""); |
610 |
-+#endif |
611 |
-+ |
612 |
- if (errno || *ep != '\0' || |
613 |
- !finite(dbl) || dbl < 0.0 || dbl >= (double)INT_MAX / 1000 - 1.0) { |
614 |
- fprintf(stderr, "ping: bad timing interval\n"); |
615 |
--- |
616 |
-2.3.5 |
617 |
- |
618 |
|
619 |
diff --git a/net-misc/iputils/files/iputils-99999999-openssl.patch b/net-misc/iputils/files/iputils-99999999-openssl.patch |
620 |
deleted file mode 100644 |
621 |
index 13f5639..0000000 |
622 |
--- a/net-misc/iputils/files/iputils-99999999-openssl.patch |
623 |
+++ /dev/null |
624 |
@@ -1,97 +0,0 @@ |
625 |
-From 321d64b9f94653322e678e34ac214ddb73a71db8 Mon Sep 17 00:00:00 2001 |
626 |
-From: Mike Frysinger <vapier@g.o> |
627 |
-Date: Thu, 24 Jan 2013 23:32:39 -0500 |
628 |
-Subject: [PATCH iputils] ping6: allow disabling of openssl support |
629 |
- |
630 |
-Signed-off-by: Mike Frysinger <vapier@g.o> |
631 |
---- |
632 |
- Makefile | 5 ++++- |
633 |
- iputils_md5dig.h | 4 +++- |
634 |
- ping6.c | 10 ++++++++++ |
635 |
- 3 files changed, 17 insertions(+), 2 deletions(-) |
636 |
- |
637 |
-diff --git a/Makefile b/Makefile |
638 |
-index 54e5a6d..7147f08 100644 |
639 |
---- a/Makefile |
640 |
-+++ b/Makefile |
641 |
-@@ -36,7 +36,7 @@ ARPING_DEFAULT_DEVICE= |
642 |
- |
643 |
- # Libgcrypt (for MD5) for ping6 [yes|no|static] |
644 |
- USE_GCRYPT=yes |
645 |
--# Crypto library for ping6 [shared|static] |
646 |
-+# Crypto library for ping6 [shared|static|no] |
647 |
- USE_CRYPTO=shared |
648 |
- # Resolv library for ping6 [yes|static] |
649 |
- USE_RESOLV=yes |
650 |
-@@ -63,7 +63,10 @@ ifneq ($(USE_GCRYPT),no) |
651 |
- LIB_CRYPTO = $(call FUNC_LIB,$(USE_GCRYPT),$(LDFLAG_GCRYPT)) |
652 |
- DEF_CRYPTO = -DUSE_GCRYPT |
653 |
- else |
654 |
-+ifneq ($(USE_CRYPTO),no) |
655 |
- LIB_CRYPTO = $(call FUNC_LIB,$(USE_CRYPTO),$(LDFLAG_CRYPTO)) |
656 |
-+ DEF_CRYPTO = -DUSE_OPENSSL |
657 |
-+endif |
658 |
- endif |
659 |
- |
660 |
- # USE_RESOLV: LIB_RESOLV |
661 |
-diff --git a/iputils_md5dig.h b/iputils_md5dig.h |
662 |
-index 4cec866..d6c4d46 100644 |
663 |
---- a/iputils_md5dig.h |
664 |
-+++ b/iputils_md5dig.h |
665 |
-@@ -5,8 +5,10 @@ |
666 |
- # include <stdlib.h> |
667 |
- # include <gcrypt.h> |
668 |
- # define IPUTILS_MD5DIG_LEN 16 |
669 |
--#else |
670 |
-+# define USE_CRYPTO |
671 |
-+#elif defined(USE_OPENSSL) |
672 |
- # include <openssl/md5.h> |
673 |
-+# define USE_CRYPTO |
674 |
- #endif |
675 |
- |
676 |
- #ifdef USE_GCRYPT |
677 |
-diff --git a/ping6.c b/ping6.c |
678 |
-index 7085f31..7b7c1af 100644 |
679 |
---- a/ping6.c |
680 |
-+++ b/ping6.c |
681 |
-@@ -324,6 +324,7 @@ static void niquery_init_nonce(void) |
682 |
- #if !PING6_NONCE_MEMORY |
683 |
- static int niquery_nonce(__u8 *nonce, int fill) |
684 |
- { |
685 |
-+# ifdef USE_CRYPTO |
686 |
- static __u8 digest[MD5_DIGEST_LENGTH]; |
687 |
- static int seq = -1; |
688 |
- |
689 |
-@@ -346,6 +347,10 @@ static int niquery_nonce(__u8 *nonce, int fill) |
690 |
- return -1; |
691 |
- return ntohsp((__u16 *)nonce); |
692 |
- } |
693 |
-+# else |
694 |
-+ fprintf(stderr, "ping6: function not available; crypto disabled\n"); |
695 |
-+ exit(3); |
696 |
-+# endif |
697 |
- } |
698 |
- #endif |
699 |
- |
700 |
-@@ -500,6 +505,7 @@ static int niquery_option_subject_addr_handler(int index, const char *arg) |
701 |
- |
702 |
- static int niquery_option_subject_name_handler(int index, const char *arg) |
703 |
- { |
704 |
-+#ifdef USE_CRYPTO |
705 |
- static char nigroup_buf[INET6_ADDRSTRLEN + 1 + IFNAMSIZ]; |
706 |
- unsigned char *dnptrs[2], **dpp, **lastdnptr; |
707 |
- int n; |
708 |
-@@ -625,6 +631,10 @@ errexit: |
709 |
- free(idn); |
710 |
- free(name); |
711 |
- exit(1); |
712 |
-+#else |
713 |
-+ fprintf(stderr, "ping6: function not available; crypto disabled\n"); |
714 |
-+ exit(3); |
715 |
-+#endif |
716 |
- } |
717 |
- |
718 |
- int niquery_option_help_handler(int index, const char *arg) |
719 |
--- |
720 |
-2.3.5 |
721 |
- |
722 |
|
723 |
diff --git a/net-misc/iputils/files/iputils-99999999-tftpd-syslog.patch b/net-misc/iputils/files/iputils-99999999-tftpd-syslog.patch |
724 |
deleted file mode 100644 |
725 |
index ad34f3b..0000000 |
726 |
--- a/net-misc/iputils/files/iputils-99999999-tftpd-syslog.patch |
727 |
+++ /dev/null |
728 |
@@ -1,38 +0,0 @@ |
729 |
-From e88ed3752872d7c7ca37d95eb4d434ca4d3c4eae Mon Sep 17 00:00:00 2001 |
730 |
-From: Mike Frysinger <vapier@g.o> |
731 |
-Date: Sat, 19 Apr 2014 10:39:39 -0400 |
732 |
-Subject: [PATCH iputils] tftpd: fix syslog setup |
733 |
- |
734 |
-Commit d81a44625b04d487c895473aa77af13420b7afdd added support for checking |
735 |
-the set*id calls, but would call syslog() before it had called openlog(). |
736 |
-Move the call up earlier to fix that. |
737 |
- |
738 |
-Signed-off-by: Mike Frysinger <vapier@g.o> |
739 |
---- |
740 |
- tftpd.c | 3 ++- |
741 |
- 1 file changed, 2 insertions(+), 1 deletion(-) |
742 |
- |
743 |
-diff --git a/tftpd.c b/tftpd.c |
744 |
-index e3af2f4..7ddc8eb 100644 |
745 |
---- a/tftpd.c |
746 |
-+++ b/tftpd.c |
747 |
-@@ -109,6 +109,8 @@ int main(int ac, char **av) |
748 |
- register int n = 0; |
749 |
- int on = 1; |
750 |
- |
751 |
-+ openlog("tftpd", LOG_PID, LOG_DAEMON); |
752 |
-+ |
753 |
- /* Sanity. If parent forgot to setuid() on us. */ |
754 |
- if (geteuid() == 0) { |
755 |
- if (setgid(65534)) { |
756 |
-@@ -125,7 +127,6 @@ int main(int ac, char **av) |
757 |
- while (ac-- > 0 && n < MAXARG) |
758 |
- dirs[n++] = *av++; |
759 |
- |
760 |
-- openlog("tftpd", LOG_PID, LOG_DAEMON); |
761 |
- if (ioctl(0, FIONBIO, &on) < 0) { |
762 |
- syslog(LOG_ERR, "ioctl(FIONBIO): %m\n"); |
763 |
- exit(1); |
764 |
--- |
765 |
-2.3.5 |
766 |
- |
767 |
|
768 |
diff --git a/net-misc/iputils/files/rarpd.conf.d b/net-misc/iputils/files/rarpd.conf.d |
769 |
deleted file mode 100644 |
770 |
index ef7fc48..0000000 |
771 |
--- a/net-misc/iputils/files/rarpd.conf.d |
772 |
+++ /dev/null |
773 |
@@ -1,8 +0,0 @@ |
774 |
-# Config file for /etc/init.d/rarpd |
775 |
- |
776 |
-# You probably want to select the interface for this to listen on. |
777 |
-# By default it uses loopback which most likely won't help. |
778 |
-RARPD_IFACE="lo" |
779 |
- |
780 |
-# See the rarpd(8) manpage for more info. |
781 |
-RARPD_OPTS="-b /tftpboot" |
782 |
|
783 |
diff --git a/net-misc/iputils/files/rarpd.init.d b/net-misc/iputils/files/rarpd.init.d |
784 |
deleted file mode 100644 |
785 |
index 27081fc..0000000 |
786 |
--- a/net-misc/iputils/files/rarpd.init.d |
787 |
+++ /dev/null |
788 |
@@ -1,19 +0,0 @@ |
789 |
-#!/sbin/openrc-run |
790 |
-# Copyright 1999-2015 Gentoo Foundation |
791 |
-# Distributed under the terms of the GNU General Public License v2 |
792 |
- |
793 |
-pidfile="/var/run/rarpd.pid" |
794 |
-command="/usr/sbin/rarpd" |
795 |
-# The -d option keeps it from forking. This way s-s-d can do the fork and |
796 |
-# set up the pidfile with the right value below. |
797 |
-command_args="-d ${RARPD_OPTS} ${RARPD_IFACE}" |
798 |
-start_stop_daemon_args="--background --make-pidfile" |
799 |
- |
800 |
-start_pre() { |
801 |
- if [ ! -f /etc/ethers ] ; then |
802 |
- eerror "Please create /etc/ethers with the following content:" |
803 |
- eerror "[MAC address] [name or IP]" |
804 |
- return 1 |
805 |
- fi |
806 |
- return 0 |
807 |
-} |
808 |
|
809 |
diff --git a/net-misc/iputils/iputils-20151218.ebuild b/net-misc/iputils/iputils-20151218.ebuild |
810 |
deleted file mode 100644 |
811 |
index ffa652d..0000000 |
812 |
--- a/net-misc/iputils/iputils-20151218.ebuild |
813 |
+++ /dev/null |
814 |
@@ -1,166 +0,0 @@ |
815 |
-# Copyright 1999-2017 Gentoo Foundation |
816 |
-# Distributed under the terms of the GNU General Public License v2 |
817 |
- |
818 |
-# For released versions, we precompile the man/html pages and store |
819 |
-# them in a tarball on our mirrors. This avoids ugly issues while |
820 |
-# building stages, and when the jade/sgml packages are broken (which |
821 |
-# seems to be more common than would be nice). |
822 |
- |
823 |
-EAPI=5 |
824 |
- |
825 |
-inherit flag-o-matic eutils toolchain-funcs fcaps |
826 |
-if [[ ${PV} == "99999999" ]] ; then |
827 |
- EGIT_REPO_URI="git://www.linux-ipv6.org/gitroot/iputils" |
828 |
- inherit git-2 |
829 |
-else |
830 |
- SRC_URI="http://www.skbuff.net/iputils/iputils-s${PV}.tar.bz2 |
831 |
- https://dev.gentoo.org/~polynomial-c/iputils-s${PV}-manpages.tar.xz" |
832 |
- KEYWORDS="alpha amd64 arm arm64 hppa ia64 m68k ~mips ppc ppc64 s390 sh sparc x86 ~ppc-aix ~amd64-linux ~x86-linux" |
833 |
-fi |
834 |
- |
835 |
-DESCRIPTION="Network monitoring tools including ping and ping6" |
836 |
-HOMEPAGE="https://wiki.linuxfoundation.org/networking/iputils" |
837 |
- |
838 |
-LICENSE="BSD GPL-2+ rdisc" |
839 |
-SLOT="0" |
840 |
-IUSE="+arping caps clockdiff doc gcrypt idn ipv6 libressl rarpd rdisc SECURITY_HAZARD ssl static tftpd tracepath traceroute" |
841 |
- |
842 |
-LIB_DEPEND="caps? ( sys-libs/libcap[static-libs(+)] ) |
843 |
- idn? ( net-dns/libidn[static-libs(+)] ) |
844 |
- ipv6? ( ssl? ( |
845 |
- gcrypt? ( dev-libs/libgcrypt:0=[static-libs(+)] ) |
846 |
- !gcrypt? ( |
847 |
- !libressl? ( dev-libs/openssl:0[static-libs(+)] ) |
848 |
- libressl? ( dev-libs/libressl[static-libs(+)] ) |
849 |
- ) |
850 |
- ) )" |
851 |
-RDEPEND="arping? ( !net-misc/arping ) |
852 |
- rarpd? ( !net-misc/rarpd ) |
853 |
- traceroute? ( !net-analyzer/traceroute ) |
854 |
- !static? ( ${LIB_DEPEND//\[static-libs(+)]} )" |
855 |
-DEPEND="${RDEPEND} |
856 |
- static? ( ${LIB_DEPEND} ) |
857 |
- virtual/os-headers" |
858 |
-if [[ ${PV} == "99999999" ]] ; then |
859 |
- DEPEND+=" |
860 |
- app-text/openjade |
861 |
- dev-perl/SGMLSpm |
862 |
- app-text/docbook-sgml-dtd |
863 |
- app-text/docbook-sgml-utils |
864 |
- " |
865 |
-fi |
866 |
- |
867 |
-S=${WORKDIR}/${PN}-s${PV} |
868 |
- |
869 |
-PATCHES=( |
870 |
- # musl patches |
871 |
- "${FILESDIR}"/${PN}-20121221-fix-musl-headers.patch |
872 |
- "${FILESDIR}"/${PN}-20121221-add-bits_types_h.patch |
873 |
- "${FILESDIR}"/${PN}-20121221-remove-rdisc-glibc-assumption.patch |
874 |
- "${FILESDIR}"/${PN}-20121221-fix-init-elemnt.patch |
875 |
- "${FILESDIR}"/${PN}-20121221-fix-header-order.patch |
876 |
- "${FILESDIR}"/${PN}-20121221-missing-AI_IDN-NI_IDN.patch |
877 |
- |
878 |
- "${FILESDIR}"/021109-uclibc-no-ether_ntohost.patch |
879 |
- "${FILESDIR}"/${PN}-99999999-openssl.patch #335436 |
880 |
- "${FILESDIR}"/${PN}-99999999-tftpd-syslog.patch |
881 |
- "${FILESDIR}"/${PN}-20121221-makefile.patch |
882 |
- "${FILESDIR}"/${PN}-20121221-parallel-doc.patch |
883 |
- "${FILESDIR}"/${PN}-20121221-strtod.patch #472592 |
884 |
-) |
885 |
- |
886 |
-src_prepare() { |
887 |
- use SECURITY_HAZARD && PATCHES+=( "${FILESDIR}"/${PN}-20071127-nonroot-floodping.patch ) |
888 |
- epatch "${PATCHES[@]}" |
889 |
-} |
890 |
- |
891 |
-src_configure() { |
892 |
- use static && append-ldflags -static |
893 |
- |
894 |
- IPV4_TARGETS=( |
895 |
- ping |
896 |
- $(for v in arping clockdiff rarpd rdisc tftpd tracepath ; do usev ${v} ; done) |
897 |
- ) |
898 |
- IPV6_TARGETS=( |
899 |
- ping6 |
900 |
- $(usex tracepath 'tracepath6' '') |
901 |
- $(usex traceroute 'traceroute6' '') |
902 |
- ) |
903 |
- use ipv6 || IPV6_TARGETS=() |
904 |
-} |
905 |
- |
906 |
-ldflag_resolv() { |
907 |
- # See if the system includes a libresolv. #584132 |
908 |
- echo "main(){}" > "${T}"/resolv.c |
909 |
- if ${CC} ${CFLAGS} ${LDFLAGS} "${T}"/resolv.c -lresolv -o "${T}"/resolv 2>/dev/null ; then |
910 |
- echo -lresolv |
911 |
- fi |
912 |
-} |
913 |
- |
914 |
-src_compile() { |
915 |
- tc-export CC |
916 |
- emake \ |
917 |
- USE_CAP=$(usex caps) \ |
918 |
- USE_IDN=$(usex idn) \ |
919 |
- USE_GCRYPT=$(usex gcrypt) \ |
920 |
- USE_CRYPTO=$(usex ssl) \ |
921 |
- LDFLAG_RESOLV=$(ldflag_resolv) \ |
922 |
- IPV4_TARGETS="${IPV4_TARGETS[*]}" \ |
923 |
- IPV6_TARGETS="${IPV6_TARGETS[*]}" |
924 |
- |
925 |
- if [[ ${PV} == "99999999" ]] ; then |
926 |
- emake html man |
927 |
- fi |
928 |
-} |
929 |
- |
930 |
-src_install() { |
931 |
- into / |
932 |
- dobin ping $(usex ipv6 'ping6' '') |
933 |
- use ipv6 && dosym ping.8 /usr/share/man/man8/ping6.8 |
934 |
- doman doc/ping.8 |
935 |
- |
936 |
- if use arping ; then |
937 |
- dobin arping |
938 |
- doman doc/arping.8 |
939 |
- fi |
940 |
- |
941 |
- into /usr |
942 |
- |
943 |
- local u |
944 |
- for u in clockdiff rarpd rdisc tftpd tracepath ; do |
945 |
- if use ${u} ; then |
946 |
- case ${u} in |
947 |
- clockdiff) dobin ${u};; |
948 |
- *) dosbin ${u};; |
949 |
- esac |
950 |
- doman doc/${u}.8 |
951 |
- fi |
952 |
- done |
953 |
- |
954 |
- if use tracepath && use ipv6 ; then |
955 |
- dosbin tracepath6 |
956 |
- dosym tracepath.8 /usr/share/man/man8/tracepath6.8 |
957 |
- fi |
958 |
- |
959 |
- if use traceroute && use ipv6 ; then |
960 |
- dosbin traceroute6 |
961 |
- doman doc/traceroute6.8 |
962 |
- fi |
963 |
- |
964 |
- if use rarpd ; then |
965 |
- newinitd "${FILESDIR}"/rarpd.init.d rarpd |
966 |
- newconfd "${FILESDIR}"/rarpd.conf.d rarpd |
967 |
- fi |
968 |
- |
969 |
- dodoc INSTALL RELNOTES |
970 |
- |
971 |
- use doc && dohtml doc/*.html |
972 |
-} |
973 |
- |
974 |
-pkg_postinst() { |
975 |
- fcaps cap_net_raw \ |
976 |
- bin/ping \ |
977 |
- $(usex ipv6 'bin/ping6' '') \ |
978 |
- $(usex arping 'bin/arping' '') \ |
979 |
- $(usex clockdiff 'usr/bin/clockdiff' '') |
980 |
-} |
981 |
|
982 |
diff --git a/net-misc/iputils/metadata.xml b/net-misc/iputils/metadata.xml |
983 |
deleted file mode 100644 |
984 |
index 36b0ace..0000000 |
985 |
--- a/net-misc/iputils/metadata.xml |
986 |
+++ /dev/null |
987 |
@@ -1,23 +0,0 @@ |
988 |
-<?xml version="1.0" encoding="UTF-8"?> |
989 |
-<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd"> |
990 |
-<pkgmetadata> |
991 |
- <maintainer type="project"> |
992 |
- <email>base-system@g.o</email> |
993 |
- <name>Gentoo Base System</name> |
994 |
- </maintainer> |
995 |
- <use> |
996 |
- <flag name="arping">Build and install arping -- tool for sending ARP requests to peers (see also <pkg>net-analyzer/arping</pkg>)</flag> |
997 |
- <flag name="clockdiff">Build and install clockdiff -- tool for comparing clocks via ICMP packets</flag> |
998 |
- <flag name="gcrypt">Use <pkg>dev-libs/libgcrypt</pkg> for md5 support</flag> |
999 |
- <flag name="rarpd">Build and install rarpd -- server for handling RARP (reverse ARP) requests; generally only used by old systems</flag> |
1000 |
- <flag name="rdisc">Build and install rdisc -- server for the client side of the ICMP router discover protocol</flag> |
1001 |
- <flag name="tftpd">Build and install tftpd -- server for the Trivial File Transfer Protocol (see also <pkg>net-ftp/tftp-hpa</pkg>)</flag> |
1002 |
- <flag name="tracepath">Build and install tracepath -- tool for tracing network paths for discovering MTU values</flag> |
1003 |
- <flag name="traceroute">Build and install traceroute -- tool for tracing network paths (see also <pkg>net-analyzer/traceroute</pkg>)</flag> |
1004 |
- <flag name="SECURITY_HAZARD">Allow non-root users to flood (ping -f). This is generally a very bad idea.</flag> |
1005 |
- </use> |
1006 |
- <upstream> |
1007 |
- <remote-id type="cpe">cpe:/a:skbuff:iputils</remote-id> |
1008 |
- <remote-id type="github">iputils/iputils</remote-id> |
1009 |
- </upstream> |
1010 |
-</pkgmetadata> |