community/netperf to 2.7.0-2

This commit is contained in:
Kevin Mihelich 2016-05-14 15:46:02 +00:00
parent 234bae3730
commit ad984e71fa
2 changed files with 11 additions and 23 deletions

View file

@ -8,13 +8,12 @@
pkgname=netperf
pkgver=2.7.0
pkgrel=1
pkgrel=2
pkgdesc='Benchmarking tool for many different types of networking'
url='http://www.netperf.org/'
license=('custom')
arch=('i686' 'x86_64')
depends=('glibc' 'lksctp-tools')
install=$pkgname.install
source=("ftp://ftp.netperf.org/netperf/$pkgname-$pkgver.tar.bz2"
"$pkgname.service"
'001-fix-inlining.patch')
@ -23,7 +22,16 @@ md5sums=('ad1c5342d61f297c417a93133aeba65a'
'0160c47c86ff1fca8df64cfb4cd4d9f2')
prepare() {
patch -d $pkgname-$pkgver -p1 < 001-fix-inlining.patch
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
done
:
}
build() {

View file

@ -1,20 +0,0 @@
infodir=/usr/share/info
filelist=(netperf.info)
post_install() {
[[ -x usr/bin/install-info ]] || return 0
for file in "${filelist[@]}"; do
install-info $infodir/$file.gz $infodir/dir 2> /dev/null
done
}
post_upgrade() {
post_install "$1"
}
pre_remove() {
[[ -x usr/bin/install-info ]] || return 0
for file in "${filelist[@]}"; do
install-info --delete $infodir/$file.gz $infodir/dir 2> /dev/null
done
}