libpcap-vl.spec 15 KB

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