summaryrefslogtreecommitdiff
path: root/sysutils/tob/patches
diff options
context:
space:
mode:
authorrillig <rillig@pkgsrc.org>2006-10-19 23:56:13 +0000
committerrillig <rillig@pkgsrc.org>2006-10-19 23:56:13 +0000
commitbc5b8cdfc85f5d9e4729b0e49ec69134a2390071 (patch)
tree0aaafa21882e32fb24746fae52d8defcdb23925a /sysutils/tob/patches
parente5291e1d03b0dabe8d08f3b2a208b84d6d3d4e7c (diff)
downloadpkgsrc-bc5b8cdfc85f5d9e4729b0e49ec69134a2390071.tar.gz
Fixed "test ==" and VARBASE. PKGREVISION++.
Diffstat (limited to 'sysutils/tob/patches')
-rw-r--r--sysutils/tob/patches/patch-aa40
1 files changed, 33 insertions, 7 deletions
diff --git a/sysutils/tob/patches/patch-aa b/sysutils/tob/patches/patch-aa
index 85f0ebaad90..281ea3f92e6 100644
--- a/sysutils/tob/patches/patch-aa
+++ b/sysutils/tob/patches/patch-aa
@@ -1,19 +1,19 @@
-$NetBSD: patch-aa,v 1.2 2006/03/09 14:50:31 ghen Exp $
+$NetBSD: patch-aa,v 1.3 2006/10/19 23:56:13 rillig Exp $
---- tob 2003/06/27 11:08:36 1.1
-+++ tob 2003/06/27 11:13:55
+--- tob.orig 2003-06-06 22:05:57.000000000 +0200
++++ tob 2006-10-20 01:48:50.000000000 +0200
@@ -13,8 +13,8 @@
#
# File locations
-TOBLISTS=/var/lib/tob
-TOBHOME=/etc/tob
-+TOBLISTS=/var/tob
++TOBLISTS=@VARBASE@/tob
+TOBHOME=@PKG_SYSCONFDIR@/tob
############################################################################
# Global settings, most of which can be overruled in the resource file:
-@@ -77,13 +77,17 @@
+@@ -77,13 +77,17 @@ then
fi
elif [ -x /usr/bin/mktemp ]
then
@@ -35,7 +35,7 @@ $NetBSD: patch-aa,v 1.2 2006/03/09 14:50:31 ghen Exp $
rc4=$?
if [ $rc1 -ne 0 -o $rc2 -ne 0 -o $rc3 -ne 0 -o $rc4 -ne 0 ]
then
-@@ -131,7 +135,7 @@
+@@ -131,7 +135,7 @@ POSTCMD=''
VER=0.25
# RCLIST: list of resource files which tob will search for
@@ -44,7 +44,7 @@ $NetBSD: patch-aa,v 1.2 2006/03/09 14:50:31 ghen Exp $
############################################################################
# show a message to the screen
-@@ -189,6 +193,10 @@
+@@ -189,6 +193,10 @@ checkenv ()
if [ "$EXT" = "" ] ; then
error "variable EXT is undefined"
fi
@@ -55,3 +55,29 @@ $NetBSD: patch-aa,v 1.2 2006/03/09 14:50:31 ghen Exp $
if [ "$NEEDROOT" = "yes" ] ; then
if [ $UID -ne 0 ]; then
+@@ -583,10 +591,10 @@ full ()
+
+ cd $BACKUPDIR
+ for i in `find ${VOLUMENAME}_* -mtime +$MAXBACKUPAGE -exec echo {} \;`; do
+- if [ $i == $UPTO ]; then
++ if [ $i = $UPTO ]; then
+ SEEN=1
+ fi
+- if [ $SEEN == '0' ]; then
++ if [ $SEEN = '0' ]; then
+ message "Deleted old backup $i"
+ $RM -f $i
+ fi
+@@ -652,10 +660,10 @@ differential ()
+ cd $BACKUPDIR
+ $RM -f ${VOLUMENAME}_*inc*
+ for i in `find ${VOLUMENAME}_*diff* -mtime +$MAXBACKUPAGE -exec echo {} \;`; do
+- if [ $i == $UPTO ]; then
++ if [ $i = $UPTO ]; then
+ SEEN=1
+ fi
+- if [ $SEEN == '0' ]; then
++ if [ $SEEN = '0' ]; then
+ message "Deleting old backup $i"
+ $RM -f $i
+ fi