Ticket #50234: mysql-zrm-3.0a.diff
File mysql-zrm-3.0a.diff, 6.8 KB (added by mojca (Mojca Miklavec), 9 years ago) |
---|
-
Portfile
5 5 PortGroup perl5 1.0 6 6 7 7 name mysql-zrm 8 version 2.0 9 revision 3 8 version 3.0 10 9 categories databases sysutils 11 10 maintainers bitwrangler.com:kmayer 12 11 description Zmanda Recovery Manager for MySQL … … 18 17 homepage http://www.zmanda.com/backup-mysql.html 19 18 platforms darwin 20 19 master_sites http://www.zmanda.com/downloads/community/ZRM-MySQL/${version}/Source/ 21 distname MySQL-zrm-${version} 22 checksums md5 13a82abeb181d265af553770d1db6718 \ 23 sha1 fbc38a346755fb228296af2a447cb5fd74d5d246 20 distname MySQL-zrm-${version}-release 24 21 22 checksums rmd160 0573cfbeee98626e17411fb17bda6d76c9ad041d \ 23 sha256 05e0342b190b6475f220014a126ed213442e24af7b6e3295fa914fcb47b1b931 24 25 25 perl5.branches 5.22 26 26 # these are probably just runtime dependencies? 27 27 depends_lib port:p${perl5.major}-dbi \ … … 35 35 destroot.keepdirs ${destroot}${prefix}/var/lib/mysql-zrm \ 36 36 ${destroot}${prefix}/var/log/mysql-zrm 37 37 38 39 post-extract { 40 file mkdir ${worksrcpath} 41 foreach d {etc usr var} { 42 file rename ${workpath}/${d} ${worksrcpath}/${d} 43 } 44 } 45 38 46 post-patch { 39 47 # Not the most efficient way to do this, but much more readable 40 48 foreach f [exec find ${worksrcpath} -type f -print] { … … 76 84 eval xinstall -m 444 [glob ${worksrcpath}/usr/lib/mysql-zrm/ZRM/*] \ 77 85 ${destroot}${prefix}/lib/mysql-zrm/ZRM 78 86 79 xinstall -m 755 -d ${destroot}${prefix}/share/doc/MySQL-zrm- 2.080 eval xinstall -m 444 [glob ${worksrcpath}/usr/share/doc/MySQL-zrm- 2.0/*] \81 ${destroot}${prefix}/share/doc/MySQL-zrm- 2.087 xinstall -m 755 -d ${destroot}${prefix}/share/doc/MySQL-zrm-${version} 88 eval xinstall -m 444 [glob ${worksrcpath}/usr/share/doc/MySQL-zrm-${version}/*] \ 89 ${destroot}${prefix}/share/doc/MySQL-zrm-${version} 82 90 83 91 xinstall -m 755 -d ${destroot}${prefix}/share/man/man1 84 92 eval xinstall -m 444 [glob ${worksrcpath}/usr/share/man/man1/*] \ -
files/patch-mysql-zrm-4
1 --- ./usr/bin/mysql-zrm.orig 2008-04-07 10:40:12.000000000 -1000 2 +++ ./usr/bin/mysql-zrm 2008-05-12 09:22:26.000000000 -1000 3 @@ -27,7 +27,7 @@ 4 $ENV{'PATH'} = "/usr/local/bin:/opt/csw/bin:/usr/bin:/usr/sbin:/sbin:/bin:/usr/ucb"; 1 --- usr/bin/mysql-zrm.orig 2 +++ usr/bin/mysql-zrm 3 @@ -36,7 +36,7 @@ 4 $ZRM_BINPATH= catfile( $ZRM_HOME, "usr", "bin" ); 5 } else { 6 $ENV{'PATH'} = "/usr/local/bin:/opt/csw/bin:/usr/bin:/usr/sbin:/sbin:/bin:/usr/ucb"; 7 - $ZRM_BINPATH="/usr/bin"; 8 + $ZRM_BINPATH="@BINPATH@"; 9 } 5 10 6 #path where ZRM utilities are installed7 -my $ZRM_BINPATH="/usr/bin";8 +my $ZRM_BINPATH="@BINPATH@";9 11 10 my $USAGE="--action <backup|restore|schedule-backup|report|list|getconf|purge|parse-binlogs|check|verify-backup|extract-backup|abort-backup>\nHelp on individual action items can be obtained by specifying --help with the required action.\nFor example: 'mysql-zrm --action backup --help'";11 -
files/patch-mysql-zrm-backup-0
1 --- ./usr/bin/mysql-zrm-backup.orig 2008-04-07 10:40:12.000000000 -1000 2 +++ ./usr/bin/mysql-zrm-backup 2008-05-08 10:36:55.000000000 -1000 3 @@ -38,7 +38,7 @@ 1 --- usr/bin/mysql-zrm-backup.orig 2 +++ usr/bin/mysql-zrm-backup 3 @@ -40,7 +40,7 @@ 4 $SIG{'PIPE'} = sub { &printWarning( "Communication pipe broke. Continuing\n" ); }; 4 5 5 $SIG{'TERM'} = sub { $abort_flag = 1; };6 6 7 7 -my $MD5SUM="md5sum"; 8 8 +my $MD5SUM="md5"; 9 my $MAILCMD="mail";10 9 11 #Neither mysqlhotcopy not mysqldump will do a --flush-logs 12 @@ -1504,7 +1504,7 @@ 10 11 my $MAILCMD=""; 12 @@ -2035,7 +2035,7 @@ 13 13 $inputs{"synchronous-checksum"} == 1 ){ 14 14 my $file = $File::Find::fullname; 15 15 if( -f $file ){ -
files/patch-mysql-zrm-scheduler-3
1 --- ./usr/bin/mysql-zrm-scheduler.orig 2008-04-07 10:40:12.000000000 -10002 +++ ./usr/bin/mysql-zrm-scheduler 2008-05-12 09:19:31.000000000 -10003 @@ -3 6,8 +36,8 @@1 --- usr/bin/mysql-zrm-scheduler.orig 2 +++ usr/bin/mysql-zrm-scheduler 3 @@ -38,8 +38,8 @@ 4 4 my $confdir="/etc/mysql-zrm"; 5 5 my $def_dest="/var/lib/mysql-zrm"; # backup root 6 6 my $logfile="$logdir/$prog.log"; … … 11 11 my $zrm_pre_backup="$pre_scheduler --action backup"; 12 12 my $zrm_backup="$zrm --action backup"; 13 13 my $zrm_purge="$zrm --action purge"; 14 @@ -16 0,7 +160,7 @@14 @@ -162,7 +162,7 @@ 15 15 my $date=`date +%Y%m%d%H%M%S`; 16 16 chomp($date); 17 17 my $report_out="$name.$date.html"; # report name is $backupsetname.timestamp.html -
files/patch-mysql-zrm-verify-backup-1
1 --- ./usr/bin/mysql-zrm-verify-backup.orig 2008-04-07 10:40:12.000000000 -10002 +++ ./usr/bin/mysql-zrm-verify-backup 2008-05-08 10:37:21.000000000 -10001 --- usr/bin/mysql-zrm-verify-backup.orig 2 +++ usr/bin/mysql-zrm-verify-backup 3 3 @@ -30,7 +30,7 @@ 4 4 use ZRM::Common; 5 5 -
files/patch-zrm-pre-scheduler-2
1 --- ./usr/bin/zrm-pre-scheduler.orig 2008-04-07 10:40:12.000000000 -10002 +++ ./usr/bin/zrm-pre-scheduler 2008-05-12 09:12:32.000000000 -10003 @@ -3 5,7 +35,7 @@1 --- usr/bin/zrm-pre-scheduler.orig 2 +++ usr/bin/zrm-pre-scheduler 3 @@ -34,7 +34,7 @@ 4 4 my $oldPATH = $ENV{'PATH'}; 5 5 $ENV{'PATH'} = "/usr/local/bin:/opt/csw/bin:/usr/bin:/usr/sbin:/sbin:/bin:/usr/ucb"; 6 6 … … 9 9 my $prog="zrm-pre-scheduler"; 10 10 my $logdir="/var/log/mysql-zrm"; 11 11 my $logfile="$logdir/$prog.log"; 12 @@ -16 2,7 +162,7 @@12 @@ -161,7 +161,7 @@ 13 13 if ( $int eq "daily" ) { 14 14 $mday = $wday = "*"; 15 15 } … … 18 18 print OUTF "--action $myaction "; 19 19 print OUTF "--interval $int " if ( $int ); 20 20 print OUTF "--backup-level $lev " if ( $lev ); 21 @@ -20 5,7 +205,7 @@21 @@ -204,7 +204,7 @@ 22 22 my $date=`date +%Y%m%d%H%M%S`; 23 23 chomp($date); 24 24 my $report_out="$name.$date.html"; # report name is $backupsetname.timestamp.html