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.
gentoo-overlay/dev-db/xtrabackup-bin/xtrabackup-bin-2.0.8.ebuild

44 lines
1.2 KiB

# Copyright 1999-2014 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: /var/cvsroot/gentoo-x86/dev-db/xtrabackup-bin/xtrabackup-bin-2.0.8.ebuild,v 1.2 2014/02/21 21:10:43 idl0r Exp $
EAPI=5
MY_PN="percona-${PN/-bin}"
MY_PVR="${PV}-587"
MY_P="${MY_PN}-${PV}"
MY_PF="${MY_PN}-${MY_PVR}"
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? (
http://www.percona.com/redir/downloads/XtraBackup/XtraBackup-${PV}/binary/Linux/x86_64/${MY_PF}.tar.gz -> ${MY_P}-x86_64.tar.gz
)
x86? (
http://www.percona.com/redir/downloads/XtraBackup/XtraBackup-${PV}/binary/Linux/i686/${MY_PF}.tar.gz -> ${MY_P}-x86_32.tar.gz
)
"
LICENSE="GPL-2"
SLOT="0"
KEYWORDS="~amd64 ~x86"
IUSE=""
DEPEND=""
RDEPEND="dev-libs/libaio"
S="${WORKDIR}/${MY_P}"
src_install() {
for bin in xtrabackup xtrabackup_55 xbstream xtrabackup_51 innobackupex; do
dobin bin/${bin}
done
dosym /usr/bin/innobackupex /usr/bin/innobackupex-1.5.1
}
pkg_postinst() {
einfo "xtrabackup 2.0.x is for MySQL/MariaDB 5.1 and 5.5 only"
}