diff options
author | Fabian Groffen <grobian@gentoo.org> | 2006-03-05 13:16:02 +0000 |
---|---|---|
committer | Fabian Groffen <grobian@gentoo.org> | 2006-03-05 13:16:02 +0000 |
commit | ad8c22faf8e856f0983bcdfb22be3fa3d9584d0a (patch) | |
tree | 946d56bea90926882b04d0c6f866e0ae62ed389e /app-backup/boxbackup/files | |
parent | Version bump. (diff) | |
download | gentoo-2-ad8c22faf8e856f0983bcdfb22be3fa3d9584d0a.tar.gz gentoo-2-ad8c22faf8e856f0983bcdfb22be3fa3d9584d0a.tar.bz2 gentoo-2-ad8c22faf8e856f0983bcdfb22be3fa3d9584d0a.zip |
Upstream version bump. (bug #123865)
(Portage version: 2.1_pre5-r1)
Diffstat (limited to 'app-backup/boxbackup/files')
-rw-r--r-- | app-backup/boxbackup/files/boxbackup-0.10-gentoo.patch | 137 | ||||
-rw-r--r-- | app-backup/boxbackup/files/digest-boxbackup-0.10 | 3 |
2 files changed, 140 insertions, 0 deletions
diff --git a/app-backup/boxbackup/files/boxbackup-0.10-gentoo.patch b/app-backup/boxbackup/files/boxbackup-0.10-gentoo.patch new file mode 100644 index 000000000000..1e925e85065c --- /dev/null +++ b/app-backup/boxbackup/files/boxbackup-0.10-gentoo.patch @@ -0,0 +1,137 @@ +grobian@gentoo.org: +* change /etc/box into /etc/boxbackup +* don't do anything in /usr/local/bin, install in /usr/sbin instead +* remove Darwin/OSX Fink support and dynamic parallelising +* respect DESTDIR on install + +--- boxbackup-0.10/bin/bbackupd/bbackupd-config ++++ boxbackup-0.10/bin/bbackupd/bbackupd-config +@@ -56,7 +56,7 @@ + Usage: + bbackupd-config config-dir backup-mode account-num server-hostname working-dir backup-dir [more backup directories] + +-config-dir usually /etc/box ++config-dir usually /etc/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 explicitly +@@ -92,7 +92,7 @@ + } + + # default locations +-my $default_config_location = '/etc/box/bbackupd.conf'; ++my $default_config_location = '/etc/boxbackup/bbackupd.conf'; + + # command line parameters + my ($config_dir,$backup_mode,$account_num,$server,$working_dir,@tobackup) = @ARGV; +@@ -540,7 +540,7 @@ + more files will be backed up. You want to know about this. + + 6) Start the backup daemon with the command +- /usr/local/bin/bbackupd$daemon_args ++ /usr/sbin/bbackupd$daemon_args + in /etc/rc.local, or your local equivalent. + Note that bbackupd must run as root. + __E +@@ -550,7 +550,7 @@ + + 7) Set up a cron job to run whenever you want a snapshot of the + file system to be taken. Run the command +- /usr/local/bin/bbackupctl -q$ctl_daemon_args sync ++ /usr/sbin/bbackupctl -q$ctl_daemon_args sync + __E + } + print <<__E; +--- boxbackup-0.10/bin/bbstored/bbstored-config ++++ boxbackup-0.10/bin/bbstored/bbstored-config +@@ -57,7 +57,7 @@ + Usage: + bbstored-config config-dir server-hostname username [raidfile-config] + +-config-dir usually /etc/box ++config-dir usually /etc/boxbackup + server-hostname is the hostname used by clients to connect to this server + username is the user to run the server under + raidfile-config is optional. Use if you have a non-standard raidfile.conf file. +@@ -83,7 +83,7 @@ + } + + # default locations +-my $default_config_location = '/etc/box/bbstored.conf'; ++my $default_config_location = '/etc/boxbackup/bbstored.conf'; + + # command line parameters + my ($config_dir,$server,$username,$raidfile_config) = @ARGV; +@@ -270,7 +270,7 @@ + 4) Create accounts with bbstoreaccounts + + 5) Start the backup store daemon with the command +- /usr/local/bin/bbstored$daemon_args ++ /usr/sbin/bbstored$daemon_args + in /etc/rc.local, or your local equivalent. + + =================================================================== +--- boxbackup-0.10/lib/raidfile/raidfile-config ++++ boxbackup-0.10/lib/raidfile/raidfile-config +@@ -57,7 +57,7 @@ + Usage: + raidfile-config config-dir block-size dir0 [dir1 dir2] + +-config-dir usually /etc/box ++config-dir usually /etc/boxbackup + block-size must be a power of two, and usually the block or fragment size of your filing system + dir0, dir1, dir2 are the directories used as the root of the raid file system + +--- boxbackup-0.10/lib/raidfile/RaidFileController.h ++++ boxbackup-0.10/lib/raidfile/RaidFileController.h +@@ -120,7 +120,7 @@ + ~RaidFileController(); + + public: +- void Initialise(const char *ConfigFilename = "/etc/box/raidfile.conf"); ++ void Initialise(const char *ConfigFilename = "/etc/boxbackup/raidfile.conf"); + int GetNumDiscSets() {return mSetList.size();} + + // -------------------------------------------------------------------------- +--- boxbackup-0.10/infrastructure/BoxPlatform.pm.in ++++ boxbackup-0.10/infrastructure/BoxPlatform.pm.in +@@ -37,26 +37,6 @@ + + # where to put the files + $install_into_dir = '@bindir_expanded@'; +- +- # if it's Darwin, +- if($build_os eq 'Darwin') +- { +- # see how many processors there are, and set make flags accordingly +- my $cpus = `sysctl hw.ncpu`; +- if($cpus =~ m/hw.ncpu:\s(\d+)/ && $1 > 1) +- { +- print "$1 processors detected, will set make to perform concurrent jobs\n"; +- $sub_make_options = ' -j '.($1 + 1); +- } +- +- # test for fink installation +- if(-d '/sw/include' && -d '/sw/lib') +- { +- print "Fink installation detected, will use headers and libraries\n\n\n"; +- $platform_compile_line_extra = '-I/sw/include '; +- $platform_link_line_extra = '-L/sw/lib '; +- } +- } + } + + sub make_flag + +--- boxbackup-0.10/infrastructure/makeparcels.pl ++++ boxbackup-0.10/infrastructure/makeparcels.pl +@@ -172,7 +172,8 @@ + $name = $1; + } + +- print SCRIPT "install $name $install_into_dir\n"; ++ print SCRIPT "mkdir -p \${DESTDIR}$install_into_dir/\n"; ++ print SCRIPT "install $name \${DESTDIR}$install_into_dir/$name\n"; + } + + close SCRIPT; diff --git a/app-backup/boxbackup/files/digest-boxbackup-0.10 b/app-backup/boxbackup/files/digest-boxbackup-0.10 new file mode 100644 index 000000000000..1ed0acad0c41 --- /dev/null +++ b/app-backup/boxbackup/files/digest-boxbackup-0.10 @@ -0,0 +1,3 @@ +MD5 2dc02d87932fdb222ed019443ddcf444 boxbackup-0.10.tgz 842450 +RMD160 26f906f37a3b095026ddf12c9284e16515ceb752 boxbackup-0.10.tgz 842450 +SHA256 09e88f4ee26b76b3d6e6a0cf3fc374e55d79dd84e9884dfc6a7635593862d361 boxbackup-0.10.tgz 842450 |