blob: 73da5f81aede061faf78bd336e0bd3f5ba0888de (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
|
# Created by: Alex Samorukov <samm@os2.kiev.ua>
# $FreeBSD$
PORTNAME= xtrabackup
PORTVERSION= 2.1.7
PORTREVISION= 1
CATEGORIES= databases
MASTER_SITES= http://www.percona.com/downloads/%SUBDIR%/
DISTNAME= percona-${PORTNAME}-${DISTVERSIONPREFIX}${DISTVERSION}${DISTVERSIONSUFFIX}
DISTFILES= percona-xtrabackup-${PORTVERSION}.tar.gz
EXTRACT_ONLY= percona-xtrabackup-${PORTVERSION}.tar.gz
MAINTAINER= aleksandr.kuzminsky@percona.com
COMMENT= OpenSource version of InnoDB backup with support of Percona extensions
LICENSE= GPLv2
# quilt is requiered by build.sh
BUILD_DEPENDS= bash:${PORTSDIR}/shells/bash \
quilt:${PORTSDIR}/devel/quilt \
bison:${PORTSDIR}/devel/bison
LIB_DEPENDS= libgcrypt.so:${PORTSDIR}/security/libgcrypt \
libgpg-error.so:${PORTSDIR}/security/libgpg-error
RUN_DEPENDS= p5-DBD-mysql>=0:${PORTSDIR}/databases/p5-DBD-mysql \
qpress:${PORTSDIR}/archivers/qpress
# autotool is in use for 5.1 builds
USE_AUTOTOOLS= automake autoheader autoconf aclocal libtoolize
# MySQL 5.5 using CMAKE
USES= cmake iconv gettext gmake libtool perl5
MASTER_SITE_SUBDIR= XtraBackup/XtraBackup-${PORTVERSION}/source/
PLIST_FILES= bin/xtrabackup bin/xtrabackup_55 bin/xtrabackup_56 bin/xbstream \
bin/innobackupex bin/xbcrypt
pre-build:
${CP} ${DISTDIR}/percona-xtrabackup-${PORTVERSION}.tar.gz ${WRKSRC}
do-build:
(cd ${WRKSRC} && ${SETENV} ${MAKE_ENV} ./utils/build.sh xtradb55)
${CP} ${WRKSRC}/src/xtrabackup_55 ${WRKSRC}
(cd ${WRKSRC} && ${SETENV} ${MAKE_ENV} ./utils/build.sh innodb56)
${CP} ${WRKSRC}/src/xtrabackup_56 ${WRKSRC}
(cd ${WRKSRC} && ${SETENV} ${MAKE_ENV} ./utils/build.sh xtradb)
${CP} ${WRKSRC}/src/xtrabackup ${WRKSRC}
do-install:
${INSTALL_PROGRAM} ${WRKSRC}/xtrabackup ${STAGEDIR}${PREFIX}/bin
${INSTALL_PROGRAM} ${WRKSRC}/xtrabackup_55 ${STAGEDIR}${PREFIX}/bin
${INSTALL_PROGRAM} ${WRKSRC}/xtrabackup_56 ${STAGEDIR}${PREFIX}/bin
${INSTALL_PROGRAM} ${WRKSRC}/src/xbstream ${STAGEDIR}${PREFIX}/bin
${INSTALL_PROGRAM} ${WRKSRC}/src/xbcrypt ${STAGEDIR}${PREFIX}/bin
${INSTALL_SCRIPT} ${WRKSRC}/innobackupex ${STAGEDIR}${PREFIX}/bin
# autoconf is running by build.sh
do-configure:
run-autotools-aclocal:
run-autotools-automake:
run-autotools-autoconf:
run-autotools-autoheader:
run-autotools-libtoolize:
patch-autotools-libtool:
@${TRUE}
.include <bsd.port.mk>
|