rpms/tcpreplay/F-7 tcpreplay-3.2.2-compile.patch, NONE, 1.1 tcpreplay.spec, 1.7, 1.8

Bojan Smojver (bojan) fedora-extras-commits at redhat.com
Wed Oct 31 23:04:00 UTC 2007


Author: bojan

Update of /cvs/pkgs/rpms/tcpreplay/F-7
In directory cvs-int.fedora.redhat.com:/tmp/cvs-serv23005

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/F-7/tcpreplay.spec,v
retrieving revision 1.7
retrieving revision 1.8
diff -u -r1.7 -r1.8
--- tcpreplay.spec	31 Oct 2007 21:08:11 -0000	1.7
+++ tcpreplay.spec	31 Oct 2007 23:03:27 -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 at rexursive com> - 3.2.2-2
+- fix compilation
+
 * Thu Nov 01 2007 Bojan Smojver <bojan at rexursive com> - 3.2.2-1
 - bump up to 3.2.2
 




More information about the fedora-extras-commits mailing list