SPECS: libpcap.spec - add pf_ring.patch (http://www.ntop.org/PF_RI...
areq
areq at pld-linux.org
Thu Jun 14 15:51:17 CEST 2007
Author: areq Date: Thu Jun 14 13:51:17 2007 GMT
Module: SPECS Tag: HEAD
---- Log message:
- add pf_ring.patch (http://www.ntop.org/PF_RING.html)
- if with pfring disable O2 optimization
http://listgateway.unipi.it/pipermail/ntop-misc/2007-May/000883.html
---- Files affected:
SPECS:
libpcap.spec (1.67 -> 1.68)
---- Diffs:
================================================================
Index: SPECS/libpcap.spec
diff -u SPECS/libpcap.spec:1.67 SPECS/libpcap.spec:1.68
--- SPECS/libpcap.spec:1.67 Tue Feb 13 07:46:51 2007
+++ SPECS/libpcap.spec Thu Jun 14 15:51:11 2007
@@ -1,4 +1,7 @@
# $Revision$, $Date$
+#
+%bcond_with pfring # http://www.ntop.org/PF_RING.html
+#
Summary: Libpcap provides promiscuous mode access to network interfaces
Summary(es.UTF-8): libpcap ofrece acceso a modo promiscuo en interfaces de red
Summary(pl.UTF-8): Libpcap pozwala na bezpośredni dostęp do interfejsów sieciowych
@@ -14,10 +17,12 @@
Source0: http://www.tcpdump.org/release/%{name}-%{version}.tar.gz
# Source0-md5: b0626ad59004fe5767ddd2ce743a2271
Patch0: %{name}-shared.patch
+Patch1: %{name}-pf_ring.patch
BuildRequires: autoconf >= 2.53
BuildRequires: automake
BuildRequires: bison
BuildRequires: flex
+%{?with_pfring:BuildRequires: libpfring-devel}
# beware of tar 1.13.9[12] madness (tarball contains libpcap-0.8.3/./* paths)
BuildRequires: tar >= 1:1.13.93
Obsoletes: libpcap0
@@ -145,6 +150,7 @@
%prep
%setup -q
%patch0 -p1
+%{?with_pfring:%patch1 -p0}
%build
cp -f /usr/share/automake/config.sub .
@@ -152,7 +158,8 @@
%configure \
--with-pcap=linux \
--enable-ipv6
-%{__make}
+%{__make} \
+%{?with_pfring:CCOPT="-fno-strict-aliasing -fwrapv -march=i686 -mtune=pentium4 -gdwarf-2 -g2"}
%install
rm -rf $RPM_BUILD_ROOT
@@ -191,6 +198,11 @@
All persons listed below can be reached at <cvs_login>@pld-linux.org
$Log$
+Revision 1.68 2007/06/14 13:51:11 areq
+- add pf_ring.patch (http://www.ntop.org/PF_RING.html)
+- if with pfring disable O2 optimization
+ http://listgateway.unipi.it/pipermail/ntop-misc/2007-May/000883.html
+
Revision 1.67 2007/02/13 06:46:51 glen
- tabs in preamble
================================================================
---- CVS-web:
http://cvs.pld-linux.org/SPECS/libpcap.spec?r1=1.67&r2=1.68&f=u
More information about the pld-cvs-commit
mailing list