summaryrefslogtreecommitdiff
path: root/network/bmon/bmon.SlackBuild
diff options
context:
space:
mode:
authorB. Watson <yalhcru@gmail.com>2010-05-13 00:35:50 +0200
committerRobby Workman <rworkman@slackbuilds.org>2010-05-13 00:35:50 +0200
commita1523de5b6bb28741a246e76484e022a5ef9e955 (patch)
tree1d93bce30d34e5c1a2a0173b132d2aa13d481a11 /network/bmon/bmon.SlackBuild
parentf9712edd5701d2f83755c05e8e11fba0c1f57e76 (diff)
downloadslackbuilds-a1523de5b6bb28741a246e76484e022a5ef9e955.tar.gz
network/bmon: Updated for version 2.1.0
Diffstat (limited to 'network/bmon/bmon.SlackBuild')
-rw-r--r--network/bmon/bmon.SlackBuild21
1 files changed, 17 insertions, 4 deletions
diff --git a/network/bmon/bmon.SlackBuild b/network/bmon/bmon.SlackBuild
index b6fc3623a6..6607b7135a 100644
--- a/network/bmon/bmon.SlackBuild
+++ b/network/bmon/bmon.SlackBuild
@@ -5,7 +5,7 @@
# Written by B. Watson (yalhcru at gmail dot com)
PRGNAM=bmon
-VERSION=${VERSION:-2.0.1}
+VERSION=${VERSION:-2.1.0}
ARCH=${ARCH:-i486}
BUILD=${BUILD:-1}
TAG=${TAG:-_SBo}
@@ -38,23 +38,36 @@ 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 \
--prefix=/usr \
--sysconfdir=/etc \
--localstatedir=/var \
- --mandir=/usr/man
+ --mandir=/usr/man \
+ --build=$ARCH-slackware-linux
make
make install DESTDIR=$PKG
strip $PKG/usr/bin/$PRGNAM
gzip -9 $PKG/usr/man/man1/$PRGNAM.1
-cp BUGS TODO ChangeLog $PKG/usr/doc/$PRGNAM-$VERSION
+cp -a BUGS TODO ChangeLog $PKG/usr/doc/$PRGNAM-$VERSION
+chmod 0644 $PKG/usr/doc/$PRGNAM-$VERSION/*
mkdir -p $PKG/install
cat $CWD/slack-desc > $PKG/install/slack-desc
cd $PKG
-/sbin/makepkg -l y -c n $OUTPUT/$PRGNAM-$VERSION-$ARCH-$BUILD$TAG.tgz
+/sbin/makepkg -l y -c n $OUTPUT/$PRGNAM-$VERSION-$ARCH-$BUILD$TAG.${PKGTYPE:-tgz}