You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
56 lines
1.2 KiB
56 lines
1.2 KiB
9 years ago
|
# Copyright 1999-2015 Gentoo Foundation
|
||
11 years ago
|
# Distributed under the terms of the GNU General Public License v2
|
||
9 years ago
|
# $Id$
|
||
11 years ago
|
|
||
|
EAPI=5
|
||
|
|
||
|
MY_PN="percona-${PN/-bin}"
|
||
|
MY_P="${MY_PN}-${PV}"
|
||
|
|
||
10 years ago
|
inherit eutils
|
||
|
|
||
11 years ago
|
DESCRIPTION="MySQL hot backup software that performs non-blocking backups for
|
||
|
InnoDB and XtraDB databases"
|
||
|
HOMEPAGE="http://www.percona.com/software/percona-xtrabackup"
|
||
|
SRC_URI="
|
||
|
amd64? (
|
||
9 years ago
|
http://www.percona.com/downloads/XtraBackup/Percona-XtraBackup-${PV}/binary/tarball/${MY_P}-Linux-x86_64.tar.gz
|
||
11 years ago
|
)
|
||
|
x86? (
|
||
9 years ago
|
http://www.percona.com/downloads/XtraBackup/Percona-XtraBackup-${PV}/binary/tarball/${MY_P}-Linux-i686.tar.gz
|
||
10 years ago
|
)"
|
||
11 years ago
|
|
||
|
LICENSE="GPL-2"
|
||
|
SLOT="0"
|
||
|
KEYWORDS="~amd64 ~x86"
|
||
|
IUSE=""
|
||
|
|
||
|
DEPEND=""
|
||
|
RDEPEND="dev-libs/libaio
|
||
10 years ago
|
|| ( dev-libs/libgcrypt:0/11 dev-libs/libgcrypt:11/11 )
|
||
10 years ago
|
dev-libs/libgpg-error
|
||
9 years ago
|
dev-perl/DBD-mysql
|
||
|
sys-libs/zlib"
|
||
11 years ago
|
|
||
|
if use amd64; then
|
||
|
S="${WORKDIR}/${MY_P}-Linux-x86_64"
|
||
|
elif use x86; then
|
||
|
S="${WORKDIR}/${MY_P}-Linux-i686"
|
||
|
fi
|
||
|
|
||
10 years ago
|
src_prepare() {
|
||
|
# bug 501904 - CVE-2014-2029
|
||
10 years ago
|
epatch "${FILESDIR}/${PN}-2.1.7-no-versioncheck.patch"
|
||
10 years ago
|
}
|
||
|
|
||
11 years ago
|
src_install() {
|
||
9 years ago
|
for tool in innobackupex xbcrypt xbstream xtrabackup; do
|
||
|
dobin bin/${tool}
|
||
|
doman man/man1/${tool}.1
|
||
11 years ago
|
done
|
||
|
}
|
||
10 years ago
|
|
||
|
pkg_postinst() {
|
||
10 years ago
|
einfo "xtrabackup 2.2.x is for MySQL/MariaDB 5.6 only"
|
||
10 years ago
|
}
|