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

Revision 6401, 16.1 KB checked in by Takemikaduchi, 12 years ago (diff)

new upstream release

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