Merge pull request #113798 from SCOTT-HAMILTON/mysqltuner
mysqltuner: add password list to output
This commit is contained in:
commit
b5d7cb52c7
@ -11,17 +11,29 @@ stdenv.mkDerivation rec {
|
|||||||
sha256 = "sha256-Yv1XjD8sZcmGr2SVD6TEElUH7vspJ61WwQwfXLOrao0=";
|
sha256 = "sha256-Yv1XjD8sZcmGr2SVD6TEElUH7vspJ61WwQwfXLOrao0=";
|
||||||
};
|
};
|
||||||
|
|
||||||
|
postPatch = ''
|
||||||
|
substituteInPlace mysqltuner.pl \
|
||||||
|
--replace '$basic_password_files = "/usr/share/mysqltuner/basic_passwords.txt"' "\$basic_password_files = \"$out/share/basic_passwords.txt\"" \
|
||||||
|
--replace '$opt{cvefile} = "/usr/share/mysqltuner/vulnerabilities.csv"' "\$opt{cvefile} = \"$out/share/vulnerabilities.csv\""
|
||||||
|
'';
|
||||||
|
|
||||||
buildInputs = [ perl ];
|
buildInputs = [ perl ];
|
||||||
|
|
||||||
installPhase = ''
|
installPhase = ''
|
||||||
mkdir -p $out/bin
|
runHook preInstall
|
||||||
install -m0755 mysqltuner.pl $out/bin/mysqltuner
|
|
||||||
|
mkdir -p "$out/bin"
|
||||||
|
install -Dm 0755 mysqltuner.pl "$out/bin/mysqltuner"
|
||||||
|
install -Dm 0644 basic_passwords.txt "$out/share/basic_passwords.txt"
|
||||||
|
install -Dm 0644 vulnerabilities.csv "$out/share/vulnerabilities.csv"
|
||||||
|
|
||||||
|
runHook postInstall
|
||||||
'';
|
'';
|
||||||
|
|
||||||
meta = with lib; {
|
meta = with lib; {
|
||||||
description = "Make recommendations for increased performance and stability of MariaDB/MySQL";
|
description = "Make recommendations for increased performance and stability of MariaDB/MySQL";
|
||||||
homepage = "http://mysqltuner.com";
|
homepage = "http://mysqltuner.com";
|
||||||
license = licenses.gpl3;
|
license = licenses.gpl3Plus;
|
||||||
maintainers = with maintainers; [ peterhoeg ];
|
maintainers = with maintainers; [ peterhoeg shamilton ];
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user