summaryrefslogtreecommitdiff
path: root/archivers/sarab
diff options
context:
space:
mode:
authordsainty <dsainty>2006-11-27 14:24:01 +0000
committerdsainty <dsainty>2006-11-27 14:24:01 +0000
commit1c97fdb6daaff95cb69f8278e17eb8c9a8540a53 (patch)
treeca28c4140876e6d219ed5daa3363d66ed70997d4 /archivers/sarab
parentcc5c37a69c4c5bd0cd24ecc072eaff66e8ce95c6 (diff)
downloadpkgsrc-1c97fdb6daaff95cb69f8278e17eb8c9a8540a53.tar.gz
Fix incremental backups under (at least) NetBSD. Bump PKGREVISION.
Diffstat (limited to 'archivers/sarab')
-rw-r--r--archivers/sarab/Makefile3
-rw-r--r--archivers/sarab/distinfo3
-rw-r--r--archivers/sarab/patches/patch-aa17
3 files changed, 21 insertions, 2 deletions
diff --git a/archivers/sarab/Makefile b/archivers/sarab/Makefile
index cecdeeb2207..1f54396e286 100644
--- a/archivers/sarab/Makefile
+++ b/archivers/sarab/Makefile
@@ -1,6 +1,7 @@
-# $NetBSD: Makefile,v 1.1.1.1 2006/09/03 06:27:04 dsainty Exp $
+# $NetBSD: Makefile,v 1.2 2006/11/27 14:24:01 dsainty Exp $
DISTNAME= sarab-0.2.2
+PKGREVISION= 1
CATEGORIES= archivers
MASTER_SITES= ${MASTER_SITE_SOURCEFORGE:=sarab/}
diff --git a/archivers/sarab/distinfo b/archivers/sarab/distinfo
index 9ab46a91ed8..9d04c67286c 100644
--- a/archivers/sarab/distinfo
+++ b/archivers/sarab/distinfo
@@ -1,5 +1,6 @@
-$NetBSD: distinfo,v 1.1.1.1 2006/09/03 06:27:04 dsainty Exp $
+$NetBSD: distinfo,v 1.2 2006/11/27 14:24:01 dsainty Exp $
SHA1 (sarab-0.2.2.tar.gz) = 6119869e996305fb80d37f58bb2c6bf5e73cde27
RMD160 (sarab-0.2.2.tar.gz) = b32a4f73ff98b57f3e486f728889d903809389ea
Size (sarab-0.2.2.tar.gz) = 22428 bytes
+SHA1 (patch-aa) = 142123c307de32ba4a176c7c46b185124e2afb0b
diff --git a/archivers/sarab/patches/patch-aa b/archivers/sarab/patches/patch-aa
new file mode 100644
index 00000000000..8bc067d2f11
--- /dev/null
+++ b/archivers/sarab/patches/patch-aa
@@ -0,0 +1,17 @@
+$NetBSD: patch-aa,v 1.1 2006/11/27 14:24:01 dsainty Exp $
+
+Under NetBSD, NUM_FIELDS has whitespace padding - courtesy of "wc -w". Use
+a numeric comparison instead of a string comparison to ignore the differing
+whitespace.
+
+--- sarab.sh.orig 2006-11-28 03:04:14.000000000 +1300
++++ sarab.sh 2006-11-28 03:05:14.000000000 +1300
+@@ -169,7 +169,7 @@
+ fi
+
+ ## Two fields means this is a diffential/incremental backup, one field means this is a full backup
+-if [ "$NUM_FIELDS" = "2" ]; then
++if [ "$NUM_FIELDS" -eq "2" ]; then
+ # First field is the current archive
+ CURRENT_ARCHIVE=$(echo $CURRENT_LINE | cut -f 1 -d" ")
+ # Second field is the reference archive