Accepting request 227638 from network:utilities

iperf 3.0.3, a.k.a. iperf3, major update with license change

OBS-URL: https://build.opensuse.org/request/show/227638
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/iperf?expand=0&rev=13
This commit is contained in:
Stephan Kulow 2014-03-28 11:10:21 +00:00 committed by Git OBS Bridge
commit 745c1b8951
6 changed files with 220 additions and 34 deletions

View File

@ -1,13 +0,0 @@
<?xml version="1.0" ?>
<services>
<service name="download_url" mode="localonly">
<param name="protocol">https</param>
<param name="host">downloads.sourceforge.net</param>
<param name="path">/project/iperf/iperf-2.0.5.tar.gz</param>
</service>
<service name="verify_file" mode="localonly">
<param name="file">iperf-2.0.5.tar.gz</param>
<param name="verifier">sha256</param>
<param name="checksum">636b4eff0431cea80667ea85a67ce4c68698760a9837e1e9d13096d20362265b</param>
</service>
</services>

View File

@ -1,3 +0,0 @@
version https://git-lfs.github.com/spec/v1
oid sha256:636b4eff0431cea80667ea85a67ce4c68698760a9837e1e9d13096d20362265b
size 248583

View File

@ -0,0 +1,13 @@
diff -Ppru iperf-3.0.2.orig/src/Makefile.in iperf-3.0.2.profiling/src/Makefile.in
--- iperf-3.0.2.orig/src/Makefile.in 2014-03-10 17:58:44.000000000 +0100
+++ iperf-3.0.2.profiling/src/Makefile.in 2014-03-25 15:48:06.839472983 +0100
@@ -37,8 +37,7 @@ POST_UNINSTALL = :
build_triplet = @build@
host_triplet = @host@
bin_PROGRAMS = iperf3$(EXEEXT)
-noinst_PROGRAMS = t_timer$(EXEEXT) t_units$(EXEEXT) t_uuid$(EXEEXT) \
- iperf3_profile$(EXEEXT)
+noinst_PROGRAMS = t_timer$(EXEEXT) t_units$(EXEEXT) t_uuid$(EXEEXT)
TESTS = t_timer$(EXEEXT) t_units$(EXEEXT) t_uuid$(EXEEXT)
subdir = src
DIST_COMMON = $(dist_man_MANS) $(include_HEADERS) \

3
iperf-3.0.3.tar.gz Normal file
View File

@ -0,0 +1,3 @@
version https://git-lfs.github.com/spec/v1
oid sha256:7000eb69c31986a8ffd6665af6b0206b44d89e507219de55c667a991c75b223f
size 353436

View File

