summaryrefslogtreecommitdiff
path: root/community/iperf
diff options
context:
space:
mode:
authorMichał Masłowski <mtjm@mtjm.eu>2012-12-08 13:14:39 +0100
committerMichał Masłowski <mtjm@mtjm.eu>2012-12-08 13:14:39 +0100
commit31ccd8fa213350d61560c16caac29e5c0bb0f54f (patch)
treeea0288a26a5d9c325da1502ed4450936c52b8272 /community/iperf
parent3734b1ff855a5738195c6ff3def244d7b2e23e50 (diff)
parentb8c6ff8db00ce5eec5e6f20a90e8f8ec993ef3d5 (diff)
Merge branch 'master' of ssh://parabolagnulinux.org:1863/home/parabola/abslibre-pre-mips64el
Conflicts: community/codeblocks/PKGBUILD community/siege/PKGBUILD extra/opus/PKGBUILD extra/rtmpdump/PKGBUILD
Diffstat (limited to 'community/iperf')
-rw-r--r--community/iperf/PKGBUILD16
-rw-r--r--community/iperf/iperf-tcp.service8
-rw-r--r--community/iperf/iperf-udp.service8
-rw-r--r--community/iperf/iperf.install11
4 files changed, 37 insertions, 6 deletions
diff --git a/community/iperf/PKGBUILD b/community/iperf/PKGBUILD
index 9c79172db..58fe40947 100644
--- a/community/iperf/PKGBUILD
+++ b/community/iperf/PKGBUILD
@@ -1,25 +1,28 @@
-# $Id: PKGBUILD 70860 2012-05-18 02:29:56Z seblu $
+# $Id: PKGBUILD 80971 2012-12-08 03:52:17Z seblu $
# Maintainer: Sébastien Luttringer <seblu@aur.archlinux.org>
# Contributor: Giovanni Scafora <giovanni@archlinux.org>
# Contributor: Dale Blount <dale@archlinux.org>
pkgname=iperf
pkgver=2.0.5
-pkgrel=5
+pkgrel=6
pkgdesc='A tool to measure maximum TCP bandwidth'
arch=('i686' 'x86_64' 'mips64el')
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.service'
+ 'iperf-tcp.service'
+ 'iperf-udp.service'
'client.cpp.patch')
md5sums=('44b5536b67719f4250faed632a3cd016'
'e99dc0d41eb800970390dd149d70b544'
'c75cb18434c6bf19fdc89b9caa766d7d'
- 'b0c1165e21fb686e449c6bab9852be31'
+ 'd2203fb26bb50a3378c2699714ada8e5'
+ '573964ec1b1558a78cd667459676cdb7'
'82ce63c87cc8bb2f0f94069857ac14a9')
build() {
@@ -41,7 +44,8 @@ package() {
# install initscripts
install -Dm755 iperf.rc "$pkgdir/etc/rc.d/iperf"
install -Dm644 iperf.conf "$pkgdir/etc/conf.d/iperf"
- install -Dm644 iperf.service "$pkgdir/usr/lib/systemd/system/iperf.service"
+ 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 ft=sh et:
+# vim:set ts=2 sw=2 et:
diff --git a/community/iperf/iperf-tcp.service b/community/iperf/iperf-tcp.service
new file mode 100644
index 000000000..29967815a
--- /dev/null
+++ b/community/iperf/iperf-tcp.service
@@ -0,0 +1,8 @@
+[Unit]
+Description=Iperf TCP Server
+
+[Service]
+ExecStart=/usr/bin/iperf -s -V
+
+[Install]
+WantedBy=multi-user.target
diff --git a/community/iperf/iperf-udp.service b/community/iperf/iperf-udp.service
new file mode 100644
index 000000000..2253f9c45
--- /dev/null
+++ b/community/iperf/iperf-udp.service
@@ -0,0 +1,8 @@
+[Unit]
+Description=Iperf UDP Server
+
+[Service]
+ExecStart=/usr/bin/iperf -u -s -V
+
+[Install]
+WantedBy=multi-user.target
diff --git a/community/iperf/iperf.install b/community/iperf/iperf.install
new file mode 100644
index 000000000..2fa553d52
--- /dev/null
+++ b/community/iperf/iperf.install
@@ -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: