[buildout]
extends =
  ../perl/buildout.cfg
  ../perl-DBI/buildout.cfg
  ../perl-DBD-MySQL/buildout.cfg
parts =
  percona-toolkit

[percona-toolkit]
recipe = slapos.recipe.cmmi
version = 3.0.3
url = https://www.percona.com/downloads/percona-toolkit/${:version}/source/tarball/percona-toolkit-${:version}.tar.gz
md5sum = 8af181994fdf9aa984475637861098e9
depends =
  ${perl-DBI:location}
  ${perl-DBD-mariadb:location}
pre-configure =
  sed -i -e 's,^#!/usr/bin/env perl,#!perl,' bin/*
configure-command =
  ${perl:location}/bin/perl Makefile.PL
location = ${buildout:parts-directory}/${:_buildout_section_name_}
make-options =
  INSTALLSITESCRIPT=${:location}/bin
