aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMunechika SUMIKAWA <sumikawa@FreeBSD.org>2012-08-24 02:29:12 +0000
committerMunechika SUMIKAWA <sumikawa@FreeBSD.org>2012-08-24 02:29:12 +0000
commit552671c4937b20a21820617344270829fa96aaef (patch)
tree67317b328376cdac79940129d4e948096cf6b3c8
parent760b1060065246b403526f9e4fd135640eb5e2a9 (diff)
downloadports-552671c4937b20a21820617344270829fa96aaef.tar.gz
ports-552671c4937b20a21820617344270829fa96aaef.zip
Notes
-rw-r--r--benchmarks/netperf/Makefile3
-rw-r--r--benchmarks/netperf/distinfo4
-rw-r--r--benchmarks/netperf/files/patch-configure4
-rw-r--r--benchmarks/netperf/files/patch-dscp.c10
-rw-r--r--benchmarks/netperf/files/patch-udp669
5 files changed, 15 insertions, 75 deletions
diff --git a/benchmarks/netperf/Makefile b/benchmarks/netperf/Makefile
index 2d732c06f402..6a93893ca2ca 100644
--- a/benchmarks/netperf/Makefile
+++ b/benchmarks/netperf/Makefile
@@ -6,8 +6,7 @@
#
PORTNAME= netperf
-PORTVERSION= 2.5.0
-PORTREVISION= 2
+PORTVERSION= 2.6.0
CATEGORIES= benchmarks ipv6
MASTER_SITES= ftp://ftp.netperf.org/netperf/ \
http://fossies.org/unix/misc/
diff --git a/benchmarks/netperf/distinfo b/benchmarks/netperf/distinfo
index 3e5f2b984d9f..0e355d3bb32d 100644
--- a/benchmarks/netperf/distinfo
+++ b/benchmarks/netperf/distinfo
@@ -1,2 +1,2 @@
-SHA256 (netperf-2.5.0.tar.gz) = 2d8d1388a16c5c5704c1821d7bf35cb60c4928a4b0f92f62888b025885b9c4f1
-SIZE (netperf-2.5.0.tar.gz) = 1303009
+SHA256 (netperf-2.6.0.tar.gz) = 8eda5aa348ed9ea3ffd99b45ab2d860ffdde09f2f6faeab64fa52f12ebe17a33
+SIZE (netperf-2.6.0.tar.gz) = 1308763
diff --git a/benchmarks/netperf/files/patch-configure b/benchmarks/netperf/files/patch-configure
index 208d74066a04..1003cd1fca47 100644
--- a/benchmarks/netperf/files/patch-configure
+++ b/benchmarks/netperf/files/patch-configure
@@ -13,7 +13,7 @@
enable_cpuutil="kstat - auto"
NETCPU_SOURCE="kstat"
;;
-- *-*-freebsd[4-7].* | *-*-netbsd[1-9].* )
+- *-*-freebsd[4-8].* | *-*-netbsd[1-9].* )
+ *-*-freebsd[4-9].* | *-*-netbsd[1-9].* )
use_cpuutil=true
@@ -22,7 +22,7 @@
enable_rtlookup="rtmget - auto"
NETRTLKUP_SOURCE="rtmget"
;;
-- *-*-freebsd[4-7].* | *-*-darwin*)
+- *-*-freebsd[4-8].* | *-*-darwin*)
+ *-*-freebsd[4-9].* | *-*-darwin*)
use_rtlookup=true
enable_rtlookup="rtmget - auto"
diff --git a/benchmarks/netperf/files/patch-dscp.c b/benchmarks/netperf/files/patch-dscp.c
new file mode 100644
index 000000000000..3354b085e6aa
--- /dev/null
+++ b/benchmarks/netperf/files/patch-dscp.c
@@ -0,0 +1,10 @@
+--- src/dscp.c.orig 2012-04-04 08:51:29.000000000 +0900
++++ src/dscp.c 2012-08-24 11:12:14.866495927 +0900
+@@ -50,6 +50,7 @@
+ */
+
+ #if HAVE_NETINET_IN_SYSTM_H
++#include <sys/types.h>
+ #include <netinet/in_systm.h>
+ #endif
+ #if HAVE_NETINET_IP_H
diff --git a/benchmarks/netperf/files/patch-udp6 b/benchmarks/netperf/files/patch-udp6
deleted file mode 100644
index d75b20fb4de8..000000000000
--- a/benchmarks/netperf/files/patch-udp6
+++ /dev/null
@@ -1,69 +0,0 @@
-!
-! Make UDP_STREAM work on IPv6 by transmitting and extracting IPv6
-! addresses correctly. Otherwise bind(2) calls will fail, etc.
-!
-! Sponsored by: The FreeBSD Foundation
-! Sponsored by: iXsystems
-!
---- src/nettest_bsd.c.orig 2011-12-20 09:55:01.000000000 -0500
-+++ src/nettest_bsd.c 2011-12-20 10:20:06.000000000 -0500
-@@ -1072,15 +1072,9 @@
- #if defined(AF_INET6)
- case AF_INET6: {
- struct sockaddr_in6 *foo = (struct sockaddr_in6 *)sockaddr;
-- int *bar;
-- int i;
- foo->sin6_port = htons((unsigned short) port);
- foo->sin6_family = (unsigned short) family;
- memcpy(&(foo->sin6_addr),addr,sizeof(foo->sin6_addr));
-- /* how to put this into "host" order? */
-- for (i = sizeof(foo->sin6_addr)/sizeof(int), bar=addr; i > 0; i--) {
-- bar[i] = htonl(bar[i]);
-- }
- break;
- }
- #endif
-@@ -1121,17 +1115,13 @@
- }
- #ifdef AF_INET6
- case AF_INET6: {
-- int *foo;
- int i;
- struct sockaddr_in6 *sin6 = (struct sockaddr_in6 *)sockaddr;
-- ret = 0;
- *port = ntohs(sin6->sin6_port);
-+ ret = 1;
-+ for (i=0; i < sizeof(struct in6_addr); i++)
-+ if (sin6->sin6_addr.s6_addr[i] != 0) ret=0;
- memcpy(addr,&(sin6->sin6_addr), sizeof(sin6->sin6_addr));
-- /* how to put this into "host" order? */
-- for (i = sizeof(sin6->sin6_addr)/sizeof(int), foo=addr; i > 0; i--) {
-- if (foo[i] != 0) ret = 1;
-- foo[i] = ntohl(foo[i]);
-- }
- break;
- }
- #endif
---- src/nettest_omni.c.orig 2011-12-20 11:23:37.000000000 -0500
-+++ src/nettest_omni.c 2011-12-20 11:49:38.000000000 -0500
-@@ -6042,9 +6042,17 @@
- /* kludgy, because I have no way at present to say how many bytes
- needed to be swapped around for the request from which this is
- pulled, and it is probably all wrong for IPv6 :( */
-- for (ret=0; ret < 4; ret++) {
-- omni_request->netserver_ip[ret] = htonl(omni_request->netserver_ip[ret]);
-- omni_request->netperf_ip[ret] = htonl(omni_request->netperf_ip[ret]);
-+ switch (nf_to_af(omni_request->ipfamily)) {
-+ case AF_INET6:
-+ /* yes indeed it is, do nothing, bz */
-+ break;
-+ case AF_INET:
-+ default:
-+ for (ret=0; ret < 4; ret++) {
-+ omni_request->netserver_ip[ret] = htonl(omni_request->netserver_ip[ret]);
-+ omni_request->netperf_ip[ret] = htonl(omni_request->netperf_ip[ret]);
-+ }
-+ break;
- }
-
- set_hostname_and_port_2(omni_request->netserver_ip,