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:   19-Dec-2006 08:47:59
  Branch: HEAD                             Handle: 2006121907475800

  Modified files:
    openpkg-src/tcpreplay   tcpreplay.spec

  Log:
    upgrading package: tcpreplay 2.3.5 -> 3.0b11

  Summary:
    Revision    Changes     Path
    1.39        +17 -18     openpkg-src/tcpreplay/tcpreplay.spec
  ____________________________________________________________________________

  patch -p0 <<'@@ .'
  Index: openpkg-src/tcpreplay/tcpreplay.spec
  ============================================================================
  $ cvs diff -u -r1.38 -r1.39 tcpreplay.spec
  --- openpkg-src/tcpreplay/tcpreplay.spec      13 Oct 2006 17:34:45 -0000      
1.38
  +++ openpkg-src/tcpreplay/tcpreplay.spec      19 Dec 2006 07:47:58 -0000      
1.39
  @@ -22,6 +22,10 @@
   ##  SUCH DAMAGE.
   ##
   
  +#   package version
  +%define       V_opkg 3.0b11
  +%define       V_dist 3.0.beta11
  +
   #   package information
   Name:         tcpreplay
   Summary:      TCP Packet Replaying
  @@ -32,11 +36,11 @@
   Class:        EVAL
   Group:        Capturing
   License:      BSD-style
  -Version:      2.3.5
  -Release:      20061013
  +Version:      %{V_opkg}
  +Release:      20061219
   
   #   list of sources
  -Source0:      
http://switch.dl.sourceforge.net/sourceforge/tcpreplay/tcpreplay-%{version}.tar.gz
  +Source0:      
http://switch.dl.sourceforge.net/sourceforge/tcpreplay/tcpreplay-%{V_dist}.tar.gz
   
   #   build information
   Prefix:       %{l_prefix}
  @@ -54,38 +58,33 @@
   
   %track
       prog tcpreplay = {
  -        version   = %{version}
  +        version   = %{V_dist}
           url       = http://prdownloads.sourceforge.net/tcpreplay/
  -        regex     = tcpreplay-(\d+\.\d+\.\d+)\.tar\.gz
  +        regex     = tcpreplay-(__VER__)\.tar\.gz
       }
   
   %prep
  -    %setup -q
  -    %{l_shtool} subst \
  -        -e 's/\(#include "fakepcap\.h"\);/\1/' \
  -        tcpprep.c
  +    %setup -q -n tcpreplay-%{V_dist}
   
   %build
  -    export CC="%{l_cc}"
  -    #   FIXME rse: evil hack to workaround ld(1) segfaults
  -    case "%{l_platform -t}" in
  -        *-freebsd4* ) CC="/usr/bin/gcc" ;;
  -    esac
  -    export CFLAGS="%{l_cflags}"
  -    export CPPFLAGS="%{l_cppflags}"
  -    export LDFLAGS="%{l_ldflags}"
  +    CC="%{l_cc}" \
  +    CFLAGS="%{l_cflags}" \
  +    CPPFLAGS="%{l_cppflags}" \
  +    LDFLAGS="%{l_ldflags}" \
       ./configure \
           --prefix=%{l_prefix} \
           --with-libnet=%{l_prefix} \
           --with-libpcap=%{l_prefix} \
           --with-pcapnav-config=%{l_prefix}/bin/pcapnav-config \
  -        --with-tcpdump=%{l_prefix}/bin/tcpdump
  +        --with-tcpdump=%{l_prefix}/sbin/tcpdump
       %{l_make} %{l_mflags}
   
   %install
       rm -rf $RPM_BUILD_ROOT
       %{l_make} %{l_mflags} install prefix=$RPM_BUILD_ROOT%{l_prefix}
       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
       %{l_rpmtool} files -v -ofiles -r$RPM_BUILD_ROOT %{l_files_std}
   
   %files -f files
  @@ .
______________________________________________________________________
The OpenPKG Project                                    www.openpkg.org
CVS Repository Commit List                     [email protected]

Reply via email to