aboutsummaryrefslogtreecommitdiff
path: root/network/bmon/bmon.SlackBuild
diff options
context:
space:
mode:
Diffstat (limited to 'network/bmon/bmon.SlackBuild')
-rw-r--r--network/bmon/bmon.SlackBuild23
1 files changed, 6 insertions, 17 deletions
diff --git a/network/bmon/bmon.SlackBuild b/network/bmon/bmon.SlackBuild
index d0f3184558023..66e42026c04d1 100644
--- a/network/bmon/bmon.SlackBuild
+++ b/network/bmon/bmon.SlackBuild
@@ -7,16 +7,14 @@
# Licensed under the WTFPL. See http://www.wtfpl.net/txt/copying/ for details.
PRGNAM=bmon
-VERSION=${VERSION:-2.1.0}
+VERSION=${VERSION:-3.1}
BUILD=${BUILD:-1}
TAG=${TAG:-_SBo}
-# Automatically determine the architecture we're building on:
if [ -z "$ARCH" ]; then
case "$( uname -m )" in
i?86) ARCH=i486 ;;
arm*) ARCH=arm ;;
- # Unless $ARCH is already set, use uname -m for all other archs:
*) ARCH=$( uname -m ) ;;
esac
fi
@@ -49,17 +47,6 @@ find . \
\( -perm 666 -o -perm 664 -o -perm 600 -o -perm 444 -o -perm 440 -o -perm 400 \) \
-exec chmod 644 {} \;
-# bmon is by the author of libnl, but apparently bmon only works with
-# 0.x versions of libnl (specifically, it won't build with the libnl 1.1
-# that's included in Slackware 13). There's no --disable-libnl or similar
-# option to the configure script, so we have to patch it.
-patch -p1 < $CWD/disable_libnl.diff
-
-# missing = signs... sigh.
-patch -p1 < $CWD/dumb_compile_error_fixes.diff
-
-autoreconf
-
CFLAGS="$SLKCFLAGS" \
CXXFLAGS="$SLKCFLAGS" \
./configure \
@@ -73,9 +60,11 @@ make
make install DESTDIR=$PKG
strip $PKG/usr/bin/$PRGNAM
-gzip -9 $PKG/usr/man/man1/$PRGNAM.1
-cp -a BUGS TODO ChangeLog $PKG/usr/doc/$PRGNAM-$VERSION
-chmod 0644 $PKG/usr/doc/$PRGNAM-$VERSION/*
+
+find $PKG/usr/man -type f -exec gzip -9 {} \;
+for i in $( find $PKG/usr/man -type l ) ; do ln -s $( readlink $i ).gz $i.gz ; rm $i ; done
+
+cat $CWD/$PRGNAM.SlackBuild > $PKG/usr/doc/$PRGNAM-$VERSION/$PRGNAM.SlackBuild
mkdir -p $PKG/install
cat $CWD/slack-desc > $PKG/install/slack-desc