tangled
alpha
login
or
join now
pyrox.dev
/
nixpkgs
lol
0
fork
atom
overview
issues
pulls
pipelines
Update mtr to 0.85, and allow building on any unix
John Wiegley
12 years ago
86a89a41
7ce743b4
+225
-5
2 changed files
expand all
collapse all
unified
split
pkgs
tools
networking
mtr
default.nix
edd425.patch
+7
-5
pkgs/tools/networking/mtr/default.nix
···
10
10
(builtins.attrNames (builtins.removeAttrs x helperArgNames));
11
11
sourceInfo = rec {
12
12
baseName="mtr";
13
13
-
version="0.82";
13
13
+
version="0.85";
14
14
name="${baseName}-${version}";
15
15
url="ftp://ftp.bitwizard.nl/${baseName}/${name}.tar.gz";
16
16
-
hash="185nx4y6xn7vv6l3pbyc0ljmwfl4si4zszwad1jkbq1scb4mgd7k";
16
16
+
hash="1jqrz8mil3lraaqgc87dyvx8d4bf3vq232pfx9mksxnkbphp4qvd";
17
17
};
18
18
in
19
19
rec {
···
24
24
25
25
inherit (sourceInfo) name version;
26
26
inherit buildInputs;
27
27
+
28
28
+
patches = [ ./edd425.patch ];
27
29
28
30
/* doConfigure should be removed if not needed */
29
29
-
phaseNames = ["doConfigure" "doMakeInstall"];
30
30
-
31
31
+
phaseNames = ["doConfigure" "doPatch" "doMakeInstall"];
32
32
+
31
33
meta = {
32
34
description = "A network diagnostics tool";
33
35
maintainers = with a.lib.maintainers;
···
35
37
raskin
36
38
];
37
39
platforms = with a.lib.platforms;
38
38
-
linux;
40
40
+
unix;
39
41
license = a.lib.licenses.gpl2;
40
42
};
41
43
passthru = {
+218
pkgs/tools/networking/mtr/edd425.patch
···
1
1
+
diff --git a/asn.c b/asn.c
2
2
+
index eac8d5e..33622ca 100644
3
3
+
--- a/asn.c
4
4
+
+++ b/asn.c
5
5
+
@@ -16,6 +16,8 @@
6
6
+
Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
7
7
+
*/
8
8
+
9
9
+
+#include "config.h"
10
10
+
+
11
11
+
#include <unistd.h>
12
12
+
#include <stdio.h>
13
13
+
#include <stdlib.h>
14
14
+
@@ -35,7 +37,6 @@
15
15
+
#include <sys/socket.h>
16
16
+
#include <search.h>
17
17
+
18
18
+
-#include "config.h"
19
19
+
#include "mtr.h"
20
20
+
#include "asn.h"
21
21
+
22
22
+
diff --git a/curses.c b/curses.c
23
23
+
index eacc40d..b96daee 100644
24
24
+
--- a/curses.c
25
25
+
+++ b/curses.c
26
26
+
@@ -16,7 +16,8 @@
27
27
+
Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
28
28
+
*/
29
29
+
30
30
+
-#include <config.h>
31
31
+
+#include "config.h"
32
32
+
+
33
33
+
#include <strings.h>
34
34
+
#include <unistd.h>
35
35
+
36
36
+
diff --git a/display.c b/display.c
37
37
+
index aa369ee..3545467 100644
38
38
+
--- a/display.c
39
39
+
+++ b/display.c
40
40
+
@@ -16,7 +16,8 @@
41
41
+
Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
42
42
+
*/
43
43
+
44
44
+
-#include <config.h>
45
45
+
+#include "config.h"
46
46
+
+
47
47
+
#include <stdio.h>
48
48
+
#include <stdlib.h>
49
49
+
#include <sys/types.h>
50
50
+
diff --git a/dns.c b/dns.c
51
51
+
index e89fd4b..4076b71 100644
52
52
+
--- a/dns.c
53
53
+
+++ b/dns.c
54
54
+
@@ -22,7 +22,8 @@
55
55
+
Released under GPL, as above.
56
56
+
*/
57
57
+
58
58
+
-#include <config.h>
59
59
+
+#include "config.h"
60
60
+
+
61
61
+
#include <sys/types.h>
62
62
+
#include <sys/time.h>
63
63
+
#include <sys/select.h>
64
64
+
diff --git a/getopt.c b/getopt.c
65
65
+
index 3d43e26..e2f8758 100644
66
66
+
--- a/getopt.c
67
67
+
+++ b/getopt.c
68
68
+
@@ -27,7 +27,7 @@
69
69
+
#endif
70
70
+
71
71
+
#ifdef HAVE_CONFIG_H
72
72
+
-#include <config.h>
73
73
+
+#include "config.h"
74
74
+
#endif
75
75
+
76
76
+
#if !defined (__STDC__) || !__STDC__
77
77
+
diff --git a/getopt1.c b/getopt1.c
78
78
+
index bccf8b2..0a2d405 100644
79
79
+
--- a/getopt1.c
80
80
+
+++ b/getopt1.c
81
81
+
@@ -16,7 +16,7 @@
82
82
+
Foundation, 675 Mass Ave, Cambridge, MA 02139, USA. */
83
83
+
84
84
+
#ifdef HAVE_CONFIG_H
85
85
+
-#include <config.h>
86
86
+
+#include "config.h"
87
87
+
#endif
88
88
+
89
89
+
#include "getopt.h"
90
90
+
diff --git a/gtk.c b/gtk.c
91
91
+
index 38ed507..7faa132 100644
92
92
+
--- a/gtk.c
93
93
+
+++ b/gtk.c
94
94
+
@@ -17,7 +17,7 @@
95
95
+
Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
96
96
+
*/
97
97
+
98
98
+
-#include <config.h>
99
99
+
+#include "config.h"
100
100
+
101
101
+
#include <stdio.h>
102
102
+
#include <stdlib.h>
103
103
+
diff --git a/mtr.c b/mtr.c
104
104
+
index 50eb464..416b744 100644
105
105
+
--- a/mtr.c
106
106
+
+++ b/mtr.c
107
107
+
@@ -16,19 +16,21 @@
108
108
+
Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
109
109
+
*/
110
110
+
111
111
+
+#include "config.h"
112
112
+
+
113
113
+
#include <sys/types.h>
114
114
+
-#include <config.h>
115
115
+
-#include <netdb.h>
116
116
+
#include <stdio.h>
117
117
+
#include <stdlib.h>
118
118
+
#include <string.h>
119
119
+
-#include <netinet/in.h>
120
120
+
-#include <sys/socket.h>
121
121
+
#include <unistd.h>
122
122
+
-#include <strings.h>
123
123
+
-#include <time.h>
124
124
+
#include <errno.h>
125
125
+
#include <string.h>
126
126
+
+#include <strings.h>
127
127
+
+
128
128
+
+#include <netdb.h>
129
129
+
+#include <netinet/in.h>
130
130
+
+#include <sys/socket.h>
131
131
+
+#include <time.h>
132
132
+
#include <ctype.h>
133
133
+
#include <assert.h>
134
134
+
#include <fcntl.h>
135
135
+
diff --git a/net.c b/net.c
136
136
+
index 1c8d28f..d648804 100644
137
137
+
--- a/net.c
138
138
+
+++ b/net.c
139
139
+
@@ -16,7 +16,7 @@
140
140
+
Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
141
141
+
*/
142
142
+
143
143
+
-#include <config.h>
144
144
+
+#include "config.h"
145
145
+
146
146
+
#if defined(HAVE_SYS_XTI_H)
147
147
+
#include <sys/xti.h>
148
148
+
@@ -1562,4 +1562,4 @@ void net_harvest_fds(void)
149
149
+
net_add_fds(&writefd, &maxfd);
150
150
+
select(maxfd, NULL, &writefd, NULL, &tv);
151
151
+
net_process_fds(&writefd);
152
152
+
-}
153
153
+
\ No newline at end of file
154
154
+
+}
155
155
+
diff --git a/raw.c b/raw.c
156
156
+
index 8b0df47..0e1f4f4 100644
157
157
+
--- a/raw.c
158
158
+
+++ b/raw.c
159
159
+
@@ -18,7 +18,8 @@
160
160
+
Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
161
161
+
*/
162
162
+
163
163
+
-#include <config.h>
164
164
+
+#include "config.h"
165
165
+
+
166
166
+
#include <ctype.h>
167
167
+
#include <stdlib.h>
168
168
+
#include <stdio.h>
169
169
+
@@ -27,7 +28,6 @@
170
170
+
#include <netinet/in.h>
171
171
+
#include <arpa/inet.h>
172
172
+
173
173
+
-
174
174
+
#include "mtr.h"
175
175
+
#include "raw.h"
176
176
+
#include "net.h"
177
177
+
diff --git a/report.c b/report.c
178
178
+
index 71040e4..39b2fb2 100644
179
179
+
--- a/report.c
180
180
+
+++ b/report.c
181
181
+
@@ -16,7 +16,8 @@
182
182
+
Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
183
183
+
*/
184
184
+
185
185
+
-#include <config.h>
186
186
+
+#include "config.h"
187
187
+
+
188
188
+
#include <sys/types.h>
189
189
+
#include <stdio.h>
190
190
+
#include <netdb.h>
191
191
+
diff --git a/select.c b/select.c
192
192
+
index 31bfd5f..7553675 100644
193
193
+
--- a/select.c
194
194
+
+++ b/select.c
195
195
+
@@ -16,7 +16,8 @@
196
196
+
Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
197
197
+
*/
198
198
+
199
199
+
-#include <config.h>
200
200
+
+#include "config.h"
201
201
+
+
202
202
+
#include <sys/types.h>
203
203
+
#include <sys/time.h>
204
204
+
#include <stdlib.h>
205
205
+
diff --git a/split.c b/split.c
206
206
+
index 642353e..5ead235 100644
207
207
+
--- a/split.c
208
208
+
+++ b/split.c
209
209
+
@@ -20,7 +20,8 @@
210
210
+
Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
211
211
+
*/
212
212
+
213
213
+
-#include <config.h>
214
214
+
+#include "config.h"
215
215
+
+
216
216
+
#include <ctype.h>
217
217
+
#include <stdlib.h>
218
218
+
#include <stdio.h>