PSARC 2016/518 Add iperf3 and EOF iperf 2.0.5
authorRich Burridge <rich.burridge@oracle.com>
Thu, 22 Sep 2016 14:47:12 -0700
changeset 6960 f00b140e6277
parent 6959 858b3764bcdd
child 6961 7dd9e3f6e602
PSARC 2016/518 Add iperf3 and EOF iperf 2.0.5 21467036 Add iperf3 version 3.1.3 to Userland
components/iperf3/Makefile
components/iperf3/iperf3.p5m
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/components/iperf3/Makefile	Thu Sep 22 14:47:12 2016 -0700
@@ -0,0 +1,60 @@
+#
+# CDDL HEADER START
+#
+# The contents of this file are subject to the terms of the
+# Common Development and Distribution License (the "License").
+# You may not use this file except in compliance with the License.
+#
+# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
+# or http://www.opensolaris.org/os/licensing.
+# See the License for the specific language governing permissions
+# and limitations under the License.
+#
+# When distributing Covered Code, include this CDDL HEADER in each
+# file and include the License file at usr/src/OPENSOLARIS.LICENSE.
+# If applicable, add the following below this CDDL HEADER, with the
+# fields enclosed by brackets "[]" replaced with your own identifying
+# information: Portions Copyright [yyyy] [name of copyright owner]
+#
+# CDDL HEADER END
+#
+
+#
+# Copyright (c) 2016, Oracle and/or its affiliates. All rights reserved.
+#
+BUILD_BITS= 64
+include ../../make-rules/shared-macros.mk
+
+COMPONENT_NAME=		iperf
+COMPONENT_VERSION=	3.1.3
+COMPONENT_PROJECT_URL=	https://iperf.fr/
+COMPONENT_ARCHIVE_HASH=	\
+    sha256:60d8db69b1d74a64d78566c2317c373a85fef691b8d277737ee5d29f448595bf
+COMPONENT_ARCHIVE_URL=	http://downloads.es.net/pub/$(COMPONENT_NAME)/$(COMPONENT_ARCHIVE)
+COMPONENT_BUGDB=	utility/iperf
+
+TPNO=			31583
+
+# There is no easy way to do automated testing that produce consistent
+# results independent of what machine there are run on, but the following
+# can be done manually.
+#
+# In one terminal window, start the iperf3 server with:
+#
+# $ cd .../components/iperf3/build/[amd64,sparcv9]/src
+# $ ./iperf3 -s
+#
+# In another terminal window, start the script to test various commands with:
+#
+# $ cd .../components/iperf3/build/[amd64,sparcv9]/
+# $ ./test_commands.sh localhost
+#
+TEST_TARGET= $(NO_TESTS)
+
+include $(WS_MAKE_RULES)/common.mk
+
+# Needed to successfully run the test_commands.sh script in a built workspace.
+COMPONENT_PRE_CONFIGURE_ACTION = \
+	($(CLONEY) $(SOURCE_DIR) $(@D))
+
+REQUIRED_PACKAGES += system/library/math
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/components/iperf3/iperf3.p5m	Thu Sep 22 14:47:12 2016 -0700
@@ -0,0 +1,46 @@
+#
+# CDDL HEADER START
+#
+# The contents of this file are subject to the terms of the
+# Common Development and Distribution License (the "License").
+# You may not use this file except in compliance with the License.
+#
+# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
+# or http://www.opensolaris.org/os/licensing.
+# See the License for the specific language governing permissions
+# and limitations under the License.
+#
+# When distributing Covered Code, include this CDDL HEADER in each
+# file and include the License file at usr/src/OPENSOLARIS.LICENSE.
+# If applicable, add the following below this CDDL HEADER, with the
+# fields enclosed by brackets "[]" replaced with your own identifying
+# information: Portions Copyright [yyyy] [name of copyright owner]
+#
+# CDDL HEADER END
+#
+
+#
+# Copyright (c) 2016, Oracle and/or its affiliates. All rights reserved.
+#
+
+<transform file path=usr.*/man/.+ -> default mangler.man.stability uncommitted>
+set name=pkg.fmri \
+    value=pkg:/benchmark/[email protected]$(IPS_COMPONENT_VERSION),$(BUILD_VERSION)
+set name=pkg.summary \
+    value="iperf3 - tool for measuring maximum TCP and UDP bandwidth performance"
+set name=com.oracle.info.description value="the iperf3 utility"
+set name=com.oracle.info.tpno value=$(TPNO)
+set name=info.classification \
+    value="org.opensolaris.category.2008:Applications/System Utilities"
+set name=info.source-url value=$(COMPONENT_ARCHIVE_URL)
+set name=info.upstream-url value=$(COMPONENT_PROJECT_URL)
+set name=org.opensolaris.arc-caseid value=PSARC/2016/518
+set name=org.opensolaris.consolidation value=$(CONSOLIDATION)
+file path=usr/bin/iperf3
+file path=usr/include/iperf_api.h
+link path=usr/lib/$(MACH64)/libiperf.so target=libiperf.so.0.0.0
+link path=usr/lib/$(MACH64)/libiperf.so.0 target=libiperf.so.0.0.0
+file path=usr/lib/$(MACH64)/libiperf.so.0.0.0
+file path=usr/share/man/man1/iperf3.1
+file path=usr/share/man/man3/libiperf.3
+license LICENSE license=BSD-like