summaryrefslogtreecommitdiffstats
path: root/system/zpaq
diff options
context:
space:
mode:
Diffstat (limited to 'system/zpaq')
-rw-r--r--system/zpaq/README15
-rw-r--r--system/zpaq/zpaq.SlackBuild16
-rw-r--r--system/zpaq/zpaq.info2
3 files changed, 22 insertions, 11 deletions
diff --git a/system/zpaq/README b/system/zpaq/README
index d11265591c..72de972d2c 100644
--- a/system/zpaq/README
+++ b/system/zpaq/README
@@ -2,13 +2,14 @@ zpaq is a journaling, incremental, deduplicating archiver for Windows
and Linux.
"Journaling" means that when you update a file or directory, both the
-old and new versions are saved. You can extract from the archive as it
-existed at any time in the past. "Incremental", means that when you back
-up your entire hard drive, for example with:
+old and new versions are saved. You can extract from the archive as
+it existed at any time in the past. "Incremental", means that when you
+back up your entire hard drive, for example with:
zpaq -add e:backup.zpaq c:\*
-only those files whose last-modified date has changed since the previous
-backup are added. For 100 GB of files, this typically takes 1-2 minutes,
-vs. a few hours to create the first version. "Deduplicating" means that
-identical files or fragments are stored only once to save time and space.
+only those files whose last-modified date has changed since
+the previous backup are added. For 100 GB of files, this
+typically takes 1-2 minutes, vs. a few hours to create the first
+version. "Deduplicating" means that identical files or fragments are
+stored only once to save time and space.
diff --git a/system/zpaq/zpaq.SlackBuild b/system/zpaq/zpaq.SlackBuild
index 2c8dfbd205..876bde87d6 100644
--- a/system/zpaq/zpaq.SlackBuild
+++ b/system/zpaq/zpaq.SlackBuild
@@ -1,4 +1,4 @@
-#!/bin/sh
+#!/bin/bash
# Slackware build script for zpaq
@@ -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=zpaq
VERSION=${VERSION:-7.15}
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}
@@ -93,4 +103,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
diff --git a/system/zpaq/zpaq.info b/system/zpaq/zpaq.info
index 83e946f5ea..3f760f2beb 100644
--- a/system/zpaq/zpaq.info
+++ b/system/zpaq/zpaq.info
@@ -5,6 +5,6 @@ DOWNLOAD="http://mattmahoney.net/dc/zpaq715.zip"
MD5SUM="1779c19decc885b44636c497b61d937a"
DOWNLOAD_x86_64=""
MD5SUM_x86_64=""
-REQUIRES="docutils"
+REQUIRES=""
MAINTAINER="Christoph Willing"
EMAIL="chris.willing@linux.com"