chiark / gitweb /
@@ -1,4 +1,4 @@
authorianmdlvl <ianmdlvl>
Mon, 8 Oct 2001 00:52:55 +0000 (00:52 +0000)
committerianmdlvl <ianmdlvl>
Mon, 8 Oct 2001 00:52:55 +0000 (00:52 +0000)
-chiark-utils (0.99.0-1) experimental; urgency=low
+chiark-utils (2.0.0-1) experimental; urgency=low

   * Initial prepackaged release of chiark backup.

@@ -8,8 +8,9 @@
   * example config files from Relativity and chiark shipped.
   * Improved documentation.
   * bringup-hook created.
+  * bugfixes (all of bugs introduced by merge, AFAICT).

- -- Ian Jackson <ian@davenant.greenend.org.uk>  Mon,  8 Oct 2001 01:11:56 +0100
+ -- Ian Jackson <ian@davenant.greenend.org.uk>  Mon,  8 Oct 2001 01:52:21 +0100

 # Local variables:
 # mode: debian-changelog

12 files changed:
TODO
backup/Makefile
backup/backuplib.pl
backup/bringup
backup/driver
backup/examples/relativity/ifsys.pt0
backup/examples/relativity/ifsys.pt2
backup/examples/relativity/settings.pl
backup/full
backup/iwjbackup.txt
debian/changelog
debian/rules

diff --git a/TODO b/TODO
index caf0e7022ccacb485199efb34934d6d02bb13016..9dc0150509d8747d86fe0b33945e08d469fcc5c5 100644 (file)
--- a/TODO
+++ b/TODO
@@ -1,14 +1,10 @@
 BACKUP
 ======
 
-essential before release
-------------------------
-test
-
 would be nice someday
 ---------------------
 replace loaded with idformat
 read/writebuffer setuid --mlock
-whatisthis no cloneandhack
-whatisthis listing for zafio and dump archives
+whatsthis no cloneandhack
+whatsthis listing for zafio and dump archives
 configuration files autogenerator
index 16260e6e5c1d2b154ddfebd057faee67603fa119..3b559574b17cbc30c356abf09c6738a99e60030e 100644 (file)
@@ -32,11 +32,15 @@ DEBUG=              -g
 RWBUFFER_SIZE_MB=16
 
 prefix=/usr/local
-etcdir=/etc/chiark-backup
+etcdir=/etc
+varlib=/var/lib
+
+confdir=$(etcdir)/chiark-backup
 bindir=$(prefix)/bin
 sharedir=$(prefix)/share/chiark-backup
-txtdocdir=$(prefix)/share/doc/chiark-backup/examples
+txtdocdir=$(prefix)/share/doc/chiark-backup
 exampledir=$(txtdocdir)/examples
+vardir=$(varlib)/chiark-backup
 
 INSTALL=               install -c
 INSTALL_SHARE=         $(INSTALL) -m 644 -o root -g root
@@ -58,7 +62,7 @@ writebuffer:                          writebuffer.o rwbuffer.o
 readbuffer.o writebuffer.o rwbuffer.o: rwbuffer.h
 
 install:               all
-               $(INSTALL_DIRECTORY) $(etcdir) $(bindir) $(sharedir)
+               $(INSTALL_DIRECTORY) $(confdir) $(bindir) $(sharedir) $(vardir)
                $(INSTALL_PROGRAM) $(CTARGETS) $(bindir)
                set -e; for s in $(BINSCRIPTS); do \
                        $(INSTALL_SCRIPT) $$s $(bindir)/backup-$$s; done
@@ -74,7 +78,10 @@ install-examples:
                        cd examples/$$e; \
                        $(INSTALL_DIRECTORY) $(exampledir)/$$e; \
                        $(INSTALL_SHARE) [^A-Z]*[^~] $(exampledir)/$$e; \
-                       (cd $(exampledir) && tar -xf -) <SYMLINKS.tar; \
+                       if test -f SYMLINKS.tar; then \
+                               exec <SYMLINKS.tar; \
+                               (set -e; cd $(exampledir) && tar -xf -); \
+                       fi; \
                        cd ../..; \
                done
 
index 26a8533d1150e85ee3e2fa7079f742ddf2df5647..ba1c50be01467958ded1c00873c1753870c5466a 100644 (file)
@@ -21,6 +21,8 @@
 # with this program; if not, write to the Free Software Foundation, Inc.,
 # 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
 
+require IO::File;
+
 sub printdate () {
     print scalar(localtime),"\n";
 }
@@ -93,14 +95,15 @@ sub readfsysfile ($) {
         } elsif (m/^exclude\s+(\S.*\S)$/) {
             push @excl,$1;
        } elsif (m/^include\s+(\S.*\S)$/) {
+           $sfn = $1;
            $sfn =~ s/^\./fsys./;
-           $sfn = "$etc/$sfn" if $sfn !~ m,^/,;
+           $sfn = "$etc/$sfn" unless $sfn =~ m,^/,;
            readfsysfile($sfn);
         } else {
            push @fsys,$_;
        }
     }
