blob: 5985ba0d1232b7c176dfd31a02eff744759c7651 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
|
# $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=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:
|