mirror of
https://github.com/macports/macports-ports.git
synced 2026-07-12 18:20:25 -07:00
108 lines
4.7 KiB
Tcl
108 lines
4.7 KiB
Tcl
# -*- 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
|
|
|
|
PortSystem 1.0
|
|
PortGroup perl5 1.0
|
|
|
|
name mysql-zrm
|
|
version 3.0
|
|
revision 3
|
|
categories databases sysutils
|
|
maintainers {bitwrangler.com:kmayer @kmayer} openmaintainer
|
|
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
|
|
platforms darwin
|
|
master_sites http://www.zmanda.com/downloads/community/ZRM-MySQL/${version}/Source/
|
|
distname MySQL-zrm-${version}-release
|
|
|
|
checksums rmd160 0573cfbeee98626e17411fb17bda6d76c9ad041d \
|
|
sha256 05e0342b190b6475f220014a126ed213442e24af7b6e3295fa914fcb47b1b931 \
|
|
size 152711
|
|
|
|
perl5.branches 5.34
|
|
# these are probably just runtime dependencies?
|
|
depends_lib port:p${perl5.major}-dbi \
|
|
port:p${perl5.major}-xml-parser
|
|
use_configure no
|
|
patchfiles 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
|
|
|
|
extract.mkdir yes
|
|
|
|
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|${perl5.bin}|" ${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
|
|
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
|
|
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
|
|
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
|
|
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-${version}
|
|
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
|
|
xinstall -m 444 {*}[glob ${worksrcpath}/usr/share/man/man1/*] \
|
|
${destroot}${prefix}/share/man/man1
|
|
|
|
xinstall -m 755 -d ${destroot}${prefix}/share/man/man5
|
|
xinstall -m 444 {*}[glob ${worksrcpath}/usr/share/man/man5/*] \
|
|
${destroot}${prefix}/share/man/man5
|
|
|
|
xinstall -m 755 -d ${destroot}${prefix}/share/mysql-zrm/plugins
|
|
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
|
|
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
|
|
}
|
|
|
|
livecheck.url http://www.zmanda.com/download-zrm.php
|
|
livecheck.regex {Release ([\d.]+)}
|