diff options
Diffstat (limited to 'network/smcroute/smcroute.SlackBuild')
-rw-r--r-- | network/smcroute/smcroute.SlackBuild | 13 |
1 files changed, 7 insertions, 6 deletions
diff --git a/network/smcroute/smcroute.SlackBuild b/network/smcroute/smcroute.SlackBuild index 440c6a1be2..12a72b69c7 100644 --- a/network/smcroute/smcroute.SlackBuild +++ b/network/smcroute/smcroute.SlackBuild @@ -2,7 +2,7 @@ # Slackware build script for SMCRoute -# Copyright 2013 Mario Preksavec, Zagreb, HR +# Copyright 2013, 2015 Mario Preksavec, Zagreb, Croatia # All rights reserved. # # Redistribution and use of this script, with or without modification, is @@ -23,7 +23,7 @@ # ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. PRGNAM=smcroute -VERSION=${VERSION:-1.99.2} +VERSION=${VERSION:-2.0.0} BUILD=${BUILD:-1} TAG=${TAG:-_SBo} @@ -60,7 +60,7 @@ rm -rf $PKG mkdir -p $TMP $PKG $OUTPUT cd $TMP rm -rf $PRGNAM-$VERSION -tar xvf $CWD/$PRGNAM-$VERSION.tar.bz2 +tar xvf $CWD/$PRGNAM-$VERSION.tar.xz cd $PRGNAM-$VERSION chown -R root:root . find -L . \ @@ -83,6 +83,9 @@ CXXFLAGS="$SLKCFLAGS" \ make make install DESTDIR=$PKG +# Binaries should go to sbin +mv $PKG/usr/bin $PKG/usr/sbin + find $PKG -print0 | xargs -0 file | grep -e "executable" -e "shared object" | grep ELF \ | cut -f 1 -d : | xargs strip --strip-unneeded 2> /dev/null || true @@ -90,9 +93,7 @@ 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 mkdir -p $PKG/usr/doc/$PRGNAM-$VERSION -cp -a \ - AUTHORS COPYING ChangeLog README TODO \ - $PKG/usr/doc/$PRGNAM-$VERSION +cp -a AUTHORS COPYING ChangeLog README TODO $PKG/usr/doc/$PRGNAM-$VERSION cat $CWD/$PRGNAM.SlackBuild > $PKG/usr/doc/$PRGNAM-$VERSION/$PRGNAM.SlackBuild mkdir -p $PKG/install |