-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathmtr.spec
366 lines (279 loc) · 11.3 KB
/
mtr.spec
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
Summary: A network diagnostic tool
Name: mtr
Version: 0.75
Release: 5%{?dist}
Epoch: 2
Group: Applications/Internet
License: GPLv2+
URL: http://www.BitWizard.nl/mtr
Source: ftp://ftp.bitwizard.nl/mtr/%{name}-%{version}.tar.gz
Source1: xmtr.consolehelper
Source2: xmtr.pam
Source3: net-x%{name}.desktop
Patch0: mtr-0.75-fd-flags.path
BuildRequires: ncurses-devel gtk2-devel desktop-file-utils
Buildroot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
%description
Mtr is a network diagnostic tool that combines ping and traceroute
into one program. Mtr provides two interfaces: an ncurses interface,
useful for using Mtr from a telnet session; and a GTK+ interface for X
(provided in the mtr-gtk package).
%package gtk
Summary: The GTK+ interface for mtr
Group: Applications/Internet
Requires: mtr = %{epoch}:%{version}-%{release}
Requires: usermode >= 1.37
%description gtk
The mtr-gtk package provides the GTK+ interface for the mtr network
diagnostic tool.
%prep
%setup -q
%patch0 -p1 -b .fd-flags
%build
%configure --enable-gtk2
make %{?_smp_mflags} && mv mtr xmtr && make distclean
%configure --without-gtk
make %{?_smp_mflags}
%install
rm -rf $RPM_BUILD_ROOT
mkdir -p $RPM_BUILD_ROOT/%{_bindir}
mkdir -p $RPM_BUILD_ROOT/%{_sbindir}
mkdir -p $RPM_BUILD_ROOT/%{_datadir}/pixmaps
mkdir -p $RPM_BUILD_ROOT/%{_mandir}/man8
install -m 0755 mtr $RPM_BUILD_ROOT/%{_sbindir}/mtr
make DESTDIR=$RPM_BUILD_ROOT install
install -m 0755 xmtr $RPM_BUILD_ROOT/%{_bindir}/xmtr.bin
install -m 644 img/mtr_icon.xpm $RPM_BUILD_ROOT/usr/share/pixmaps
mkdir -p $RPM_BUILD_ROOT/%{_sysconfdir}/security/console.apps
install -m 644 %{SOURCE1} $RPM_BUILD_ROOT/%{_sysconfdir}/security/console.apps/xmtr
mkdir -p $RPM_BUILD_ROOT/%{_sysconfdir}/pam.d
install -m 644 %{SOURCE2} $RPM_BUILD_ROOT/etc/pam.d/xmtr
mkdir -p $RPM_BUILD_ROOT/%{_bindir}
ln -fs consolehelper $RPM_BUILD_ROOT/%{_bindir}/xmtr
mkdir -p $RPM_BUILD_ROOT/%{_datadir}/applications
desktop-file-install --vendor="fedora" \
--dir=${RPM_BUILD_ROOT}/%{_datadir}/applications \
%{SOURCE3}
%clean
rm -rf $RPM_BUILD_ROOT
%files
%defattr(-,root,root,-)
%doc AUTHORS COPYING FORMATS NEWS README SECURITY
%attr(0755,root,root) %{_sbindir}/mtr
%{_mandir}/man8/*
%files gtk
%defattr(-,root,root,-)
%{_datadir}/applications/fedora-net-x%{name}.desktop
%attr(0755,root,root) %{_bindir}/xmtr.bin
%{_bindir}/xmtr
%config(noreplace) %{_sysconfdir}/pam.d/*
%config(noreplace) %{_sysconfdir}/security/console.apps/*
%{_datadir}/pixmaps/mtr_icon.xpm
%changelog
* Fri Sep 25 2009 Adam Tkac <atkac redhat com> 2:0.75-5
- remove unneeded build requires (#525547)
* Sat Jul 25 2009 Fedora Release Engineering <[email protected]> - 2:0.75-4
- Rebuilt for https://fedoraproject.org/wiki/Fedora_12_Mass_Rebuild
* Wed Feb 25 2009 Fedora Release Engineering <[email protected]> - 2:0.75-3
- Rebuilt for https://fedoraproject.org/wiki/Fedora_11_Mass_Rebuild
* Wed Oct 29 2008 Zdenek Prikryl <[email protected]> - 2:0.75-2
- Fixed setting socket flags in ipv4 only environment (#467964)
* Tue Sep 23 2008 Zdenek Prikryl <[email protected]> - 2:0.75-1
- Updated to 0.75
- Removed confusing underflow patch
- Removed format patch bacause of -w option
* Thu Sep 09 2008 Zdenek Prikryl <[email protected]> - 2:0.74-1
- Updated to 0.74
* Tue Sep 02 2008 Zdenek Prikryl <[email protected]> - 2:0.73-2
- Minor fix in the patch underflow
* Wed May 21 2008 Zdenek Prikryl <[email protected]> - 2:0.73-1
- Updated to 0.73
- Fixed mtr-0.69-CVE-2002-0497.patch
- Added build requirement for GTK+
* Tue Feb 19 2008 Fedora Release Engineering <[email protected]> - 2:0.72-4
- Autorebuild for GCC 4.3
* Fri Aug 24 2007 Marcela Maslanova <[email protected]> - 2:0.72-3
- rebuild for mas rebuild
- check license
* Thu Mar 15 2007 Karsten Hopp <[email protected]> 2:0.72-2
- rebuild with current gtk2 to add png support (#232013)
* Thu Feb 22 2007 Marcela Maslanova <[email protected]> - 2:0.72-1
- review
- rhbz#226164
* Wed Jul 12 2006 Jesse Keating <[email protected]> - 2:0.71-3.1
- rebuild
* Mon Jul 3 2006 Marcela Maslanova <[email protected]> - 2:0.71-3
- bugzilla #195458 – reverse-map bug in mtr and patch - resolving ipv6 hostname correctly
* Tue May 30 2006 Marcela Maslanova <[email protected]> - 2:0.71-2
- underflow solved
* Fri Mar 24 2006 Miroslav Lichvar <[email protected]> - 2:0.71-1
- update to mtr-0.71
* Thu Mar 23 2006 Miroslav Lichvar <[email protected]> - 2:0.70-1
- update to mtr-0.70
- replace s390x patch, drop automake dependency
* Fri Feb 10 2006 Jesse Keating <[email protected]> - 2:0.69-7.2.1
- bump again for double-long bug on ppc(64)
* Tue Feb 07 2006 Jesse Keating <[email protected]> - 2:0.69-7.2
- rebuilt for new gcc4.1 snapshot and glibc changes
* Fri Dec 09 2005 Jesse Keating <[email protected]>
- rebuilt
* Fri Oct 21 2005 Phil Knirsch <[email protected]> 2:0.69-7
- Fixed xmtr to be installed in /usr/bin instead of /usr/X11R6/bin (#170945)
* Mon Oct 10 2005 Phil Knirsch <[email protected]> 2:0.69-6
- Added missing gtk+-devel BuildPreReq (#168215)
* Fri Oct 7 2005 Tomas Mraz <[email protected]> 2:0.69-5
- use include instead of pam_stack in pam config
* Mon Sep 05 2005 Phil Knirsch <[email protected]> 2:0.69-4
- Made the output, especially for reports much more readable (#147865)
- Fixed --address option (#162029)
* Wed Mar 02 2005 Phil Knirsch <[email protected]> 2:0.69-3
- bump release and rebuild with gcc 4
* Thu Feb 10 2005 Karsten Hopp <[email protected]> 2:0.69-2
- build with --enable-gtk2 (John Thacker)
* Wed Feb 09 2005 Phil Knirsch <[email protected]> 2:0.69-1
- Updated to mtr-0.69
- Dropped quite a few patches
- Forewardported the CVE patch
* Mon Oct 18 2004 Phil Knirsch <[email protected]> 2:0.54-10
- rebuilt
* Wed Oct 06 2004 Phil Knirsch <[email protected]> 2:0.54-9
- Add CVE patch for security reasons (#129386)
- Add patch to fix broken --address option (#132628)
- Add patch to fix broken reverse DNS lookups for ipv6 (#134532)
* Tue Aug 24 2004 Warren Togami <[email protected]> 2:0.54-8
- #121705 and other spec cleanups
- remove redundant documentation
* Thu Jul 01 2004 Phil Knirsch <[email protected]> 0.54-7
- Fixed broken behaviour with resolver SERVFAIL results (#125392)
- Added ncurses-devel libtermcap-devel as BuildPreReq (#124553)
- Added gtk+ Requires for mtr-gtk package (#121705)
* Tue Jun 15 2004 Elliot Lee <[email protected]>
- rebuilt
* Wed Apr 21 2004 Phil Knirsch <[email protected]> 0.54-5
- Removed absolute path for Icon in desktop file (#120170)
* Mon Feb 16 2004 Phil Knirsch <[email protected]>
- Added IPv6 patch from ftp://ftp.kame.net/pub/kame/misc/mtr-054-*
- Enabled IPv6 in mtr.
- Included fix from Robert Scheck to make GTK optional in configure.
* Fri Feb 13 2004 Elliot Lee <[email protected]>
- rebuilt
* Wed Feb 04 2004 Phil Knirsch <[email protected]> 0.54-2
- Fix to build on current tree.
* Sat Oct 18 2003 Florian La Roche <[email protected]>
- update to 0.54
* Wed Jun 04 2003 Elliot Lee <[email protected]>
- rebuilt
* Wed Jan 22 2003 Tim Powers <[email protected]>
- rebuilt
* Fri Nov 29 2002 Phil Knirsch <[email protected]> 0.52-1
- Update to latest upstream version (0.52).
* Tue Nov 12 2002 Nalin Dahyabhai <[email protected]> 0.49-9
- Remove absolute paths from the PAM configuration, ensuring that the modules
for the right arch get used on multilib systems.
- Remove Icon:.
* Tue Sep 24 2002 Bernhard Rosenkraenzer <[email protected]> 0.49-7a
- Fix build on s390x
* Mon Aug 19 2002 Phil Knirsch <[email protected]> 0.49-7
- Fixed consolehelper support.
* Wed Aug 07 2002 Phil Knirsch <[email protected]> 0.49-6
- Desktop file fixes (#69550).
* Fri Jun 21 2002 Tim Powers <[email protected]> 0.49-5
- automated rebuild
* Tue Jun 18 2002 Phil Knirsch <[email protected]> 0.49-4
- Added consolehelper support to xmtr.
* Sun May 26 2002 Tim Powers <[email protected]>
- automated rebuild
* Wed May 22 2002 Phil Knirsch <[email protected]> 0.49-2
- Fixed autoFOO problems.
* Fri Mar 08 2002 Florian La Roche <[email protected]>
- 0.49 update
* Thu Mar 07 2002 Florian La Roche <[email protected]>
- 0.48 update
* Mon Jun 25 2001 Preston Brown <[email protected]>
- 0.44 bugfix release
- fix display of icon in .desktop entry
* Sun Jun 24 2001 Elliot Lee <[email protected]>
- Bump release + rebuild.
* Mon Feb 12 2001 Preston Brown <[email protected]>
- don't advertise gtk support in non-gtk binary (#27172)
* Fri Oct 20 2000 Bill Nottingham <[email protected]>
- fix autoconf check for resolver functions
* Fri Jul 21 2000 Bill Nottingham <[email protected]>
- fix group
* Wed Jul 12 2000 Prospector <[email protected]>
- automatic rebuild
* Thu Jul 6 2000 Bill Nottingham <[email protected]>
- fix setuid bit
- remove symlink
- force build of non-gtk version
* Mon Jun 19 2000 Preston Brown <[email protected]>
- disable SUID bits
- desktop entry
* Mon Jun 19 2000 Than Ngo <[email protected]>
- FHS fixes
* Fri May 26 2000 Preston Brown <[email protected]>
- adopted for Winston
* Thu Aug 19 1999 Ryan Weaver <[email protected]>
[mtr-0.41-1]
- Added afr's patch to allow disabeling of gtk without Robn's hack.
- Made report mode report the newly added extra resolution.
* Wed Aug 18 1999 Ryan Weaver <[email protected]>
- renamed mtr-gtk to xmtr
- added symlink from /usr/bin/mtr to /usr/sbin/mtr
[mtr-0.40-1]
- Fixed some problems with HPUX and SunOS.
- Included Olav Kvittem's patch to do packetsize option.
- Made the timekeeping in micro seconds.
* Wed Jun 10 1999 Ryan Weaver <[email protected]>
[mtr-0.39-1]
- Updated to version 0.39.
* Wed Jun 9 1999 Ryan Weaver <[email protected]>
[mtr-0.38-1]
- Updated to version 0.38.
* Thu Apr 15 1999 Ryan Weaver <[email protected]>
[mtr-0.37-2]
- Changed RPM headers to conform to Red Hat Contrib|Net specs.
* Mon Apr 12 1999 Ryan Weaver <[email protected]>
[mtr-0.37-1]
- v0.37
- Added Bill Bogstad's "show the local host & time" patch.
- Added R. Sparks' show-last-ping patch, submitted by Philip Kizer.
- v0.36
- Added Craigs change-the-interval-on-the-fly patch.
- Added Moritz Barsnick's "do something sensible if host not found"
patch.
- Some cleanup of both Craigs and Moritz' patches.
* Wed Apr 7 1999 Ryan Weaver <[email protected]>
[mtr-0.35-1]
- v0.35
- Added Craig Milo Rogers pause/resume for GTK patch.
- Added Craig Milo Rogers cleanup of "reset". (restart at the beginning)
- Net_open used to send a first packet. After that the display-driver
got a chance to distort the timing by taking its time to initialize.
* Mon Apr 5 1999 Ryan Weaver <[email protected]>
[mtr-0.34-1]
- v0.34
- Added Matt's nifty "use the icmp unreachables to do the timing" patch.
- Added Steve Kann's pause/resume patch.
* Wed Mar 10 1999 Ryan Weaver <[email protected]>
[mtr-0.33-1]
- v0.33
- Fixed the Linux glibc resolver problems.
- Fixed the off-by-one problem with -c option.
* Mon Mar 8 1999 Ryan Weaver <[email protected]>
[mtr-0.32-1]
- v0.32
- Fixed the FreeBSD bug detection stuff.
* Fri Mar 5 1999 Ryan Weaver <[email protected]>
[mtr-0.31-1]
- v0.31
- Fixed a few documentation issues. -- Matt
- Changed the autoconf stuff to find the resolver library on
Solaris. -- REW
- Cleaned up the autoconf.in file a bit. -- Matt.
* Thu Mar 4 1999 Ryan Weaver <[email protected]>
[mtr-0.30-1]
- Build gtk version against gtk+-1.2.0
- v0.30
- Fixed a typo in the changelog (NEWS) entry for 0.27. :-)
- added use of "MTR_OPTIONS" environment variable for defaults.