@ -1,3 +1,123 @@
-------------------------------------------------------------------
Wed Mar 26 19:30:51 UTC 2014 - andreas.stieger@gmx.de
- iperf 3.0.3
* Summary structures in the JSON output are now included, even if
there is only one stream.
* A possible buffer overflow in iperf_error.c has been fixed
(replaced iperf-3.0.2_strncat_bufferoverflow.patch)
* Example programs now build correctly
- clean spec
-------------------------------------------------------------------
Tue Mar 25 11:24:38 UTC 2014 - aj@ajaissle.de
- iperf project moved from SourceForge to Google Code and now to GitHub.
License changed from NCSA to BDS-3-Clause
- Update to 3.0.2
This version, sometimes referred to as iperf3, is a redesign of an original
version developed at NLANR/DAST. iperf3 is a new implementation from scratch,
with the goal of a smaller, simpler code base, and a library version of the
functionality that can be used in other programs. iperf3 also a number of
features found in other tools such as nuttcp and netperf, but were missing
from the original iperf. These include, for example, a zero-copy mode and
optional JSON output.
Note that iperf3 is NOT backwards compatible with the original iperf.
- Added iperf-3.0.2_strncat_bufferoverflow.patch:
* Prevent buffer overflow in strncat
- Added iperf-3.0.2_disable-profiling.patch:
* Disable profiling on x86 (option '-pg' is incompatible with invoked
option '-fomit-frame-pointer')
- Changes in 3.0.2
* iperf3 now builds on Linux systems that do not support
TCP_CONGESTION. Most notably this allows iperf3 to work on CentOS
5.
* An abort on MacOS 10.9 has been fixed (issue #135).
* Added -I flag for the server to write a PID file, mostly useful for
daemon mode (issue #120).
* A bug that could break some TCP tests on FreeBSD has been fixed.
* TCP snd_cwnd output is now printed by default on Linux (issue #99).
* In JSON output, the --title string no longer has a colon and two
spaces appended (issue #139).
* A buffer for holding formatted numeric values is now
properly-sized so that output is not truncated (issue #142).
* Some memory leaks have been fixed.
* A -d flag enables debugging output.
* libtoolize is now invoked correctly from the bootstrap.sh script.
* The test unit format can now be set from the API (issue #144).
* libiperf is now built as both shared and static libraries.
- Changes in 3.0.1
* Added the following new flags
-D, --daemon run server as a daemon
-L, --flowlabel set IPv6 flow label (Linux only)
-C, --linux-congestion set congestion control algorithm (Linux only)
-k, --blockcount #[KMG] number of blocks (packets) to transmit
(instead of -t or -n)
* Bug fixes
- Changes in 3.0-RC5
* Added the following new flags
-F, --file name xmit/recv the specified file
-A, --affinity n/n,m set CPU affinity (Linux only)
-J, --json output in JSON format
-Z, --zerocopy use a 'zero copy' method of sending data
-O, --omit N omit the first n seconds
-T, --title str prefix every output line with this string
* more useful information in 'verbose' mode
* Many bug fixes
- Changes in 3.0b4
* Added support for binding to a specific interface (-B)
* Added support for IPv6 mode (-6)
* Setting TCP window size (-w) is now supported
* Updates to iperf_error
* Added new errors
* Should generate more relavent messages
* Stream list now managed by queue.h macros
* Test structures are now kept intact after a test is run (for API users)
* Improved interval timer granularity
* Support for decimal values
* Many bug fixes
- Changes in 3.0b3
* Better error handling
* All errors now handled with iperf_error()
* All functions that can return errors return NULL or -1 on error and set i_errno appropriately
* Iperf API intruduced
* Support for adding new protocols
* Added support for callback functions
* on_connect - executes after a connection is made to the server
* on_new_stream - executes after a new stream is created
* on_test_start - executes right before the test begins
* on_test_finish - executes after the test is finished
* Added early support for verbose mode (-V)
- Changes in 3.0b2
* UDP mode now supported
* Support for setting bandwidth (-b)
* Parallel UDP stream support
* Reverse mode UDP support
* Support for setting TCP_NODELAY (-N), disabling Nagle's Algorithm
* Support for setting TCP MSS (-M)
* Note: This feature is still in development. It is still very buggy.
- Changes in 3.0b1
* TCP control socket now manages messages between client and server
* Dynamic server (gets test parameters from client)
* Server can now set test options dynamically without having to restart.
* Currently supported options: -l, -t, -n, -P, -R
* Future options: -u, -b, -w, -M, -N, -I, -T, -Z, -6
* Results exchange
* Client can now see server results (and vice versa)
* Reverse mode (-R)
* Server sends, client receives
------------------------------------------------------------------- -------------------------------------------------------------------
Fri Jun 22 13:59:52 UTC 2012 - coolo@suse.com Fri Jun 22 13:59:52 UTC 2012 - coolo@suse.com

View File

@ -1,7 +1,7 @@
# #
# spec file for package iperf # spec file for package iperf
# #
# Copyright (c) 2012 SUSE LINUX Products GmbH, Nuernberg, Germany. # Copyright (c) 2014 SUSE LINUX Products GmbH, Nuernberg, Germany.
# #
# All modifications and additions to the file contributed by third parties # All modifications and additions to the file contributed by third parties
# remain the property of their copyright owners, unless otherwise agreed # remain the property of their copyright owners, unless otherwise agreed
@ -16,39 +16,105 @@
# #
%define soname 0
Name: iperf Name: iperf
Version: 2.0.5 Version: 3.0.3
Release: 0 Release: 0
Summary: A Tool To Measure Network Performance Summary: A tool to measure network performance
License: NCSA License: BSD-3-Clause
Group: Productivity/Networking/Other Group: Productivity/Networking/Diagnostic
Url: http://sourceforge.net/projects/iperf/ Url: https://github.com/esnet/iperf
Source: %{name}-%{version}.tar.gz Source: https://github.com/esnet/iperf/archive/%{version}.tar.gz#/%{name}-%{version}.tar.gz
BuildRequires: gcc-c++ # PATCH-FIX-OPENSUSE -- Disable profiling on i586, as option -pg conflicts with -fomit-frame-pointer
Patch1: iperf-3.0.2_disable-profiling.patch
%if %{?sles_version} && %{?sles_version} <= 11
BuildRequires: libuuid-devel
%else
BuildRequires: pkgconfig(uuid)
%endif
BuildRoot: %{_tmppath}/%{name}-%{version}-build BuildRoot: %{_tmppath}/%{name}-%{version}-build
%description %description
Iperf was developed by NLANR/DAST as a modern alternative for Iperf is a tool for active measurements of the maximum achievable bandwidth
measuring maximum TCP and UDP bandwidth performance. on IP networks. It supports tuning of various parameters related to timing,
Iperf allows the tuning of various parameters and UDP characteristics. protocols, and buffers. For each test it reports the bandwidth, loss, and
Iperf reports bandwidth, delay jitter, datagram loss. other parameters.
This version, sometimes referred to as iperf3, is a redesign of an original
version developed at NLANR/DAST. iperf3 is a new implementation from scratch,
with the goal of a smaller, simpler code base, and a library version of the
functionality that can be used in other programs. iperf3 also a number of
features found in other tools such as nuttcp and netperf, but were missing
from the original iperf. These include, for example, a zero-copy mode and
optional JSON output.
Note that iperf3 is NOT backwards compatible with the original iperf.
%package -n lib%{name}%{soname}
Summary: A library to measure network performance
Group: Development/Libraries/C and C++
%description -n lib%{name}%{soname}
lib%{name} gives you access to all the functionality of the iperf3
network testing tool.
You can build it directly into your own program, instead of having
to run it as a shell command.
%package devel
Summary: A tool to measure network performance
Group: Development/Libraries/C and C++
Requires: lib%{name}%{soname} = %{version}
%if %{?sles_version} && %{?sles_version} <= 11
Requires: libuuid-devel
%else
Requires: pkgconfig(uuid)
%endif
%description devel
Iperf is a tool for active measurements of the maximum achievable bandwidth
on IP networks. It supports tuning of various parameters related to timing,
protocols, and buffers. For each test it reports the bandwidth, loss, and
other parameters.
This package contains development files.
%prep %prep
%setup -q %setup -q
%ifarch i386 i486 i586 i686
%patch1 -p 1
%endif
%build %build
%configure %configure
make %{?_smp_mflags} make %{?_smp_mflags}
%install %install
%makeinstall make DESTDIR=%{buildroot} install %{?_smp_mflags}
%clean # cleanup empty libtool .la file
rm -rf %{buildroot} rm %{buildroot}%{_libdir}/lib%{name}.la
%post -n lib%{name}%{soname} -p /sbin/ldconfig
%postun -n lib%{name}%{soname} -p /sbin/ldconfig
%files %files
%defattr(0644,root,root,0755) %defattr(-, root, root)
%attr(0755,root,root) %{_bindir}/%{name} %doc AUTHORS LICENSE README.md RELEASE_NOTES
%doc %{_mandir}/man1/%{name}.1%{ext_man} %{_bindir}/%{name}3
%doc %{_mandir}/man1/%{name}3.1%{ext_man}
%files -n lib%{name}%{soname}
%defattr(-, root, root)
%doc LICENSE
%{_libdir}/lib%{name}.so.*
%files devel
%defattr(-, root, root)
%doc LICENSE
%{_includedir}/%{name}_api.h
%{_libdir}/lib%{name}.a
%{_libdir}/lib%{name}.so
%doc %{_mandir}/man3/lib%{name}.3%{ext_man}
%changelog %changelog