-    close $fn or die $!;
+    close $fh or die $!;
 }
 
 sub readfsys ($) {
index 0aabd9f9dc095b37dfdd7d1cfc0a59bb2c4a2eed..000195e4715dbf9a040a0f3a2566aa0082f7b9c2 100755 (executable)
@@ -28,4 +28,4 @@
 runlevel=`sed -ne '/^id:/ s/.*:\([0-9]\):.*/\1/p' /etc/inittab`
 telinit $runlevel
 
-test ! -f /etc/backup/bringup-hook
+test ! -f /etc/chiark-backup/bringup-hook
index a114a183c9631784b5454f11f27dd66d76b773d5..bdf3b38c44e140397b1bc63b5ee1999c62ac5204 100755 (executable)
@@ -23,7 +23,7 @@
 # 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
 
 cd /var/lib/chiark-backup
-PATH=/usr/lib/chiark-backup:$PATH export PATH
+PATH=/usr/share/chiark-backup:$PATH export PATH
 
 if [ "x$1" != test ]; then
        stty sane
index 008a2f1f3099e6a9647ad89d8a83cff4c6c0fce0..2305e5f9d359e583badeb62e86396e8b6313df06 100644 (file)
@@ -2,7 +2,6 @@
 
 /var                   dump    davenant
 /u                     dump    davenant
-/                      dump
 
 /                      dump    davenant
 
index fcd0c836fd83941e0bc19c7dfb3ddc17ffae31be..ac447bba9d9381c9290866596292c64537087e5c 100644 (file)
@@ -1,5 +1,7 @@
 /                      dump    xenophobe
 
+/                      dump
+
 /dos/c                 cpio
 /dos/d                 cpio
 
index f8ec84ccd8d0f22573b0bd782c26284c9cf81f75..9aa7eb4562ca394e1be12402eab325f14381edfc 100644 (file)
@@ -1,7 +1,7 @@
 # configuration, for putting in /etc/chiark-backup
 
 chdir '/var/lib/chiark-backup' or die $!;
-push(@INC,'/usr/lib/chiark-backup');
+push(@INC,'/usr/share/chiark-backup');
 $ENV{'PATH'} =~ s,^/usr/share/chiark-backup,,;
 $ENV{'PATH'}= '/usr/share/chiark-backup:'.$ENV{'PATH'};
 
index c25acc0861762e5c81c4e84784a0cf6c009538e4..02b5b0c60d89b41ba85a068335cf1e59af39dd5f 100755 (executable)
@@ -35,7 +35,7 @@ $|=1;
 # dumped in both full and incremental dumps.
 setstatus "FAILED configuration check";
 print "Configuration check ...\n" or die $!;
-system 'checkallused'; $? and die $?;
+system 'backup-checkallused'; $? and die $?;
 
 printdate();
 
index ff4d860e35fda97cf23fa06b74d0779eadcc2c58..91c904c87ea69eb70aeb602feb4fcb245fc51285 100644 (file)
@@ -2,12 +2,9 @@ iwjbackup.txt
 documentation file
 Copyright - AND NO WARRANTY - see notes at bottom of file for details.
 
-This is a quick summary of the backup scripts, and some comments on  and my config files:
-it's a bit patchy and might have the odd ommission. The canonical
-source is the sources, as always :->
-
-
-WARNING - this file is out of date !
+This is a quick summary of the backup scripts, and some comments on
+some of the config files: it's a bit patchy and might have the odd
+ommission. The canonical source is the sources, as always :->
 
 
 To run, the contents of /etc/chiark-backup should be:
@@ -131,7 +128,7 @@ To use this you'll need to configure init:
   # Runlevel 5 is set up to run a reduced level of services during
   # backups. (currently this means: no squid, no webserver, no newsserver)
   # We also run the backup script automatically on entering runlevel 5:
-  dm:5:once:/usr/local/lib/backup/driver </dev/tty8 >/dev/tty8 2>&1
+  dm:5:once:backup-driver </dev/tty8 >/dev/tty8 2>&1
 
  * takedown can be run from the command line or via cron.
 
index 8a761e28792eb75fd90bd999dc342129946351e4..610fbc860f48ac9ae82b338eeb55c5ce6e7fe25e 100644 (file)
@@ -1,4 +1,4 @@
-chiark-utils (0.99.0-1) experimental; urgency=low
+chiark-utils (2.0.0-1) experimental; urgency=low
   
   * Initial prepackaged release of chiark backup.
 
@@ -8,8 +8,9 @@ chiark-utils (0.99.0-1) experimental; urgency=low
   * example config files from Relativity and chiark shipped.
   * Improved documentation.
   * bringup-hook created.
+  * bugfixes (all of bugs introduced by merge, AFAICT).
 
- -- Ian Jackson <ian@davenant.greenend.org.uk>  Mon,  8 Oct 2001 01:11:56 +0100
+ -- Ian Jackson <ian@davenant.greenend.org.uk>  Mon,  8 Oct 2001 01:52:21 +0100
 
 # Local variables:
 # mode: debian-changelog
index 457d144cc0ebfe6b3ba33cf1f3554f504c429078..8265a3d9211be22e3121703d7b8c60d48b498698 100755 (executable)
@@ -37,9 +37,10 @@ binary-prep:
                gzip -9v $t/$$p/usr/share/doc/$$p/changelog; \
                done
        #
-       $(MAKE) -C backup install install-examples \
+       $(MAKE) -C backup install install-docs install-examples \
                prefix=$t/chiark-backup/usr \
-               etcdir=$t/chiark-backup/etc
+               etcdir=$t/chiark-backup/etc \
+               varlib=$t/chiark-backup/var/lib
        #
        install -d $t/chiark-rwbuffer/usr/bin
        cd $t/chiark-backup/usr/bin && \
@@ -66,7 +67,7 @@ binary-indep: checkroot build binary-prep
 
 binary-arch:   checkroot build binary-prep
        $(checkdir)
-       dpkg-shlibdeps -Tdebian/sv-chiark-backup $t/chiark-backup/usr/bin/*
+       dpkg-shlibdeps -Tdebian/sv-chiark-rwbuffer $t/chiark-rwbuffer/usr/bin/*
        set -e; for p in $(packages_arch); \
                do debian/rules binary-one p=$$p; done