network/sshuttle: Updated for version 0.77.2.

Signed-off-by: Marcel Saegebarth <marc@mos6581.de>
This commit is contained in:
Marcel Saegebarth 2016-03-24 16:35:00 +01:00 committed by Willy Sudiarto Raharjo
parent a6abd50af7
commit 6b2b032d2b
2 changed files with 10 additions and 29 deletions

View file

@ -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

View file

@ -1,10 +1,10 @@
PRGNAM="sshuttle"
VERSION="0.61"
VERSION="0.77.2"
HOMEPAGE="https://github.com/apenwarr/sshuttle/"
DOWNLOAD="https://github.com/apenwarr/sshuttle/archive/sshuttle-0.61.zip"
MD5SUM="cf2be7cd80a252025119497af74c2d6c"
DOWNLOAD="https://pypi.python.org/packages/source/s/sshuttle/sshuttle-0.77.2.tar.gz"
MD5SUM="833dd5ff86523199dbf54356db5d4bb5"
DOWNLOAD_x86_64=""
MD5SUM_x86_64=""
REQUIRES="Markdown BeautifulSoup"
REQUIRES=""
MAINTAINER="Marcel Saegebarth"
EMAIL="marc@mos6581.de"