libpcap-vl.spec 15 KB

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