source: projects/specs/trunk/t/tcpdump/tcpdump-vl.spec @ 10104

Revision 10104, 16.3 KB checked in by Takemikaduchi, 8 years ago (diff)

VirtualBox?, caja, mate-system-monitor nmap, wireshark: new upstream release
others: rebuild

Line 
1%define tcpdump_ver     4.7.4
2%define libpcap_ver     1.7.3
3
4Summary: A network traffic monitoring tool.
5Summary(ja): ネットワークのトラフィックをモニタするツール
6Name: tcpdump
7Version: %{tcpdump_ver}
8%define tcpdump_dir     tcpdump-%{tcpdump_ver}
9%define tcpslice_dir    tcpslice
10Release: 2%{?_dist_release}
11Epoch: 1
12
13Group: Applications/System
14# XXX epoch is necessary to obsolete tcpdump-3.4a5
15License: BSD
16URL: http://www.tcpdump.org/
17
18Source0: http://www.tcpdump.org/release/tcpdump-%{tcpdump_ver}.tar.gz
19Source4: tcpslice-CVS.20010207.tar.gz
20
21Patch5: tcpdump-3.6.2-tcpslice-time.patch
22Patch10: tcpdump-4.7.3-portnumbers.patch
23Patch15: tcpdump-3.6.2-ip6opts.patch
24Patch19: tcpdump-3.8.2-rsvp-dos.patch
25Patch21: tcpdump-4.7.3-isis-dos.patch
26
27Patch70: tcpslice-CVS.20010207-bpf.patch
28
29BuildRoot: %{_tmppath}/%{name}-%{version}-root
30BuildRequires: glibc-kernheaders >= 2.2.0
31BuildRequires: openssl-devel
32BuildRequires: libpcap-devel >= %{libpcap_ver}
33BuildRequires: autoconf, automake
34
35
36Vendor: Project Vine
37Distribution: Vine Linux
38Packager: daisuke, shaolin, Takemikaduchi
39
40
41%description
42Tcpdump is a command-line tool for monitoring network traffic.
43Tcpdump can capture and display the packet headers on a particular
44network interface or on all interfaces. Tcpdump can display all of the
45packet headers, or just the ones that match particular criteria.
46
47Install tcpdump if you need a program to monitor network traffic.
48
49%description -l ja
50tcpdump はネットワークのトラフィックをモニタする、コマンドライン
51ベースのツールです。tcpdump はあるネットワークインターフェイス
52もしくは全てのネットワークインターフェイス上のパケットのヘッダを
53キャプチャして表示することができます。tcpdump は全てのパケットの
54ヘッダを表示することもできますし、ある規則に合致するものだけを
55表示することもできます。
56
57ネットワークのトラフィックをモニタする必要がある場合、tcpdump を
58インストールしてください。
59
60
61%prep
62%setup -q -c -a 4
63
64%patch5 -p1 -b .tcpslicetime
65
66pushd %tcpdump_dir
67%patch10 -p1 -b .portnumbers
68%patch15 -p1 -b .ip6opts
69%patch19 -p1 -b .rsvp-dos
70%patch21 -p1 -b .isis-dos
71popd
72
73pushd tcpslice
74%patch70 -p1 -b .bpf
75popd
76
77%build
78pushd %tcpslice_dir
79%configure
80make
81popd
82
83pushd %tcpdump_dir
84%define optflags $RPM_OPT_FLAGS -DIP_MAX_MEMBERSHIPS=20
85%configure --enable-ipv6
86%undefine optflags
87
88DEFS="-g -D_U_=\"\" -DHAVE_CONFIG_H -D_FILE_OFFSET_BITS=64 -D_LARGEFILE_SOURCE"
89%ifarch alpha sparc sparc64
90DEFS="$DEFS -DHAVE_ETHER_HOSTTON=1 -DLBL_ALIGN=1 -DHAVE_ETHER_NTOA=1"
91%endif
92%ifarch sparc sparc64
93DEFS="$DEFS -DWORDS_BIGENDIAN"
94%endif
95
96make DEFS="$DEFS"
97popd
98
99%install
100rm -rf %{buildroot}
101mkdir -p %{buildroot}%{_libdir}
102mkdir -p %{buildroot}%{_mandir}/man{3,8}
103mkdir -p %{buildroot}%{_sbindir}
104
105pushd %tcpslice_dir
106install -m755 -s tcpslice %{buildroot}%{_sbindir}
107install -m644 tcpslice.1 %{buildroot}%{_mandir}/man8/tcpslice.8
108popd
109
110pushd %tcpdump_dir
111install -m755 -s tcpdump %{buildroot}%{_sbindir}
112install -m644 tcpdump.1 %{buildroot}%{_mandir}/man8/tcpdump.8
113popd
114
115
116%clean
117rm -rf %{buildroot}
118
119
120%files
121%defattr(-,root,root)
122%doc %{name}-%{version}/README.md
123%doc %{name}-%{version}/CHANGES
124%doc %{name}-%{version}/LICENSE
125%{_sbindir}/tcpdump
126%{_sbindir}/tcpslice
127%{_mandir}/man8/tcpslice.8*
128%{_mandir}/man8/tcpdump.8*
129
130
131%changelog
132* Tue Mar 29 2016 Yoji TOYODA <bsyamato@sea.plala.or.jp> - 1:4.7.4-2
133- rebuild with openssl-1.0.2g
134
135* Sun Jun 07 2015 Yoji TOYODA <bsyamato@sea.plala.or.jp> - 1:4.7.4-1
136- new upstream release
137
138* Sun Mar 15 2015 Yoji TOYODA <bsyamato@sea.plala.or.jp> - 1:4.7.3-1
139- new upstream release
140- update Patch10 (tcpdump-4.7.3-portnumbers.patch)
141- update Patch21 (tcpdump-4.7.3-isis-dos.patch)
142- remove Patch16,17,22
143
144* Wed Jan 15 2014 Yoji TOYODA <bsyamato@sea.plala.or.jp> - 1:4.5.1-1
145- new upstream release
146
147* Fri Jun 22 2012 Yoji TOYODA <bsyamato@sea.plala.or.jp> - 1:4.3.0-1
148- new upstream release
149
150* Thu Mar 22 2012 MATSUBAYASHI Kohji <shaolin@vinelinux.org> - 1:4.1.1-4
151- rebuild
152
153* Sat Jan 29 2011 Yoji TOYODA <bsyamato@sea.plala.or.jp> 1:4.1.1-3
154- rebuild with openssl-1.0.0c
155
156* Sat Sep 18 2010 Ryoichi INAGAKI <ryo1@bc.wakwak.com> 1:4.1.1-2
157- removed pcap header direction
158- added URL tag
159
160* Sun May 23 2010 Ryoichi INAGAKI <ryo1@bc.wakwak.com> 1:4.1.1-1
161- new upstream release
162- updated Patch10
163- built with new toolchain
164
165* Sat Apr 25 2009 Ryoichi INAGAKI <ryo1@bc.wakwak.com> 1:4.0.0-2
166- spec in UTF-8
167- added BuildRequires: libpcap-devel instead of libpcap
168- changed Group to Applications/System
169
170* Thu Oct 30 2008 Satoshi IWAMOTO <satoshi.iwamoto@nifty.ne.jp> 1:4.0.0-1
171- new upstream release with libpcap 1.0.0
172
173* Mon Apr 14 2008 MATSUBAYASHI Kohji <shaolin@vinelinux.org> 1:3.9.8-2
174- built again with libpcap-0.9.8 for sure this time
175
176* Sat Apr 12 2008 Ryoichi INAGAKI <ryo1@bc.wakwak.com> 1:3.9.8-1vl5
177- new upstream release
178
179* Sat Sep  1 2007 Ryoichi INAGAKI <ryo1@bc.wakwak.com> 1:3.9.7-0vl1
180- new upstream release
181
182* Sat Jul  7 2007 Ryoichi INAGAKI <ryo1@bc.wakwak.com> 1:3.9.6-0vl1
183- new upstream release
184
185* Mon May 21 2007 MATSUBAYASHI Kohji <shaolin@vinelinux.org> 1:3.9.3-0vl3
186- rebuilt with new toolchain
187
188* Fri Aug 26 2005 Ryoichi INAGAKI <ryo1@bc.wakwak.com> 1:3.9.3-0vl2
189- dropped --with-user option
190
191* Mon Aug 22 2005 Ryoichi INAGAKI <ryo1@bc.wakwak.com> 1:3.9.3-0vl1
192- new upstream release
193- some patches are imported from fedora package
194- build with libpcap 0.9.3
195- changed BuildRequire kernel-headers to glibc-kernheaders
196
197* Sun Jun 13 2004 Daisuke SUZUKI <daisuke@linux.or.jp> 1:3.8.3-0vl1
198- new upstream release
199- some patches are imported from fedora package
200
201* Sat Oct 11 2003 Ryoichi INAGAKI <ryo1@bc.wakwak.com> 1:3.7.2-0vl1
202- updated to 3.7.2
203- fixed patches based on Redhat Rawhide
204- rebuild with libpcap-0.7.2
205- s/Copyright/License/
206
207* Fri Feb 21 2003 Daisuke SUZUKI <daisuke@linux.or.jp> 1:3.7.1-0vl2
208- split out libpcap, Requires: libpcap
209
210* Fri Feb 21 2003 Daisuke SUZUKI <daisuke@linux.or.jp> 1:3.7.1-0vl1
211- update to new upstream release tcpdump 3.7.1, arpwatch 0.7.1
212- drop unneeded patches
213- use autoconf213, automake14
214- split out arpwatch
215
216* Fri Feb 21 2003 Daisuke SUZUKI <daisuke@linux.or.jp> 1:3.6.2-13vl2
217- add patch16 to fix  print_bgp security bug
218  - errata 20030221-3
219
220* Wed Jun 12 2002 Daisuke SUZUKI <daisuke@linux.or.jp> 1:3.6.2-13vl1
221- merged with 3.6.2-13
222- fix buffer overflow for errata
223  * Thu May 16 2002 Harald Hoyer <harald@redhat.de> 12:3.6.2-13
224  - added official 3.6.3 fix
225  - fixed 6.2 compat #63113
226  * Wed Jan 23 2002 Harald Hoyer <harald@redhat.de> 12:3.6.2-12
227  - tcpdump-3.6.2-snaplen.patch added to fix #55145
228  * Tue Dec 18 2001 Harald Hoyer <harald@redhat.de> 12:3.6.2-10
229  - took old purge patch for filters
230  - fixed #54225,#58346
231  - drop root by default #49635
232  - fixed #54593
233  - fixed #57711
234
235* Thu Oct 25 2001 IWAI Masaharu <iwaim@cc.mbn.or.jp>
236- 3.6.2-9vl1
237- used PRM macros
238- changed File Name to Package Name in Prereq tag
239- marged 3.6.2-9 (RedHat7.2)
240
241  * Tue Jan 23 2001 MATSUBAYASHI 'Shaolin' Kohji <shaolin@rhythmaning.org>
242  - 3.4-19vl2
243  - use better macros
244 
245  * Thu Sep 21 2000 Yoshihiro Kajiki <kajiki@ylug.org>
246  - add libpcap-0.4-guy-gerald.patch to fix the timeout problem (by Ethereal)
247  - add Japanese summarys and descriptions
248  - modify spec file to build as a normal user
249 
250  * Thu Feb 17 2000 Bernhard Rosenkraenzer <bero@redhat.com>
251  - Compile shared libpcap with -fPIC (Bug #6342)
252 
253  * Wed Feb 02 2000 Cristian Gafton <gafton@redhat.com>
254  - fix descriptions
255  - man pages are compressed
256 
257  * Wed Dec 22 1999 Jeff Johnson <jbj@redhat.com>
258  - remove sparc64 SIOCGIFNAME hack, not needed with (at least) kernel 2.2.12-40.
259  - upgrade to ANK ss991030 snapshot with pcap magic fix (#6773).
260  - add getprotobyname lookup (#6725).
261  - getservbyname port lookup appears functional (#7569).
262  - remove uid 2090 backdoor (sorry Dave) (#7116).
263 
264  * Thu Sep 09 1999 Cristian Gafton <gafton@redhat.com>
265  - fox the pcap.h header
266 
267  * Fri Aug 20 1999 Jeff Johnson <jbj@redhat.com>
268  - prevent segfault on obscure spoofed ip header (#4634).
269 
270  * Wed Aug 18 1999 Jeff Johnson <jbj@redhat.com>
271  - add defattr to arpwatch (#4591).
272 
273  * Mon Aug 16 1999 Bill Nottingham <notting@redhat.com>
274  - initscript munging
275
276  * Sun Aug  8 1999 Jeff Johnson <jbj@redhat.com>
277  - add -DWORDS_BIGINDIAN to tcpdump compile on sparc sparc61.
278 
279  * Tue Aug  3 1999 Jeff Johnson <jbj@redhat.com>
280  - include A. Kuznetsov's patches to libpcap/tcpdump.
281  - added arpsnmp to package (#3258).
282  - arp2ethers written for different of awk (#4326).
283
284  * Sun Mar 21 1999 Cristian Gafton <gafton@redhat.com>
285  - auto rebuild in the new build environment (release 10)
286
287  * Fri Mar 19 1999 Jeff Johnson <jbj@redhat.com>
288  - strip binaries.
289 
290  * Wed Jan 13 1999 Bill Nottingham <notting@redhat.com>
291  - autoconf fixes for arm
292
293  * Tue Sep 29 1998 Jeff Johnson <jbj@redhat.com>
294  - libpcap description typo.
295
296  * Sat Sep 19 1998 Jeff Johnson <jbj@redhat.com>
297  - fix arpwatch summary line.
298 
299  * Mon Aug 17 1998 Jeff Johnson <jbj@redhat.com>
300  - enable arpwatch
301 
302  * Mon Aug  3 1998 Jeff Johnson <jbj@redhat.com>
303  - separate package for libpcap.
304  - update tcpdump to 3.4, libpcap to 0.4.
305  - added arpwatch (but disabled for now)
306 
307  * Thu May 07 1998 Prospector System <bugs@redhat.com>
308  - translations modified for de, fr, tr
309 
310  * Sat May  2 1998 Alan Cox <alan@rehat.com>
311  - Added the SACK printing fix so you can dump Linux 2.1+.
312 
313  * Tue Oct 21 1997 Erik Troan <ewt@redhat.com>
314  - updated to release 3.4a5
315  - uses a buildroot and %attr
316 
317  * Thu Jul 17 1997 Erik Troan <ewt@redhat.com>
318  - built against glibc
319
320* Fri Aug 31 2001 Harald Hoyer <harald@redhat.de> 12:3.6.2-9
321- took better fix for #52654 from tcpdump cvs
322
323* Thu Aug 30 2001 Harald Hoyer <harald@redhat.de> 11:3.6.2-8
324- fixed #52654
325
326* Thu Jul 19 2001 Harald Hoyer <harald@redhat.de> 10:3.6.2-7
327- added shared library to libpcap (#47174)
328- afs printing security patch (#49294)
329
330* Wed Jun 20 2001 Harald Hoyer <harald@redhat.de>
331- use initgroups, instead of setgroups
332
333* Mon Jun 18 2001 Harald Hoyer <harald@redhat.de>
334- added dropgroup patches (#44563)
335
336* Mon May 07 2001 Harald Hoyer <harald@redhat.de>
337- switched to Pekka's tcpdump-3.6.2 package
338- incremented epoch
339
340* Sat Apr 14 2001 Pekka Savola <pekkas@netcore.fi>
341- fix building of tcpslice on glibc 2.2.2 (time.h)
342- disable /etc/init.d requirement and fix %post scripts in arpwatch
343
344* Wed Feb 14 2001 Harald Hoyer <harald@redhat.de>
345- glibc sys/time -> time include patch
346
347* Wed Feb  7 2001 Trond Eivind Glomsr <teg@redhat.com>
348- Add space to this check
349
350* Wed Feb 07 2001 Harald Hoyer <harald@redhat.com>
351- added check for presence of /etc/sysconfig/arpwatch (#23172)
352
353* Wed Feb  7 2001 Pekka Savola <pekkas@netcore.fi>
354- update to 3.6.2, 0.6.2 and new CVS of tcpslice.
355- i18n'ize arpwatch init script
356
357* Fri Feb  2 2001 Trond Eivind Glomsr <teg@redhat.com>
358- i18nize initscript
359
360* Mon Jan 29 2001 Harald Hoyer <harald@redhat.com>
361- fixed EINTR stopping for e.g. SIGSTOP. (#22008)
362- added -u option for tcpdump (#20231)
363- new arpwatch version (#23172)
364- added "all" and "one" interface for -i (#20907)
365- added arpwatch sysconfig (#23172)
366
367* Mon Jan 22 2001 Harald Hoyer <harald@redhat.com>
368- more (potential) overflows in libpcap. #21373
369- documentation fix for #20906
370
371* Sun Jan 14 2001 Pekka Savola <pekkas@netcore.fi>
372- use --enable-ipv6
373- Add two patches from CVS to enhance 802.2 printing, and more importantly,
374  to be able to specify 'no stp'
375
376* Sat Jan 13 2001 Pekka Savola <pekkas@netcore.fi>
377- Make SMB printing output a lot more quiet unless in verbose mode.
378- Make -n resolve port/protocol numbers but not hostnames, -nn for no
379  resolving at all
380- Separate droproot patch from a more generic man/usage fix one
381- Add non-promiscuous mode -by default patch, but don't apply it by default
382
383* Thu Jan 11 2001 Pekka Savola <pekkas@netcore.fi>
384- Update to tcpdump 3.6.1 and libpcap 0.6.1 releases.
385
386* Mon Jan  8 2001 Pekka Savola <pekkas@netcore.fi>
387- Update to 20010108 CVS, disable some upstreamed patches.
388- Change some additional .1 pages to .8.
389- Add droproot patch, some --usage and man page fixes.
390
391* Mon Jan  1 2001 Pekka Savola <pekkas@netcore.fi>
392- Initial packaging with latest tcpdump.org CVS tcpdump-3.6 and libpcap-0.6.
393- add earlier print-domain.c, the latest is segfaulting
394- don't unnecesessarily include snprintf.o, it didn't compile with gcc 2.96 anyway
395- don't use savestr, require openssl, tweak tweak tweak
396- add tcpslice, patch it a bit for egcs detection
397
398* Sun Dec 31 2000 Pekka Savola <pekkas@netcore.fi>
399- tcpdump: spice up the manpage about interfaces
400- tcpdump: add 'all' and 'any' keywords to -i, saner default behaviour.
401- upgrade arpwatch to 2.1a10
402
403* Sun Nov 26 2000 Jeff Johnson <jbj@redhat.com>
404- more (potential) overflows in libpcap.
405
406* Sun Nov 12 2000 Jeff Johnson <jbj@redhat.com>
407- eliminate still more buffer overflows (from FreeBSD) (#20069).
408
409* Thu Nov  2 2000 Jeff Johnson <jbj@redhat.com>
410- eliminate more buffer overflows (from FreeBSD) (#20069).
411- 802.1q ether type incorrect (#19850).
412- add -u flag to drop arpwatch privs (#19696).
413
414* Sun Oct 15 2000 Jeff Johnson <jbj@redhat.com>
415- updated ethercodes.dat
416
417* Thu Oct 12 2000 Jeff Johnson <jbj@redhat.com>
418- fix arpwatch tmp race (#18943).
419
420* Fri Aug 11 2000 Bill Nottingham <notting@redhat.com>
421- fix condrestart
422
423* Fri Aug 11 2000 Jeff Johnson <jbj@redhat.com>
424- correct arpsnmp man pages (#15442).
425- don't print harmless ENOPROTOOPT message (#13518).
426
427* Fri Aug  4 2000 Jeff Johnson <jbj@redhat.com>
428- rebuild with final kernel headers (#13518).
429
430* Sat Jul 22 2000 Jeff Johnson <jbj@redhat.com>
431- add STP patch (#14112).
432
433* Fri Jul 14 2000 Matt Wilson <msw@redhat.com>
434- source /etc/init.d/functions
435- back out /etc/init.d/arpwatch, place file in /etc/rc.d
436- move initscript to /etc/init.d
437- changed initscript to use start() and stop() functions
438- added condrestart to init script
439- added %%post %%preun %%postun scripts to register arpwatch script
440- added Prereq: for all things needed in post/preun/postun
441
442* Wed Jul 12 2000 Prospector <bugzilla@redhat.com>
443- automatic rebuild
444
445* Tue Jul 11 2000 Jeff Johnson <jbj@redhat.com>
446- updated man page and help (pekkas@netcore.fi) (#10739 et al).
447
448* Sun Jun 18 2000 Jeff Johnson <jbj@redhat/com>
449- FHS packaging.
450
451* Tue May  9 2000 Bill Nottingham <notting@redhat.com>
452- minor tweaks for ia64 (prototypes)
453
454* Thu Feb 17 2000 Bernhard Rosenkraenzer <bero@redhat.com>
455- Compile shared libpcap with -fPIC (Bug #6342)
456
457* Wed Feb 02 2000 Cristian Gafton <gafton@redhat.com>
458- fix descriptions
459- man pages are compressed
460
461* Wed Dec 22 1999 Jeff Johnson <jbj@redhat.com>
462- remove sparc64 SIOCGIFNAME hack, not needed with (at least) kernel 2.2.12-40.
463- upgrade to ANK ss991030 snapshot with pcap magic fix (#6773).
464- add getprotobyname lookup (#6725).
465- getservbyname port lookup appears functional (#7569).
466- remove uid 2090 backdoor (sorry Dave) (#7116).
467
468* Thu Sep 09 1999 Cristian Gafton <gafton@redhat.com>
469- fox the pcap.h header
470
471* Fri Aug 20 1999 Jeff Johnson <jbj@redhat.com>
472- prevent segfault on obscure spoofed ip header (#4634).
473
474* Wed Aug 18 1999 Jeff Johnson <jbj@redhat.com>
475- add defattr to arpwatch (#4591).
476
477* Mon Aug 16 1999 Bill Nottingham <notting@redhat.com>
478- initscript munging
479
480* Sun Aug  8 1999 Jeff Johnson <jbj@redhat.com>
481- add -DWORDS_BIGINDIAN to tcpdump compile on sparc sparc61.
482
483* Tue Aug  3 1999 Jeff Johnson <jbj@redhat.com>
484- include A. Kuznetsov's patches to libpcap/tcpdump.
485- added arpsnmp to package (#3258).
486- arp2ethers written for different of awk (#4326).
487
488* Sun Mar 21 1999 Cristian Gafton <gafton@redhat.com>
489- auto rebuild in the new build environment (release 10)
490
491* Fri Mar 19 1999 Jeff Johnson <jbj@redhat.com>
492- strip binaries.
493
494* Wed Jan 13 1999 Bill Nottingham <notting@redhat.com>
495- autoconf fixes for arm
496
497* Tue Sep 29 1998 Jeff Johnson <jbj@redhat.com>
498- libpcap description typo.
499
500* Sat Sep 19 1998 Jeff Johnson <jbj@redhat.com>
501- fix arpwatch summary line.
502
503* Mon Aug 17 1998 Jeff Johnson <jbj@redhat.com>
504- enable arpwatch
505
506* Mon Aug  3 1998 Jeff Johnson <jbj@redhat.com>
507- separate package for libpcap.
508- update tcpdump to 3.4, libpcap to 0.4.
509- added arpwatch (but disabled for now)
510
511* Thu May 07 1998 Prospector System <bugs@redhat.com>
512- translations modified for de, fr, tr
513
514* Sat May  2 1998 Alan Cox <alan@rehat.com>
515- Added the SACK printing fix so you can dump Linux 2.1+.
516
517* Tue Oct 21 1997 Erik Troan <ewt@redhat.com>
518- updated to release 3.4a5
519- uses a buildroot and %attr
520
521* Thu Jul 17 1997 Erik Troan <ewt@redhat.com>
522- built against glibc
Note: See TracBrowser for help on using the repository browser.