[arch-commits] Commit in iperf/repos (24 files)
seblu at nymeria.archlinux.org
seblu at nymeria.archlinux.org
Thu Jan 24 12:34:05 UTC 2013
Date: Thursday, January 24, 2013 @ 13:34:05
Author: seblu
Revision: 82783
archrelease: copy trunk to community-i686, community-x86_64
Added:
iperf/repos/community-i686/PKGBUILD
(from rev 82782, iperf/trunk/PKGBUILD)
iperf/repos/community-i686/client.cpp.patch
(from rev 82782, iperf/trunk/client.cpp.patch)
iperf/repos/community-i686/iperf-tcp.service
(from rev 82782, iperf/trunk/iperf-tcp.service)
iperf/repos/community-i686/iperf-udp.service
(from rev 82782, iperf/trunk/iperf-udp.service)
iperf/repos/community-i686/iperf.install
(from rev 82782, iperf/trunk/iperf.install)
iperf/repos/community-x86_64/PKGBUILD
(from rev 82782, iperf/trunk/PKGBUILD)
iperf/repos/community-x86_64/client.cpp.patch
(from rev 82782, iperf/trunk/client.cpp.patch)
iperf/repos/community-x86_64/iperf-tcp.service
(from rev 82782, iperf/trunk/iperf-tcp.service)
iperf/repos/community-x86_64/iperf-udp.service
(from rev 82782, iperf/trunk/iperf-udp.service)
iperf/repos/community-x86_64/iperf.install
(from rev 82782, iperf/trunk/iperf.install)
Deleted:
iperf/repos/community-i686/PKGBUILD
iperf/repos/community-i686/client.cpp.patch
iperf/repos/community-i686/iperf-tcp.service
iperf/repos/community-i686/iperf-udp.service
iperf/repos/community-i686/iperf.conf
iperf/repos/community-i686/iperf.install
iperf/repos/community-i686/iperf.rc
iperf/repos/community-x86_64/PKGBUILD
iperf/repos/community-x86_64/client.cpp.patch
iperf/repos/community-x86_64/iperf-tcp.service
iperf/repos/community-x86_64/iperf-udp.service
iperf/repos/community-x86_64/iperf.conf
iperf/repos/community-x86_64/iperf.install
iperf/repos/community-x86_64/iperf.rc
------------------------------------+
community-i686/PKGBUILD | 96 ++++++++++++++++-------------------
community-i686/client.cpp.patch | 34 ++++++------
community-i686/iperf-tcp.service | 17 +++---
community-i686/iperf-udp.service | 17 +++---
community-i686/iperf.conf | 7 --
community-i686/iperf.install | 22 ++++----
community-i686/iperf.rc | 52 ------------------
community-x86_64/PKGBUILD | 96 ++++++++++++++++-------------------
community-x86_64/client.cpp.patch | 34 ++++++------
community-x86_64/iperf-tcp.service | 17 +++---
community-x86_64/iperf-udp.service | 17 +++---
community-x86_64/iperf.conf | 7 --
community-x86_64/iperf.install | 22 ++++----
community-x86_64/iperf.rc | 52 ------------------
14 files changed, 182 insertions(+), 308 deletions(-)
Deleted: community-i686/PKGBUILD
===================================================================
--- community-i686/PKGBUILD 2013-01-24 12:33:52 UTC (rev 82782)
+++ community-i686/PKGBUILD 2013-01-24 12:34:05 UTC (rev 82783)
@@ -1,51 +0,0 @@
-# $Id$
-# Maintainer: Sébastien Luttringer <seblu at aur.archlinux.org>
-# Contributor: Giovanni Scafora <giovanni at archlinux.org>
-# Contributor: Dale Blount <dale at archlinux.org>
-
-pkgname=iperf
-pkgver=2.0.5
-pkgrel=6
-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.rc'
- 'iperf.conf'
- 'iperf-tcp.service'
- 'iperf-udp.service'
- 'client.cpp.patch')
-md5sums=('44b5536b67719f4250faed632a3cd016'
- 'e99dc0d41eb800970390dd149d70b544'
- 'c75cb18434c6bf19fdc89b9caa766d7d'
- 'd2203fb26bb50a3378c2699714ada8e5'
- '573964ec1b1558a78cd667459676cdb7'
- '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
- # install initscripts
- install -Dm755 iperf.rc "$pkgdir/etc/rc.d/iperf"
- install -Dm644 iperf.conf "$pkgdir/etc/conf.d/iperf"
- 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-i686/PKGBUILD (from rev 82782, iperf/trunk/PKGBUILD)
===================================================================
--- community-i686/PKGBUILD (rev 0)
+++ community-i686/PKGBUILD 2013-01-24 12:34:05 UTC (rev 82783)
@@ -0,0 +1,45 @@
+# $Id$
+# Maintainer: Sébastien Luttringer <seblu at aur.archlinux.org>
+# Contributor: Giovanni Scafora <giovanni at archlinux.org>
+# Contributor: Dale Blount <dale at archlinux.org>
+
+pkgname=iperf
+pkgver=2.0.5
+pkgrel=7
+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:
Deleted: community-i686/client.cpp.patch
===================================================================
--- community-i686/client.cpp.patch 2013-01-24 12:33:52 UTC (rev 82782)
+++ community-i686/client.cpp.patch 2013-01-24 12:34:05 UTC (rev 82783)
@@ -1,17 +0,0 @@
---- 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-i686/client.cpp.patch (from rev 82782, iperf/trunk/client.cpp.patch)
===================================================================
--- community-i686/client.cpp.patch (rev 0)
+++ community-i686/client.cpp.patch 2013-01-24 12:34:05 UTC (rev 82783)
@@ -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
Deleted: community-i686/iperf-tcp.service
===================================================================
--- community-i686/iperf-tcp.service 2013-01-24 12:33:52 UTC (rev 82782)
+++ community-i686/iperf-tcp.service 2013-01-24 12:34:05 UTC (rev 82783)
@@ -1,8 +0,0 @@
-[Unit]
-Description=Iperf TCP Server
-
-[Service]
-ExecStart=/usr/bin/iperf -s -V
-
-[Install]
-WantedBy=multi-user.target
Copied: iperf/repos/community-i686/iperf-tcp.service (from rev 82782, iperf/trunk/iperf-tcp.service)
===================================================================
--- community-i686/iperf-tcp.service (rev 0)
+++ community-i686/iperf-tcp.service 2013-01-24 12:34:05 UTC (rev 82783)
@@ -0,0 +1,9 @@
+[Unit]
+Description=Iperf TCP Server
+After=network.target
+
+[Service]
+ExecStart=/usr/bin/iperf -s -V
+
+[Install]
+WantedBy=multi-user.target
Deleted: community-i686/iperf-udp.service
===================================================================
--- community-i686/iperf-udp.service 2013-01-24 12:33:52 UTC (rev 82782)
+++ community-i686/iperf-udp.service 2013-01-24 12:34:05 UTC (rev 82783)
@@ -1,8 +0,0 @@
-[Unit]
-Description=Iperf UDP Server
-
-[Service]
-ExecStart=/usr/bin/iperf -u -s -V
-
-[Install]
-WantedBy=multi-user.target
Copied: iperf/repos/community-i686/iperf-udp.service (from rev 82782, iperf/trunk/iperf-udp.service)
===================================================================
--- community-i686/iperf-udp.service (rev 0)
+++ community-i686/iperf-udp.service 2013-01-24 12:34:05 UTC (rev 82783)
@@ -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
Deleted: community-i686/iperf.conf
===================================================================
--- community-i686/iperf.conf 2013-01-24 12:33:52 UTC (rev 82782)
+++ community-i686/iperf.conf 2013-01-24 12:34:05 UTC (rev 82783)
@@ -1,7 +0,0 @@
-# vim:set ts=2 sw=2 ft=sh noet:
-
-# daemon pid file
-#PIDFILE='/run/iperf.pid'
-
-# daemon options. treated as an array.
-#DAEMON_OPTS='--port 5001'
Deleted: community-i686/iperf.install
===================================================================
--- community-i686/iperf.install 2013-01-24 12:33:52 UTC (rev 82782)
+++ community-i686/iperf.install 2013-01-24 12:34:05 UTC (rev 82783)
@@ -1,11 +0,0 @@
-# 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-i686/iperf.install (from rev 82782, iperf/trunk/iperf.install)
===================================================================
--- community-i686/iperf.install (rev 0)
+++ community-i686/iperf.install 2013-01-24 12:34:05 UTC (rev 82783)
@@ -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:
Deleted: community-i686/iperf.rc
===================================================================
--- community-i686/iperf.rc 2013-01-24 12:33:52 UTC (rev 82782)
+++ community-i686/iperf.rc 2013-01-24 12:34:05 UTC (rev 82783)
@@ -1,52 +0,0 @@
-#!/bin/bash
-
-# You can use this script to run iperf as tcp and udp.
-# Copy and rename this script to /etc/rc.d/iperf-udp and copy config file to
-# /etc/conf.d/iperf-udp and add -u to daemon options
-
-. /etc/rc.conf
-. /etc/rc.d/functions
-[[ -r /etc/conf.d/${0##*/} ]] && . /etc/conf.d/${0##*/}
-
-DAEMON=${DAEMON:-/usr/bin/iperf}
-PIDFILE=${PIDFILE:-/run/${0##*/}.pid}
-DAEMON_OPTS="--server $DAEMON_OPTS"
-
-# check pid
-[[ -r "$PIDFILE" ]] &&
- read PID < "$PIDFILE" && [[ -n $PID ]] && kill -0 $PID &>/dev/null || unset PID
-
-case "$1" in
- start)
- stat_busy "Starting ${0##*/} daemon"
- [[ -z $PID ]] &&
- { $DAEMON $DAEMON_OPTS </dev/null &>/dev/null & } &&
- echo "$!" > "$PIDFILE" &&
- disown %% &&
- add_daemon ${0##*/} &&
- stat_done &&
- exit 0
- stat_fail
- ;;
- stop)
- stat_busy "Stopping ${0##*/} daemon"
- [[ -n $PID ]] && kill $PID &> /dev/null &&
- rm_daemon ${0##*/} &&
- rm -f "$PIDFILE" &&
- stat_done &&
- exit 0
- stat_fail
- ;;
- restart)
- $0 stop
- $0 start
- exit 0
- ;;
- *)
- echo "usage: ${0##*/} {start|stop|restart}" >&2
- ;;
-esac
-
-exit 1
-
-# vim:set ts=2 sw=2 ft=sh noet:
Deleted: community-x86_64/PKGBUILD
===================================================================
--- community-x86_64/PKGBUILD 2013-01-24 12:33:52 UTC (rev 82782)
+++ community-x86_64/PKGBUILD 2013-01-24 12:34:05 UTC (rev 82783)
@@ -1,51 +0,0 @@
-# $Id$
-# Maintainer: Sébastien Luttringer <seblu at aur.archlinux.org>
-# Contributor: Giovanni Scafora <giovanni at archlinux.org>
-# Contributor: Dale Blount <dale at archlinux.org>
-
-pkgname=iperf
-pkgver=2.0.5
-pkgrel=6
-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.rc'
- 'iperf.conf'
- 'iperf-tcp.service'
- 'iperf-udp.service'
- 'client.cpp.patch')
-md5sums=('44b5536b67719f4250faed632a3cd016'
- 'e99dc0d41eb800970390dd149d70b544'
- 'c75cb18434c6bf19fdc89b9caa766d7d'
- 'd2203fb26bb50a3378c2699714ada8e5'
- '573964ec1b1558a78cd667459676cdb7'
- '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
- # install initscripts
- install -Dm755 iperf.rc "$pkgdir/etc/rc.d/iperf"
- install -Dm644 iperf.conf "$pkgdir/etc/conf.d/iperf"
- 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-x86_64/PKGBUILD (from rev 82782, iperf/trunk/PKGBUILD)
===================================================================
--- community-x86_64/PKGBUILD (rev 0)
+++ community-x86_64/PKGBUILD 2013-01-24 12:34:05 UTC (rev 82783)
@@ -0,0 +1,45 @@
+# $Id$
+# Maintainer: Sébastien Luttringer <seblu at aur.archlinux.org>
+# Contributor: Giovanni Scafora <giovanni at archlinux.org>
+# Contributor: Dale Blount <dale at archlinux.org>
+
+pkgname=iperf
+pkgver=2.0.5
+pkgrel=7
+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:
Deleted: community-x86_64/client.cpp.patch
===================================================================
--- community-x86_64/client.cpp.patch 2013-01-24 12:33:52 UTC (rev 82782)
+++ community-x86_64/client.cpp.patch 2013-01-24 12:34:05 UTC (rev 82783)
@@ -1,17 +0,0 @@
---- 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-x86_64/client.cpp.patch (from rev 82782, iperf/trunk/client.cpp.patch)
===================================================================
--- community-x86_64/client.cpp.patch (rev 0)
+++ community-x86_64/client.cpp.patch 2013-01-24 12:34:05 UTC (rev 82783)
@@ -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
Deleted: community-x86_64/iperf-tcp.service
===================================================================
--- community-x86_64/iperf-tcp.service 2013-01-24 12:33:52 UTC (rev 82782)
+++ community-x86_64/iperf-tcp.service 2013-01-24 12:34:05 UTC (rev 82783)
@@ -1,8 +0,0 @@
-[Unit]
-Description=Iperf TCP Server
-
-[Service]
-ExecStart=/usr/bin/iperf -s -V
-
-[Install]
-WantedBy=multi-user.target
Copied: iperf/repos/community-x86_64/iperf-tcp.service (from rev 82782, iperf/trunk/iperf-tcp.service)
===================================================================
--- community-x86_64/iperf-tcp.service (rev 0)
+++ community-x86_64/iperf-tcp.service 2013-01-24 12:34:05 UTC (rev 82783)
@@ -0,0 +1,9 @@
+[Unit]
+Description=Iperf TCP Server
+After=network.target
+
+[Service]
+ExecStart=/usr/bin/iperf -s -V
+
+[Install]
+WantedBy=multi-user.target
Deleted: community-x86_64/iperf-udp.service
===================================================================
--- community-x86_64/iperf-udp.service 2013-01-24 12:33:52 UTC (rev 82782)
+++ community-x86_64/iperf-udp.service 2013-01-24 12:34:05 UTC (rev 82783)
@@ -1,8 +0,0 @@
-[Unit]
-Description=Iperf UDP Server
-
-[Service]
-ExecStart=/usr/bin/iperf -u -s -V
-
-[Install]
-WantedBy=multi-user.target
Copied: iperf/repos/community-x86_64/iperf-udp.service (from rev 82782, iperf/trunk/iperf-udp.service)
===================================================================
--- community-x86_64/iperf-udp.service (rev 0)
+++ community-x86_64/iperf-udp.service 2013-01-24 12:34:05 UTC (rev 82783)
@@ -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
Deleted: community-x86_64/iperf.conf
===================================================================
--- community-x86_64/iperf.conf 2013-01-24 12:33:52 UTC (rev 82782)
+++ community-x86_64/iperf.conf 2013-01-24 12:34:05 UTC (rev 82783)
@@ -1,7 +0,0 @@
-# vim:set ts=2 sw=2 ft=sh noet:
-
-# daemon pid file
-#PIDFILE='/run/iperf.pid'
-
-# daemon options. treated as an array.
-#DAEMON_OPTS='--port 5001'
Deleted: community-x86_64/iperf.install
===================================================================
--- community-x86_64/iperf.install 2013-01-24 12:33:52 UTC (rev 82782)
+++ community-x86_64/iperf.install 2013-01-24 12:34:05 UTC (rev 82783)
@@ -1,11 +0,0 @@
-# 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-x86_64/iperf.install (from rev 82782, iperf/trunk/iperf.install)
===================================================================
--- community-x86_64/iperf.install (rev 0)
+++ community-x86_64/iperf.install 2013-01-24 12:34:05 UTC (rev 82783)
@@ -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:
Deleted: community-x86_64/iperf.rc
===================================================================
--- community-x86_64/iperf.rc 2013-01-24 12:33:52 UTC (rev 82782)
+++ community-x86_64/iperf.rc 2013-01-24 12:34:05 UTC (rev 82783)
@@ -1,52 +0,0 @@
-#!/bin/bash
-
-# You can use this script to run iperf as tcp and udp.
-# Copy and rename this script to /etc/rc.d/iperf-udp and copy config file to
-# /etc/conf.d/iperf-udp and add -u to daemon options
-
-. /etc/rc.conf
-. /etc/rc.d/functions
-[[ -r /etc/conf.d/${0##*/} ]] && . /etc/conf.d/${0##*/}
-
-DAEMON=${DAEMON:-/usr/bin/iperf}
-PIDFILE=${PIDFILE:-/run/${0##*/}.pid}
-DAEMON_OPTS="--server $DAEMON_OPTS"
-
-# check pid
-[[ -r "$PIDFILE" ]] &&
- read PID < "$PIDFILE" && [[ -n $PID ]] && kill -0 $PID &>/dev/null || unset PID
-
-case "$1" in
- start)
- stat_busy "Starting ${0##*/} daemon"
- [[ -z $PID ]] &&
- { $DAEMON $DAEMON_OPTS </dev/null &>/dev/null & } &&
- echo "$!" > "$PIDFILE" &&
- disown %% &&
- add_daemon ${0##*/} &&
- stat_done &&
- exit 0
- stat_fail
- ;;
- stop)
- stat_busy "Stopping ${0##*/} daemon"
- [[ -n $PID ]] && kill $PID &> /dev/null &&
- rm_daemon ${0##*/} &&
- rm -f "$PIDFILE" &&
- stat_done &&
- exit 0
- stat_fail
- ;;
- restart)
- $0 stop
- $0 start
- exit 0
- ;;
- *)
- echo "usage: ${0##*/} {start|stop|restart}" >&2
- ;;
-esac
-
-exit 1
-
-# vim:set ts=2 sw=2 ft=sh noet:
More information about the arch-commits
mailing list