From: Arnaud Aujon Date: Sun, 17 Nov 2013 15:34:00 +0000 (+0100) Subject: ttcp: fix url, rename patch X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=f078a8bc9502b9a6bb1ed81ad15f4b6b0ba156db;p=buildroot.git ttcp: fix url, rename patch - fix download url : isn't available on previous ftp, use an other one instead - add version according to source code version - rename and clean patch according to patch policy [Peter: adjust upstream URL in Config.in] Signed-off-by: Arnaud Aujon Signed-off-by: Peter Korsgaard --- diff --git a/package/ttcp/Config.in b/package/ttcp/Config.in index 0262fc9e33..cf68eff33c 100644 --- a/package/ttcp/Config.in +++ b/package/ttcp/Config.in @@ -4,4 +4,4 @@ config BR2_PACKAGE_TTCP help Benchmarking tool for determining TCP and UDP performance. - ftp://ftp.sunet.se/pub/network/monitoring/ttcp/ + ftp://ftp.sgi.com/sgi/src/ttcp/README diff --git a/package/ttcp/ttcp-0001-replace-deprecated-bcopy.patch b/package/ttcp/ttcp-0001-replace-deprecated-bcopy.patch new file mode 100644 index 0000000000..fb8ef7ff45 --- /dev/null +++ b/package/ttcp/ttcp-0001-replace-deprecated-bcopy.patch @@ -0,0 +1,15 @@ +Replace deprecated bcopy call by using memmove instead. + +Index: b/ttcp.c +=================================================================== +--- a/ttcp.c ++++ b/ttcp.c +@@ -241,7 +241,7 @@ + if ((addr=gethostbyname(host)) == NULL) + err("bad hostname"); + sinhim.sin_family = addr->h_addrtype; +- bcopy(addr->h_addr,(char*)&addr_tmp, addr->h_length); ++ memmove((char*)&addr_tmp, addr->h_addr, addr->h_length); + #if defined(cray) + sinhim.sin_addr = addr_tmp; + #else diff --git a/package/ttcp/ttcp-bcopy.patch b/package/ttcp/ttcp-bcopy.patch deleted file mode 100644 index c98c88f360..0000000000 --- a/package/ttcp/ttcp-bcopy.patch +++ /dev/null @@ -1,12 +0,0 @@ -diff -urN ttcp-0rig/ttcp.c ttcp/ttcp.c ---- ttcp-0rig/ttcp.c 1993-05-17 00:00:00.000000000 +0200 -+++ ttcp/ttcp.c 2009-01-14 23:46:19.000000000 +0100 -@@ -241,7 +241,7 @@ - if ((addr=gethostbyname(host)) == NULL) - err("bad hostname"); - sinhim.sin_family = addr->h_addrtype; -- bcopy(addr->h_addr,(char*)&addr_tmp, addr->h_length); -+ memmove((char*)&addr_tmp, addr->h_addr, addr->h_length); - #if defined(cray) - sinhim.sin_addr = addr_tmp; - #else diff --git a/package/ttcp/ttcp.mk b/package/ttcp/ttcp.mk index b65949de56..7667b20617 100644 --- a/package/ttcp/ttcp.mk +++ b/package/ttcp/ttcp.mk @@ -4,9 +4,8 @@ # ################################################################################ -# -TTCP_VERSION = -TTCP_SITE = http://ftp.sunet.se/pub/network/monitoring/ttcp +TTCP_VERSION = 1.12 +TTCP_SITE = ftp://ftp.sgi.com/sgi/src/ttcp/ TTCP_SOURCE = ttcp.c TTCP_LICENSE = public domain