[arch-commits] Commit in iperf/repos (12 files)
Evangelos Foutras
foutrelis at archlinux.org
Sat Dec 5 15:23:59 UTC 2015
Date: Saturday, December 5, 2015 @ 16:23:59
Author: foutrelis
Revision: 148474
archrelease: copy trunk to community-staging-i686, community-staging-x86_64
Added:
iperf/repos/community-staging-i686/
iperf/repos/community-staging-i686/PKGBUILD
(from rev 148473, iperf/trunk/PKGBUILD)
iperf/repos/community-staging-i686/client.cpp.patch
(from rev 148473, iperf/trunk/client.cpp.patch)
iperf/repos/community-staging-i686/iperf-tcp.service
(from rev 148473, iperf/trunk/iperf-tcp.service)
iperf/repos/community-staging-i686/iperf-udp.service
(from rev 148473, iperf/trunk/iperf-udp.service)
iperf/repos/community-staging-i686/iperf.install
(from rev 148473, iperf/trunk/iperf.install)
iperf/repos/community-staging-x86_64/
iperf/repos/community-staging-x86_64/PKGBUILD
(from rev 148473, iperf/trunk/PKGBUILD)
iperf/repos/community-staging-x86_64/client.cpp.patch
(from rev 148473, iperf/trunk/client.cpp.patch)
iperf/repos/community-staging-x86_64/iperf-tcp.service
(from rev 148473, iperf/trunk/iperf-tcp.service)
iperf/repos/community-staging-x86_64/iperf-udp.service
(from rev 148473, iperf/trunk/iperf-udp.service)
iperf/repos/community-staging-x86_64/iperf.install
(from rev 148473, iperf/trunk/iperf.install)
--------------------------------------------+
community-staging-i686/PKGBUILD | 45 +++++++++++++++++++++++++++
community-staging-i686/client.cpp.patch | 17 ++++++++++
community-staging-i686/iperf-tcp.service | 9 +++++
community-staging-i686/iperf-udp.service | 9 +++++
community-staging-i686/iperf.install | 11 ++++++
community-staging-x86_64/PKGBUILD | 45 +++++++++++++++++++++++++++
community-staging-x86_64/client.cpp.patch | 17 ++++++++++
community-staging-x86_64/iperf-tcp.service | 9 +++++
community-staging-x86_64/iperf-udp.service | 9 +++++
community-staging-x86_64/iperf.install | 11 ++++++
10 files changed, 182 insertions(+)
Copied: iperf/repos/community-staging-i686/PKGBUILD (from rev 148473, iperf/trunk/PKGBUILD)
===================================================================
--- community-staging-i686/PKGBUILD (rev 0)
+++ community-staging-i686/PKGBUILD 2015-12-05 15:23:59 UTC (rev 148474)
@@ -0,0 +1,45 @@
+# $Id$
+# Maintainer: Sébastien Luttringer <seblu at archlinux.org>
+# Contributor: Giovanni Scafora <giovanni at archlinux.org>
+# Contributor: Dale Blount <dale at archlinux.org>
+
+pkgname=iperf
+pkgver=2.0.5
+pkgrel=9
+pkgdesc='A tool to measure maximum TCP bandwidth'
+arch=('i686' 'x86_64')
+license=('custom')
+url='http://iperf.sourceforge.net'
+depends=('gcc-libs')
+install=iperf.install
+source=("http://downloads.sourceforge.net/iperf/iperf-$pkgver.tar.gz"
+ 'iperf-tcp.service'
+ 'iperf-udp.service'
+ 'client.cpp.patch')
+md5sums=('44b5536b67719f4250faed632a3cd016'
+ '1d8660b540aa0db2e627d3d400cb8de4'
+ 'a27a8d27b1585bc999a04a2f082e2726'
+ '82ce63c87cc8bb2f0f94069857ac14a9')
+
+build() {
+ cd $pkgname-$pkgver
+ # fix FS#25159
+ patch -Np1 -i "$srcdir/client.cpp.patch"
+ ./configure --prefix=/usr \
+ --enable-ipv6 \
+ --enable-multicast \
+ --enable-threads
+ make
+}
+
+package() {
+ pushd $pkgname-$pkgver
+ make DESTDIR="$pkgdir" install
+ install -Dm644 COPYING "$pkgdir/usr/share/licenses/iperf/LICENSE"
+ popd
+ # systemd
+ install -Dm644 iperf-tcp.service "$pkgdir/usr/lib/systemd/system/iperf-tcp.service"
+ install -Dm644 iperf-udp.service "$pkgdir/usr/lib/systemd/system/iperf-udp.service"
+}
+
+# vim:set ts=2 sw=2 et:
Copied: iperf/repos/community-staging-i686/client.cpp.patch (from rev 148473, iperf/trunk/client.cpp.patch)
===================================================================
--- community-staging-i686/client.cpp.patch (rev 0)
+++ community-staging-i686/client.cpp.patch 2015-12-05 15:23:59 UTC (rev 148474)
@@ -0,0 +1,17 @@
+--- a/src/Client.cpp 2010-04-01 22:23:17.000000000 +0200
++++ b/src/Client.cpp 2011-07-19 11:03:42.000000000 +0200
+@@ -212,10 +212,10 @@
+ char* readAt = mBuf;
+
+ #if HAVE_THREAD
+- if ( !isUDP( mSettings ) ) {
+- RunTCP();
+- return;
+- }
++// if ( !isUDP( mSettings ) ) {
++// RunTCP();
++// return;
++// }
+ #endif
+
+ // Indicates if the stream is readable
Copied: iperf/repos/community-staging-i686/iperf-tcp.service (from rev 148473, iperf/trunk/iperf-tcp.service)
===================================================================
--- community-staging-i686/iperf-tcp.service (rev 0)
+++ community-staging-i686/iperf-tcp.service 2015-12-05 15:23:59 UTC (rev 148474)
@@ -0,0 +1,9 @@
+[Unit]
+Description=Iperf TCP Server
+After=network.target
+
+[Service]
+ExecStart=/usr/bin/iperf -s -V
+
+[Install]
+WantedBy=multi-user.target
Copied: iperf/repos/community-staging-i686/iperf-udp.service (from rev 148473, iperf/trunk/iperf-udp.service)
===================================================================
--- community-staging-i686/iperf-udp.service (rev 0)
+++ community-staging-i686/iperf-udp.service 2015-12-05 15:23:59 UTC (rev 148474)
@@ -0,0 +1,9 @@
+[Unit]
+Description=Iperf UDP Server
+After=network.target
+
+[Service]
+ExecStart=/usr/bin/iperf -u -s -V
+
+[Install]
+WantedBy=multi-user.target
Copied: iperf/repos/community-staging-i686/iperf.install (from rev 148473, iperf/trunk/iperf.install)
===================================================================
--- community-staging-i686/iperf.install (rev 0)
+++ community-staging-i686/iperf.install 2015-12-05 15:23:59 UTC (rev 148474)
@@ -0,0 +1,11 @@
+# arg 1: the new package version
+# arg 2: the old package version
+post_upgrade() {
+ if [ "$(vercmp $2 2.0.5-6)" -lt 0 ]; then
+ cat << EOF
+===> iperf.service unit has been moved to iperf-udp.service and iperf-tcp.service.
+EOF
+ fi
+}
+
+# vim:set ts=2 sw=2 ft=sh et:
Copied: iperf/repos/community-staging-x86_64/PKGBUILD (from rev 148473, iperf/trunk/PKGBUILD)
===================================================================
--- community-staging-x86_64/PKGBUILD (rev 0)
+++ community-staging-x86_64/PKGBUILD 2015-12-05 15:23:59 UTC (rev 148474)
@@ -0,0 +1,45 @@
+# $Id$
+# Maintainer: Sébastien Luttringer <seblu at archlinux.org>
+# Contributor: Giovanni Scafora <giovanni at archlinux.org>
+# Contributor: Dale Blount <dale at archlinux.org>
+
+pkgname=iperf
+pkgver=2.0.5
+pkgrel=9
+pkgdesc='A tool to measure maximum TCP bandwidth'
+arch=('i686' 'x86_64')
+license=('custom')
+url='http://iperf.sourceforge.net'
+depends=('gcc-libs')
+install=iperf.install
+source=("http://downloads.sourceforge.net/iperf/iperf-$pkgver.tar.gz"
+ 'iperf-tcp.service'
+ 'iperf-udp.service'
+ 'client.cpp.patch')
+md5sums=('44b5536b67719f4250faed632a3cd016'
+ '1d8660b540aa0db2e627d3d400cb8de4'
+ 'a27a8d27b1585bc999a04a2f082e2726'
+ '82ce63c87cc8bb2f0f94069857ac14a9')
+
+build() {
+ cd $pkgname-$pkgver
+ # fix FS#25159
+ patch -Np1 -i "$srcdir/client.cpp.patch"
+ ./configure --prefix=/usr \
+ --enable-ipv6 \
+ --enable-multicast \
+ --enable-threads
+ make
+}
+
+package() {
+ pushd $pkgname-$pkgver
+ make DESTDIR="$pkgdir" install
+ install -Dm644 COPYING "$pkgdir/usr/share/licenses/iperf/LICENSE"
+ popd
+ # systemd
+ install -Dm644 iperf-tcp.service "$pkgdir/usr/lib/systemd/system/iperf-tcp.service"
+ install -Dm644 iperf-udp.service "$pkgdir/usr/lib/systemd/system/iperf-udp.service"
+}
+
+# vim:set ts=2 sw=2 et:
Copied: iperf/repos/community-staging-x86_64/client.cpp.patch (from rev 148473, iperf/trunk/client.cpp.patch)
===================================================================
--- community-staging-x86_64/client.cpp.patch (rev 0)
+++ community-staging-x86_64/client.cpp.patch 2015-12-05 15:23:59 UTC (rev 148474)
@@ -0,0 +1,17 @@
+--- a/src/Client.cpp 2010-04-01 22:23:17.000000000 +0200
++++ b/src/Client.cpp 2011-07-19 11:03:42.000000000 +0200
+@@ -212,10 +212,10 @@
+ char* readAt = mBuf;
+
+ #if HAVE_THREAD
+- if ( !isUDP( mSettings ) ) {
+- RunTCP();
+- return;
+- }
++// if ( !isUDP( mSettings ) ) {
++// RunTCP();
++// return;
++// }
+ #endif
+
+ // Indicates if the stream is readable
Copied: iperf/repos/community-staging-x86_64/iperf-tcp.service (from rev 148473, iperf/trunk/iperf-tcp.service)
===================================================================
--- community-staging-x86_64/iperf-tcp.service (rev 0)
+++ community-staging-x86_64/iperf-tcp.service 2015-12-05 15:23:59 UTC (rev 148474)
@@ -0,0 +1,9 @@
+[Unit]
+Description=Iperf TCP Server
+After=network.target
+
+[Service]
+ExecStart=/usr/bin/iperf -s -V
+
+[Install]
+WantedBy=multi-user.target
Copied: iperf/repos/community-staging-x86_64/iperf-udp.service (from rev 148473, iperf/trunk/iperf-udp.service)
===================================================================
--- community-staging-x86_64/iperf-udp.service (rev 0)
+++ community-staging-x86_64/iperf-udp.service 2015-12-05 15:23:59 UTC (rev 148474)
@@ -0,0 +1,9 @@
+[Unit]
+Description=Iperf UDP Server
+After=network.target
+
+[Service]
+ExecStart=/usr/bin/iperf -u -s -V
+
+[Install]
+WantedBy=multi-user.target
Copied: iperf/repos/community-staging-x86_64/iperf.install (from rev 148473, iperf/trunk/iperf.install)
===================================================================
--- community-staging-x86_64/iperf.install (rev 0)
+++ community-staging-x86_64/iperf.install 2015-12-05 15:23:59 UTC (rev 148474)
@@ -0,0 +1,11 @@
+# arg 1: the new package version
+# arg 2: the old package version
+post_upgrade() {
+ if [ "$(vercmp $2 2.0.5-6)" -lt 0 ]; then
+ cat << EOF
+===> iperf.service unit has been moved to iperf-udp.service and iperf-tcp.service.
+EOF
+ fi
+}
+
+# vim:set ts=2 sw=2 ft=sh et:
More information about the arch-commits
mailing list