From 062099b2dce06ba2e41eeaa40170f213b10fd371 Mon Sep 17 00:00:00 2001 From: Willy Sudiarto Raharjo Date: Tue, 8 Mar 2022 12:53:08 +0700 Subject: network/netperf: Updated for version 2.7.0. Signed-off-by: Willy Sudiarto Raharjo --- network/netperf/netperf.SlackBuild | 15 ++++++++------- 1 file changed, 8 insertions(+), 7 deletions(-) (limited to 'network/netperf/netperf.SlackBuild') 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 -- cgit v1.2.3