From patchwork Mon Jan 13 01:03:23 2014 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Chris Packham X-Patchwork-Id: 309665 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Received: from fraxinus.osuosl.org (fraxinus.osuosl.org [140.211.166.137]) by ozlabs.org (Postfix) with ESMTP id 3EA312C0078 for ; Mon, 13 Jan 2014 12:03:43 +1100 (EST) Received: from localhost (localhost [127.0.0.1]) by fraxinus.osuosl.org (Postfix) with ESMTP id D008D8B0EE; Mon, 13 Jan 2014 01:03:41 +0000 (UTC) X-Virus-Scanned: amavisd-new at osuosl.org Received: from fraxinus.osuosl.org ([127.0.0.1]) by localhost (.osuosl.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id cIKngWvbMv6N; Mon, 13 Jan 2014 01:03:39 +0000 (UTC) Received: from ash.osuosl.org (ash.osuosl.org [140.211.166.34]) by fraxinus.osuosl.org (Postfix) with ESMTP id 2582F8B195; Mon, 13 Jan 2014 01:03:39 +0000 (UTC) X-Original-To: buildroot@lists.busybox.net Delivered-To: buildroot@osuosl.org Received: from whitealder.osuosl.org (whitealder.osuosl.org [140.211.166.138]) by ash.osuosl.org (Postfix) with ESMTP id B191C1BF989 for ; Mon, 13 Jan 2014 01:03:38 +0000 (UTC) Received: from localhost (localhost [127.0.0.1]) by whitealder.osuosl.org (Postfix) with ESMTP id A81BF8BBFD for ; Mon, 13 Jan 2014 01:03:38 +0000 (UTC) X-Virus-Scanned: amavisd-new at osuosl.org Received: from whitealder.osuosl.org ([127.0.0.1]) by localhost (.osuosl.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id O0doJXmI+RGA for ; Mon, 13 Jan 2014 01:03:36 +0000 (UTC) X-Greylist: domain auto-whitelisted by SQLgrey-1.7.6 Received: from mail-pb0-f50.google.com (mail-pb0-f50.google.com [209.85.160.50]) by whitealder.osuosl.org (Postfix) with ESMTPS id 82C3C8BA5D for ; Mon, 13 Jan 2014 01:03:36 +0000 (UTC) Received: by mail-pb0-f50.google.com with SMTP id rr13so6646476pbb.23 for ; Sun, 12 Jan 2014 17:03:36 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=from:to:cc:subject:date:message-id; bh=SxsQHfXww4N0E4bhGtCiFUXhj/uHNbqyqywVFT3MjE4=; b=vVQ1ZvORwH0d92+CUHhLtPOx/z80YKKOCvqSsp8gv2LYo4mdEvtIT/EzUpfPkAcOsA uwnU3COqny6yLyoceSd3/YL8E/PDy31k1t/xGTJMPrHeiOr+DE7aUNfH2hJRVPBx0U7H GENRUvLGQ904pooFF6rfWkf19wWC7IAwBcaMYZk1ks/jzjNnFUITTVgct6YpZ9ADntqb aDXAWpHh1QOPHuFBmPVw/yZX10FlZZfo27/DHYizfk2aiYbEJuu45qI17ecrxj7SFI2t oXXqhmBSMtudfdVbuhQDALAW+R/R0HlXh6PumaRgS0k4nmUzLvptjzwFjGhYL6cse+2w NfBw== X-Received: by 10.69.18.234 with SMTP id gp10mr26000013pbd.105.1389575016202; Sun, 12 Jan 2014 17:03:36 -0800 (PST) Received: from chrisp3-dl.ws.atlnz.lc (2-163-36-202-static.alliedtelesis.co.nz. [202.36.163.2]) by mx.google.com with ESMTPSA id dr1sm13601760pbc.18.2014.01.12.17.03.34 for (version=TLSv1.1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Sun, 12 Jan 2014 17:03:35 -0800 (PST) From: judge.packham@gmail.com To: buildroot@busybox.net Date: Mon, 13 Jan 2014 14:03:23 +1300 Message-Id: <1389575003-17982-1-git-send-email-judge.packham@gmail.com> X-Mailer: git-send-email 1.8.4.rc2 Subject: [Buildroot] [PATCH v1] tcpreplay: bump version to 4.0.0 X-BeenThere: buildroot@busybox.net X-Mailman-Version: 2.1.14 Precedence: list List-Id: Discussion and development of buildroot List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , MIME-Version: 1.0 Errors-To: buildroot-bounces@busybox.net Sender: buildroot-bounces@busybox.net From: Chris Packham Update the tcpreplay package to version 4.0.0. The upstream package has a new maintainer and license. Version 4.0.0 brings a number of new features see http://tcpreplay.appneta.com/ for details. Signed-off-by: Chris Packham --- Changes since v0: . Updated my git configuration to use a smtp server that doesn't modify my messages in-flight. package/tcpreplay/Config.in | 2 +- .../tcpreplay-3.4.3-010-cross-compile.patch | 255 --------------------- package/tcpreplay/tcpreplay.mk | 8 +- 3 files changed, 7 insertions(+), 258 deletions(-) delete mode 100644 package/tcpreplay/tcpreplay-3.4.3-010-cross-compile.patch diff --git a/package/tcpreplay/Config.in b/package/tcpreplay/Config.in index 7337070..2ba2eb5 100644 --- a/package/tcpreplay/Config.in +++ b/package/tcpreplay/Config.in @@ -6,4 +6,4 @@ config BR2_PACKAGE_TCPREPLAY Tcpreplay is a tool for replaying network traffic from files saved with tcpdump or other tools which write pcap(3) files. - http://tcpreplay.synfin.net/ + http://tcpreplay.appneta.com/ diff --git a/package/tcpreplay/tcpreplay-3.4.3-010-cross-compile.patch b/package/tcpreplay/tcpreplay-3.4.3-010-cross-compile.patch deleted file mode 100644 index 816efd6..0000000 --- a/package/tcpreplay/tcpreplay-3.4.3-010-cross-compile.patch +++ /dev/null @@ -1,255 +0,0 @@ ---- tcpreplay-3.4.3-orig/configure.ac 2009-06-25 14:45:55.000000000 -0400 -+++ tcpreplay-3.4.3/configure.ac 2009-10-30 12:29:49.000000000 -0400 -@@ -420,6 +420,11 @@ - exit(1); - ]]), [ - libpcap_version_096=yes -+], [ -+ libpcap_version_096=no -+], [ -+ AC_MSG_WARN([Tests not run when cross compiling]) -+ libpcap_version_096=no - ]) - - libpcap_ver8=no -@@ -447,6 +452,9 @@ - libpcap_ver8=yes - ], [ - libpcap_ver8=no -+], [ -+ AC_MSG_WARN([Tests not run when cross compiling]) -+ libpcap_ver8=no - ]) - - libpcap_ver7=no -@@ -472,25 +480,31 @@ - libpcap_ver7=yes - ], [ - libpcap_ver7=no -+], [ -+ AC_MSG_WARN([Tests not run when cross compiling]) -+ libpcap_ver7=no - ]) - --if test x$libpcap_ver8 = xyes ; then -- AC_MSG_RESULT(>= 0.8.0) --elif test x$libpcap_ver7 = xyes ; then -- AC_MSG_RESULT(>= 0.7.2) --else -- AC_MSG_ERROR([Libpcap versions < 0.7.2 are not supported -- Please upgrade to version 0.7.2 or better]) --fi -- --libpcap_version=unknown --if test x$libpcap_version_096 = xyes ; then -- libpcap_version=">= 0.9.6" --elif test x$libpcap_ver8 = xyes ; then -- libpcap_version=">= 0.8.0" --elif test x$libcap_ver7 = xyes ; then -- libpcap_version=">= 0.7.0" --fi -+AC_CACHE_CHECK([for supported libpcap verision], [tr_cv_libpcap_version], -+[ -+ if test x$libpcap_ver8 = xyes ; then -+ AC_MSG_RESULT(>= 0.8.0) -+ elif test x$libpcap_ver7 = xyes ; then -+ AC_MSG_RESULT(>= 0.7.2) -+ else -+ AC_MSG_ERROR([Libpcap versions < 0.7.2 are not supported -+ Please upgrade to version 0.7.2 or better]) -+ fi -+ -+ tr_cv_libpcap_version=unknown -+ if test x$libpcap_version_096 = xyes ; then -+ tr_cv_libpcap_version=">= 0.9.6" -+ elif test x$libpcap_ver8 = xyes ; then -+ tr_cv_libpcap_version=">= 0.8.0" -+ elif test x$libcap_ver7 = xyes ; then -+ tr_cv_libpcap_version=">= 0.7.0" -+ fi -+]) - - dnl Check for pcap_setnonblock() - AC_MSG_CHECKING(for pcap_setnonblock) -@@ -770,6 +784,9 @@ - have_bpf=yes - ],[ - AC_MSG_RESULT(no) -+],[ -+ AC_MSG_WARN([Tests not run when cross compiling]) -+ AC_MSG_RESULT(no) - ]) - - -@@ -1189,7 +1206,7 @@ - ########################################################################## - TCPREPLAY Suite Configuration Results (${TCPREPLAY_VERSION}) - ########################################################################## --libpcap: ${foundpcap} (${libpcap_version}) -+libpcap: ${foundpcap} (${tr_cv_libpcap_version}) - libdnet: ${founddnet} (${libdnet_version}) - autogen: ${AUTOGEN} (${AUTOGEN_VERSION}) - Use libopts tearoff: ${enable_local_libopts} ---- tcpreplay-3.4.3-orig/configure 2009-06-25 15:24:38.000000000 -0400 -+++ tcpreplay-3.4.3/configure 2009-10-30 12:22:32.000000000 -0400 -@@ -21177,13 +21177,11 @@ - - libpcap_version_096=no - if test "$cross_compiling" = yes; then -- { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5 --$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} --{ { $as_echo "$as_me:$LINENO: error: cannot run test program while cross compiling --See \`config.log' for more details." >&5 --$as_echo "$as_me: error: cannot run test program while cross compiling --See \`config.log' for more details." >&2;} -- { (exit 1); exit 1; }; }; } -+ -+ { $as_echo "$as_me:$LINENO: WARNING: Tests not run when cross compiling" >&5 -+$as_echo "$as_me: WARNING: Tests not run when cross compiling" >&2;} -+ libpcap_version_096=no -+ - else - cat >conftest.$ac_ext <<_ACEOF - /* confdefs.h. */ -@@ -21246,6 +21244,10 @@ - $as_echo "$as_me: failed program was:" >&5 - sed 's/^/| /' conftest.$ac_ext >&5 - -+( exit $ac_status ) -+ -+ libpcap_version_096=no -+ - fi - rm -rf conftest.dSYM - rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext -@@ -21255,13 +21257,11 @@ - - libpcap_ver8=no - if test "$cross_compiling" = yes; then -- { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5 --$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} --{ { $as_echo "$as_me:$LINENO: error: cannot run test program while cross compiling --See \`config.log' for more details." >&5 --$as_echo "$as_me: error: cannot run test program while cross compiling --See \`config.log' for more details." >&2;} -- { (exit 1); exit 1; }; }; } -+ -+ { $as_echo "$as_me:$LINENO: WARNING: Tests not run when cross compiling" >&5 -+$as_echo "$as_me: WARNING: Tests not run when cross compiling" >&2;} -+ libpcap_ver8=no -+ - else - cat >conftest.$ac_ext <<_ACEOF - /* confdefs.h. */ -@@ -21341,13 +21341,11 @@ - - libpcap_ver7=no - if test "$cross_compiling" = yes; then -- { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5 --$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} --{ { $as_echo "$as_me:$LINENO: error: cannot run test program while cross compiling --See \`config.log' for more details." >&5 --$as_echo "$as_me: error: cannot run test program while cross compiling --See \`config.log' for more details." >&2;} -- { (exit 1); exit 1; }; }; } -+ -+ { $as_echo "$as_me:$LINENO: WARNING: Tests not run when cross compiling" >&5 -+$as_echo "$as_me: WARNING: Tests not run when cross compiling" >&2;} -+ libpcap_ver7=no -+ - else - cat >conftest.$ac_ext <<_ACEOF - /* confdefs.h. */ -@@ -21423,28 +21421,38 @@ - - - --if test x$libpcap_ver8 = xyes ; then -- { $as_echo "$as_me:$LINENO: result: >= 0.8.0" >&5 -+{ $as_echo "$as_me:$LINENO: checking for supported libpcap verision" >&5 -+$as_echo_n "checking for supported libpcap verision... " >&6; } -+if test "${tr_cv_libpcap_version+set}" = set; then -+ $as_echo_n "(cached) " >&6 -+else -+ -+ if test x$libpcap_ver8 = xyes ; then -+ { $as_echo "$as_me:$LINENO: result: >= 0.8.0" >&5 - $as_echo ">= 0.8.0" >&6; } --elif test x$libpcap_ver7 = xyes ; then -- { $as_echo "$as_me:$LINENO: result: >= 0.7.2" >&5 -+ elif test x$libpcap_ver7 = xyes ; then -+ { $as_echo "$as_me:$LINENO: result: >= 0.7.2" >&5 - $as_echo ">= 0.7.2" >&6; } --else -- { { $as_echo "$as_me:$LINENO: error: Libpcap versions < 0.7.2 are not supported -- Please upgrade to version 0.7.2 or better" >&5 -+ else -+ { { $as_echo "$as_me:$LINENO: error: Libpcap versions < 0.7.2 are not supported -+ Please upgrade to version 0.7.2 or better" >&5 - $as_echo "$as_me: error: Libpcap versions < 0.7.2 are not supported -- Please upgrade to version 0.7.2 or better" >&2;} -+ Please upgrade to version 0.7.2 or better" >&2;} - { (exit 1); exit 1; }; } --fi -+ fi -+ -+ tr_cv_libpcap_version=unknown -+ if test x$tr_cv_libpcap_version_096 = xyes ; then -+ tr_cv_libpcap_version=">= 0.9.6" -+ elif test x$libpcap_ver8 = xyes ; then -+ tr_cv_libpcap_version=">= 0.8.0" -+ elif test x$libcap_ver7 = xyes ; then -+ tr_cv_libpcap_version=">= 0.7.0" -+ fi - --libpcap_version=unknown --if test x$libpcap_version_096 = xyes ; then -- libpcap_version=">= 0.9.6" --elif test x$libpcap_ver8 = xyes ; then -- libpcap_version=">= 0.8.0" --elif test x$libcap_ver7 = xyes ; then -- libpcap_version=">= 0.7.0" - fi -+{ $as_echo "$as_me:$LINENO: result: $tr_cv_libpcap_version" >&5 -+$as_echo "$tr_cv_libpcap_version" >&6; } - - { $as_echo "$as_me:$LINENO: checking for pcap_setnonblock" >&5 - $as_echo_n "checking for pcap_setnonblock... " >&6; } -@@ -22159,13 +22167,12 @@ - { $as_echo "$as_me:$LINENO: checking for BPF device sending support" >&5 - $as_echo_n "checking for BPF device sending support... " >&6; } - if test "$cross_compiling" = yes; then -- { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5 --$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} --{ { $as_echo "$as_me:$LINENO: error: cannot run test program while cross compiling --See \`config.log' for more details." >&5 --$as_echo "$as_me: error: cannot run test program while cross compiling --See \`config.log' for more details." >&2;} -- { (exit 1); exit 1; }; }; } -+ -+ { $as_echo "$as_me:$LINENO: WARNING: Tests not run when cross compiling" >&5 -+$as_echo "$as_me: WARNING: Tests not run when cross compiling" >&2;} -+ { $as_echo "$as_me:$LINENO: result: no" >&5 -+$as_echo "no" >&6; } -+ - else - cat >conftest.$ac_ext <<_ACEOF - /* confdefs.h. */ -@@ -35562,7 +35569,7 @@ - { $as_echo "$as_me:$LINENO: result: ########################################################################## - TCPREPLAY Suite Configuration Results (${TCPREPLAY_VERSION}) - ########################################################################## --libpcap: ${foundpcap} (${libpcap_version}) -+libpcap: ${foundpcap} (${tr_cv_libpcap_version}) - libdnet: ${founddnet} (${libdnet_version}) - autogen: ${AUTOGEN} (${AUTOGEN_VERSION}) - Use libopts tearoff: ${enable_local_libopts} -@@ -35585,7 +35592,7 @@ - $as_echo "########################################################################## - TCPREPLAY Suite Configuration Results (${TCPREPLAY_VERSION}) - ########################################################################## --libpcap: ${foundpcap} (${libpcap_version}) -+libpcap: ${foundpcap} (${tr_cv_libpcap_version}) - libdnet: ${founddnet} (${libdnet_version}) - autogen: ${AUTOGEN} (${AUTOGEN_VERSION}) - Use libopts tearoff: ${enable_local_libopts} diff --git a/package/tcpreplay/tcpreplay.mk b/package/tcpreplay/tcpreplay.mk index f2b1991..f02b556 100644 --- a/package/tcpreplay/tcpreplay.mk +++ b/package/tcpreplay/tcpreplay.mk @@ -4,9 +4,13 @@ # ################################################################################ -TCPREPLAY_VERSION = 3.4.3 +TCPREPLAY_VERSION = 4.0.0 TCPREPLAY_SITE = http://downloads.sourceforge.net/project/tcpreplay/tcpreplay/$(TCPREPLAY_VERSION) -TCPREPLAY_CONF_ENV = tr_cv_libpcap_version=">= 0.7.0" +TCPREPLAY_LICENSE = GPLv3 +TCPREPLAY_LICENSE_FILES = docs/LICENSE +TCPREPLAY_CONF_ENV = \ + tr_cv_libpcap_version=">= 0.7.0" \ + ac_cv_have_bpf=no TCPREPLAY_CONF_OPT = --with-libpcap=$(STAGING_DIR)/usr TCPREPLAY_AUTORECONF = YES TCPREPLAY_DEPENDENCIES = libpcap