summaryrefslogtreecommitdiff
path: root/dev-db
diff options
context:
space:
mode:
authorTomas Mozes <hydrapolic@gmail.com>2016-08-02 13:32:58 +0200
committerPatrice Clement <monsieurp@gentoo.org>2016-08-03 14:00:28 +0200
commit9f553b1a4dffb76fc3fd8b1f67498559b666d091 (patch)
treeca46b7d8648e086050017a26f58037332f291bd3 /dev-db
parentsys-firmware/sigrok-firmware-fx2lafw: Version bump, bug #579904 (diff)
downloadgentoo-9f553b1a4dffb76fc3fd8b1f67498559b666d091.tar.gz
gentoo-9f553b1a4dffb76fc3fd8b1f67498559b666d091.tar.bz2
gentoo-9f553b1a4dffb76fc3fd8b1f67498559b666d091.zip
dev-db/percona-xtrabackup: New package.
Percona XtraBackup is an online non-blocking backup tool for MySQL, MariaDB and Percona Server. Gentoo-Bug: https://bugs.gentoo.org/265407 Package-Manager: portage-2.3.0 Closes: https://github.com/gentoo/gentoo/pull/1998 Signed-off-by: Patrice Clement <monsieurp@gentoo.org>
Diffstat (limited to 'dev-db')
-rw-r--r--dev-db/percona-xtrabackup/Manifest2
-rw-r--r--dev-db/percona-xtrabackup/metadata.xml19
-rw-r--r--dev-db/percona-xtrabackup/percona-xtrabackup-2.4.4.ebuild52
3 files changed, 73 insertions, 0 deletions
diff --git a/dev-db/percona-xtrabackup/Manifest b/dev-db/percona-xtrabackup/Manifest
new file mode 100644
index 000000000000..65c21a32c6e0
--- /dev/null
+++ b/dev-db/percona-xtrabackup/Manifest
@@ -0,0 +1,2 @@
+DIST boost_1_59_0.tar.gz 83709983 SHA256 47f11c8844e579d02691a607fbd32540104a9ac7a2534a8ddaef50daf502baac SHA512 05fdbe5637543defdbc630b921515425885593d16db14534ed7b9aa60925ade8fb598d50cb894aed6dae688e789047216daa1bf03fa1aeb6b531060d9dae52ae WHIRLPOOL b316c2b5e445010766b7ce3f6582565177e1ed763381912dd6b21a882176e19e382c929e1f5a2419e2ed701058c56320cdbf8487234835a00fb94e7115059b67
+DIST percona-xtrabackup-2.4.4.tar.gz 54060567 SHA256 e3ec54eb468482503bccdd1619136e798798086042e9eb7c6daa2fb9b78783a3 SHA512 aa013aa8f2bef49c66fd14a980444039bdbabb17c09efec3119d5fc074623d6c5f7492602c759f1d51e3a01898729e1209d2195081b537f679a3713b37a7cf0d WHIRLPOOL 77ef90b028cfcec60b0aa7dea4aab2bbebb3be8f18ae50406af81c1cdfe6339f08b29eded004ca6b91ce86303ef694803e34dc5c4d723606b34c1b95120bd8f7
diff --git a/dev-db/percona-xtrabackup/metadata.xml b/dev-db/percona-xtrabackup/metadata.xml
new file mode 100644
index 000000000000..bef621489428
--- /dev/null
+++ b/dev-db/percona-xtrabackup/metadata.xml
@@ -0,0 +1,19 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+ <maintainer type="person">
+ <email>hydrapolic@gmail.com</email>
+ <name>Tomáš Mózes</name>
+ <description>Proxy maintainer</description>
+ </maintainer>
+ <maintainer type="project">
+ <email>proxy-maint@gentoo.org</email>
+ <name>Proxy Maintainers</name>
+ </maintainer>
+ <use>
+ <flag name="system-boost">Use system boost (dev-libs/boost) instead of bundled one</flag>
+ </use>
+ <upstream>
+ <remote-id type="github">percona/percona-xtrabackup</remote-id>
+ </upstream>
+</pkgmetadata>
diff --git a/dev-db/percona-xtrabackup/percona-xtrabackup-2.4.4.ebuild b/dev-db/percona-xtrabackup/percona-xtrabackup-2.4.4.ebuild
new file mode 100644
index 000000000000..34af5090775e
--- /dev/null
+++ b/dev-db/percona-xtrabackup/percona-xtrabackup-2.4.4.ebuild
@@ -0,0 +1,52 @@
+# Copyright 1999-2016 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Id$
+
+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 )
+ 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"
+
+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/*
+}