summaryrefslogtreecommitdiff
path: root/network/sshuttle/sshuttle.SlackBuild
diff options
context:
space:
mode:
Diffstat (limited to 'network/sshuttle/sshuttle.SlackBuild')
-rw-r--r--network/sshuttle/sshuttle.SlackBuild31
1 files changed, 6 insertions, 25 deletions
diff --git a/network/sshuttle/sshuttle.SlackBuild b/network/sshuttle/sshuttle.SlackBuild
index c463ee9943..1e00e4a35d 100644
--- a/network/sshuttle/sshuttle.SlackBuild
+++ b/network/sshuttle/sshuttle.SlackBuild
@@ -2,7 +2,7 @@
# Slackware build script for "sshuttle".
-# Copyright 2014-2015 Marcel Saegebarth <marc@mos6581.de>
+# Copyright 2014-2016 Marcel Saegebarth <marc@mos6581.de>
# All rights reserved.
#
# Redistribution and use in source and binary forms, with or without
@@ -25,8 +25,8 @@
# OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
PRGNAM=sshuttle
-VERSION=${VERSION:-0.61}
-BUILD=${BUILD:-2}
+VERSION=${VERSION:-0.77.2}
+BUILD=${BUILD:-1}
TAG=${TAG:-_SBo}
if [ -z "$ARCH" ]; then
@@ -62,8 +62,7 @@ rm -rf $PKG
mkdir -p $TMP $PKG $OUTPUT
cd $TMP
rm -rf $PRGNAM-$VERSION
-unzip $CWD/$PRGNAM-$VERSION.zip || unzip $CWD/$PRGNAM-$PRGNAM-$VERSION.zip
-mv $PRGNAM-$PRGNAM-$VERSION $PRGNAM-$VERSION
+tar xvf $CWD/$PRGNAM-$VERSION.tar.gz
cd $PRGNAM-$VERSION
chown -R root:root .
find -L . \
@@ -72,25 +71,7 @@ find -L . \
\( -perm 666 -o -perm 664 -o -perm 640 -o -perm 600 -o -perm 444 \
-o -perm 440 -o -perm 400 \) -exec chmod 644 {} \;
-sed -i 's#DIR=.*#DIR=/usr/share/sshuttle#' sshuttle
-
-make
-
-if [ ! -f $TMP/$PRGNAM-$VERSION/Documentation/$PRGNAM.8 ]; then
- echo "Missing dependencies for creating manpages"
- exit 1
-fi
-
-mkdir -p $PKG/usr/bin
-install -m 0755 $TMP/$PRGNAM-$VERSION/$PRGNAM $PKG/usr/bin
-
-mkdir -p $PKG/usr/share/$PRGNAM
-cp -a $TMP/$PRGNAM-$VERSION/*.py $PKG/usr/share/$PRGNAM
-
-for file in compat version ; do
- mkdir -p $PKG/usr/share/$PRGNAM/$file
- cp -a $TMP/$PRGNAM-$VERSION/$file/*.py $PKG/usr/share/$PRGNAM/$file
-done
+python setup.py install --root=$PKG
mkdir -p $PKG/usr/man/man8
cat $TMP/$PRGNAM-$VERSION/Documentation/$PRGNAM.8 | gzip -9c > \
@@ -98,7 +79,7 @@ $PKG/usr/man/man8/$PRGNAM.8.gz
mkdir -p $PKG/usr/doc/$PRGNAM-$VERSION
cp -a \
- LICENSE README.md \
+ CHANGES.rst LICENSE README.rst \
$PKG/usr/doc/$PRGNAM-$VERSION
cat $CWD/$PRGNAM.SlackBuild > $PKG/usr/doc/$PRGNAM-$VERSION/$PRGNAM.SlackBuild