Merge pull request #113969 from peterhoeg/f/mysqltuner
mysqltuner: do not pollute global /share
This commit is contained in:
commit
e8c545f2b2
|
@ -13,8 +13,7 @@ stdenv.mkDerivation rec {
|
|||
|
||||
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\""
|
||||
--replace '/usr/share' "$out/share"
|
||||
'';
|
||||
|
||||
buildInputs = [ perl ];
|
||||
|
@ -22,10 +21,8 @@ stdenv.mkDerivation rec {
|
|||
installPhase = ''
|
||||
runHook preInstall
|
||||
|
||||
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"
|
||||
install -Dm0555 mysqltuner.pl $out/bin/mysqltuner
|
||||
install -Dm0444 -t $out/share/mysqltuner basic_passwords.txt vulnerabilities.csv
|
||||
|
||||
runHook postInstall
|
||||
'';
|
||||
|
|
Loading…
Reference in New Issue