Ticket #25742: Portfile

File Portfile, 1.8 KB (added by aleksandr.kuzminsky@…, 14 years ago)
Line 
1# $Id: Portfile 50598 2009-05-04 23:21:17Z ryandesign@macports.org $
2
3PortSystem              1.0
4
5name                    xtrabackup
6version                 1.3
7homepage                https://launchpad.net/percona-xtrabackup
8categories              databases
9maintainers             aleksandr.kuzminsky@percona.com
10platforms               darwin
11depends_build           port:bzr
12
13description             OpenSource version of InnoDB backup with support of Percona extensions.
14long_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.
15master_sites            http://www.percona.com/downloads/community/distfiles/xtrabackup/
16
17configure       {}
18
19fetch {
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
27build           {
28        system "cd \"${worksrcpath}\" &&  \
29        AUTO_DOWNLOAD=yes ./utils/build.sh 5.0 ; \
30        "
31}
32destroot        {
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}
38checksum        {}