aboutsummaryrefslogtreecommitdiff
path: root/network/smcroute/smcroute.SlackBuild
diff options
context:
space:
mode:
authorMario Preksavec <mario@slackware.hr>2015-03-15 09:36:46 +0100
committerWilly Sudiarto Raharjo <willysr@slackbuilds.org>2015-03-22 15:33:25 +0700
commit1e301e41ee5c82fda47438d878b48c3af4691985 (patch)
treeb21dd374a61840d92f60db2979922d6fc65b3563 /network/smcroute/smcroute.SlackBuild
parent11e25191a55109dd07d75c72e77d4cad6b2489d4 (diff)
network/smcroute: Updated for version 2.0.0.
Diffstat (limited to 'network/smcroute/smcroute.SlackBuild')
-rw-r--r--network/smcroute/smcroute.SlackBuild13
1 files changed, 7 insertions, 6 deletions
diff --git a/network/smcroute/smcroute.SlackBuild b/network/smcroute/smcroute.SlackBuild
index 440c6a1be2a07..12a72b69c7b70 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