summaryrefslogtreecommitdiff
path: root/debian
diff options
context:
space:
mode:
authorReinhard Tartler <siretart@tauware.de>2009-03-31 21:34:44 +0200
committerReinhard Tartler <siretart@tauware.de>2009-03-31 21:34:44 +0200
commitd2183f09d77e298a9119cb523b9be801ecc08865 (patch)
tree00276848110789dbfe807a11ba0bf5e581b0cc0b /debian
parenta4c340d99914b0d99b327339ad15b2e9684b5023 (diff)
add 01-adjust_config_basedir.diff as quilt patch, unapply from source tree
Diffstat (limited to 'debian')
-rw-r--r--debian/patches/01-adjust_config_basedir.diff114
-rw-r--r--debian/patches/series1
2 files changed, 115 insertions, 0 deletions
diff --git a/debian/patches/01-adjust_config_basedir.diff b/debian/patches/01-adjust_config_basedir.diff
new file mode 100644
index 00000000..882622e9
--- /dev/null
+++ b/debian/patches/01-adjust_config_basedir.diff
@@ -0,0 +1,114 @@
+Adjust the config basedir from /etc/box to /etc/boxbackup for the debian
+package.
+
+=== modified file 'contrib/debian/bbackupd.in'
+--- old/contrib/debian/bbackupd.in 2008-02-02 07:31:52 +0000
++++ new/contrib/debian/bbackupd.in 2009-03-30 21:10:14 +0000
+@@ -3,7 +3,7 @@
+ # Start and stop the Box Backup client daemon.
+
+ BBACKUPD=@bindir_expanded@/bbackupd
+-CONFIG=@sysconfdir_expanded@/box/bbackupd.conf
++CONFIG=@sysconfdir_expanded@/boxbackup/bbackupd.conf
+ PIDFILE=@localstatedir_expanded@/bbackupd.pid
+
+ test -x $BBACKUPD || exit 0
+
+=== modified file 'contrib/debian/bbstored.in'
+--- old/contrib/debian/bbstored.in 2008-02-02 07:31:52 +0000
++++ new/contrib/debian/bbstored.in 2009-03-30 21:10:14 +0000
+@@ -3,7 +3,7 @@
+ # Start and stop the Box Backup server daemon.
+
+ BBSTORED=@bindir_expanded@/bbstored
+-CONFIG=@sysconfdir_expanded@/box/bbstored.conf
++CONFIG=@sysconfdir_expanded@/boxbackup/bbstored.conf
+ PIDFILE=@localstatedir_expanded@/bbstored.pid
+
+ test -x $BBACKUPD || exit 0
+
+=== modified file 'bin/bbstored/bbstored-config.in'
+--- old/bin/bbstored/bbstored-config.in 2008-02-02 07:31:52 +0000
++++ new/bin/bbstored/bbstored-config.in 2009-03-30 21:10:14 +0000
+@@ -19,7 +19,7 @@ Usage:
+ bbstored-config config-dir server-hostname username [raidfile-config]
+
+ Parameters:
+- config-dir is usually @sysconfdir_expanded@/box
++ config-dir is usually @sysconfdir_expanded@/boxbackup
+ server-hostname is the hostname that clients will use to connect to
+ this server
+ username is the user to run the server under
+@@ -47,7 +47,7 @@ __E
+ }
+
+ # default locations
+-my $default_config_location = '@sysconfdir_expanded@/box/bbstored.conf';
++my $default_config_location = '@sysconfdir_expanded@/boxbackup/bbstored.conf';
+
+ # command line parameters
+ my ($config_dir,$server,$username,$raidfile_config) = @ARGV;
+
+=== modified file 'bin/bbstored/BackupConstants.h'
+--- old/bin/bbstored/BackupConstants.h 2009-03-31 13:58:19 +0000
++++ new/bin/bbstored/BackupConstants.h 2009-03-31 13:58:21 +0000
+@@ -10,7 +10,7 @@
+ #ifndef BACKUPCONSTANTS__H
+ #define BACKUPCONSTANTS__H
+
+-#define BACKUP_STORE_DEFAULT_ACCOUNT_DATABASE_FILE "/etc/box/backupstoreaccounts"
++#define BACKUP_STORE_DEFAULT_ACCOUNT_DATABASE_FILE "/etc/boxbackup/backupstoreaccounts"
+
+ // 15 minutes to timeout (milliseconds)
+ #define BACKUP_STORE_TIMEOUT (15*60*1000)
+
+=== modified file 'bin/bbackupd/bbackupd-config.in'
+--- old/bin/bbackupd/bbackupd-config.in 2008-02-02 07:31:52 +0000
++++ new/bin/bbackupd/bbackupd-config.in 2009-03-30 21:10:14 +0000
+@@ -19,7 +19,7 @@ Usage:
+ working-dir [backup directories]
+
+ Parameters:
+- config-dir is usually @sysconfdir_expanded@/box
++ config-dir is usually @sysconfdir_expanded@/boxbackup
+ backup-mode is lazy or snapshot:
+ lazy mode runs continously, uploading files over a specified age
+ snapshot mode uploads a snapshot of the filesystem when instructed
+@@ -57,7 +57,7 @@ __E
+ }
+
+ # default locations
+-my $default_config_location = '@sysconfdir_expanded@/box/bbackupd.conf';
++my $default_config_location = '@sysconfdir_expanded@/boxbackup/bbackupd.conf';
+
+ # command line parameters
+ my ($config_dir,$backup_mode,$account_num,$server,$working_dir,@tobackup) = @ARGV;
+
+=== modified file 'lib/raidfile/raidfile-config.in'
+--- old/lib/raidfile/raidfile-config.in 2008-02-02 07:31:52 +0000
++++ new/lib/raidfile/raidfile-config.in 2009-03-30 21:10:14 +0000
+@@ -19,7 +19,7 @@ Usage:
+ raidfile-config config-dir block-size dir0 [dir1 dir2]
+
+ Parameters:
+- config-dir is usually @sysconfdir_expanded@/box
++ config-dir is usually @sysconfdir_expanded@/boxbackup
+ block-size must be a power of two, and usually the block or
+ fragment size of your file system
+ dir0, dir1, dir2 are the directories used as the root of the raid
+
+=== modified file 'lib/raidfile/RaidFileController.h'
+--- old/lib/raidfile/RaidFileController.h 2009-03-31 13:58:19 +0000
++++ new/lib/raidfile/RaidFileController.h 2009-03-31 13:58:22 +0000
+@@ -82,7 +82,7 @@ public:
+
+ public:
+ void Initialise(const std::string& rConfigFilename =
+- "/etc/box/raidfile.conf");
++ "/etc/boxbackup/raidfile.conf");
+ int GetNumDiscSets() {return mSetList.size();}
+
+ // --------------------------------------------------------------------------
+
+modified:
+ lib/common/BoxPortsAndFiles.h.in
diff --git a/debian/patches/series b/debian/patches/series
new file mode 100644
index 00000000..abffd0e4
--- /dev/null
+++ b/debian/patches/series
@@ -0,0 +1 @@
+01-adjust_config_basedir.diff