[arch-commits] Commit in iperf/trunk (PKGBUILD)
Sébastien Luttringer
seblu at archlinux.org
Wed Jan 23 14:38:45 UTC 2019
Date: Wednesday, January 23, 2019 @ 14:38:42
Author: seblu
Revision: 427247
upgpkg: iperf 2.0.13-1
Modified:
iperf/trunk/PKGBUILD
----------+
PKGBUILD | 20 +++++++++++---------
1 file changed, 11 insertions(+), 9 deletions(-)
Modified: PKGBUILD
===================================================================
--- PKGBUILD 2019-01-23 14:38:34 UTC (rev 427246)
+++ PKGBUILD 2019-01-23 14:38:42 UTC (rev 427247)
@@ -3,7 +3,7 @@
# Contributor: Dale Blount <dale at archlinux.org>
pkgname=iperf
-pkgver=2.0.12
+pkgver=2.0.13
pkgrel=1
pkgdesc='A tool to measure maximum TCP bandwidth'
arch=('x86_64')
@@ -14,18 +14,19 @@
source=("https://downloads.sourceforge.net/iperf2/iperf-$pkgver.tar.gz"
'iperf-tcp.service'
'iperf-udp.service')
-md5sums=('e501e26b9289097086ce0c44a42b10bc'
+md5sums=('31ea1c6d5cbf80b16ff3abe4288dad5e'
'1d8660b540aa0db2e627d3d400cb8de4'
'a27a8d27b1585bc999a04a2f082e2726')
prepare() {
cd $pkgname-$pkgver
# apply patch from the source array (should be a pacman feature)
- local filename
- for filename in "${source[@]}"; do
- if [[ "$filename" =~ \.patch$ ]]; then
- msg2 "Applying patch ${filename##*/}"
- patch -p1 -N -i "$srcdir/${filename##*/}"
- fi
+ local src
+ for src in "${source[@]}"; do
+ src="${src%%::*}"
+ src="${src##*/}"
+ [[ $src = *.patch ]] || continue
+ msg2 "Applying patch $src..."
+ patch -Np1 < "../$src"
done
:
}
@@ -35,7 +36,8 @@
./configure --prefix=/usr \
--enable-ipv6 \
--enable-multicast \
- --enable-threads
+ --enable-threads \
+ --enable-fastsampling
make
}
More information about the arch-commits
mailing list