Add netperf.

This commit is contained in:
Adrien Destugues
2014-06-04 14:45:45 +02:00
parent fcf6f8bde0
commit 998b7a7472
3 changed files with 75 additions and 0 deletions

View File

View File

@@ -0,0 +1,53 @@
SUMMARY="Network performance benchmark including tests for TCP, UDP, and more."
DESCRIPTION="
Netperf is a benchmark that can be used to measure the performance of many \
different types of networking. It provides tests for both unidirectional \
throughput, and end-to-end latency. The environments currently measureable by \
netperf include:
* TCP and UDP via BSD Sockets for both IPv4 and IPv6
* DLPI
* Unix Domain Sockets
* SCTP for both IPv4 and IPv6
"
HOMEPAGE="http://netperf.org"
SRC_URI="ftp://ftp.netperf.org/${portName}/${portName}-${portVersion}.tar.bz2"
CHECKSUM_SHA256="cd8dac710d4273d29f70e8dbd09353a6362ac58a11926e0822233c0cb230323a"
LICENSE="netperf"
COPYRIGHT="1993 Hewlett-Packard Company"
REVISION="1"
ARCHITECTURES="x86_gcc2"
PROVIDES="
netperf = $portVersion
cmd:netperf
cmd:netserver
"
REQUIRES="
haiku >= $haikuVersion
"
BUILD_REQUIRES="
haiku_devel >= $haikuVersion
"
BUILD_PREREQUIRES="
cmd:awk
cmd:gcc
cmd:make
"
PATCHES="netperf-2.6.0.patchset"
BUILD()
{
runConfigure ./configure
make
}
INSTALL()
{
make install
}
TEST()
{
make check
}

View File

@@ -0,0 +1,22 @@
From 08c3cdbadfc2679183619f71d05bae03c43cb23f Mon Sep 17 00:00:00 2001
From: Adrien Destugues <pulkomandy@pulkomandy.tk>
Date: Wed, 4 Jun 2014 14:44:30 +0200
Subject: Add missing include.
diff --git a/src/netserver.c b/src/netserver.c
index 379a106..55c202b 100644
--- a/src/netserver.c
+++ b/src/netserver.c
@@ -75,6 +75,8 @@ char netserver_id[]="\
#include <sys/ioctl.h>
#endif
+#include <sys/select.h>
+
#if HAVE_SYS_SOCKET_H
#include <sys/socket.h>
#endif
--
1.8.3.4