diff options
Diffstat (limited to 'network/bmon/bmon.SlackBuild')
-rw-r--r-- | network/bmon/bmon.SlackBuild | 21 |
1 files changed, 17 insertions, 4 deletions
diff --git a/network/bmon/bmon.SlackBuild b/network/bmon/bmon.SlackBuild index b6fc3623a650..6607b7135ace 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} |