2009-10-07 17:08:34 +02:00
|
|
|
{buildPerlPackage, stdenv, fetchurl, DBDmysql}:
|
|
|
|
|
|
|
|
buildPerlPackage rec {
|
2014-04-07 14:02:15 +02:00
|
|
|
name = "maatkit-7540";
|
2009-10-07 17:08:34 +02:00
|
|
|
|
|
|
|
src = fetchurl {
|
|
|
|
url = "http://maatkit.googlecode.com/files/${name}.tar.gz" ;
|
2014-04-07 14:02:15 +02:00
|
|
|
sha256 = "1a7rxrddkrsfxb2wj01ha91ld0vapfkqcy8j9p08l76zz2l8p2v1";
|
2009-10-07 17:08:34 +02:00
|
|
|
};
|
|
|
|
|
|
|
|
buildInputs = [ DBDmysql ] ;
|
|
|
|
|
|
|
|
preConfigure = ''
|
|
|
|
find . | while read fn; do
|
|
|
|
if test -f "$fn"; then
|
|
|
|
first=$(dd if="$fn" count=2 bs=1 2> /dev/null)
|
|
|
|
if test "$first" = "#!"; then
|
|
|
|
sed < "$fn" > "$fn".tmp \
|
|
|
|
-e "s|^#\!\(.*[/\ ]perl.*\)$|#\!$perl/bin/perl $perlFlags|"
|
|
|
|
if test -x "$fn"; then chmod +x "$fn".tmp; fi
|
|
|
|
mv "$fn".tmp "$fn"
|
|
|
|
fi
|
|
|
|
fi
|
|
|
|
done
|
|
|
|
'' ;
|
|
|
|
|
|
|
|
meta = {
|
2013-10-06 11:49:53 +02:00
|
|
|
description = "Database toolkit";
|
|
|
|
longDescription = ''
|
|
|
|
You can use Maatkit to prove replication is working correctly, fix
|
|
|
|
corrupted data, automate repetitive tasks, speed up your servers, and
|
|
|
|
much more.
|
|
|
|
|
|
|
|
In addition to MySQL, there is support for PostgreSQL, Memcached, and a
|
|
|
|
growing variety of other databases and technologies.
|
|
|
|
'';
|
2009-10-07 17:08:34 +02:00
|
|
|
license = "GPLv2+";
|
|
|
|
homepage = http://www.maatkit.org/;
|
|
|
|
};
|
|
|
|
}
|