libpcap-vl.spec 16 KB

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