2007-01-04 16:25:26 +00:00
|
|
|
#
|
2011-05-16 07:39:41 +00:00
|
|
|
# spec file for package libpcap
|
2007-01-04 16:25:26 +00:00
|
|
|
#
|
2018-03-01 15:44:34 +00:00
|
|
|
# Copyright (c) 2018 SUSE LINUX 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/
|
|
|
|
#
|
|
|
|
|
2012-03-01 16:07:49 +00:00
|
|
|
|
2007-01-04 16:25:26 +00:00
|
|
|
Name: libpcap
|
Accepting request 454184 from home:pmonrealgonzalez:branches:Base:System
- Formatted the specs file using spec-cleaner.
- Allow bluetooth monitoring support unconditionally.
- update to 1.8.1
* Clean up the name-to-DLT mapping table.
* Add some newer DLT_ values:
IPMI_HPM_2,ZWAVE_R1_R2,ZWAVE_R3,WATTSTOPPER_DLM,ISO_14443,RDS
* Fix handling of packet count in the TPACKET_V3 inner loop: GitHub issue
#493.
* Filter out duplicate looped back CAN frames.
* Fix the handling of loopback filters for IPv6 packets.
* Add a link-layer header type for RDS (IEC 62106) groups.
* On Linux, handle all CAN captures with pcap-linux.c, in cooked mode.
* Removes the need for the "host-endian" link-layer header type.
* Compile with '-Wused-but-marked-unused' in devel mode if supported
* Have separate DLTs for big-endian and host-endian SocketCAN headers.
* Require that version.h be generated: all build procedures we support generate version.h (autoconf, CMake, MSVC)!
* Properly check for sock_recv() errors.
* Re-impose some of Winsock's limitations on sock_recv().
* Replace sprintf() with pcap_snprintf().
* Fix signature of pcap_stats_ex_remote().
* Have rpcap_remoteact_getsock() return a SOCKET and supply an "is active" flag.
* Clean up {DAG, Septel, Myricom SNF}-only builds.
* pcap_create_interface() needs the interface name on Linux.
* Clean up hardware time stamp support: the "any" device does not support any time stamp types.
* Recognize 802.1ad nested VLAN tag in vlan filter.
- dropped libpcap-ocloexec.patch, never upstreamed.
- refreshed libpcap-1.0.0-ppp.patch
OBS-URL: https://build.opensuse.org/request/show/454184
OBS-URL: https://build.opensuse.org/package/show/Base:System/libpcap?expand=0&rev=52
2017-02-02 16:03:40 +00:00
|
|
|
Version: 1.8.1
|
2012-01-03 14:53:29 +00:00
|
|
|
Release: 0
|
2007-01-04 16:25:26 +00:00
|
|
|
Summary: A Library for Network Sniffers
|
2012-01-03 14:53:29 +00:00
|
|
|
License: BSD-3-Clause
|
2018-03-01 15:44:34 +00:00
|
|
|
Group: Development/Libraries/C and C++
|
2012-01-03 14:53:29 +00:00
|
|
|
Url: http://www.tcpdump.org/
|
|
|
|
Source: http://www.tcpdump.org/release/%{name}-%{version}.tar.gz
|
2009-12-26 11:18:41 +00:00
|
|
|
Source2: baselibs.conf
|
2013-09-20 15:13:12 +00:00
|
|
|
Source3: http://www.tcpdump.org/tcpdump-workers.asc#/%{name}.keyring
|
|
|
|
Source4: http://www.tcpdump.org/release/%{name}-%{version}.tar.gz.sig
|
2017-02-15 11:20:18 +00:00
|
|
|
# https://github.com/the-tcpdump-group/libpcap/pull/556
|
2012-06-16 08:08:35 +00:00
|
|
|
Patch2: libpcap-1.0.0-ppp.patch
|
|
|
|
Patch3: libpcap-1.0.0-s390.patch
|
2016-04-17 20:16:22 +00:00
|
|
|
Patch5: libpcap-no-old-socket.patch
|
2017-09-13 07:48:52 +00:00
|
|
|
Patch6: disable-remote.diff
|
2012-08-27 19:38:03 +00:00
|
|
|
BuildRequires: automake
|
2010-09-16 10:22:35 +00:00
|
|
|
BuildRequires: bison
|
Accepting request 454184 from home:pmonrealgonzalez:branches:Base:System
- Formatted the specs file using spec-cleaner.
- Allow bluetooth monitoring support unconditionally.
- update to 1.8.1
* Clean up the name-to-DLT mapping table.
* Add some newer DLT_ values:
IPMI_HPM_2,ZWAVE_R1_R2,ZWAVE_R3,WATTSTOPPER_DLM,ISO_14443,RDS
* Fix handling of packet count in the TPACKET_V3 inner loop: GitHub issue
#493.
* Filter out duplicate looped back CAN frames.
* Fix the handling of loopback filters for IPv6 packets.
* Add a link-layer header type for RDS (IEC 62106) groups.
* On Linux, handle all CAN captures with pcap-linux.c, in cooked mode.
* Removes the need for the "host-endian" link-layer header type.
* Compile with '-Wused-but-marked-unused' in devel mode if supported
* Have separate DLTs for big-endian and host-endian SocketCAN headers.
* Require that version.h be generated: all build procedures we support generate version.h (autoconf, CMake, MSVC)!
* Properly check for sock_recv() errors.
* Re-impose some of Winsock's limitations on sock_recv().
* Replace sprintf() with pcap_snprintf().
* Fix signature of pcap_stats_ex_remote().
* Have rpcap_remoteact_getsock() return a SOCKET and supply an "is active" flag.
* Clean up {DAG, Septel, Myricom SNF}-only builds.
* pcap_create_interface() needs the interface name on Linux.
* Clean up hardware time stamp support: the "any" device does not support any time stamp types.
* Recognize 802.1ad nested VLAN tag in vlan filter.
- dropped libpcap-ocloexec.patch, never upstreamed.
- refreshed libpcap-1.0.0-ppp.patch
OBS-URL: https://build.opensuse.org/request/show/454184
OBS-URL: https://build.opensuse.org/package/show/Base:System/libpcap?expand=0&rev=52
2017-02-02 16:03:40 +00:00
|
|
|
BuildRequires: bluez-devel
|
2013-12-16 16:55:33 +00:00
|
|
|
BuildRequires: dbus-1-devel
|
2010-09-16 10:22:35 +00:00
|
|
|
BuildRequires: flex
|
2013-09-20 15:13:12 +00:00
|
|
|
BuildRequires: libnl3-devel
|
Accepting request 454184 from home:pmonrealgonzalez:branches:Base:System
- Formatted the specs file using spec-cleaner.
- Allow bluetooth monitoring support unconditionally.
- update to 1.8.1
* Clean up the name-to-DLT mapping table.
* Add some newer DLT_ values:
IPMI_HPM_2,ZWAVE_R1_R2,ZWAVE_R3,WATTSTOPPER_DLM,ISO_14443,RDS
* Fix handling of packet count in the TPACKET_V3 inner loop: GitHub issue
#493.
* Filter out duplicate looped back CAN frames.
* Fix the handling of loopback filters for IPv6 packets.
* Add a link-layer header type for RDS (IEC 62106) groups.
* On Linux, handle all CAN captures with pcap-linux.c, in cooked mode.
* Removes the need for the "host-endian" link-layer header type.
* Compile with '-Wused-but-marked-unused' in devel mode if supported
* Have separate DLTs for big-endian and host-endian SocketCAN headers.
* Require that version.h be generated: all build procedures we support generate version.h (autoconf, CMake, MSVC)!
* Properly check for sock_recv() errors.
* Re-impose some of Winsock's limitations on sock_recv().
* Replace sprintf() with pcap_snprintf().
* Fix signature of pcap_stats_ex_remote().
* Have rpcap_remoteact_getsock() return a SOCKET and supply an "is active" flag.
* Clean up {DAG, Septel, Myricom SNF}-only builds.
* pcap_create_interface() needs the interface name on Linux.
* Clean up hardware time stamp support: the "any" device does not support any time stamp types.
* Recognize 802.1ad nested VLAN tag in vlan filter.
- dropped libpcap-ocloexec.patch, never upstreamed.
- refreshed libpcap-1.0.0-ppp.patch
OBS-URL: https://build.opensuse.org/request/show/454184
OBS-URL: https://build.opensuse.org/package/show/Base:System/libpcap?expand=0&rev=52
2017-02-02 16:03:40 +00:00
|
|
|
BuildRequires: pkgconfig
|
2015-06-24 16:18:28 +00:00
|
|
|
BuildRequires: pkgconfig(libusb-1.0)
|
2011-05-19 14:13:34 +00:00
|
|
|
BuildRoot: %{_tmppath}/%{name}-%{version}-build
|
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.
|
|
|
|
|
2009-01-19 01:22:34 +00:00
|
|
|
%package -n libpcap1
|
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}
|
|
|
|
|
2009-01-19 01:22:34 +00:00
|
|
|
%description -n libpcap1
|
2008-08-23 01:02:53 +00:00
|
|
|
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.
|
|
|
|
|
|
|
|
%package devel
|
|
|
|
Summary: A Library for Network Sniffers
|
|
|
|
Group: Development/Libraries/C and C++
|
2015-06-24 16:18:28 +00:00
|
|
|
Requires: glibc-devel
|
2009-01-19 01:22:34 +00:00
|
|
|
Requires: libpcap1 = %{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.
|
|
|
|
|
2015-06-24 16:18:28 +00:00
|
|
|
%package devel-static
|
|
|
|
Summary: A Library for Network Sniffers
|
Accepting request 454184 from home:pmonrealgonzalez:branches:Base:System
- Formatted the specs file using spec-cleaner.
- Allow bluetooth monitoring support unconditionally.
- update to 1.8.1
* Clean up the name-to-DLT mapping table.
* Add some newer DLT_ values:
IPMI_HPM_2,ZWAVE_R1_R2,ZWAVE_R3,WATTSTOPPER_DLM,ISO_14443,RDS
* Fix handling of packet count in the TPACKET_V3 inner loop: GitHub issue
#493.
* Filter out duplicate looped back CAN frames.
* Fix the handling of loopback filters for IPv6 packets.
* Add a link-layer header type for RDS (IEC 62106) groups.
* On Linux, handle all CAN captures with pcap-linux.c, in cooked mode.
* Removes the need for the "host-endian" link-layer header type.
* Compile with '-Wused-but-marked-unused' in devel mode if supported
* Have separate DLTs for big-endian and host-endian SocketCAN headers.
* Require that version.h be generated: all build procedures we support generate version.h (autoconf, CMake, MSVC)!
* Properly check for sock_recv() errors.
* Re-impose some of Winsock's limitations on sock_recv().
* Replace sprintf() with pcap_snprintf().
* Fix signature of pcap_stats_ex_remote().
* Have rpcap_remoteact_getsock() return a SOCKET and supply an "is active" flag.
* Clean up {DAG, Septel, Myricom SNF}-only builds.
* pcap_create_interface() needs the interface name on Linux.
* Clean up hardware time stamp support: the "any" device does not support any time stamp types.
* Recognize 802.1ad nested VLAN tag in vlan filter.
- dropped libpcap-ocloexec.patch, never upstreamed.
- refreshed libpcap-1.0.0-ppp.patch
OBS-URL: https://build.opensuse.org/request/show/454184
OBS-URL: https://build.opensuse.org/package/show/Base:System/libpcap?expand=0&rev=52
2017-02-02 16:03:40 +00:00
|
|
|
Group: Development/Libraries/C and C++
|
2015-06-24 16:18:28 +00:00
|
|
|
Requires: %{name}-devel = %{version}
|
Accepting request 454184 from home:pmonrealgonzalez:branches:Base:System
- Formatted the specs file using spec-cleaner.
- Allow bluetooth monitoring support unconditionally.
- update to 1.8.1
* Clean up the name-to-DLT mapping table.
* Add some newer DLT_ values:
IPMI_HPM_2,ZWAVE_R1_R2,ZWAVE_R3,WATTSTOPPER_DLM,ISO_14443,RDS
* Fix handling of packet count in the TPACKET_V3 inner loop: GitHub issue
#493.
* Filter out duplicate looped back CAN frames.
* Fix the handling of loopback filters for IPv6 packets.
* Add a link-layer header type for RDS (IEC 62106) groups.
* On Linux, handle all CAN captures with pcap-linux.c, in cooked mode.
* Removes the need for the "host-endian" link-layer header type.
* Compile with '-Wused-but-marked-unused' in devel mode if supported
* Have separate DLTs for big-endian and host-endian SocketCAN headers.
* Require that version.h be generated: all build procedures we support generate version.h (autoconf, CMake, MSVC)!
* Properly check for sock_recv() errors.
* Re-impose some of Winsock's limitations on sock_recv().
* Replace sprintf() with pcap_snprintf().
* Fix signature of pcap_stats_ex_remote().
* Have rpcap_remoteact_getsock() return a SOCKET and supply an "is active" flag.
* Clean up {DAG, Septel, Myricom SNF}-only builds.
* pcap_create_interface() needs the interface name on Linux.
* Clean up hardware time stamp support: the "any" device does not support any time stamp types.
* Recognize 802.1ad nested VLAN tag in vlan filter.
- dropped libpcap-ocloexec.patch, never upstreamed.
- refreshed libpcap-1.0.0-ppp.patch
OBS-URL: https://build.opensuse.org/request/show/454184
OBS-URL: https://build.opensuse.org/package/show/Base:System/libpcap?expand=0&rev=52
2017-02-02 16:03:40 +00:00
|
|
|
Requires: bluez-devel
|
2015-06-24 16:18:28 +00:00
|
|
|
Requires: dbus-1-devel
|
|
|
|
Requires: libnl3-devel
|
|
|
|
Requires: pkgconfig(libusb-1.0)
|
|
|
|
|
|
|
|
%description devel-static
|
|
|
|
libpcap static libraries
|
|
|
|
|
2007-01-04 16:25:26 +00:00
|
|
|
%prep
|
2009-01-19 01:22:34 +00:00
|
|
|
%setup -q
|
2007-01-04 16:25:26 +00:00
|
|
|
%patch2
|
2017-02-15 11:20:18 +00:00
|
|
|
%patch3 -p1
|
2016-04-17 20:16:22 +00:00
|
|
|
%patch5 -p1
|
2017-09-13 07:48:52 +00:00
|
|
|
%patch6 -p1
|
Accepting request 454184 from home:pmonrealgonzalez:branches:Base:System
- Formatted the specs file using spec-cleaner.
- Allow bluetooth monitoring support unconditionally.
- update to 1.8.1
* Clean up the name-to-DLT mapping table.
* Add some newer DLT_ values:
IPMI_HPM_2,ZWAVE_R1_R2,ZWAVE_R3,WATTSTOPPER_DLM,ISO_14443,RDS
* Fix handling of packet count in the TPACKET_V3 inner loop: GitHub issue
#493.
* Filter out duplicate looped back CAN frames.
* Fix the handling of loopback filters for IPv6 packets.
* Add a link-layer header type for RDS (IEC 62106) groups.
* On Linux, handle all CAN captures with pcap-linux.c, in cooked mode.
* Removes the need for the "host-endian" link-layer header type.
* Compile with '-Wused-but-marked-unused' in devel mode if supported
* Have separate DLTs for big-endian and host-endian SocketCAN headers.
* Require that version.h be generated: all build procedures we support generate version.h (autoconf, CMake, MSVC)!
* Properly check for sock_recv() errors.
* Re-impose some of Winsock's limitations on sock_recv().
* Replace sprintf() with pcap_snprintf().
* Fix signature of pcap_stats_ex_remote().
* Have rpcap_remoteact_getsock() return a SOCKET and supply an "is active" flag.
* Clean up {DAG, Septel, Myricom SNF}-only builds.
* pcap_create_interface() needs the interface name on Linux.
* Clean up hardware time stamp support: the "any" device does not support any time stamp types.
* Recognize 802.1ad nested VLAN tag in vlan filter.
- dropped libpcap-ocloexec.patch, never upstreamed.
- refreshed libpcap-1.0.0-ppp.patch
OBS-URL: https://build.opensuse.org/request/show/454184
OBS-URL: https://build.opensuse.org/package/show/Base:System/libpcap?expand=0&rev=52
2017-02-02 16:03:40 +00:00
|
|
|
|
2007-01-04 16:25:26 +00:00
|
|
|
%build
|
2012-08-27 19:38:03 +00:00
|
|
|
autoreconf -fiv
|
2017-04-04 11:09:13 +00:00
|
|
|
%ifarch %sparc
|
|
|
|
pic="PIC"
|
|
|
|
%else
|
|
|
|
pic="pic"
|
|
|
|
%endif
|
|
|
|
export CFLAGS="%{optflags} -f$pic" CXXFLAGS="%{optflags} -f$pic"
|
2007-07-13 16:19:09 +00:00
|
|
|
%configure \
|
2014-08-21 13:11:40 +00:00
|
|
|
--enable-bluetooth=yes \
|
|
|
|
--enable-ipv6
|
2010-01-29 14:58:04 +00:00
|
|
|
make %{?_smp_mflags} all shared
|
2007-01-04 16:25:26 +00:00
|
|
|
|
|
|
|
%install
|
2011-05-19 14:13:34 +00:00
|
|
|
mkdir -p %{buildroot}%{_bindir}
|
|
|
|
make DESTDIR=%{buildroot} install install-shared
|
2007-01-04 16:25:26 +00:00
|
|
|
|
2009-01-19 01:22:34 +00:00
|
|
|
%post -n libpcap1 -p /sbin/ldconfig
|
|
|
|
%postun -n libpcap1 -p /sbin/ldconfig
|
2007-07-13 16:19:09 +00:00
|
|
|
|
2009-01-19 01:22:34 +00:00
|
|
|
%files -n libpcap1
|
2007-01-04 16:25:26 +00:00
|
|
|
%defattr(-, root, root)
|
2009-01-19 01:22:34 +00:00
|
|
|
%doc CHANGES CREDITS LICENSE README README.linux TODO
|
2007-07-26 23:18:19 +00:00
|
|
|
%{_libdir}/*.so.*
|
Accepting request 454184 from home:pmonrealgonzalez:branches:Base:System
- Formatted the specs file using spec-cleaner.
- Allow bluetooth monitoring support unconditionally.
- update to 1.8.1
* Clean up the name-to-DLT mapping table.
* Add some newer DLT_ values:
IPMI_HPM_2,ZWAVE_R1_R2,ZWAVE_R3,WATTSTOPPER_DLM,ISO_14443,RDS
* Fix handling of packet count in the TPACKET_V3 inner loop: GitHub issue
#493.
* Filter out duplicate looped back CAN frames.
* Fix the handling of loopback filters for IPv6 packets.
* Add a link-layer header type for RDS (IEC 62106) groups.
* On Linux, handle all CAN captures with pcap-linux.c, in cooked mode.
* Removes the need for the "host-endian" link-layer header type.
* Compile with '-Wused-but-marked-unused' in devel mode if supported
* Have separate DLTs for big-endian and host-endian SocketCAN headers.
* Require that version.h be generated: all build procedures we support generate version.h (autoconf, CMake, MSVC)!
* Properly check for sock_recv() errors.
* Re-impose some of Winsock's limitations on sock_recv().
* Replace sprintf() with pcap_snprintf().
* Fix signature of pcap_stats_ex_remote().
* Have rpcap_remoteact_getsock() return a SOCKET and supply an "is active" flag.
* Clean up {DAG, Septel, Myricom SNF}-only builds.
* pcap_create_interface() needs the interface name on Linux.
* Clean up hardware time stamp support: the "any" device does not support any time stamp types.
* Recognize 802.1ad nested VLAN tag in vlan filter.
- dropped libpcap-ocloexec.patch, never upstreamed.
- refreshed libpcap-1.0.0-ppp.patch
OBS-URL: https://build.opensuse.org/request/show/454184
OBS-URL: https://build.opensuse.org/package/show/Base:System/libpcap?expand=0&rev=52
2017-02-02 16:03:40 +00:00
|
|
|
%{_mandir}/man7/*
|
2007-07-26 23:18:19 +00:00
|
|
|
|
2015-06-24 16:18:28 +00:00
|
|
|
%files devel-static
|
|
|
|
%defattr(-, root, root)
|
|
|
|
%{_libdir}/*.*a
|
|
|
|
|
2007-07-26 23:18:19 +00:00
|
|
|
%files devel
|
|
|
|
%defattr(-, root, root)
|
Accepting request 454184 from home:pmonrealgonzalez:branches:Base:System
- Formatted the specs file using spec-cleaner.
- Allow bluetooth monitoring support unconditionally.
- update to 1.8.1
* Clean up the name-to-DLT mapping table.
* Add some newer DLT_ values:
IPMI_HPM_2,ZWAVE_R1_R2,ZWAVE_R3,WATTSTOPPER_DLM,ISO_14443,RDS
* Fix handling of packet count in the TPACKET_V3 inner loop: GitHub issue
#493.
* Filter out duplicate looped back CAN frames.
* Fix the handling of loopback filters for IPv6 packets.
* Add a link-layer header type for RDS (IEC 62106) groups.
* On Linux, handle all CAN captures with pcap-linux.c, in cooked mode.
* Removes the need for the "host-endian" link-layer header type.
* Compile with '-Wused-but-marked-unused' in devel mode if supported
* Have separate DLTs for big-endian and host-endian SocketCAN headers.
* Require that version.h be generated: all build procedures we support generate version.h (autoconf, CMake, MSVC)!
* Properly check for sock_recv() errors.
* Re-impose some of Winsock's limitations on sock_recv().
* Replace sprintf() with pcap_snprintf().
* Fix signature of pcap_stats_ex_remote().
* Have rpcap_remoteact_getsock() return a SOCKET and supply an "is active" flag.
* Clean up {DAG, Septel, Myricom SNF}-only builds.
* pcap_create_interface() needs the interface name on Linux.
* Clean up hardware time stamp support: the "any" device does not support any time stamp types.
* Recognize 802.1ad nested VLAN tag in vlan filter.
- dropped libpcap-ocloexec.patch, never upstreamed.
- refreshed libpcap-1.0.0-ppp.patch
OBS-URL: https://build.opensuse.org/request/show/454184
OBS-URL: https://build.opensuse.org/package/show/Base:System/libpcap?expand=0&rev=52
2017-02-02 16:03:40 +00:00
|
|
|
%{_mandir}/man[1-6]/*
|
2007-01-04 16:25:26 +00:00
|
|
|
%{_includedir}/*
|
2009-01-19 01:22:34 +00:00
|
|
|
%{_bindir}/pcap-config
|
2007-07-26 23:18:19 +00:00
|
|
|
%{_libdir}/*.so
|
2007-01-04 16:25:26 +00:00
|
|
|
|
2007-03-29 10:04:33 +00:00
|
|
|
%changelog
|