mirror of
https://github.com/yann64/haikuports.git
synced 2026-04-23 12:10:06 +02:00
Add netperf.
This commit is contained in:
0
net-analyzer/netperf/licenses/netperf
Normal file
0
net-analyzer/netperf/licenses/netperf
Normal file
53
net-analyzer/netperf/netperf-2.6.0.recipe
Normal file
53
net-analyzer/netperf/netperf-2.6.0.recipe
Normal 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
|
||||
}
|
||||
22
net-analyzer/netperf/patches/netperf-2.6.0.patchset
Normal file
22
net-analyzer/netperf/patches/netperf-2.6.0.patchset
Normal 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
|
||||
|
||||
Reference in New Issue
Block a user