2007-01-04 16:25:26 +00:00
|
|
|
#
|
2008-01-09 20:43:01 +00:00
|
|
|
# spec file for package libpcap (Version 0.9.8)
|
2007-01-04 16:25:26 +00:00
|
|
|
#
|
2008-01-09 20:43:01 +00:00
|
|
|
# Copyright (c) 2008 SUSE LINUX Products GmbH, Nuernberg, Germany.
|
2007-01-04 16:25:26 +00:00
|
|
|
#
|
2008-08-23 01:02:53 +00:00
|
|
|
# All modifications and additions to the file contributed by third parties
|
|
|
|
# remain the property of their copyright owners, unless otherwise agreed
|
|
|
|
# upon. The license for this file, and modifications and additions to the
|
|
|
|
# file, is the same license as for the pristine package itself (unless the
|
|
|
|
# license for the pristine package is not an Open Source License, in which
|
|
|
|
# case the license is the MIT License). An "Open Source License" is a
|
|
|
|
# license that conforms to the Open Source Definition (Version 1.9)
|
|
|
|
# published by the Open Source Initiative.
|
|
|
|
|
2007-01-04 16:25:26 +00:00
|
|
|
# Please submit bugfixes or comments via http://bugs.opensuse.org/
|
|
|
|
#
|
|
|
|
|
|
|
|
# norootforbuild
|
|
|
|
|
2008-04-10 12:31:49 +00:00
|
|
|
|
2007-01-04 16:25:26 +00:00
|
|
|
Name: libpcap
|
2008-01-09 20:43:01 +00:00
|
|
|
Version: 0.9.8
|
2008-09-05 19:34:28 +00:00
|
|
|
Release: 46
|
2008-01-09 20:43:01 +00:00
|
|
|
AutoReqProv: on
|
2007-01-04 16:25:26 +00:00
|
|
|
Group: System/Libraries
|
2007-07-13 16:19:09 +00:00
|
|
|
License: BSD 3-Clause
|
2008-01-09 20:43:01 +00:00
|
|
|
Url: http://www.tcpdump.org/
|
2007-01-04 16:25:26 +00:00
|
|
|
Summary: A Library for Network Sniffers
|
2008-09-05 19:34:28 +00:00
|
|
|
Source: %{name}-0.9.8_CVS20080503.tar.bz2
|
2008-08-23 01:02:53 +00:00
|
|
|
Patch0: %{name}-%{version}-shared.patch
|
|
|
|
Patch1: %{name}-%{version}-filter-fix.patch
|
2008-09-05 19:34:28 +00:00
|
|
|
Patch2: %{name}-%{version}-fcode.patch
|
2008-08-23 01:02:53 +00:00
|
|
|
Patch3: %{name}-%{version}-pcap-bpf.patch
|
|
|
|
Patch4: %{name}-%{version}-ppp.patch
|
|
|
|
Patch5: %{name}-%{version}-s390.patch
|
|
|
|
Patch6: %{name}-%{version}-man.patch
|
|
|
|
Patch7: %{name}-%{version}-mac_syntax.patch
|
2007-01-04 16:25:26 +00:00
|
|
|
BuildRoot: %{_tmppath}/%{name}-%{version}-build
|
2008-09-05 19:34:28 +00:00
|
|
|
BuildRequires: bison bluez-libs flex
|
2007-01-04 16:25:26 +00:00
|
|
|
|
|
|
|
%description
|
|
|
|
libpcap is a library used by packet sniffer programs. It provides an
|
|
|
|
interface for them to capture and analyze packets from network devices.
|
|
|
|
This package is only needed if you plan to compile or write such a
|
|
|
|
program yourself.
|
|
|
|
|
|
|
|
|
|
|
|
|
2007-07-26 23:18:19 +00:00
|
|
|
Authors:
|
|
|
|
--------
|
|
|
|
Bill Fenner <fenner@research.att.com>
|
|
|
|
Assar Westerlund <assar@sics.se>
|
|
|
|
Alexei <kuznet@ms2.inr.ac.ru>
|
|
|
|
Jun-ichiro itojun Hagino <itojun@iijlab.net>
|
|
|
|
Guy Harris <gharris@flashcom.net>
|
|
|
|
Torsten Landschoff <t.landschoff@gmx.net>
|
|
|
|
Michael Richardson <mcr@sandelman.ottawa.on.ca>
|
|
|
|
Steve McCanne
|
|
|
|
Craig Leres
|
|
|
|
Van Jacobson
|
|
|
|
|
2008-08-23 01:02:53 +00:00
|
|
|
%package -n libpcap0
|
2008-04-10 12:31:49 +00:00
|
|
|
License: BSD 3-Clause
|
2007-07-26 23:18:19 +00:00
|
|
|
Summary: A Library for Network Sniffers
|
|
|
|
Group: System/Libraries
|
2008-08-23 01:02:53 +00:00
|
|
|
Provides: libpcap = %{version}
|
|
|
|
Obsoletes: libpcap < %{version}
|
|
|
|
|
|
|
|
%description -n libpcap0
|
|
|
|
libpcap is a library used by packet sniffer programs. It provides an
|
|
|
|
interface for them to capture and analyze packets from network devices.
|
|
|
|
This package is only needed if you plan to compile or write such a
|
|
|
|
program yourself.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
Authors:
|
|
|
|
--------
|
|
|
|
Bill Fenner <fenner@research.att.com>
|
|
|
|
Assar Westerlund <assar@sics.se>
|
|
|
|
Alexei <kuznet@ms2.inr.ac.ru>
|
|
|
|
Jun-ichiro itojun Hagino <itojun@iijlab.net>
|
|
|
|
Guy Harris <gharris@flashcom.net>
|
|
|
|
Torsten Landschoff <t.landschoff@gmx.net>
|
|
|
|
Michael Richardson <mcr@sandelman.ottawa.on.ca>
|
|
|
|
Steve McCanne
|
|
|
|
Craig Leres
|
|
|
|
Van Jacobson
|
|
|
|
|
|
|
|
%package devel
|
|
|
|
License: BSD 3-Clause
|
|
|
|
Summary: A Library for Network Sniffers
|
|
|
|
Group: Development/Libraries/C and C++
|
|
|
|
Requires: libpcap0 = %{version}
|
2007-07-26 23:18:19 +00:00
|
|
|
|
|
|
|
%description devel
|
|
|
|
libpcap is a library used by packet sniffer programs. It provides an
|
|
|
|
interface for them to capture and analyze packets from network devices.
|
|
|
|
This package is only needed if you plan to compile or write such a
|
|
|
|
program yourself.
|
|
|
|
|
|
|
|
|
|
|
|
|
2007-01-04 16:25:26 +00:00
|
|
|
Authors:
|
|
|
|
--------
|
|
|
|
Bill Fenner <fenner@research.att.com>
|
|
|
|
Assar Westerlund <assar@sics.se>
|
|
|
|
Alexei <kuznet@ms2.inr.ac.ru>
|
|
|
|
Jun-ichiro itojun Hagino <itojun@iijlab.net>
|
|
|
|
Guy Harris <gharris@flashcom.net>
|
|
|
|
Torsten Landschoff <t.landschoff@gmx.net>
|
|
|
|
Michael Richardson <mcr@sandelman.ottawa.on.ca>
|
|
|
|
Steve McCanne
|
|
|
|
Craig Leres
|
|
|
|
Van Jacobson
|
|
|
|
|
|
|
|
%prep
|
2008-09-05 19:34:28 +00:00
|
|
|
%setup -q -n %{name}-0.9.8_CVS20080503
|
|
|
|
find -depth -name CVS -exec rm -rf {} \;
|
2007-07-26 23:18:19 +00:00
|
|
|
%patch0
|
2007-01-04 16:25:26 +00:00
|
|
|
%patch1
|
|
|
|
%patch2
|
2007-07-26 23:18:19 +00:00
|
|
|
%patch3
|
2008-01-09 20:43:01 +00:00
|
|
|
%patch4
|
2008-08-23 01:02:53 +00:00
|
|
|
%patch5
|
|
|
|
%patch6
|
|
|
|
%patch7
|
2007-01-04 16:25:26 +00:00
|
|
|
|
|
|
|
%build
|
|
|
|
%{suse_update_config -f}
|
2007-05-03 22:29:47 +00:00
|
|
|
autoreconf -fi
|
|
|
|
export CFLAGS="$RPM_OPT_FLAGS -fpic" CXXFLAGS="$RPM_OPT_FLAGS -fpic"
|
2007-07-13 16:19:09 +00:00
|
|
|
%configure \
|
|
|
|
--enable-ipv6
|
2007-05-03 22:29:47 +00:00
|
|
|
make VERSION=%{version}
|
2007-01-04 16:25:26 +00:00
|
|
|
|
|
|
|
%install
|
|
|
|
make DESTDIR=$RPM_BUILD_ROOT install
|
|
|
|
|
|
|
|
%clean
|
|
|
|
rm -rf $RPM_BUILD_ROOT
|
|
|
|
|
2008-08-23 01:02:53 +00:00
|
|
|
%post -n libpcap0 -p /sbin/ldconfig
|
2007-07-13 16:19:09 +00:00
|
|
|
|
2008-08-23 01:02:53 +00:00
|
|
|
%postun -n libpcap0 -p /sbin/ldconfig
|
2007-07-13 16:19:09 +00:00
|
|
|
|
2008-08-23 01:02:53 +00:00
|
|
|
%files -n libpcap0
|
2007-01-04 16:25:26 +00:00
|
|
|
%defattr(-, root, root)
|
2007-07-26 23:18:19 +00:00
|
|
|
%doc README README.linux CHANGES CREDITS LICENSE TODO
|
|
|
|
%{_libdir}/*.so.*
|
|
|
|
|
|
|
|
%files devel
|
|
|
|
%defattr(-, root, root)
|
|
|
|
%doc doc/*
|
2007-01-04 16:25:26 +00:00
|
|
|
%doc %{_mandir}/man?/*
|
|
|
|
%{_includedir}/*
|
2007-07-26 23:18:19 +00:00
|
|
|
%{_libdir}/*.so
|
|
|
|
%{_libdir}/*.*a
|
2007-01-04 16:25:26 +00:00
|
|
|
|
2007-03-29 10:04:33 +00:00
|
|
|
%changelog
|
2008-09-05 19:34:28 +00:00
|
|
|
* Thu Sep 04 2008 prusnak@suse.cz
|
|
|
|
- updated to CVS-20080503
|
|
|
|
* support for USB and Bluetooth capture
|
2008-08-23 01:02:53 +00:00
|
|
|
* Wed Aug 20 2008 prusnak@suse.cz
|
|
|
|
- renamed libpcap package to libpcap0
|
|
|
|
- added ppp.patch and s390.patch (small issues)
|
2008-04-10 12:31:49 +00:00
|
|
|
* Thu Apr 10 2008 ro@suse.de
|
|
|
|
- added baselibs.conf file to build xxbit packages
|
|
|
|
for multilib support
|
|
|
|
* Tue Jan 08 2008 prusnak@suse.cz
|
2008-01-09 20:43:01 +00:00
|
|
|
- update to 0.9.8
|
|
|
|
* Change build process to put public libpcap headers into pcap subdir
|
|
|
|
* DLT: Add value for IPMI IPMB packets
|
|
|
|
* DLT: Add value for u10 Networks boards
|
|
|
|
* Require <net/pfvar.h> for pf definitions - allows reading of pflog
|
|
|
|
formatted libpcap files on an OS other than where the file was generated
|
|
|
|
- added pcap-bpf.patch
|
|
|
|
* add two structs needed for tahi testsuite
|
2008-04-10 12:31:49 +00:00
|
|
|
* Thu Jul 26 2007 prusnak@suse.cz
|
2007-07-26 23:18:19 +00:00
|
|
|
- updated to 0.9.7
|
|
|
|
* added flags/configuration for cloning bpf device.
|
|
|
|
* added DLT_MTP2_WITH_PHDR support (PPI)
|
|
|
|
* introduced support for the DAG ERF type TYPE_COLOR_MC_HDLC_POS
|
|
|
|
* added basic BPF filtering support for DLT_MTP2_WITH_PHDR
|
|
|
|
* add support for DLT_JUNIPER_ISM
|
|
|
|
* allocate DLT_ for 802.15.4 without any header munging
|
|
|
|
* header for 802.16 MAC Common Part Sublayer plus a radiotap radio header
|
|
|
|
- branch -devel subpackage
|
2008-04-10 12:31:49 +00:00
|
|
|
* Thu Jul 12 2007 prusnak@suse.cz
|
2007-07-13 16:19:09 +00:00
|
|
|
- updated to 0.9.6
|
|
|
|
* added Bluetooth support
|
|
|
|
* added USB capturing support
|
|
|
|
* added support for the binary USB sniffing interface
|
|
|
|
* added additional filter operations for 802.11 frame types
|
|
|
|
* added support for filtering on MTP2 frame types
|
|
|
|
* added LINKTYPE_ for IEEE 802.15.4, with address fields padded
|
|
|
|
* added LINKTYPE_ value corresponding to DLT_IEEE802_16_MAC_CPS
|
|
|
|
* added DLT for IEEE 802.16 (WiMAX) MAC Common Part Sublayer
|
|
|
|
* added DLT for Bluetooth HCI UART transport layer
|
|
|
|
* fixed discarding of unread packets when changing filters
|
|
|
|
* fixed a bug in pcap_open_live()
|
2008-04-10 12:31:49 +00:00
|
|
|
* Wed May 02 2007 pth@suse.de
|
2007-05-03 22:29:47 +00:00
|
|
|
- Use correct version for naming the shared library (#270226)
|
2008-04-10 12:31:49 +00:00
|
|
|
* Thu Mar 29 2007 rguenther@suse.de
|
2007-03-29 10:04:33 +00:00
|
|
|
- add flex and bison BuildRequires
|
2008-04-10 12:31:49 +00:00
|
|
|
* Tue Jan 16 2007 prusnak@suse.cz
|
2007-01-16 16:32:57 +00:00
|
|
|
- implemented socket timeout (socket-timeout.diff) [#234034]
|
2008-04-10 12:31:49 +00:00
|
|
|
* Wed Jan 03 2007 prusnak@suse.cz
|
2007-01-04 16:25:26 +00:00
|
|
|
- update to 0.9.5
|
|
|
|
* Support for LAPD frames with vISDN
|
|
|
|
* Support for ERF on channelized T1/E1 cards via DAG API
|
|
|
|
* Better failure detection on PacketGetAdapterNames()
|
|
|
|
* Fixes for MPLS packet generation (link layer)
|
|
|
|
* OP_PACKET now matches the beginning of the packet, instead of beginning+link-layer
|
|
|
|
* Fix allocation of buffer for list of link-layer types
|
|
|
|
* Add support for DLT_JUNIPER_VP
|
|
|
|
* Don't double-count received packets on Linux systems
|
2008-04-10 12:31:49 +00:00
|
|
|
* Wed Jan 25 2006 mls@suse.de
|
2007-01-04 16:25:26 +00:00
|
|
|
- converted neededforbuild to BuildRequires
|
2008-04-10 12:31:49 +00:00
|
|
|
* Mon Jan 09 2006 mjancar@suse.cz
|
2007-01-04 16:25:26 +00:00
|
|
|
- update to 0.9.4
|
2008-04-10 12:31:49 +00:00
|
|
|
* Wed Aug 10 2005 kkeil@suse.de
|
2007-01-04 16:25:26 +00:00
|
|
|
- Reverse the -fno-strict-aliasing work around
|
2008-04-10 12:31:49 +00:00
|
|
|
* Sun Aug 07 2005 aj@suse.de
|
2007-01-04 16:25:26 +00:00
|
|
|
- Compile with -fno-strict-aliasing to work around compiler bug for now.
|
2008-04-10 12:31:49 +00:00
|
|
|
* Fri Aug 05 2005 ro@suse.de
|
2007-01-04 16:25:26 +00:00
|
|
|
- do not package all of libdir (debuginfo)
|
2008-04-10 12:31:49 +00:00
|
|
|
* Tue Aug 02 2005 mjancar@suse.cz
|
2007-01-04 16:25:26 +00:00
|
|
|
- update to 0.9.3
|
2008-04-10 12:31:49 +00:00
|
|
|
* Wed Apr 13 2005 ro@suse.de
|
2007-01-04 16:25:26 +00:00
|
|
|
- added return value to non-void functions
|
2008-04-10 12:31:49 +00:00
|
|
|
* Thu Nov 18 2004 ro@suse.de
|
2007-01-04 16:25:26 +00:00
|
|
|
- fixed file list
|
2008-04-10 12:31:49 +00:00
|
|
|
* Tue Aug 24 2004 kkeil@suse.de
|
2007-01-04 16:25:26 +00:00
|
|
|
- add DLT_PPP_WITHDIRECTION from libpcap cvs to handle PPP filters
|
|
|
|
in a compatible way
|
|
|
|
Thanks to Hannes Gredler <hannes@juniper.net> for implementing it
|
2008-04-10 12:31:49 +00:00
|
|
|
* Wed Aug 04 2004 postadal@suse.cz
|
2007-01-04 16:25:26 +00:00
|
|
|
- updated to version 0.8.3
|
2008-04-10 12:31:49 +00:00
|
|
|
* Mon Feb 09 2004 postadal@suse.cz
|
2007-01-04 16:25:26 +00:00
|
|
|
- updated to version 0.8.1
|
|
|
|
* the include file include/net/bpf.h renamed to include/pcap-bpf
|
|
|
|
- fixed config (LIBOBJS issue)
|
2008-04-10 12:31:49 +00:00
|
|
|
* Sat Jan 10 2004 schwab@suse.de
|
2007-01-04 16:25:26 +00:00
|
|
|
- Use autoreconf.
|
2008-04-10 12:31:49 +00:00
|
|
|
* Thu Jul 24 2003 postadal@suse.cz
|
2007-01-04 16:25:26 +00:00
|
|
|
- update to version 0.7.2
|
|
|
|
* support frame relay
|
|
|
|
* support for ARPHRD_RAWHDLC
|
|
|
|
* support eg (Octane/O2xxx/O3xxx Gigabit) devices
|
|
|
|
* add new reserved DLT types
|
2008-04-10 12:31:49 +00:00
|
|
|
* Mon May 20 2002 postadal@suse.de
|
2007-01-04 16:25:26 +00:00
|
|
|
- security fix (get spurious packets before kernel filter kicks in)
|
|
|
|
- update to 0.7.1
|
|
|
|
* pcap_stats() has been documented as to what its counters mean on
|
|
|
|
each platform
|
|
|
|
* Added pcap_findalldevs() call to get list of interfaces in
|
|
|
|
a MI way
|
2008-04-10 12:31:49 +00:00
|
|
|
* Wed Mar 13 2002 postadal@suse.cz
|
2007-01-04 16:25:26 +00:00
|
|
|
- fixed Makefile.in to created shared library
|
2008-04-10 12:31:49 +00:00
|
|
|
* Thu Jan 10 2002 cihlar@suse.cz
|
2007-01-04 16:25:26 +00:00
|
|
|
- use %%{_lib}
|
2008-04-10 12:31:49 +00:00
|
|
|
* Fri Feb 23 2001 cihlar@suse.cz
|
2007-01-04 16:25:26 +00:00
|
|
|
- update to 0.6.2 - it should handle isdn without patch
|
2008-04-10 12:31:49 +00:00
|
|
|
* Thu Dec 07 2000 schwab@suse.de
|
2007-01-04 16:25:26 +00:00
|
|
|
- Compile with -fpic so that it can be included in a shared library.
|
2008-04-10 12:31:49 +00:00
|
|
|
* Wed Oct 11 2000 smid@suse.cz
|
2007-01-04 16:25:26 +00:00
|
|
|
- new version 0.5.2
|
2008-04-10 12:31:49 +00:00
|
|
|
* Thu Jun 08 2000 cihlar@suse.cz
|
2007-01-04 16:25:26 +00:00
|
|
|
- Group sorted
|
2008-04-10 12:31:49 +00:00
|
|
|
* Fri Apr 21 2000 smid@suse.cz
|
2007-01-04 16:25:26 +00:00
|
|
|
- buildroot added
|
2008-04-10 12:31:49 +00:00
|
|
|
* Thu Mar 02 2000 uli@suse.de
|
2007-01-04 16:25:26 +00:00
|
|
|
- moved man page to %%{_mandir}
|
2008-04-10 12:31:49 +00:00
|
|
|
* Mon Sep 13 1999 bs@suse.de
|
2007-01-04 16:25:26 +00:00
|
|
|
- ran old prepare_spec on spec file to switch to new prepare_spec.
|
2008-04-10 12:31:49 +00:00
|
|
|
* Thu Sep 09 1999 bs@suse.de
|
2007-01-04 16:25:26 +00:00
|
|
|
- fixed call of Check at the end of %%install section
|
2008-04-10 12:31:49 +00:00
|
|
|
* Sun Jul 11 1999 @suse.de
|
2007-01-04 16:25:26 +00:00
|
|
|
- new package: libpcap
|
|
|
|
now an extra package, because many network tools use it (so far
|
|
|
|
it was included in .srpm packages that needed it, like tcpdump)
|