forked from gentoo/gentoo
-
Notifications
You must be signed in to change notification settings - Fork 0
/
percona-xtrabackup-2.4.4.ebuild
53 lines (41 loc) · 1.19 KB
/
percona-xtrabackup-2.4.4.ebuild
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
# Copyright 1999-2016 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
EAPI=6
DESCRIPTION="Hot backup utility for MySQL based servers"
HOMEPAGE="https://www.percona.com/software/mysql-database/percona-xtrabackup"
SRC_URI="https://www.percona.com/downloads/XtraBackup/Percona-XtraBackup-${PV}/source/tarball/${P}.tar.gz
!system-boost? ( http://jenkins.percona.com/downloads/boost/boost_1_59_0.tar.gz )"
LICENSE="GPL-2"
SLOT="0"
KEYWORDS="~amd64 ~x86"
IUSE="system-boost"
DEPEND="system-boost? ( =dev-libs/boost-1.59.0 )
app-editors/vim-core
dev-libs/libaio
dev-libs/libev
dev-libs/libgcrypt:0=
dev-libs/libgpg-error
dev-python/sphinx
net-misc/curl
sys-libs/zlib"
RDEPEND="${DEPEND}
!dev-db/xtrabackup-bin
dev-perl/DBD-mysql"
src_configure() {
local my_args
if ! use system-boost; then
my_args="-DDOWNLOAD_BOOST=0 -DWITH_BOOST=${WORKDIR}"
fi
cmake -DBUILD_CONFIG=xtrabackup_release $my_args || die
}
src_compile() {
emake
}
src_install() {
local p="storage/innobase/xtrabackup"
for tool in xbcloud xbcrypt xbstream xtrabackup; do
dobin ${p}/src/${tool}
done
dosym xtrabackup /usr/bin/innobackupex
doman ${p}/doc/source/build/man/*
}