Author: bojan
Update of /cvs/pkgs/rpms/tcpreplay/devel
In directory cvs-int.fedora.redhat.com:/tmp/cvs-serv21639
Modified Files:
tcpreplay.spec
Added Files:
tcpreplay-3.2.2-compile.patch
Log Message:
Fix compilation
tcpreplay-3.2.2-compile.patch:
--- NEW FILE tcpreplay-3.2.2-compile.patch ---
diff -rauN tcpreplay-3.2.2-vanilla/src/common/sendpacket.c
tcpreplay-3.2.2/src/common/sendpacket.c
--- tcpreplay-3.2.2-vanilla/src/common/sendpacket.c 2007-10-31 15:06:56.000000000 +1100
+++ tcpreplay-3.2.2/src/common/sendpacket.c 2007-11-01 09:57:33.000000000 +1100
@@ -407,9 +407,11 @@
strlcpy(sp->device, device, sizeof(sp->device));
sp->handle.pcap = pcap;
+/* XXX: this doesn't compile on Fedora
fd = pcap_get_selectable_fd(pcap);
if (ioctl(fd, BIOCSHDRCMPLT, &spoof_eth_src) == -1)
errx(1, "Unable to enable source MAC spoof support: %s",
strerror(errno));
+*/
return sp;
}
Index: tcpreplay.spec
===================================================================
RCS file: /cvs/pkgs/rpms/tcpreplay/devel/tcpreplay.spec,v
retrieving revision 1.7
retrieving revision 1.8
diff -u -r1.7 -r1.8
--- tcpreplay.spec 31 Oct 2007 21:04:44 -0000 1.7
+++ tcpreplay.spec 31 Oct 2007 23:01:26 -0000 1.8
@@ -7,13 +7,14 @@
Name: tcpreplay
Version: 3.2.2
-Release: 1%{?dist}
+Release: 2%{?dist}
Summary: Replay captured network traffic
Group: Applications/Internet
License: BSD
URL:
http://tcpreplay.synfin.net/trac/
Source:
http://prdownloads.sourceforge.net/tcpreplay/tcpreplay-%{version}.tar.gz
+Patch0: tcpreplay-3.2.2-compile.patch
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
BuildRequires: %{pcapdep} >= 0.8.0, tcpdump
@@ -28,6 +29,7 @@
%prep
%setup -q
+%patch0 -p1 -b .compile
%build
%configure --enable-dynamic-link \
@@ -61,6 +63,9 @@
%{_bindir}/*
%changelog
+* Thu Nov 01 2007 Bojan Smojver <bojan@rexursive com> - 3.2.2-2
+- fix compilation
+
* Thu Nov 01 2007 Bojan Smojver <bojan@rexursive com> - 3.2.2-1
- bump up to 3.2.2