diff options
Diffstat (limited to 'network/zsync')
-rw-r--r-- | network/zsync/slack-desc | 8 | ||||
-rw-r--r-- | network/zsync/zsync.SlackBuild | 16 |
2 files changed, 17 insertions, 7 deletions
diff --git a/network/zsync/slack-desc b/network/zsync/slack-desc index 13705bc452..ee8c8ed579 100644 --- a/network/zsync/slack-desc +++ b/network/zsync/slack-desc @@ -8,10 +8,10 @@ |-----handy-ruler------------------------------------------------------| zsync: zsync (client-side implementation of the rsync algorithm) zsync: -zsync: zsync is a file transfer program. It allows you to download a file from -zsync: a remote web server, where you have a copy of an older version of the -zsync: file on your computer already. zsync downloads only the new parts of -zsync: the file. It uses the same algorithm as rsync. +zsync: zsync is a file transfer program. It allows you to download a file +zsync: from a remote web server, where you have a copy of an older version of +zsync: the file on your computer already. zsync downloads only the new parts +zsync: of the file. It uses the same algorithm as rsync. zsync: zsync: The zsync web site is at http://zsync.moria.org.uk/ zsync: diff --git a/network/zsync/zsync.SlackBuild b/network/zsync/zsync.SlackBuild index ad5b7ecdaf..8a7f33bbbe 100644 --- a/network/zsync/zsync.SlackBuild +++ b/network/zsync/zsync.SlackBuild @@ -1,4 +1,4 @@ -#!/bin/sh +#!/bin/bash # Slackware build script for zsync @@ -22,10 +22,13 @@ # OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF # ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. +cd $(dirname $0) ; CWD=$(pwd) + PRGNAM=zsync VERSION=${VERSION:-0.6.2} BUILD=${BUILD:-1} TAG=${TAG:-_SBo} +PKGTYPE=${PKGTYPE:-tgz} if [ -z "$ARCH" ]; then case "$( uname -m )" in @@ -35,7 +38,14 @@ if [ -z "$ARCH" ]; then esac fi -CWD=$(pwd) +# If the variable PRINT_PACKAGE_NAME is set, then this script will report what +# the name of the created package would be, and then exit. This information +# could be useful to other scripts. +if [ ! -z "${PRINT_PACKAGE_NAME}" ]; then + echo "$PRGNAM-$VERSION-$ARCH-$BUILD$TAG.$PKGTYPE" + exit 0 +fi + TMP=${TMP:-/tmp/SBo} PKG=$TMP/package-$PRGNAM OUTPUT=${OUTPUT:-/tmp} @@ -99,4 +109,4 @@ mkdir -p $PKG/install cat $CWD/slack-desc > $PKG/install/slack-desc cd $PKG -/sbin/makepkg -l y -c n $OUTPUT/$PRGNAM-$VERSION-$ARCH-$BUILD$TAG.${PKGTYPE:-tgz} +/sbin/makepkg -l y -c n $OUTPUT/$PRGNAM-$VERSION-$ARCH-$BUILD$TAG.$PKGTYPE |