1 | # $Id: Portfile 50598 2009-05-04 23:21:17Z ryandesign@macports.org $ |
---|
2 | |
---|
3 | PortSystem 1.0 |
---|
4 | |
---|
5 | name xtrabackup |
---|
6 | version 1.3 |
---|
7 | homepage https://launchpad.net/percona-xtrabackup |
---|
8 | categories databases |
---|
9 | maintainers aleksandr.kuzminsky@percona.com |
---|
10 | platforms darwin |
---|
11 | depends_build port:bzr |
---|
12 | |
---|
13 | description OpenSource version of InnoDB backup with support of Percona extensions. |
---|
14 | long_description Percona XtraBackup is OpenSource online (non-blockable) backup solution for InnoDB and XtraDB engines. It works with Percona Server, MySQL 5.0 and 5.1 versions and also can handle MyISAM tables. XtraBackup is distributed under GPL v2 license. |
---|
15 | master_sites http://www.percona.com/downloads/community/distfiles/xtrabackup/ |
---|
16 | |
---|
17 | configure {} |
---|
18 | |
---|
19 | fetch { |
---|
20 | system "mkdir -p ${prefix}/var/macports/distfiles/${name} ; |
---|
21 | cd ${prefix}/var/macports/distfiles/${name} ; \ |
---|
22 | bzr branch lp:percona-xtrabackup/release-${version} xtrabackup-${version} ; \ |
---|
23 | tar zcf xtrabackup-${version}.tar.gz xtrabackup-${version} ; \ |
---|
24 | rm -r xtrabackup-${version} " |
---|
25 | } |
---|
26 | |
---|
27 | build { |
---|
28 | system "cd \"${worksrcpath}\" && \ |
---|
29 | AUTO_DOWNLOAD=yes ./utils/build.sh 5.0 ; \ |
---|
30 | " |
---|
31 | } |
---|
32 | destroot { |
---|
33 | system "mkdir -p ${destroot}/opt/local/bin" |
---|
34 | system "install -m 755 ${worksrcpath}/mysql-5.0.91/innobase/xtrabackup/xtrabackup_50 ${destroot}/opt/local/bin" |
---|
35 | system "install -m 755 ${worksrcpath}/mysql-5.0.91/libtar-1.2.11/libtar/tar4ibd ${destroot}/opt/local/bin" |
---|
36 | system "install -m 755 ${worksrcpath}/mysql-5.0.91/innobase/xtrabackup/innobackupex-1.5.1 ${destroot}/opt/local/bin" |
---|
37 | } |
---|
38 | checksum {} |
---|