aboutsummaryrefslogtreecommitdiff
path: root/network/netperf/netperf.SlackBuild
diff options
context:
space:
mode:
Diffstat (limited to 'network/netperf/netperf.SlackBuild')
-rw-r--r--network/netperf/netperf.SlackBuild15
1 files changed, 8 insertions, 7 deletions
diff --git a/network/netperf/netperf.SlackBuild b/network/netperf/netperf.SlackBuild
index 8c4d08dea427..a6cf15afacbb 100644
--- a/network/netperf/netperf.SlackBuild
+++ b/network/netperf/netperf.SlackBuild
@@ -25,7 +25,7 @@
cd $(dirname $0) ; CWD=$(pwd)
PRGNAM=netperf
-VERSION=${VERSION:-2.6.0}
+VERSION=${VERSION:-2.7.0}
BUILD=${BUILD:-1}
TAG=${TAG:-_SBo}
PKGTYPE=${PKGTYPE:-tgz}
@@ -69,9 +69,9 @@ set -e
rm -rf $PKG
mkdir -p $TMP $PKG $OUTPUT
cd $TMP
-rm -rf $PRGNAM-$VERSION
-tar xvf $CWD/$PRGNAM-$VERSION.tar.?z*
-cd $PRGNAM-$VERSION
+rm -rf $PRGNAM-$PRGNAM-$VERSION
+tar xvf $CWD/$PRGNAM-$PRGNAM-$VERSION.tar.?z*
+cd $PRGNAM-$PRGNAM-$VERSION
chown -R root:root .
find -L . \
\( -perm 777 -o -perm 775 -o -perm 750 -o -perm 711 -o -perm 555 -o -perm 511 \) \
@@ -79,7 +79,9 @@ find -L . \
\( -perm 666 -o -perm 664 -o -perm 600 -o -perm 444 -o -perm 440 -o -perm 400 \) \
-exec chmod 644 {} \;
-CFLAGS="$SLKCFLAGS" \
+patch -p1 < $CWD/001-fix-inlining.patch
+
+CFLAGS="$SLKCFLAGS -fcommon" \
./configure \
--prefix=/usr \
--libdir=/usr/lib${LIBDIRSUFFIX} \
@@ -101,8 +103,7 @@ rm -f $PKG/usr/info/dir
gzip -9 $PKG/usr/info/*
mkdir -p $PKG/usr/doc/$PRGNAM-$VERSION
-cp -a \
- AUTHORS COPYING* ChangeLog INSTALL NEWS README* doc \
+cp -a AUTHORS COPYING* ChangeLog INSTALL README* doc \
$PKG/usr/doc/$PRGNAM-$VERSION
mkdir -p $PKG/install