blob: 2e9e7ddc75253422d9916a697822b9e6b6c4ba52 (
plain)
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
|
# Copyright 1999-2018 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
EAPI="6"
MY_PN="${PN%-bin}"
MY_P="${MY_PN}-${PV}"
DESCRIPTION="MySQL hot backup software. non-blocking backups for InnoDB/XtraDB databases"
HOMEPAGE="https://www.percona.com/software/percona-xtrabackup"
SRC_URI="
amd64? (
https://www.percona.com/downloads/XtraBackup/Percona-XtraBackup-${PV}/binary/tarball/${MY_P}-Linux-x86_64.libgcrypt20.tar.gz
)
x86? (
https://www.percona.com/downloads/XtraBackup/Percona-XtraBackup-${PV}/binary/tarball/${MY_P}-Linux-i686.libgcrypt20.tar.gz
)"
LICENSE="GPL-2"
SLOT="0"
KEYWORDS="~amd64 ~x86"
IUSE=""
# NOTE: dev-perl/DBD-mysql still necessary, now for bin/xtrabackup?
DEPEND=""
RDEPEND="dev-libs/libaio
dev-libs/libgcrypt:0/20
dev-libs/libgpg-error
dev-perl/DBD-mysql
sys-libs/zlib
sys-process/numactl"
QA_PREBUILT="usr/bin/*"
src_unpack() {
default
if use amd64; then
S="${WORKDIR}/${MY_P}-Linux-x86_64"
elif use x86; then
S="${WORKDIR}/${MY_P}-Linux-i686"
fi
}
src_install() {
# Two new tools with an old libcurl.so.3 dep...
# TODO: Wait for a new release using libcurl.so.4
# net-misc/curl dev-libs/libev
# dobin bin/xbcloud{,_osenv}
for tool in xbcrypt xbstream xtrabackup; do
dobin bin/${tool}
done
for man in innobackupex xbcrypt xbstream xtrabackup; do
doman man/man1/${man}.1
done
dosym xtrabackup /usr/bin/innobackupex
}
pkg_postinst() {
ewarn "innobackupex got deprecated in 2.3.x series and is just a symlink to xtrabackup"
}
|