[prev in list] [next in list] [prev in thread] [next in thread] 

List:       fedora-extras-commits
Subject:    rpms/tcpreplay/F-8 tcpreplay-3.2.2-compile.patch, NONE,
From:       Bojan Smojver (bojan) <fedora-extras-commits () redhat ! com>
Date:       2007-10-31 23:05:03
Message-ID: 200710312305.l9VN53M1023512 () cvs-int ! fedora ! redhat ! com
[Download RAW message or body]

Author: bojan

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

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-8/tcpreplay.spec,v
retrieving revision 1.7
retrieving revision 1.8
diff -u -r1.7 -r1.8
--- tcpreplay.spec	31 Oct 2007 21:09:28 -0000	1.7
+++ tcpreplay.spec	31 Oct 2007 23:04:29 -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
 

-- 
fedora-extras-commits mailing list
fedora-extras-commits@redhat.com
https://www.redhat.com/mailman/listinfo/fedora-extras-commits
[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic