pkgsrc-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[pkgsrc/trunk]: pkgsrc/net/tcpreplay Update tcpreplay to version 4.2.6.



details:   https://anonhg.NetBSD.org/pkgsrc/rev/51f94bc10196
branches:  trunk
changeset: 372364:51f94bc10196
user:      he <he%pkgsrc.org@localhost>
date:      Mon Dec 04 09:32:01 2017 +0000

description:
Update tcpreplay to version 4.2.6.
This catches up with the project which has apparently moved
to github.com.  With it comes fixes for two known CVEs (CVE-2016-6160,
CVE-2017-6429).  There is otherwise a large set of changes,
see the release history on github for the details.
The license changed to gnu-gpl-v3, LICENSE setting added.

diffstat:

 net/tcpreplay/Makefile                             |  10 ++-
 net/tcpreplay/PLIST                                |   4 +-
 net/tcpreplay/distinfo                             |  21 ++----
 net/tcpreplay/patches/patch-aa                     |  34 ------------
 net/tcpreplay/patches/patch-ab                     |  60 ----------------------
 net/tcpreplay/patches/patch-lib_Makefile.in        |  14 -----
 net/tcpreplay/patches/patch-libopts_makeshell.c    |  44 ++++++++++++++++
 net/tcpreplay/patches/patch-src_common_Makefile.in |  22 --------
 net/tcpreplay/patches/patch-src_common_cidr.c      |  14 -----
 net/tcpreplay/patches/patch-src_common_get.c       |  15 +++++
 net/tcpreplay/patches/patch-src_common_mac.c       |  24 ++++++++
 net/tcpreplay/patches/patch-src_common_tcpdump.c   |  14 -----
 net/tcpreplay/patches/patch-src_defines.h.in       |  14 -----
 net/tcpreplay/patches/patch-src_tcpprep.c          |  14 -----
 14 files changed, 100 insertions(+), 204 deletions(-)

diffs (truncated from 377 to 300 lines):

diff -r 60143a120595 -r 51f94bc10196 net/tcpreplay/Makefile
--- a/net/tcpreplay/Makefile    Mon Dec 04 08:40:48 2017 +0000
+++ b/net/tcpreplay/Makefile    Mon Dec 04 09:32:01 2017 +0000
@@ -1,12 +1,14 @@
-# $NetBSD: Makefile,v 1.22 2013/10/31 02:25:16 minskim Exp $
+# $NetBSD: Makefile,v 1.23 2017/12/04 09:32:01 he Exp $
 
-DISTNAME=      tcpreplay-3.4.4
+VERSION=       4.2.6
+DISTNAME=      tcpreplay-${VERSION}
 CATEGORIES=    net
-MASTER_SITES=  ${MASTER_SITE_SOURCEFORGE:=tcpreplay/}
+MASTER_SITES=  ${MASTER_SITE_GITHUB:=appneta/tcpreplay/releases/download/v${VERSION}/}
 
 MAINTAINER=    pkgsrc-users%NetBSD.org@localhost
-HOMEPAGE=      http://tcpreplay.synfin.net/
+HOMEPAGE=      http://tcpreplay.appneta.com/wiki/installation.html
 COMMENT=       Replay saved tcpdump or snoop files
+LICENSE=       gnu-gpl-v3
 
 BUILDLINK_API_DEPENDS.libpcap+=        libpcap>=0.8.0
 
diff -r 60143a120595 -r 51f94bc10196 net/tcpreplay/PLIST
--- a/net/tcpreplay/PLIST       Mon Dec 04 08:40:48 2017 +0000
+++ b/net/tcpreplay/PLIST       Mon Dec 04 09:32:01 2017 +0000
@@ -1,9 +1,11 @@
-@comment $NetBSD: PLIST,v 1.5 2009/05/02 17:35:43 minskim Exp $
+@comment $NetBSD: PLIST,v 1.6 2017/12/04 09:32:01 he Exp $
+bin/tcpcapinfo
 bin/tcpbridge
 bin/tcpprep
 bin/tcpreplay
 bin/tcpreplay-edit
 bin/tcprewrite
