summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--network/nload/nload.SlackBuild28
-rw-r--r--network/nload/nload.info10
-rw-r--r--network/nload/slack-desc2
3 files changed, 24 insertions, 16 deletions
diff --git a/network/nload/nload.SlackBuild b/network/nload/nload.SlackBuild
index 033db5a326..cf7178febf 100644
--- a/network/nload/nload.SlackBuild
+++ b/network/nload/nload.SlackBuild
@@ -3,15 +3,14 @@
# Slackware build script for <nload>
# Written by Michales Michaloudes korgie_earse_this_andthis@gmail.com
-
-# Exit on most errors
-set -e
+# Modified by Robby Workman <rworkman@slackbuilds.org>
PRGNAM=nload
-VERSION=0.6.0
+VERSION=0.7.2
ARCH=${ARCH:-i486}
BUILD=${BUILD:-1}
TAG=${TAG:-_SBo}
+
CWD=$(pwd)
TMP=${TMP:-/tmp/SBo}
PKG=$TMP/package-$PRGNAM
@@ -21,15 +20,19 @@ if [ "$ARCH" = "i486" ]; then
SLKCFLAGS="-O2 -march=i486 -mtune=i686"
elif [ "$ARCH" = "i686" ]; then
SLKCFLAGS="-O2 -march=i686 -mtune=i686"
+elif [ "$ARCH" = "x86_64" ]; then
+ SLKCFLAGS="-O2 -fPIC"
fi
+set -e # Exit on most errors
+
rm -rf $PKG
mkdir -p $TMP $PKG $OUTPUT
cd $TMP
rm -rf $PRGNAM-$VERSION
-tar -xzvf $CWD/$PRGNAM-$VERSION.tar.gz
+tar xvf $CWD/$PRGNAM-$VERSION.tar.gz
cd $PRGNAM-$VERSION
-#chown -R root:root .
+chown -R root:root .
chmod -R u+w,go+r-w,a-s .
CFLAGS="$SLKCFLAGS" \
@@ -37,7 +40,10 @@ CXXFLAGS="$SLKCFLAGS" \
./configure \
--prefix=/usr \
--sysconfdir=/etc \
- --localstatedir=/var
+ --localstatedir=/var \
+ --mandir=/usr/man \
+ --docdir=/usr/doc/$PRGNAM-$VERSION \
+ --build=$ARCH-slackware-linux
make
make install DESTDIR=$PKG
@@ -47,13 +53,15 @@ make install DESTDIR=$PKG
find . | xargs file | grep "shared object" | grep ELF | cut -f 1 -d : | xargs strip --strip-unneeded 2> /dev/null
)
-( cd $PKG/usr/man
+( cd $PKG/usr/man || exit 1
find . -type f -exec gzip -9 {} \;
- for i in $( find . -type l ) ; do ln -s $( readlink $i ).gz $i.gz ; rm $i ; done
+ for i in $(find . -type l) ; do ln -s $( readlink $i ).gz $i.gz ; rm $i ; done
)
mkdir -p $PKG/usr/doc/$PRGNAM-$VERSION
-cp -a README $PKG/usr/doc/$PRGNAM-$VERSION
+cp -a \
+ AUTHORS COPYING ChangeLog NEWS README \
+ $PKG/usr/doc/$PRGNAM-$VERSION
cat $CWD/$PRGNAM.SlackBuild > $PKG/usr/doc/$PRGNAM-$VERSION/$PRGNAM.SlackBuild
mkdir -p $PKG/install
diff --git a/network/nload/nload.info b/network/nload/nload.info
index e7dd043453..923c943dd6 100644
--- a/network/nload/nload.info
+++ b/network/nload/nload.info
@@ -1,8 +1,8 @@
PRGNAM="nload"
-VERSION="0.6.0"
+VERSION="0.7.2"
HOMEPAGE="http://sourceforge.net/projects/nload/"
-DOWNLOAD="http://downloads.sourceforge.net/nload/nload-0.6.0.tar.gz"
-MD5SUM="a8859e49176bb50826b52b8345b117d3"
-MAINTAINER="Michales Michaloudes"
-EMAIL="korgie_easre_this_and_this@gmail.com"
+DOWNLOAD="http://downloads.sourceforge.net/nload/nload-0.7.2.tar.gz"
+MD5SUM="5b851ecf898edcd1f465946745e95eb6"
+AUTHOR="Michales Michaloudes"
+EMAIL="korgie_erase_this_and_this@gmail.com"
APPROVED="rworkman"
diff --git a/network/nload/slack-desc b/network/nload/slack-desc
index 76623cac0a..6ede814f0a 100644
--- a/network/nload/slack-desc
+++ b/network/nload/slack-desc
@@ -14,6 +14,6 @@ nload: outgoing traffic using two graphs and provides additional
nload: info like total amount of transfered data an min/max network
nload: usage.
nload:
-nload:
+nload: Homepage: http://sourceforge.net/projects/nload/
nload:
nload: