source: projects/specs/trunk/lib/libp/libpcap/libpcap-vl.spec @ 5945

Revision 5945, 15.2 KB checked in by shaolin, 12 years ago (diff)
  • tcpdump: rebuild
  • libpcap: rebuild; remove *.a file
Line 
1%define pcap_major 1
2%define pcap_minor 1
3%define pcap_subminor 1
4%define libpcap_ver %{pcap_major}.%{pcap_minor}.%{pcap_subminor}
5
6Name: libpcap
7Summary: A system-independent interface for user-level packet capture.
8Summary(ja): ユーザレベルでパケットをキャプチャするインターフェイス
9Version: %{libpcap_ver}
10Release: 3%{?_dist_release}
11Epoch: 1
12
13Group: System Environment/Libraries
14# XXX epoch is necessary to obsolete tcpdump-3.4a5
15License: BSD
16URL: http://www.tcpdump.org/
17
18Source0: http://www.tcpdump.org/release/libpcap-%{libpcap_ver}.tar.gz
19
20BuildRoot: %{_tmppath}/%{name}-%{version}-root
21BuildRequires: kernel-headers >= 2.2.0
22BuildRequires: flex >= 2.4
23BuildRequires: bison
24BuildRequires: openssl-devel
25BuildRequires: libnl-devel
26Requires: kernel >= 2.2.0
27
28Vendor: Project Vine
29Distribution: Vine Linux
30
31%description
32Libpcap provides a portable framework for low-level network
33monitoring. Libpcap can provide network statistics collection,
34security monitoring and network debugging. Since almost every system
35vendor provides a different interface for packet capture, the libpcap
36authors created this system-independent API to ease in porting and to
37alleviate the need for several system-dependent packet capture modules
38in each application.
39
40Install libpcap if you need to do low-level network traffic monitoring
41on your network.
42
43%description -l ja
44Libpcap は低レベルでネットワークをモニタするためのポータブルなフレーム
45ワークを提供します.Libpcap はネットワークの統計を収集したり,セキュリ
46ティの為のモニタリングやネットワークのデバッグなどの用途に使用できます.
47ほぼ全てのシステムベンダがパケットのキャプチャに異なるインターフェイス
48を提供していたので,libpcap の作者は 移植性を良くして 各々のアプリケー
49ションにおける数々のシステムに依存したパケットキャプチャモジュールを
50可能にするために,このシステムに依存しない API を作成しました.
51
52ネットワークの低レベルのトラフィックを監視する必要がある場合,libpcap
53をインストールして下さい.
54
55%package devel
56Summary:  Development package for %{name}
57Summary(ja): %{name} の開発用ファイル
58Group:    Development/Libraries
59Requires: %{name} = %{epoch}:%{version}-%{release}
60
61%description devel
62The %{name}-devel package contains the files needed for development
63with %{name}.
64
65%description devel -l ja
66%{name}-devel パッケージには,%{name} を使った開発に必要なファイルが
67含まれています.
68
69%prep
70%setup -q
71
72%build
73%configure
74DEFS="-g -D_U_=\"\" -fPIC -DHAVE_CONFIG_H"
75%ifarch alpha sparc sparc64
76DEFS="$DEFS -DHAVE_ETHER_HOSTTON=1 -DLBL_ALIGN=1"
77%endif
78make DEFS="$DEFS"
79
80%install
81rm -rf %{buildroot}
82mkdir -p %{buildroot}%{_libdir}
83mkdir -p %{buildroot}%{_bindir}
84
85make DESTDIR=%{buildroot} install
86rm -f %{buildroot}%{_libdir}/libpcap.a
87
88%clean
89rm -rf %{buildroot}
90
91%post -p /sbin/ldconfig
92 
93%postun -p /sbin/ldconfig
94
95%files
96%defattr(-,root,root)
97%doc README CHANGES
98%{_libdir}/libpcap.so.*
99
100%files devel
101%defattr(-,root,root)
102%{_bindir}/pcap-config
103%{_includedir}/pcap*.h
104%dir %{_includedir}/pcap
105%{_includedir}/pcap/*
106%{_libdir}/libpcap.so
107%{_mandir}/man1/*
108%{_mandir}/man3/*
109%{_mandir}/man5/*
110%{_mandir}/man7/*
111
112%changelog
113* Thu Mar 22 2012 MATSUBAYASHI Kohji <shaolin@vinelinux.org> - 1:1.1.1-3
114- rebuild; remove *.a file
115
116* Sat Sep 18 2010 Ryoichi INAGAKI <ryo1@bc.wakwak.com> 1:1.1.1-2
117- fixed header file location <BTS:994>
118- added URL tag
119
120* Sun May 23 2010 Ryoichi INAGAKI <ryo1@bc.wakwak.com> 1:1.1.1-1
121- new upstream release
122- dropt Patch50
123- built with new toolchain
124- added BR: libnl-devel
125
126* Fri Apr 24 2009 Ryoichi INAGAKI <ryo1@bc.wakwak.com> 1:1.0.0-2vl5
127- split devel package
128
129* Wed Oct 29 2008 Satoshi IWAMOTO <satoshi.iwamoto@nifty.ne.jp> 1:1.0.0-1vl5
130- new upstream release
131- update Patch50 to fit 1.0.0
132
133* Mon Apr 14 2008 Satoshi IWAMOTO <satoshi.iwamoto@nifty.ne.jp> 1:0.9.8-2vl5
134- add BuildRequires: flex >= 2.4, bison
135
136* Sat Apr 12 2008 Ryoichi INAGAKI <ryo1@bc.wakwak.com> 1:0.9.8-1vl5
137- new upstream release
138
139* Sat Sep  1 2007 Ryoichi INAGAKI <ryo1@bc.wakwak.com> 1:0.9.7-0vl1
140- new upstream release
141
142* Sat Jul  7 2007 Ryoichi INAGAKI <ryo1@bc.wakwak.com> 1:0.9.6-0vl1
143- new upstream release
144
145* Sun Aug 21 2005 Satoshi MACHINO <machino@vinelinux.org> 1:0.9.3-0vl1
146- new upstream release
147
148* Sun Jun 13 2004 Daisuke SUZUKI <daisuke@linux.or.jp> 1:0.8.3-0vl1
149- new upstream release
150
151* Sat Oct 11 2003 Ryoichi INAGAKI <ryo1@bc.wakwak.com> 1:0.7.2-0vl1
152- updated to 0.7.2
153- dropped patch52
154- s/Copyright/License/
155
156* Fri Feb 21 2003 Daisuke SUZUKI <daisuke@linux.or.jp> 1:0.7.1-0vl1
157- libpcap standalone package splitted from tcpdump
158
159* Fri Feb 21 2003 Daisuke SUZUKI <daisuke@linux.or.jp> 1:3.7.1-0vl1
160- update to new upstream release tcpdump 3.7.1
161- drop unneeded patches
162- use autoconf213, automake14
163- split arpwatch
164
165* Fri Feb 21 2003 Daisuke SUZUKI <daisuke@linux.or.jp> 1:3.6.2-13vl2
166- add patch16 to fix  print_bgp security bug
167  - errata 20030221-3
168
169* Wed Jun 12 2002 Daisuke SUZUKI <daisuke@linux.or.jp> 1:3.6.2-13vl1
170- merged with 3.6.2-13
171- fix buffer overflow for errata
172  * Thu May 16 2002 Harald Hoyer <harald@redhat.de> 12:3.6.2-13
173  - added official 3.6.3 fix
174  - fixed 6.2 compat #63113
175  * Wed Jan 23 2002 Harald Hoyer <harald@redhat.de> 12:3.6.2-12
176  - tcpdump-3.6.2-snaplen.patch added to fix #55145
177  * Tue Dec 18 2001 Harald Hoyer <harald@redhat.de> 12:3.6.2-10
178  - took old purge patch for filters
179  - fixed #54225,#58346
180  - drop root by default #49635
181  - fixed #54593
182  - fixed #57711
183
184* Thu Oct 25 2001 IWAI Masaharu <iwaim@cc.mbn.or.jp>
185- 3.6.2-9vl1
186- used PRM macros
187- changed File Name to Package Name in Prereq tag
188- marged 3.6.2-9 (RedHat7.2)
189
190  * Tue Jan 23 2001 MATSUBAYASHI 'Shaolin' Kohji <shaolin@rhythmaning.org>
191  - 3.4-19vl2
192  - use better macros
193 
194  * Thu Sep 21 2000 Yoshihiro Kajiki <kajiki@ylug.org>
195  - add libpcap-0.4-guy-gerald.patch to fix the timeout problem (by Ethereal)
196  - add Japanese summarys and descriptions
197  - modify spec file to build as a normal user
198 
199  * Thu Feb 17 2000 Bernhard Rosenkraenzer <bero@redhat.com>
200  - Compile shared libpcap with -fPIC (Bug #6342)
201 
202  * Wed Feb 02 2000 Cristian Gafton <gafton@redhat.com>
203  - fix descriptions
204  - man pages are compressed
205 
206  * Wed Dec 22 1999 Jeff Johnson <jbj@redhat.com>
207  - remove sparc64 SIOCGIFNAME hack, not needed with (at least) kernel 2.2.12-40.
208  - upgrade to ANK ss991030 snapshot with pcap magic fix (#6773).
209  - add getprotobyname lookup (#6725).
210  - getservbyname port lookup appears functional (#7569).
211  - remove uid 2090 backdoor (sorry Dave) (#7116).
212 
213  * Thu Sep 09 1999 Cristian Gafton <gafton@redhat.com>
214  - fox the pcap.h header
215 
216  * Fri Aug 20 1999 Jeff Johnson <jbj@redhat.com>
217  - prevent segfault on obscure spoofed ip header (#4634).
218 
219  * Wed Aug 18 1999 Jeff Johnson <jbj@redhat.com>
220  - add defattr to arpwatch (#4591).
221 
222  * Mon Aug 16 1999 Bill Nottingham <notting@redhat.com>
223  - initscript munging
224
225  * Sun Aug  8 1999 Jeff Johnson <jbj@redhat.com>
226  - add -DWORDS_BIGINDIAN to tcpdump compile on sparc sparc61.
227 
228  * Tue Aug  3 1999 Jeff Johnson <jbj@redhat.com>
229  - include A. Kuznetsov's patches to libpcap/tcpdump.
230  - added arpsnmp to package (#3258).
231  - arp2ethers written for different of awk (#4326).
232
233  * Sun Mar 21 1999 Cristian Gafton <gafton@redhat.com>
234  - auto rebuild in the new build environment (release 10)
235
236  * Fri Mar 19 1999 Jeff Johnson <jbj@redhat.com>
237  - strip binaries.
238 
239  * Wed Jan 13 1999 Bill Nottingham <notting@redhat.com>
240  - autoconf fixes for arm
241
242  * Tue Sep 29 1998 Jeff Johnson <jbj@redhat.com>
243  - libpcap description typo.
244
245  * Sat Sep 19 1998 Jeff Johnson <jbj@redhat.com>
246  - fix arpwatch summary line.
247 
248  * Mon Aug 17 1998 Jeff Johnson <jbj@redhat.com>
249  - enable arpwatch
250 
251  * Mon Aug  3 1998 Jeff Johnson <jbj@redhat.com>
252  - separate package for libpcap.
253  - update tcpdump to 3.4, libpcap to 0.4.
254  - added arpwatch (but disabled for now)
255 
256  * Thu May 07 1998 Prospector System <bugs@redhat.com>
257  - translations modified for de, fr, tr
258 
259  * Sat May  2 1998 Alan Cox <alan@rehat.com>
260  - Added the SACK printing fix so you can dump Linux 2.1+.
261 
262  * Tue Oct 21 1997 Erik Troan <ewt@redhat.com>
263  - updated to release 3.4a5
264  - uses a buildroot and %attr
265 
266  * Thu Jul 17 1997 Erik Troan <ewt@redhat.com>
267  - built against glibc
268
269* Fri Aug 31 2001 Harald Hoyer <harald@redhat.de> 12:3.6.2-9
270- took better fix for #52654 from tcpdump cvs
271
272* Thu Aug 30 2001 Harald Hoyer <harald@redhat.de> 11:3.6.2-8
273- fixed #52654
274
275* Thu Jul 19 2001 Harald Hoyer <harald@redhat.de> 10:3.6.2-7
276- added shared library to libpcap (#47174)
277- afs printing security patch (#49294)
278
279* Wed Jun 20 2001 Harald Hoyer <harald@redhat.de>
280- use initgroups, instead of setgroups
281
282* Mon Jun 18 2001 Harald Hoyer <harald@redhat.de>
283- added dropgroup patches (#44563)
284
285* Mon May 07 2001 Harald Hoyer <harald@redhat.de>
286- switched to Pekka's tcpdump-3.6.2 package
287- incremented epoch
288
289* Sat Apr 14 2001 Pekka Savola <pekkas@netcore.fi>
290- fix building of tcpslice on glibc 2.2.2 (time.h)
291- disable /etc/init.d requirement and fix %post scripts in arpwatch
292
293* Wed Feb 14 2001 Harald Hoyer <harald@redhat.de>
294- glibc sys/time -> time include patch
295
296* Wed Feb  7 2001 Trond Eivind Glomsr <teg@redhat.com>
297- Add space to this check
298
299* Wed Feb 07 2001 Harald Hoyer <harald@redhat.com>
300- added check for presence of /etc/sysconfig/arpwatch (#23172)
301
302* Wed Feb  7 2001 Pekka Savola <pekkas@netcore.fi>
303- update to 3.6.2, 0.6.2 and new CVS of tcpslice.
304- i18n'ize arpwatch init script
305
306* Fri Feb  2 2001 Trond Eivind Glomsr <teg@redhat.com>
307- i18nize initscript
308
309* Mon Jan 29 2001 Harald Hoyer <harald@redhat.com>
310- fixed EINTR stopping for e.g. SIGSTOP. (#22008)
311- added -u option for tcpdump (#20231)
312- new arpwatch version (#23172)
313- added "all" and "one" interface for -i (#20907)
314- added arpwatch sysconfig (#23172)
315
316* Mon Jan 22 2001 Harald Hoyer <harald@redhat.com>
317- more (potential) overflows in libpcap. #21373
318- documentation fix for #20906
319
320* Sun Jan 14 2001 Pekka Savola <pekkas@netcore.fi>
321- use --enable-ipv6
322- Add two patches from CVS to enhance 802.2 printing, and more importantly,
323  to be able to specify 'no stp'
324
325* Sat Jan 13 2001 Pekka Savola <pekkas@netcore.fi>
326- Make SMB printing output a lot more quiet unless in verbose mode.
327- Make -n resolve port/protocol numbers but not hostnames, -nn for no
328  resolving at all
329- Separate droproot patch from a more generic man/usage fix one
330- Add non-promiscuous mode -by default patch, but don't apply it by default
331
332* Thu Jan 11 2001 Pekka Savola <pekkas@netcore.fi>
333- Update to tcpdump 3.6.1 and libpcap 0.6.1 releases.
334
335* Mon Jan  8 2001 Pekka Savola <pekkas@netcore.fi>
336- Update to 20010108 CVS, disable some upstreamed patches.
337- Change some additional .1 pages to .8.
338- Add droproot patch, some --usage and man page fixes.
339
340* Mon Jan  1 2001 Pekka Savola <pekkas@netcore.fi>
341- Initial packaging with latest tcpdump.org CVS tcpdump-3.6 and libpcap-0.6.
342- add earlier print-domain.c, the latest is segfaulting
343- don't unnecesessarily include snprintf.o, it didn't compile with gcc 2.96 anyway
344- don't use savestr, require openssl, tweak tweak tweak
345- add tcpslice, patch it a bit for egcs detection
346
347* Sun Dec 31 2000 Pekka Savola <pekkas@netcore.fi>
348- tcpdump: spice up the manpage about interfaces
349- tcpdump: add 'all' and 'any' keywords to -i, saner default behaviour.
350- upgrade arpwatch to 2.1a10
351
352* Sun Nov 26 2000 Jeff Johnson <jbj@redhat.com>
353- more (potential) overflows in libpcap.
354
355* Sun Nov 12 2000 Jeff Johnson <jbj@redhat.com>
356- eliminate still more buffer overflows (from FreeBSD) (#20069).
357
358* Thu Nov  2 2000 Jeff Johnson <jbj@redhat.com>
359- eliminate more buffer overflows (from FreeBSD) (#20069).
360- 802.1q ether type incorrect (#19850).
361- add -u flag to drop arpwatch privs (#19696).
362
363* Sun Oct 15 2000 Jeff Johnson <jbj@redhat.com>
364- updated ethercodes.dat
365
366* Thu Oct 12 2000 Jeff Johnson <jbj@redhat.com>
367- fix arpwatch tmp race (#18943).
368
369* Fri Aug 11 2000 Bill Nottingham <notting@redhat.com>
370- fix condrestart
371
372* Fri Aug 11 2000 Jeff Johnson <jbj@redhat.com>
373- correct arpsnmp man pages (#15442).
374- don't print harmless ENOPROTOOPT message (#13518).
375
376* Fri Aug  4 2000 Jeff Johnson <jbj@redhat.com>
377- rebuild with final kernel headers (#13518).
378
379* Sat Jul 22 2000 Jeff Johnson <jbj@redhat.com>
380- add STP patch (#14112).
381
382* Fri Jul 14 2000 Matt Wilson <msw@redhat.com>
383- source /etc/init.d/functions
384- back out /etc/init.d/arpwatch, place file in /etc/rc.d
385- move initscript to /etc/init.d
386- changed initscript to use start() and stop() functions
387- added condrestart to init script
388- added %%post %%preun %%postun scripts to register arpwatch script
389- added Prereq: for all things needed in post/preun/postun
390
391* Wed Jul 12 2000 Prospector <bugzilla@redhat.com>
392- automatic rebuild
393
394* Tue Jul 11 2000 Jeff Johnson <jbj@redhat.com>
395- updated man page and help (pekkas@netcore.fi) (#10739 et al).
396
397* Sun Jun 18 2000 Jeff Johnson <jbj@redhat/com>
398- FHS packaging.
399
400* Tue May  9 2000 Bill Nottingham <notting@redhat.com>
401- minor tweaks for ia64 (prototypes)
402
403* Thu Feb 17 2000 Bernhard Rosenkraenzer <bero@redhat.com>
404- Compile shared libpcap with -fPIC (Bug #6342)
405
406* Wed Feb 02 2000 Cristian Gafton <gafton@redhat.com>
407- fix descriptions
408- man pages are compressed
409
410* Wed Dec 22 1999 Jeff Johnson <jbj@redhat.com>
411- remove sparc64 SIOCGIFNAME hack, not needed with (at least) kernel 2.2.12-40.
412- upgrade to ANK ss991030 snapshot with pcap magic fix (#6773).
413- add getprotobyname lookup (#6725).
414- getservbyname port lookup appears functional (#7569).
415- remove uid 2090 backdoor (sorry Dave) (#7116).
416
417* Thu Sep 09 1999 Cristian Gafton <gafton@redhat.com>
418- fox the pcap.h header
419
420* Fri Aug 20 1999 Jeff Johnson <jbj@redhat.com>
421- prevent segfault on obscure spoofed ip header (#4634).
422
423* Wed Aug 18 1999 Jeff Johnson <jbj@redhat.com>
424- add defattr to arpwatch (#4591).
425
426* Mon Aug 16 1999 Bill Nottingham <notting@redhat.com>
427- initscript munging
428
429* Sun Aug  8 1999 Jeff Johnson <jbj@redhat.com>
430- add -DWORDS_BIGINDIAN to tcpdump compile on sparc sparc61.
431
432* Tue Aug  3 1999 Jeff Johnson <jbj@redhat.com>
433- include A. Kuznetsov's patches to libpcap/tcpdump.
434- added arpsnmp to package (#3258).
435- arp2ethers written for different of awk (#4326).
436
437* Sun Mar 21 1999 Cristian Gafton <gafton@redhat.com>
438- auto rebuild in the new build environment (release 10)
439
440* Fri Mar 19 1999 Jeff Johnson <jbj@redhat.com>
441- strip binaries.
442
443* Wed Jan 13 1999 Bill Nottingham <notting@redhat.com>
444- autoconf fixes for arm
445
446* Tue Sep 29 1998 Jeff Johnson <jbj@redhat.com>
447- libpcap description typo.
448
449* Sat Sep 19 1998 Jeff Johnson <jbj@redhat.com>
450- fix arpwatch summary line.
451
452* Mon Aug 17 1998 Jeff Johnson <jbj@redhat.com>
453- enable arpwatch
454
455* Mon Aug  3 1998 Jeff Johnson <jbj@redhat.com>
456- separate package for libpcap.
457- update tcpdump to 3.4, libpcap to 0.4.
458- added arpwatch (but disabled for now)
459
460* Thu May 07 1998 Prospector System <bugs@redhat.com>
461- translations modified for de, fr, tr
462
463* Sat May  2 1998 Alan Cox <alan@rehat.com>
464- Added the SACK printing fix so you can dump Linux 2.1+.
465
466* Tue Oct 21 1997 Erik Troan <ewt@redhat.com>
467- updated to release 3.4a5
468- uses a buildroot and %attr
469
470* Thu Jul 17 1997 Erik Troan <ewt@redhat.com>
471- built against glibc
Note: See TracBrowser for help on using the repository browser.