+man/man1/tcpcapinfo.1
 man/man1/tcpbridge.1
 man/man1/tcpprep.1
 man/man1/tcpreplay.1
diff -r 60143a120595 -r 51f94bc10196 net/tcpreplay/distinfo
--- a/net/tcpreplay/distinfo    Mon Dec 04 08:40:48 2017 +0000
+++ b/net/tcpreplay/distinfo    Mon Dec 04 09:32:01 2017 +0000
@@ -1,14 +1,9 @@
-$NetBSD: distinfo,v 1.12 2015/11/04 00:35:40 agc Exp $
+$NetBSD: distinfo,v 1.13 2017/12/04 09:32:01 he Exp $
 
-SHA1 (tcpreplay-3.4.4.tar.gz) = 9e4cca81cfbfb919f8759e1a27ce1b3b963ff3b8
-RMD160 (tcpreplay-3.4.4.tar.gz) = 672812755ff39b284044b08cba32c574ab2b7e70
-SHA512 (tcpreplay-3.4.4.tar.gz) = b129f14689d73905fa3238090de397bf845d6764e73411738a82bdf39c3d4605ad9a64e55dfca88035716704015a1cfc8b4fe097e019e30f84379f4126700cc8
-Size (tcpreplay-3.4.4.tar.gz) = 947179 bytes
-SHA1 (patch-aa) = 377cd7e829b00df9aff0aeed4c4136317602334a
-SHA1 (patch-ab) = 54bd9c0a3e07eef3a3e4cfccc87c8351090301c1
-SHA1 (patch-lib_Makefile.in) = 9a59f2652c08efb87944e132998a3c0778a5b5a7
-SHA1 (patch-src_common_Makefile.in) = 7cd6878eecd94d735e314768a0302298ac415ffc
-SHA1 (patch-src_common_cidr.c) = 77694f71876916e9e77a0257ce91bf7bb2f140a2
-SHA1 (patch-src_common_tcpdump.c) = f46d713dc57db02845173dc92c4f2ec94c158298
-SHA1 (patch-src_defines.h.in) = 58fa82a29f997662d5e793461f4d3cfccd593eb0
-SHA1 (patch-src_tcpprep.c) = 2c5ce09986c4e215230472791a99c4c183223c85
+SHA1 (tcpreplay-4.2.6.tar.gz) = 8f7b91534d7936ae534d87689ad371fd4e4bb059
+RMD160 (tcpreplay-4.2.6.tar.gz) = afdbd71573d04afbe7f6594778e9dd1223b64ff0
+SHA512 (tcpreplay-4.2.6.tar.gz) = a46846b29e3cd7fbc635faee9c4be90db0d346c0d0f291ac8e007e1fbf614289094e14480c1c5b40feb5a175d3cbad018e2dd4d1a5762b7d31a4325af6102e7e
+Size (tcpreplay-4.2.6.tar.gz) = 3494827 bytes
+SHA1 (patch-libopts_makeshell.c) = 1da67df9acb4ac7972ed72db5b113bfee054aeae
+SHA1 (patch-src_common_get.c) = 71685be82d53faa5f1e73afcddb540506055e41e
+SHA1 (patch-src_common_mac.c) = e667846485bb1d07065f98cc685a318ee04873ec
diff -r 60143a120595 -r 51f94bc10196 net/tcpreplay/patches/patch-aa
--- a/net/tcpreplay/patches/patch-aa    Mon Dec 04 08:40:48 2017 +0000
+++ /dev/null   Thu Jan 01 00:00:00 1970 +0000
@@ -1,34 +0,0 @@
-$NetBSD: patch-aa,v 1.4 2013/10/31 02:25:17 minskim Exp $
-
---- configure.ac.orig  2010-04-05 00:58:05.000000000 +0000
-+++ configure.ac
-@@ -351,9 +351,9 @@ for testdir in $trypcapdir /usr/local /o
-         LPCAPINC="${testdir}/include/pcap.h"
-         LPCAPINCDIR="${testdir}/include"
-         if test $dynamic_link = yes; then
--            if test -f "${testdir}/lib64/libpcap${shrext_cmds}" ; then
-+            if test -e "${testdir}/lib64/libpcap${shrext_cmds}" ; then
-                 LPCAPLIB="-L${testdir}/lib64 -lpcap"
--            elif test -f "${testdir}/lib/libpcap${shrext_cmds}" ; then
-+            elif test -e "${testdir}/lib/libpcap${shrext_cmds}" ; then
-                 LPCAPLIB="-L${testdir}/lib -lpcap"
-             else
-                 AC_ERROR([Unable to find libpcap in ${testdir}])
-@@ -810,7 +810,7 @@ libdnet_version=
- enable_fragroute=no
- trydnetdir=/usr/local
- 
--if test $have_cygwin == no ; then
-+if test $have_cygwin = no ; then
-     AC_MSG_CHECKING(for libdnet)
-     AC_ARG_WITH(libdnet,
-         AC_HELP_STRING([--with-libdnet=DIR], [Use libdnet in DIR]),
-@@ -1161,7 +1161,7 @@ case $host in
-     ;;
- esac])
- 
--AM_CONDITIONAL([ENABLE_OSX_FRAMEWORKS], test "$osx_frameworks" == "yes")
-+AM_CONDITIONAL([ENABLE_OSX_FRAMEWORKS], test "$osx_frameworks" = "yes")
- 
- AC_ARG_WITH(testnic2,
-     AC_HELP_STRING([--with-testnic2=NIC2], [Select an optional 2nd network card to use for testing]),
diff -r 60143a120595 -r 51f94bc10196 net/tcpreplay/patches/patch-ab
--- a/net/tcpreplay/patches/patch-ab    Mon Dec 04 08:40:48 2017 +0000
+++ /dev/null   Thu Jan 01 00:00:00 1970 +0000
@@ -1,60 +0,0 @@
-$NetBSD: patch-ab,v 1.3 2013/11/19 03:07:49 minskim Exp $
-
---- configure.orig     2010-04-05 00:58:26.000000000 +0000
-+++ configure
-@@ -9872,7 +9872,11 @@ darwin* | rhapsody*)
-   soname_spec='${libname}${release}${major}$shared_ext'
-   shlibpath_overrides_runpath=yes
-   shlibpath_var=DYLD_LIBRARY_PATH
--  shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
-+  if test .$module = .yes ; then
-+    shrext_cmds=".so"
-+  else
-+    shrext_cmds=".dylib"
-+  fi
- 
-   sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
-   sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
-@@ -14675,7 +14679,11 @@ darwin* | rhapsody*)
-   soname_spec='${libname}${release}${major}$shared_ext'
-   shlibpath_overrides_runpath=yes
-   shlibpath_var=DYLD_LIBRARY_PATH
--  shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
-+  if test .$module = .yes ; then
-+      shrext_cmds=".so"
-+  else
-+      shrext_cmds=".dylib"
-+  fi
- 
-   sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
-   ;;
-@@ -17353,9 +17361,9 @@ for testdir in $trypcapdir /usr/local /o
-         LPCAPINC="${testdir}/include/pcap.h"
-         LPCAPINCDIR="${testdir}/include"
-         if test $dynamic_link = yes; then
--            if test -f "${testdir}/lib64/libpcap${shrext_cmds}" ; then
-+            if test -e "${testdir}/lib64/libpcap${shrext_cmds}" ; then
-                 LPCAPLIB="-L${testdir}/lib64 -lpcap"
--            elif test -f "${testdir}/lib/libpcap${shrext_cmds}" ; then
-+            elif test -e "${testdir}/lib/libpcap${shrext_cmds}" ; then
-                 LPCAPLIB="-L${testdir}/lib -lpcap"
-             else
-                 as_fn_error "Unable to find libpcap in ${testdir}" "$LINENO" 5
-@@ -18172,7 +18180,7 @@ libdnet_version=
- enable_fragroute=no
- trydnetdir=/usr/local
- 
--if test $have_cygwin == no ; then
-+if test $have_cygwin = no ; then
-     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libdnet" >&5
- $as_echo_n "checking for libdnet... " >&6; }
- 
-@@ -18751,7 +18759,7 @@ esac
- fi
- 
- 
-- if test "$osx_frameworks" == "yes"; then
-+ if test "$osx_frameworks" = "yes"; then
-   ENABLE_OSX_FRAMEWORKS_TRUE=
-   ENABLE_OSX_FRAMEWORKS_FALSE='#'
- else
diff -r 60143a120595 -r 51f94bc10196 net/tcpreplay/patches/patch-lib_Makefile.in
--- a/net/tcpreplay/patches/patch-lib_Makefile.in       Mon Dec 04 08:40:48 2017 +0000
+++ /dev/null   Thu Jan 01 00:00:00 1970 +0000
@@ -1,14 +0,0 @@
-$NetBSD: patch-lib_Makefile.in,v 1.1 2013/10/31 02:25:17 minskim Exp $
-
---- lib/Makefile.in.orig       2010-04-05 00:58:24.000000000 +0000
-+++ lib/Makefile.in
-@@ -217,7 +217,8 @@ tcpdump_path = @tcpdump_path@
- top_build_prefix = @top_build_prefix@
- top_builddir = @top_builddir@
- top_srcdir = @top_srcdir@
--noinst_LIBRARIES = libstrl.a
-+@SYSTEM_STRLCPY_FALSE@noinst_LIBRARIES = libstrl.a
-+@SYSTEM_STRLCPY_TRUE@noinst_LIBRARIES =
- libstrl_a_SOURCES = strlcat.c strlcpy.c
- noinst_HEADERS = strlcpy.h tree.h queue.h sll.h
- MOSTLYCLEANFILES = *~ *.o *.a
diff -r 60143a120595 -r 51f94bc10196 net/tcpreplay/patches/patch-libopts_makeshell.c
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/net/tcpreplay/patches/patch-libopts_makeshell.c   Mon Dec 04 09:32:01 2017 +0000
@@ -0,0 +1,44 @@
+$NetBSD: patch-libopts_makeshell.c,v 1.1 2017/12/04 09:32:01 he Exp $
+
+Ensure args to toxxxx() are within allowed value range.
+
+--- ./libopts/makeshell.c.orig 2017-04-27 00:56:25.000000000 +0000
++++ ./libopts/makeshell.c
+@@ -396,7 +396,7 @@ emit_usage(tOptions * opts)
+ 
+         /* Copy the program name into the time/name buffer */
+         for (;;) {
+-            if ((*pzPN++ = (char)tolower(*pz++)) == NUL)
++            if ((*pzPN++ = (char)tolower((unsigned char)*pz++)) == NUL)
+                 break;
+         }
+ 
+@@ -653,7 +653,7 @@ emit_match_expr(char const * name, tOptD
+              *  They must not be the same.  They cannot be, because it would
+              *  not compile correctly if they were.
+              */
+-            while (toupper(od->pz_Name[match_ct]) == toupper(name[match_ct]))
++            while (toupper((unsigned char)od->pz_Name[match_ct]) == toupper((unsigned char)name[match_ct]))
+                 match_ct++;
+ 
+             if (match_ct > min_match_ct)
+@@ -666,8 +666,8 @@ emit_match_expr(char const * name, tOptD
+                 continue;
+ 
+             match_ct = 0;
+-            while (  toupper(od->pz_DisableName[match_ct])
+-                  == toupper(name[match_ct]))
++            while (  toupper((unsigned char)od->pz_DisableName[match_ct])
++                  == toupper((unsigned char)name[match_ct]))
+                 match_ct++;
+             if (match_ct > min_match_ct)
+                 min_match_ct = match_ct;
+@@ -905,7 +905,7 @@ genshelloptUsage(tOptions * opts, int ex
+         AGDUPSTR(pz, optionParseShellOptions->pzPROGNAME, "prog name");
+         *pp = pz;
+         while (*pz != NUL) {
+-            *pz = (char)tolower(*pz);
++            *pz = (char)tolower((unsigned char)*pz);
+             pz++;
+         }
+     }
diff -r 60143a120595 -r 51f94bc10196 net/tcpreplay/patches/patch-src_common_Makefile.in
--- a/net/tcpreplay/patches/patch-src_common_Makefile.in        Mon Dec 04 08:40:48 2017 +0000
+++ /dev/null   Thu Jan 01 00:00:00 1970 +0000
@@ -1,22 +0,0 @@
-$NetBSD: patch-src_common_Makefile.in,v 1.1 2013/10/31 02:25:17 minskim Exp $
-
---- src/common/Makefile.in.orig        2010-04-05 00:58:25.000000000 +0000
-+++ src/common/Makefile.in
-@@ -52,7 +52,7 @@ CONFIG_CLEAN_VPATH_FILES =
- LIBRARIES = $(noinst_LIBRARIES)
- ARFLAGS = cru
- libcommon_a_AR = $(AR) $(ARFLAGS)
--libcommon_a_DEPENDENCIES = ../../lib/libstrl.a
-+@SYSTEM_STRLCPY_FALSE@libcommon_a_DEPENDENCIES = ../../lib/libstrl.a
- am__libcommon_a_SOURCES_DIST = cidr.c err.c list.c cache.c services.c \
-       get.c fakepcap.c fakepcapnav.c fakepoll.c xX.c utils.c timer.c \
-       svn_version.c abort.c sendpacket.c dlt_names.c mac.c \
-@@ -238,7 +238,7 @@ libcommon_a_SOURCES = cidr.c err.c list.
-       svn_version.c abort.c sendpacket.c dlt_names.c mac.c \
-       interface.c rdtsc.c $(am__append_1)
- AM_CFLAGS = -I.. -I../.. $(LNAV_CFLAGS) @LDNETINC@
--libcommon_a_LIBADD = ../../lib/libstrl.a
-+@SYSTEM_STRLCPY_FALSE@libcommon_a_LIBADD = ../../lib/libstrl.a
- noinst_HEADERS = cidr.h err.h list.h cache.h services.h get.h \
-                fakepcap.h fakepcapnav.h fakepoll.h xX.h utils.h \
-                tcpdump.h timer.h abort.h pcap_dlt.h sendpacket.h \
diff -r 60143a120595 -r 51f94bc10196 net/tcpreplay/patches/patch-src_common_cidr.c
--- a/net/tcpreplay/patches/patch-src_common_cidr.c     Mon Dec 04 08:40:48 2017 +0000
+++ /dev/null   Thu Jan 01 00:00:00 1970 +0000
@@ -1,14 +0,0 @@
-$NetBSD: patch-src_common_cidr.c,v 1.1 2013/10/31 02:25:17 minskim Exp $
-
---- src/common/cidr.c.orig     2010-04-05 00:58:01.000000000 +0000
-+++ src/common/cidr.c
-@@ -34,7 +34,9 @@
- #include "config.h"
- #include "defines.h"
- #include "common.h"
-+#ifndef HAVE_STRLCPY
- #include "lib/strlcpy.h"
-+#endif
- 
- #include <stdio.h>
- #include <stdlib.h>
diff -r 60143a120595 -r 51f94bc10196 net/tcpreplay/patches/patch-src_common_get.c
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/net/tcpreplay/patches/patch-src_common_get.c      Mon Dec 04 09:32:01 2017 +0000
@@ -0,0 +1,15 @@
+$NetBSD: patch-src_common_get.c,v 1.1 2017/12/04 09:32:01 he Exp $
+
+Ensure args to toxxxx() is within allowed range.
+
+--- src/common/get.c.orig      2017-05-16 15:10:27.000000000 +0000
++++ src/common/get.c
+@@ -569,7 +569,7 @@ get_name2addr4(const char *hostname, boo
+      *  We only want dots 'n decimals.
+      */
+     else {
+-        if (!isdigit(hostname[0])) {
++        if (!isdigit((unsigned char)hostname[0])) {
+             warnx("Expected dotted-quad notation (%s) when DNS lookups are disabled", 
+                     hostname);
+             /* XXX - this is actually 255.255.255.255 */
diff -r 60143a120595 -r 51f94bc10196 net/tcpreplay/patches/patch-src_common_mac.c
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/net/tcpreplay/patches/patch-src_common_mac.c      Mon Dec 04 09:32:01 2017 +0000
@@ -0,0 +1,24 @@
+$NetBSD: patch-src_common_mac.c,v 1.1 2017/12/04 09:32:01 he Exp $



Home | Main Index | Thread Index | Old Index