[144557] trunk/dports/databases/mysql-zrm

mojca at macports.org mojca at macports.org
Tue Jan 12 10:51:04 PST 2016


Revision: 144557
          https://trac.macports.org/changeset/144557
Author:   mojca at macports.org
Date:     2016-01-12 10:51:03 -0800 (Tue, 12 Jan 2016)
Log Message:
-----------
mysql-zrm: upgrade to 3.0 (#50234, maintainer timeout)

Modified Paths:
--------------
    trunk/dports/databases/mysql-zrm/Portfile
    trunk/dports/databases/mysql-zrm/files/patch-mysql-zrm-4
    trunk/dports/databases/mysql-zrm/files/patch-mysql-zrm-backup-0
    trunk/dports/databases/mysql-zrm/files/patch-mysql-zrm-scheduler-3
    trunk/dports/databases/mysql-zrm/files/patch-mysql-zrm-verify-backup-1
    trunk/dports/databases/mysql-zrm/files/patch-zrm-pre-scheduler-2

Modified: trunk/dports/databases/mysql-zrm/Portfile
===================================================================
--- trunk/dports/databases/mysql-zrm/Portfile	2016-01-12 17:08:44 UTC (rev 144556)
+++ trunk/dports/databases/mysql-zrm/Portfile	2016-01-12 18:51:03 UTC (rev 144557)
@@ -5,8 +5,7 @@
 PortGroup           perl5 1.0
 
 name                mysql-zrm
-version             2.0
-revision            3
+version             3.0
 categories          databases sysutils
 maintainers         bitwrangler.com:kmayer
 description         Zmanda Recovery Manager for MySQL
@@ -18,10 +17,11 @@
 homepage            http://www.zmanda.com/backup-mysql.html
 platforms           darwin
 master_sites        http://www.zmanda.com/downloads/community/ZRM-MySQL/${version}/Source/
-distname            MySQL-zrm-${version}
-checksums           md5 13a82abeb181d265af553770d1db6718 \
-                    sha1 fbc38a346755fb228296af2a447cb5fd74d5d246
+distname            MySQL-zrm-${version}-release
 
+checksums           rmd160  0573cfbeee98626e17411fb17bda6d76c9ad041d \
+                    sha256  05e0342b190b6475f220014a126ed213442e24af7b6e3295fa914fcb47b1b931
+
 perl5.branches      5.22
 # these are probably just runtime dependencies?
 depends_lib         port:p${perl5.major}-dbi \
@@ -35,6 +35,14 @@
 destroot.keepdirs   ${destroot}${prefix}/var/lib/mysql-zrm \
                     ${destroot}${prefix}/var/log/mysql-zrm
 
+
+post-extract {
+    file mkdir ${worksrcpath}
+    foreach d {etc usr var} {
+        file rename ${workpath}/${d} ${worksrcpath}/${d}
+    }
+}
+
 post-patch {
     # Not the most efficient way to do this, but much more readable
     foreach f [exec find ${worksrcpath} -type f -print] {
@@ -76,9 +84,9 @@
     eval xinstall -m 444 [glob ${worksrcpath}/usr/lib/mysql-zrm/ZRM/*] \
         ${destroot}${prefix}/lib/mysql-zrm/ZRM
 
-    xinstall -m 755 -d ${destroot}${prefix}/share/doc/MySQL-zrm-2.0
-    eval xinstall -m 444 [glob ${worksrcpath}/usr/share/doc/MySQL-zrm-2.0/*] \
-        ${destroot}${prefix}/share/doc/MySQL-zrm-2.0
+    xinstall -m 755 -d ${destroot}${prefix}/share/doc/MySQL-zrm-${version}
+    eval xinstall -m 444 [glob ${worksrcpath}/usr/share/doc/MySQL-zrm-${version}/*] \
+        ${destroot}${prefix}/share/doc/MySQL-zrm-${version}
 
     xinstall -m 755 -d ${destroot}${prefix}/share/man/man1
     eval xinstall -m 444 [glob ${worksrcpath}/usr/share/man/man1/*] \

Modified: trunk/dports/databases/mysql-zrm/files/patch-mysql-zrm-4
===================================================================
--- trunk/dports/databases/mysql-zrm/files/patch-mysql-zrm-4	2016-01-12 17:08:44 UTC (rev 144556)
+++ trunk/dports/databases/mysql-zrm/files/patch-mysql-zrm-4	2016-01-12 18:51:03 UTC (rev 144557)
@@ -1,11 +1,11 @@
---- ./usr/bin/mysql-zrm.orig	2008-04-07 10:40:12.000000000 -1000
-+++ ./usr/bin/mysql-zrm	2008-05-12 09:22:26.000000000 -1000
-@@ -27,7 +27,7 @@
- $ENV{'PATH'} = "/usr/local/bin:/opt/csw/bin:/usr/bin:/usr/sbin:/sbin:/bin:/usr/ucb";
+--- usr/bin/mysql-zrm.orig
++++ usr/bin/mysql-zrm
+@@ -36,7 +36,7 @@
+ 	$ZRM_BINPATH= catfile( $ZRM_HOME, "usr", "bin" );
+ } else {
+ 	$ENV{'PATH'} = "/usr/local/bin:/opt/csw/bin:/usr/bin:/usr/sbin:/sbin:/bin:/usr/ucb";
+-	$ZRM_BINPATH="/usr/bin";
++	$ZRM_BINPATH="@BINPATH@";
+ }
  
- #path where ZRM utilities are installed
--my $ZRM_BINPATH="/usr/bin";
-+my $ZRM_BINPATH="@BINPATH@";
  
- 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'";
- 

Modified: trunk/dports/databases/mysql-zrm/files/patch-mysql-zrm-backup-0
===================================================================
--- trunk/dports/databases/mysql-zrm/files/patch-mysql-zrm-backup-0	2016-01-12 17:08:44 UTC (rev 144556)
+++ trunk/dports/databases/mysql-zrm/files/patch-mysql-zrm-backup-0	2016-01-12 18:51:03 UTC (rev 144557)
@@ -1,15 +1,15 @@
---- ./usr/bin/mysql-zrm-backup.orig	2008-04-07 10:40:12.000000000 -1000
-+++ ./usr/bin/mysql-zrm-backup	2008-05-08 10:36:55.000000000 -1000
-@@ -38,7 +38,7 @@
+--- usr/bin/mysql-zrm-backup.orig
++++ usr/bin/mysql-zrm-backup
+@@ -40,7 +40,7 @@
+ $SIG{'PIPE'} = sub { &printWarning( "Communication pipe broke. Continuing\n" ); };
  
- $SIG{'TERM'} = sub { $abort_flag = 1; };
  
 -my $MD5SUM="md5sum";
 +my $MD5SUM="md5";
- my $MAILCMD="mail";
  
- #Neither mysqlhotcopy not mysqldump will do a --flush-logs 
-@@ -1504,7 +1504,7 @@
+ 
+ my $MAILCMD="";
+@@ -2035,7 +2035,7 @@
  				    $inputs{"synchronous-checksum"} == 1 ){
  					my $file = $File::Find::fullname;
  					if( -f $file ){

Modified: trunk/dports/databases/mysql-zrm/files/patch-mysql-zrm-scheduler-3
===================================================================
--- trunk/dports/databases/mysql-zrm/files/patch-mysql-zrm-scheduler-3	2016-01-12 17:08:44 UTC (rev 144556)
+++ trunk/dports/databases/mysql-zrm/files/patch-mysql-zrm-scheduler-3	2016-01-12 18:51:03 UTC (rev 144557)
@@ -1,6 +1,6 @@
---- ./usr/bin/mysql-zrm-scheduler.orig	2008-04-07 10:40:12.000000000 -1000
-+++ ./usr/bin/mysql-zrm-scheduler	2008-05-12 09:19:31.000000000 -1000
-@@ -36,8 +36,8 @@
+--- usr/bin/mysql-zrm-scheduler.orig
++++ usr/bin/mysql-zrm-scheduler
+@@ -38,8 +38,8 @@
  my $confdir="/etc/mysql-zrm";
  my $def_dest="/var/lib/mysql-zrm";         # backup root
  my $logfile="$logdir/$prog.log";
@@ -11,7 +11,7 @@
  my $zrm_pre_backup="$pre_scheduler --action backup";
  my $zrm_backup="$zrm --action backup";
  my $zrm_purge="$zrm --action purge";
-@@ -160,7 +160,7 @@
+@@ -162,7 +162,7 @@
      my $date=`date +%Y%m%d%H%M%S`;
      chomp($date);
      my $report_out="$name.$date.html";  # report name is $backupsetname.timestamp.html

Modified: trunk/dports/databases/mysql-zrm/files/patch-mysql-zrm-verify-backup-1
===================================================================
--- trunk/dports/databases/mysql-zrm/files/patch-mysql-zrm-verify-backup-1	2016-01-12 17:08:44 UTC (rev 144556)
+++ trunk/dports/databases/mysql-zrm/files/patch-mysql-zrm-verify-backup-1	2016-01-12 18:51:03 UTC (rev 144557)
@@ -1,5 +1,5 @@
---- ./usr/bin/mysql-zrm-verify-backup.orig	2008-04-07 10:40:12.000000000 -1000
-+++ ./usr/bin/mysql-zrm-verify-backup	2008-05-08 10:37:21.000000000 -1000
+--- usr/bin/mysql-zrm-verify-backup.orig
++++ usr/bin/mysql-zrm-verify-backup
 @@ -30,7 +30,7 @@
  use ZRM::Common;
  

Modified: trunk/dports/databases/mysql-zrm/files/patch-zrm-pre-scheduler-2
===================================================================
--- trunk/dports/databases/mysql-zrm/files/patch-zrm-pre-scheduler-2	2016-01-12 17:08:44 UTC (rev 144556)
+++ trunk/dports/databases/mysql-zrm/files/patch-zrm-pre-scheduler-2	2016-01-12 18:51:03 UTC (rev 144557)
@@ -1,6 +1,6 @@
---- ./usr/bin/zrm-pre-scheduler.orig	2008-04-07 10:40:12.000000000 -1000
-+++ ./usr/bin/zrm-pre-scheduler	2008-05-12 09:12:32.000000000 -1000
-@@ -35,7 +35,7 @@
+--- usr/bin/zrm-pre-scheduler.orig
++++ usr/bin/zrm-pre-scheduler
+@@ -34,7 +34,7 @@
  my $oldPATH = $ENV{'PATH'};
  $ENV{'PATH'} = "/usr/local/bin:/opt/csw/bin:/usr/bin:/usr/sbin:/sbin:/bin:/usr/ucb";
  
@@ -9,7 +9,7 @@
  my $prog="zrm-pre-scheduler";
  my $logdir="/var/log/mysql-zrm";
  my $logfile="$logdir/$prog.log";
-@@ -162,7 +162,7 @@
+@@ -161,7 +161,7 @@
  	if ( $int eq "daily" ) {
  	    $mday = $wday = "*";
  	}
@@ -18,7 +18,7 @@
  	print OUTF "--action $myaction ";
          print OUTF "--interval $int " if ( $int );
  	print OUTF "--backup-level $lev " if ( $lev );
-@@ -205,7 +205,7 @@
+@@ -204,7 +204,7 @@
      my $date=`date +%Y%m%d%H%M%S`;
      chomp($date);
      my $report_out="$name.$date.html";  # report name is $backupsetname.timestamp.html
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.macosforge.org/pipermail/macports-changes/attachments/20160112/252371dd/attachment-0001.html>


More information about the macports-changes mailing list