pkgsrc-Changes-HG archive

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

[pkgsrc/trunk]: pkgsrc/sysutils/tob Fixed "test ==" and VARBASE. PKGREVISION++.



details:   https://anonhg.NetBSD.org/pkgsrc/rev/bcded484167d
branches:  trunk
changeset: 520359:bcded484167d
user:      rillig <rillig%pkgsrc.org@localhost>
date:      Thu Oct 19 23:56:13 2006 +0000

description:
Fixed "test ==" and VARBASE. PKGREVISION++.

diffstat:

 sysutils/tob/Makefile         |  19 ++++++++++---------
 sysutils/tob/distinfo         |   4 ++--
 sysutils/tob/patches/patch-aa |  40 +++++++++++++++++++++++++++++++++-------
 3 files changed, 45 insertions(+), 18 deletions(-)

diffs (139 lines):

diff -r e57a5d3ddcb0 -r bcded484167d sysutils/tob/Makefile
--- a/sysutils/tob/Makefile     Thu Oct 19 23:46:01 2006 +0000
+++ b/sysutils/tob/Makefile     Thu Oct 19 23:56:13 2006 +0000
@@ -1,6 +1,7 @@
-# $NetBSD: Makefile,v 1.10 2006/04/13 00:11:47 rillig Exp $
+# $NetBSD: Makefile,v 1.11 2006/10/19 23:56:13 rillig Exp $
 
 DISTNAME=      tob-0.25
+PKGREVISION=   1
 CATEGORIES=    sysutils
 MASTER_SITES=  http://tinyplanet.ca/projects/tob/
 EXTRACT_SUFX=  .tgz
@@ -14,29 +15,29 @@
 CONF_FILES+=   ${EGDIR}/example.exclude ${PKG_SYSCONFDIR}/tob/volumes/example.exclude
 CONF_FILES+=   ${EGDIR}/example.startdir ${PKG_SYSCONFDIR}/tob/volumes/example.startdir
 
-INSTALLATION_DIRS=     man/man8 sbin
+INSTALLATION_DIRS=     ${PKGMANDIR}/man8 sbin ${EGDIR}
 
-REPLACE_INTERPRETER+=  bash
-REPLACE.bash.old=      /bin/bash
-REPLACE.bash.new=      ${SH}
-REPLACE_FILES.bash=    tob
+REPLACE_SH+=           tob
+USE_TOOLS+=            sh:run
 
 SUBST_CLASSES+=                confdir
 SUBST_STAGE.confdir=   do-build
 SUBST_MESSAGE.confdir= Adjusting configuration directory
 SUBST_FILES.confdir=   tob tob.rc
 SUBST_SED.confdir=     -e 's|@PKG_SYSCONFDIR@|${PKG_SYSCONFDIR}|g'
+SUBST_SED.confdir+=    -e 's|@VARBASE@|${VARBASE}|g'
+
+BUILD_DEFS+=           VARBASE
 
 do-build:
        @${DO_NADA}
 
 do-install:
        ${INSTALL_SCRIPT} ${WRKSRC}/tob ${PREFIX}/sbin
-       ${INSTALL_MAN} ${WRKSRC}/tob.8 ${PREFIX}/man/man8/
+       ${INSTALL_MAN} ${WRKSRC}/tob.8 ${PREFIX}/${PKGMANDIR}/man8/
        ${INSTALL_DATA_DIR} ${PKG_SYSCONFDIR}/tob
        ${INSTALL_DATA_DIR} ${PKG_SYSCONFDIR}/tob/volumes
-       ${INSTALL_DATA_DIR} /var/tob
-       ${INSTALL_DATA_DIR} ${EGDIR}
+       ${INSTALL_DATA_DIR} ${VARBASE}/tob
        ${INSTALL_DATA} ${WRKSRC}/tob.rc ${EGDIR}/tob.rc
        ${INSTALL_DATA} ${WRKSRC}/example.exclude ${EGDIR}
        ${INSTALL_DATA} ${WRKSRC}/example.startdir ${EGDIR}
diff -r e57a5d3ddcb0 -r bcded484167d sysutils/tob/distinfo
--- a/sysutils/tob/distinfo     Thu Oct 19 23:46:01 2006 +0000
+++ b/sysutils/tob/distinfo     Thu Oct 19 23:56:13 2006 +0000
@@ -1,7 +1,7 @@
-$NetBSD: distinfo,v 1.3 2006/03/09 14:50:31 ghen Exp $
+$NetBSD: distinfo,v 1.4 2006/10/19 23:56:13 rillig Exp $
 
 SHA1 (tob-0.25.tgz) = 71a5bb9dac7c2d4aa800392213b11e9616370b80
 RMD160 (tob-0.25.tgz) = 31ce5e85a10835909834853f1f95077cd3ad9542
 Size (tob-0.25.tgz) = 107423 bytes
-SHA1 (patch-aa) = 746a93edb629023107dd67ad7193c8d6ca589bce
+SHA1 (patch-aa) = b1c758fbe293a25e22a7f4849fe82ed60277a883
 SHA1 (patch-ab) = a4c27f1b93a669f2be0a6f2579e528c583393be8
diff -r e57a5d3ddcb0 -r bcded484167d sysutils/tob/patches/patch-aa
--- a/sysutils/tob/patches/patch-aa     Thu Oct 19 23:46:01 2006 +0000
+++ b/sysutils/tob/patches/patch-aa     Thu Oct 19 23:56:13 2006 +0000
@@ -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 @@
      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 @@
  
  ############################################################################
  # 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 @@
      
      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



Home | Main Index | Thread Index | Old Index