summaryrefslogtreecommitdiff
path: root/network/nload/nload.SlackBuild
diff options
context:
space:
mode:
authorIskar Enev <korgie_erase_this_and_this@gmail.com>2010-05-12 17:44:00 +0200
committerRobby Workman <rworkman@slackbuilds.org>2010-05-12 17:44:00 +0200
commitca500ff6584a119eef22cfe402ce59b58490272d (patch)
treea8277dab4063cf985b515f5e2c46840af1d5c4bc /network/nload/nload.SlackBuild
parent4c6d591fd2834ea6fd23a7641e1bf80e90ee08c2 (diff)
downloadslackbuilds-ca500ff6584a119eef22cfe402ce59b58490272d.tar.gz
network/nload: Updated for version 0.7.2
Diffstat (limited to 'network/nload/nload.SlackBuild')
-rw-r--r--network/nload/nload.SlackBuild28
1 files changed, 18 insertions, 10 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