Mysql-zrm version 2.0 - How to Download and Install on Mac OS X
Sunday the 22nd of November, 2009

    mysql-zrm  most recent diff


    version 2.0

      View the most recent changes for the mysql-zrm port at: mysql-zrm.darwinports.com/diff
      Scroll down toward the bottom of the page to get installation instructions for mysql-zrm.
      The raw portfile for mysql-zrm 2.0 is located here:
      http://mysql-zrm.darwinports.com/dports/databases/mysql-zrm/Portfile
      Find related portfiles with the unique DarwinPorts.com search feature.
      Check for any related Fink projects here: pdb.finkproject.org/pdb/package.php/mysql-zrm


      # -*- coding: utf-8; mode: tcl; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- vim:fenc=utf-8:ft=tcl:et:sw=4:ts=4:sts=4
      The mysql-zrm Portfile 48493 2009-03-23 20:20:35Z jmr macports.org $

      PortSystem 1.0

      Name: mysql-zrm
      Version: 2.0
      Category: databases sysutils
      Maintainers: bitwrangler.com:kmayer
      Description: Zmanda Recovery Manager for MySQL
      Long Description: Zmanda Recovery Manager (ZRM) for MySQL simplifies the life of a Database Administrator who needs an easy-to-use yet flexible and robust backup and recovery solution for MySQL server. You can find a quick start guide at: http://www.zmanda.com/quick-mysql-backup.html
      Homepage: http://www.zmanda.com/backup-mysql.html
      Platform: darwin
      Master Sites: http://www.zmanda.com/downloads/community/ZRM-MySQL/${version}/Source/
      distname MySQL-zrm-${version}
      Checksums: md5 13a82abeb181d265af553770d1db6718 sha1 fbc38a346755fb228296af2a447cb5fd74d5d246
      depends_lib port:p5-dbi port:p5-xml-parser
      use_configure no
      Patch Files: patch-mysql-zrm-backup-0 patch-mysql-zrm-verify-backup-1 patch-zrm-pre-scheduler-2 patch-mysql-zrm-scheduler-3 patch-mysql-zrm-4
      destroot.keepdirs ${destroot}${prefix}/var/lib/mysql-zrm ${destroot}${prefix}/var/log/mysql-zrm

      post-patch {
      # Not the most efficient way to do this, but much more readable
      foreach f [exec find ${worksrcpath} -type f -print] {
      reinplace "s|/opt/csw/bin|${prefix}/bin|" ${f}
      reinplace "s|/usr/bin/perl|${prefix}/bin/perl|" ${f}
      reinplace "s|/usr/bin/mysql-zrm|${prefix}/bin/mysql-zrm|" ${f}
      reinplace "s|/usr/lib/mysql-zrm|${prefix}/lib/mysql-zrm|" ${f}
      reinplace "s|/usr/share/mysql-zrm|${prefix}/share/mysql-zrm|" ${f}
      reinplace "s|/etc/mysql-zrm|${prefix}/etc/mysql-zrm|" ${f}
      reinplace "s|/var/lib|${prefix}/var/lib|" ${f}
      reinplace "s|/var/log|${prefix}/var/log|" ${f}
      }
      reinplace "s| BINPATH |${prefix}/bin|" ${worksrcpath}/usr/bin/zrm-pre-scheduler ${worksrcpath}/usr/bin/mysql-zrm-scheduler ${worksrcpath}/usr/bin/mysql-zrm
      }

      build {}

      destroot {
      xinstall -m 755 -d ${destroot}${prefix}/bin
      eval xinstall -m 755 [glob ${worksrcpath}/usr/bin/*] ${destroot}${prefix}/bin

      xinstall -m 755 -d ${destroot}${prefix}/lib/mysql-zrm/Data/Report/Plugin
      xinstall -m 444 ${worksrcpath}/usr/lib/mysql-zrm/Data/Report.pm ${destroot}${prefix}/lib/mysql-zrm/Data
      xinstall -m 444 ${worksrcpath}/usr/lib/mysql-zrm/Data/Report/Base.pm ${destroot}${prefix}/lib/mysql-zrm/Data/Report
      eval xinstall -m 444 [glob ${worksrcpath}/usr/lib/mysql-zrm/Data/Report/Plugin/*] ${destroot}${prefix}/lib/mysql-zrm/Data/Report/Plugin

      xinstall -m 755 -d ${destroot}${prefix}/lib/mysql-zrm/XML
      eval xinstall -m 444 [glob ${worksrcpath}/usr/lib/mysql-zrm/XML/*] ${destroot}${prefix}/lib/mysql-zrm/XML

      xinstall -m 755 -d ${destroot}${prefix}/lib/mysql-zrm/ZRM
      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/man/man1
      eval xinstall -m 444 [glob ${worksrcpath}/usr/share/man/man1/*] ${destroot}${prefix}/share/man/man1

      xinstall -m 755 -d ${destroot}${prefix}/share/man/man5
      eval xinstall -m 444 [glob ${worksrcpath}/usr/share/man/man5/*] ${destroot}${prefix}/share/man/man5

      xinstall -m 755 -d ${destroot}${prefix}/share/mysql-zrm/plugins
      eval xinstall -m 444 [glob ${worksrcpath}/usr/share/mysql-zrm/plugins/*] ${destroot}${prefix}/share/mysql-zrm/plugins

      xinstall -m 755 -d ${destroot}${prefix}/etc/mysql-zrm
      eval xinstall -m 644 [glob ${worksrcpath}/etc/mysql-zrm/*] ${destroot}${prefix}/etc/mysql-zrm

      xinstall -m 755 -d ${destroot}${prefix}/var/lib/mysql-zrm
      xinstall -m 755 -d ${destroot}${prefix}/var/log/mysql-zrm
      }

    If you haven't already installed Darwin Ports, you can find easy instructions for doing so at the main Darwin Ports page.

    Once Darwin Ports has been installed, in a terminal window and while online, type the following and hit return:


      %  cd /opt/local/bin/portslocation/dports/mysql-zrm
      % sudo port install mysql-zrm
      Password:
    You will then be prompted for your root password, which you should enter. You may have to wait for a few minutes while the software is retrieved from the network and installed for you. Y ou should see something that looks similar to:

      ---> Fetching mysql-zrm
      ---> Verifying checksum for mysql-zrm
      ---> Extracting mysql-zrm
      ---> Configuring mysql-zrm
      ---> Building mysql-zrm with target all
      ---> Staging mysql-zrm into destroot
      ---> Installing mysql-zrm
    - Make sure that you do not close the terminal window while Darwin Ports is working. Once the software has been installed, you can find further information about using mysql-zrm with these commands:
      %  man mysql-zrm
      % apropos mysql-zrm
      % which mysql-zrm
      % locate mysql-zrm

     Where to find more information:

    Darwin Ports



    Lightbox this page.