pkgsrc-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[pkgsrc/trunk]: pkgsrc/archivers/sarab Fix incremental backups under (at leas...



details:   https://anonhg.NetBSD.org/pkgsrc/rev/2c3028b50000
branches:  trunk
changeset: 521905:2c3028b50000
user:      dsainty <dsainty%pkgsrc.org@localhost>
date:      Mon Nov 27 14:24:01 2006 +0000

description:
Fix incremental backups under (at least) NetBSD.  Bump PKGREVISION.

diffstat:

 archivers/sarab/Makefile         |   3 ++-
 archivers/sarab/distinfo         |   3 ++-
 archivers/sarab/patches/patch-aa |  17 +++++++++++++++++
 3 files changed, 21 insertions(+), 2 deletions(-)

diffs (44 lines):

diff -r 5306b4edd15f -r 2c3028b50000 archivers/sarab/Makefile
--- a/archivers/sarab/Makefile  Mon Nov 27 13:18:10 2006 +0000
+++ b/archivers/sarab/Makefile  Mon Nov 27 14:24:01 2006 +0000
@@ -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 -r 5306b4edd15f -r 2c3028b50000 archivers/sarab/distinfo
--- a/archivers/sarab/distinfo  Mon Nov 27 13:18:10 2006 +0000
+++ b/archivers/sarab/distinfo  Mon Nov 27 14:24:01 2006 +0000
@@ -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 -r 5306b4edd15f -r 2c3028b50000 archivers/sarab/patches/patch-aa
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/archivers/sarab/patches/patch-aa  Mon Nov 27 14:24:01 2006 +0000
@@ -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



Home | Main Index | Thread Index | Old Index