diff options
Diffstat (limited to 'source/n/pssh/pssh.SlackBuild')
-rwxr-xr-x | source/n/pssh/pssh.SlackBuild | 21 |
1 files changed, 9 insertions, 12 deletions
diff --git a/source/n/pssh/pssh.SlackBuild b/source/n/pssh/pssh.SlackBuild index e199c3e7..c5413183 100755 --- a/source/n/pssh/pssh.SlackBuild +++ b/source/n/pssh/pssh.SlackBuild @@ -1,6 +1,6 @@ #!/bin/bash -# Copyright 2008, 2009, 2010, 2011, 2018 Patrick J. Volkerding, Sebeka, MN, USA +# Copyright 2008, 2009, 2010, 2011, 2018, 2020 Patrick J. Volkerding, Sebeka, MN, USA # All rights reserved. # # Redistribution and use of this script, with or without modification, is @@ -25,8 +25,8 @@ cd $(dirname $0) ; CWD=$(pwd) PKGNAM=pssh -VERSION=${VERSION:-$(echo pssh*.tar.gz | cut -d - -f 2 | rev | cut -f 3- -d . | rev)} -BUILD=${BUILD:-5} +VERSION=${VERSION:-$(echo pssh*.tar.?z | cut -d - -f 2 | rev | cut -f 3- -d . | rev)} +BUILD=${BUILD:-1} # Automatically determine the architecture we're building on: if [ -z "$ARCH" ]; then @@ -61,7 +61,7 @@ mkdir -p $TMP $PKG cd $TMP rm -rf pssh-$VERSION -tar xvf $CWD/pssh-$VERSION.tar.gz || exit 1 +tar xvf $CWD/pssh-$VERSION.tar.?z || exit 1 cd pssh-$VERSION || exit 1 chown -R root:root . find . \ @@ -70,16 +70,13 @@ find . \ \( -perm 666 -o -perm 664 -o -perm 600 -o -perm 444 -o -perm 440 -o -perm 400 \) \ -exec chmod 644 {} \+ -# fix python3 issues -zcat $CWD/pssh-2.3.1-py3-import.patch.gz | patch -p1 --verbose || exit 1 -zcat $CWD/pssh-2.3.1-py3-min-int-none.patch.gz | patch -p1 --verbose || exit 1 -zcat $CWD/pssh-2.3.1-py3-non-blocking.patch.gz | patch -p1 --verbose || exit 1 -zcat $CWD/pssh-2.3.1-py3-str-bytes-encode.patch.gz | patch -p1 --verbose || exit 1 -zcat $CWD/pssh-read-stdin-as-bytes-in-Python-3.patch.gz | patch -p1 --verbose || exit 1 - # Install python3 setup.py build install --root=$PKG +# Relocate man pages: +mv $PKG/usr/share/man $PKG/usr +rmdir $PKG/usr/share 2> /dev/null + # Compress manual pages: find $PKG/usr/man -type f -exec gzip -9 {} \+ for i in $( find $PKG/usr/man -type l ) ; do @@ -89,7 +86,7 @@ done mkdir -p $PKG/$PREFIX/doc/pssh-$VERSION cp -a \ - AUTHORS BUGS COPYING* INSTALL PKG-INFO README* TODO \ + AUTHORS* BUGS* COPYING* INSTALL* PKG-INFO* README* TODO* \ doc/pssh*html $PKG/$PREFIX/doc/pssh-$VERSION/. # If there's a ChangeLog, installing at least part of the recent history |