Lines 6-42
Link Here
|
6 |
# |
6 |
# |
7 |
|
7 |
|
8 |
PORTNAME= xtrabackup |
8 |
PORTNAME= xtrabackup |
9 |
PORTVERSION= 1.1 |
9 |
PORTVERSION= 1.6.5 |
10 |
CATEGORIES= databases |
10 |
CATEGORIES= databases |
11 |
MASTER_SITES= http://www.percona.com/downloads/XtraBackup/XtraBackup-1.1/source/ \ |
11 |
MASTER_SITES= ${MASTER_SITE_MYSQL_GRP} \ |
12 |
http://launchpadlibrarian.net/41612347/ |
12 |
http://downloads.skysql.com/archives/mysql-5.5/:mysql55 \ |
|
|
13 |
http://downloads.mysql.com/archives/mysql-5.5/:mysql55 \ |
14 |
http://www.percona.com/downloads/%SUBDIR%/:xtrabackup,libtar,percsrc51,percsrc55 \ |
15 |
http://samm.kiev.ua/percona/:percsrc51,percsrc55 \ |
16 |
ftp://ftp.feep.net/pub/software/libtar/:libtar |
17 |
DISTFILES= mysql-${MYSQL51_SRCVER}.tar.gz:mysql51 mysql-${MYSQL55_SRCVER}.tar.gz:mysql55 \ |
18 |
xtrabackup-${PORTVERSION}.tar.gz:xtrabackup libtar-1.2.11.tar.gz:libtar \ |
19 |
Percona-Server-5.1.59-13.0-patches.tar.gz:percsrc51 \ |
20 |
Percona-Server-5.5.16-22.0-patches.tar.gz:percsrc55 |
21 |
EXTRACT_ONLY= xtrabackup-${PORTVERSION}.tar.gz |
13 |
|
22 |
|
14 |
MAINTAINER= aleksandr.kuzminsky@percona.com |
23 |
MAINTAINER= aleksandr.kuzminsky@percona.com |
15 |
COMMENT= OpenSource version of InnoDB backup with support of Percona extensions |
24 |
COMMENT= OpenSource version of InnoDB backup with support of Percona extensions |
16 |
|
25 |
|
17 |
GNU_CONFIGURE= yes |
26 |
LICENSE= GPLv2 |
|
|
27 |
|
28 |
# MySQL 5.5 using CMAKE, quilt is requiered by build.sh |
29 |
BUILD_DEPENDS= bash:${PORTSDIR}/shells/bash quilt:${PORTSDIR}/devel/quilt \ |
30 |
cmake:${PORTSDIR}/devel/cmake bison:${PORTSDIR}/devel/bison |
31 |
|
32 |
# autotool is in use for 5.1 builds |
18 |
MAKE_JOBS_SAFE= yes |
33 |
MAKE_JOBS_SAFE= yes |
19 |
USE_GMAKE= yes |
34 |
USE_GMAKE= yes |
|
|
35 |
USE_PERL5= yes |
36 |
USE_AUTOTOOLS= automake autoheader autoconf libtool aclocal |
20 |
|
37 |
|
21 |
CONFIGURE_ARGS= --localstatedir=/var/db/mysql \ |
38 |
# use MASTER_SITE_MYSQL for the MySQL 5.1 |
22 |
--without-debug \ |
39 |
MASTER_SITE_MYSQL_GRP= ${MASTER_SITE_MYSQL:S@%SUBDIR%/@%SUBDIR%/:mysql51@g} |
23 |
--without-readline \ |
40 |
MASTER_SITE_SUBDIR= MySQL-5.1/:mysql51 community/:libtar \ |
24 |
--without-libedit \ |
41 |
XtraBackup/XtraBackup-1.6.5/source/:xtrabackup \ |
25 |
--without-server \ |
42 |
Percona-Server-5.1/Percona-Server-5.1.59-13.0/source/:percsrc51 \ |
26 |
--with-libwrap \ |
43 |
Percona-Server-5.5/Percona-Server-5.5.16-22.0/source/:percsrc55 |
27 |
--with-low-memory \ |
44 |
|
28 |
--enable-thread-safe-client \ |
45 |
# port needs MySQL sources to build |
29 |
--with-named-thread-libs="${PTHREAD_LIBS}" |
46 |
MYSQL51_SRCVER=5.1.59 |
30 |
|
47 |
MYSQL55_SRCVER=5.5.16 |
31 |
PLIST_FILES= bin/xtrabackup bin/tar4ibd bin/innobackupex-1.5.1 |
48 |
|
32 |
|
49 |
PLIST_FILES= bin/xtrabackup bin/xtrabackup_51 bin/xtrabackup_55 bin/tar4ibd bin/innobackupex |
33 |
post-build: |
50 |
|
34 |
cd ${WRKSRC}/storage/innobase/xtrabackup && ${GMAKE} |
51 |
pre-build: |
35 |
cd ${WRKSRC}/libtar-1.2.11 && ./configure && ${GMAKE} |
52 |
${CP} ${DISTDIR}/xtrabackup-${PORTVERSION}.tar.gz ${DISTDIR}/libtar-1.2.11.tar.gz \ |
|
|
53 |
${DISTDIR}/mysql-${MYSQL51_SRCVER}.tar.gz ${DISTDIR}/mysql-${MYSQL55_SRCVER}.tar.gz \ |
54 |
${DISTDIR}/Percona-Server-5.1.59-13.0-patches.tar.gz \ |
55 |
${DISTDIR}/Percona-Server-5.5.16-22.0-patches.tar.gz ${WRKSRC} |
56 |
|
57 |
do-build: |
58 |
cd ${WRKSRC} && ./utils/build.sh 5.1 |
59 |
cd ${WRKSRC} && ./utils/build.sh xtradb |
60 |
cd ${WRKSRC} && ./utils/build.sh xtradb55 |
36 |
|
61 |
|
37 |
do-install: |
62 |
do-install: |
38 |
@${INSTALL_PROGRAM} ${WRKSRC}/storage/innobase/xtrabackup/xtrabackup ${PREFIX}/bin |
63 |
@${INSTALL_PROGRAM} ${WRKSRC}/Percona-Server/storage/innodb_plugin/xtrabackup/xtrabackup ${PREFIX}/bin |
39 |
@${INSTALL_SCRIPT} ${WRKSRC}/storage/innobase/xtrabackup/innobackupex-1.5.1 ${PREFIX}/bin |
64 |
@${INSTALL_PROGRAM} ${WRKSRC}/Percona-Server-5.5/storage/innobase/xtrabackup/xtrabackup_55 ${PREFIX}/bin |
|
|
65 |
@${INSTALL_PROGRAM} ${WRKSRC}/mysql-5.1/storage/innobase/xtrabackup/xtrabackup_51 ${PREFIX}/bin |
66 |
@${INSTALL_SCRIPT} ${WRKSRC}/innobackupex ${PREFIX}/bin |
40 |
@${INSTALL_PROGRAM} ${WRKSRC}/libtar-1.2.11/libtar/tar4ibd ${PREFIX}/bin |
67 |
@${INSTALL_PROGRAM} ${WRKSRC}/libtar-1.2.11/libtar/tar4ibd ${PREFIX}/bin |
41 |
|
68 |
|
|
|
69 |
# autoconf is running by build.sh |
70 |
do-configure: |
71 |
run-autotools-aclocal: |
72 |
run-autotools-automake: |
73 |
run-autotools-autoconf: |
74 |
run-autotools-autoheader: |
75 |
run-autotools-libtoolize: |
76 |
patch-autotools-libtool: |
77 |
@${TRUE} |
78 |
|
42 |
.include <bsd.port.mk> |
79 |
.include <bsd.port.mk> |