From 17fb3a3831ca812a3ad384f4eec3b977432facd9 Mon Sep 17 00:00:00 2001 From: ianmdlvl Date: Mon, 8 Oct 2001 00:52:55 +0000 Subject: [PATCH] @@ -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 @@ * example config files from Relativity and chiark shipped. * Improved documentation. * bringup-hook created. + * bugfixes (all of bugs introduced by merge, AFAICT). - -- Ian Jackson Mon, 8 Oct 2001 01:11:56 +0100 + -- Ian Jackson Mon, 8 Oct 2001 01:52:21 +0100 # Local variables: # mode: debian-changelog --- TODO | 8 ++------ backup/Makefile | 15 +++++++++++---- backup/backuplib.pl | 7 +++++-- backup/bringup | 2 +- backup/driver | 2 +- backup/examples/relativity/ifsys.pt0 | 1 - backup/examples/relativity/ifsys.pt2 | 2 ++ backup/examples/relativity/settings.pl | 2 +- backup/full | 2 +- backup/iwjbackup.txt | 11 ++++------- debian/changelog | 5 +++-- debian/rules | 7 ++++--- 12 files changed, 35 insertions(+), 29 deletions(-) diff --git a/TODO b/TODO index caf0e70..9dc0150 100644 --- 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 diff --git a/backup/Makefile b/backup/Makefile index 16260e6..3b55957 100644 --- a/backup/Makefile +++ b/backup/Makefile @@ -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 -) - - -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 2>&1 + dm:5:once:backup-driver /dev/tty8 2>&1 * takedown can be run from the command line or via cron. diff --git a/debian/changelog b/debian/changelog index 8a761e2..610fbc8 100644 --- a/debian/changelog +++ b/debian/changelog @@ -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 Mon, 8 Oct 2001 01:11:56 +0100 + -- Ian Jackson Mon, 8 Oct 2001 01:52:21 +0100 # Local variables: # mode: debian-changelog diff --git a/debian/rules b/debian/rules index 457d144..8265a3d 100755 --- a/debian/rules +++ b/debian/rules @@ -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 -- 2.30.2