xtrabackup-bin-2.4.6.ebuild 1.4 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162
  1. # Copyright 1999-2017 Gentoo Foundation
  2. # Distributed under the terms of the GNU General Public License v2
  3. EAPI="6"
  4. MY_PN="percona-${PN/-bin}"
  5. MY_P="${MY_PN}-${PV}"
  6. DESCRIPTION="MySQL hot backup software. non-blocking backups for InnoDB/XtraDB databases"
  7. HOMEPAGE="http://www.percona.com/software/percona-xtrabackup"
  8. SRC_URI="
  9. amd64? (
  10. http://www.percona.com/downloads/XtraBackup/Percona-XtraBackup-${PV}/binary/tarball/${MY_P}-Linux-x86_64.tar.gz
  11. )
  12. x86? (
  13. http://www.percona.com/downloads/XtraBackup/Percona-XtraBackup-${PV}/binary/tarball/${MY_P}-Linux-i686.tar.gz
  14. )"
  15. LICENSE="GPL-2"
  16. SLOT="0"
  17. KEYWORDS="~amd64 ~x86"
  18. IUSE=""
  19. # NOTE: dev-perl/DBD-mysql still necessary, now for bin/xtrabackup?
  20. DEPEND=""
  21. RDEPEND="dev-libs/libaio
  22. dev-libs/libgcrypt:11/11
  23. dev-libs/libgpg-error
  24. dev-perl/DBD-mysql
  25. sys-libs/zlib"
  26. src_unpack() {
  27. default
  28. if use amd64; then
  29. S="${WORKDIR}/${MY_P}-Linux-x86_64"
  30. elif use x86; then
  31. S="${WORKDIR}/${MY_P}-Linux-i686"
  32. fi
  33. }
  34. src_install() {
  35. # Two new tools with an old libcurl.so.3 dep...
  36. # TODO: Wait for a new release using libcurl.so.4
  37. # net-misc/curl dev-libs/libev
  38. # dobin bin/xbcloud{,_osenv}
  39. for tool in xbcrypt xbstream xtrabackup; do
  40. dobin bin/${tool}
  41. done
  42. for man in innobackupex xbcrypt xbstream xtrabackup; do
  43. doman man/man1/${man}.1
  44. done
  45. dosym xtrabackup /usr/bin/innobackupex
  46. }
  47. pkg_postinst() {
  48. ewarn "innobackupex got deprecated in 2.3.x series and is just a symlink to xtrabackup"
  49. }