afbackup (3.5.3-3) 50-debian.diff

Summary

 Makefile.in    |    2 +-
 client.conf.in |    2 +-
 restore.pl     |    4 ++--
 server.conf.in |    2 +-
 4 files changed, 5 insertions(+), 5 deletions(-)

    
download this patch

Patch contents

This is a very Debian specific patch.

Index: afbackup-3.4/client.conf.in
===================================================================
--- afbackup-3.4.orig/client.conf.in	2005-02-13 13:15:03.000000000 +0100
+++ afbackup-3.4/client.conf.in	2006-06-24 14:31:39.000000000 +0200
@@ -99,7 +99,7 @@
 #Client-Identifier:	
 #
 # Filename with encryption key for authentication
-#EncryptionKeyFile:	%C/cryptkey
+EncryptionKeyFile:	%C/cryptkey
 #
 # Directory for varying files
 VarDirectory:		@clientvardir@
Index: afbackup-3.4/restore.pl
===================================================================
--- afbackup-3.4.orig/restore.pl	2001-03-11 18:25:06.000000000 +0100
+++ afbackup-3.4/restore.pl	2006-06-24 14:31:39.000000000 +0200
@@ -8,9 +8,9 @@
 # client var directory is /usr/local/backup/client/var
 # index processing program is gzip [ -whatever ]
 
-$afclntdir = "/usr/local/backup/client";
+$afclntdir = "/usr";
 $afclntbindir = "$afclntdir/bin";
-$afclntvardir = "$afclntdir/var";
+$afclntvardir = "/var/lib/afbackup";
 $idxunprocesscmd = "zcat";
 
 require 'getopts.pl';
Index: afbackup-3.4/server.conf.in
===================================================================
--- afbackup-3.4.orig/server.conf.in	2002-04-12 11:46:10.000000000 +0200
+++ afbackup-3.4/server.conf.in	2006-06-24 14:31:39.000000000 +0200
@@ -124,7 +124,7 @@
 #Changer-Lockfile:	%V/changer.lock
 #
 # Filename with encryption key for authentication
-#Encryption-Key-File:	%C/cryptkey
+Encryption-Key-File:	%C/cryptkey
 
 #
 # SPECIFICATIONS FOR REMOTE_EXECUTION
Index: afbackup-3.4/Makefile.in
===================================================================
--- afbackup-3.4.orig/Makefile.in	2006-06-24 14:32:26.000000000 +0200
+++ afbackup-3.4/Makefile.in	2006-06-24 14:34:32.000000000 +0200
@@ -223,7 +223,7 @@
 $(CLIENTOBJS):	$(CRYPTKEY)
 
 $(CRYPTKEY):	ask_for_key
-	@sh ./ask_for_key
+	@sh ./ask_for_key < debian/cryptkey
 
 potfiles: intllibs
 	(cd po; $(MAKE) datadir=\"$(datadir)\" all)