OpenPKG CVS Repository http://cvs.openpkg.org/ ____________________________________________________________________________
Server: cvs.openpkg.org Name: Ralf S. Engelschall Root: /v/openpkg/cvs Email: [EMAIL PROTECTED] Module: openpkg-src Date: 31-Oct-2007 16:05:57 Branch: HEAD Handle: 2007103115055600 Added files: openpkg-src/tcpreplay tcpreplay.patch Modified files: openpkg-src/tcpreplay tcpreplay.spec Log: upgrading package: tcpreplay 3.2.1 -> 3.2.2 Summary: Revision Changes Path 1.3 +15 -0 openpkg-src/tcpreplay/tcpreplay.patch 1.49 +9 -10 openpkg-src/tcpreplay/tcpreplay.spec ____________________________________________________________________________ patch -p0 <<'@@ .' Index: openpkg-src/tcpreplay/tcpreplay.patch ============================================================================ $ cvs diff -u -r0 -r1.3 tcpreplay.patch --- /dev/null 2007-10-31 16:01:19 +0100 +++ tcpreplay.patch 2007-10-31 16:05:57 +0100 @@ -0,0 +1,15 @@ +Index: src/common/sendpacket.c +--- src/common/sendpacket.c.orig 2007-10-31 05:06:56 +0100 ++++ src/common/sendpacket.c 2007-10-31 15:59:38 +0100 +@@ -407,9 +407,11 @@ + strlcpy(sp->device, device, sizeof(sp->device)); + sp->handle.pcap = pcap; + ++#if defined(BIOCSHDRCMPLT) + 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)); ++#endif + + return sp; + } @@ . patch -p0 <<'@@ .' Index: openpkg-src/tcpreplay/tcpreplay.spec ============================================================================ $ cvs diff -u -r1.48 -r1.49 tcpreplay.spec --- openpkg-src/tcpreplay/tcpreplay.spec 26 Oct 2007 07:42:38 -0000 1.48 +++ openpkg-src/tcpreplay/tcpreplay.spec 31 Oct 2007 15:05:56 -0000 1.49 @@ -22,10 +22,6 @@ ## SUCH DAMAGE. ## -# package version -%define V_opkg 3.2.1 -%define V_dist 3.2.1 - # package information Name: tcpreplay Summary: TCP Packet Replaying @@ -36,11 +32,12 @@ Class: EVAL Group: Capturing License: BSD-style -Version: %{V_opkg} -Release: 20071026 +Version: 3.2.2 +Release: 20071031 # list of sources -Source0: http://switch.dl.sourceforge.net/sourceforge/tcpreplay/tcpreplay-%{V_dist}.tar.gz +Source0: http://switch.dl.sourceforge.net/sourceforge/tcpreplay/tcpreplay-%{version}.tar.gz +Patch0: tcpreplay.patch # build information Prefix: %{l_prefix} @@ -58,13 +55,14 @@ %track prog tcpreplay = { - version = %{V_dist} + version = %{version} url = http://prdownloads.sourceforge.net/tcpreplay/ regex = tcpreplay-(__VER__)\.tar\.gz } %prep - %setup -q -n tcpreplay-%{V_dist} + %setup -q + %patch -p0 %build CC="%{l_cc}" \ @@ -73,6 +71,7 @@ LDFLAGS="%{l_ldflags}" \ ./configure \ --prefix=%{l_prefix} \ + --mandir=%{l_prefix}/man \ --with-libnet=%{l_prefix} \ --with-libpcap=%{l_prefix} \ --with-pcapnav-config=%{l_prefix}/bin/pcapnav-config \ @@ -81,7 +80,7 @@ %install rm -rf $RPM_BUILD_ROOT - %{l_make} %{l_mflags} install prefix=$RPM_BUILD_ROOT%{l_prefix} + %{l_make} %{l_mflags} install AM_MAKEFLAGS="DESTDIR=$RPM_BUILD_ROOT" strip $RPM_BUILD_ROOT%{l_prefix}/bin/* >/dev/null 2>&1 || true rm -f $RPM_BUILD_ROOT%{l_prefix}/bin/man2html rm -rf $RPM_BUILD_ROOT%{l_prefix}/lib @@ . ______________________________________________________________________ OpenPKG http://openpkg.org CVS Repository Commit List openpkg-cvs@openpkg.org