1 |
commit: ba9322f36ca48d07c585029b6b5d0c6b8cefb76c |
2 |
Author: Hasan ÇALIŞIR <hasan.calisir <AT> psauxit <DOT> com> |
3 |
AuthorDate: Sun Jul 28 20:20:47 2019 +0000 |
4 |
Commit: Joonas Niilola <juippis <AT> gentoo <DOT> org> |
5 |
CommitDate: Wed Jul 31 18:59:15 2019 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=ba9322f3 |
7 |
|
8 |
dev-db/mysqltuner: bump to 1.7.15 |
9 |
|
10 |
Version bump to 1.7.15. Also introduces new |
11 |
patch that fixes password detecting error. |
12 |
|
13 |
Package-Manager: Portage-2.3.66, Repoman-2.3.16 |
14 |
Signed-off-by: Hasan ÇALIŞIR <hasan.calisir <AT> psauxit.com> |
15 |
Closes: https://github.com/gentoo/gentoo/pull/12565 |
16 |
Signed-off-by: Joonas Niilola <juippis <AT> gentoo.org> |
17 |
|
18 |
dev-db/mysqltuner/Manifest | 1 + |
19 |
.../files/mysqltuner-1.7.15-password.patch | 11 ++++++ |
20 |
dev-db/mysqltuner/mysqltuner-1.7.15.ebuild | 39 ++++++++++++++++++++++ |
21 |
3 files changed, 51 insertions(+) |
22 |
|
23 |
diff --git a/dev-db/mysqltuner/Manifest b/dev-db/mysqltuner/Manifest |
24 |
index 63b7acdba73..b25d9096e33 100644 |
25 |
--- a/dev-db/mysqltuner/Manifest |
26 |
+++ b/dev-db/mysqltuner/Manifest |
27 |
@@ -1,2 +1,3 @@ |
28 |
DIST mysqltuner-1.6.18.tar.gz 169074 BLAKE2B e138e29db2f0b1abf88b2d8268732fd9f05043abf320d8d97493d6abb3880e5664eaea39392406297e3125789ffc172f6347922ba14a00af16beb3f6f8080802 SHA512 8067b7ac4a4fe7398ee2cdc463a30042f46972f97680b49912dca46fd1d835989aa4115568dbe5473ff28c4d956bf0ad70537318db788dd56bc93ad220e6bcb6 |
29 |
DIST mysqltuner-1.7.13.tar.gz 26721104 BLAKE2B 76a51c5e3ff897feed6bb6348fb5b09ab3fce0eae403880a3be96203522c9006980dbf6966e8c7e7784168c71e149cc57941ffbadba049b68b30993ed4d519d1 SHA512 88842bef1968f3150be49a5e82cdd0349bf0975f6ff0d8188117240ed2161ae1e44722077ff661ce31b55d0d4fc90fa4bb1972d96405113d82255718cebe0d53 |
30 |
+DIST mysqltuner-1.7.15.tar.gz 212839 BLAKE2B cd90091063e6ae7737cb79f6936d14577352c5b6c016e0efcf82cfcabcbc1acf9f646258bebc835ede368d5ea5594e269d165cb01ab8c980e5fdc68f3c605747 SHA512 b1ea9c91df3fb68d7ae9e54014b4d9095122f10750f7807e0c72d9bbbb859db9a60bc8698d337f4dda6e1bd89ce4ff97fa4299f5dbf650f6fa03012c309e761f |
31 |
|
32 |
diff --git a/dev-db/mysqltuner/files/mysqltuner-1.7.15-password.patch b/dev-db/mysqltuner/files/mysqltuner-1.7.15-password.patch |
33 |
new file mode 100644 |
34 |
index 00000000000..3c61c1ed393 |
35 |
--- /dev/null |
36 |
+++ b/dev-db/mysqltuner/files/mysqltuner-1.7.15-password.patch |
37 |
@@ -0,0 +1,11 @@ |
38 |
+--- a/mysqltuner.pl 2019-05-21 21:04:53.000000000 +0300 |
39 |
++++ b/mysqltuner.pl 2019-07-28 22:14:09.888967978 +0300 |
40 |
+@@ -1739,7 +1739,7 @@ |
41 |
+ my $PASS_COLUMN_NAME = 'password'; |
42 |
+ if ( $myvar{'version'} =~ /5\.7|10\..*MariaDB*/ ) { |
43 |
+ $PASS_COLUMN_NAME = |
44 |
+-"IF(plugin='mysql_native_password', authentication_string, password)"; |
45 |
++"IF(plugin='mysql_native_password', authentication_string, 'password')"; |
46 |
+ } |
47 |
+ debugprint "Password column = $PASS_COLUMN_NAME"; |
48 |
+ |
49 |
|
50 |
diff --git a/dev-db/mysqltuner/mysqltuner-1.7.15.ebuild b/dev-db/mysqltuner/mysqltuner-1.7.15.ebuild |
51 |
new file mode 100644 |
52 |
index 00000000000..4d6ffb075a9 |
53 |
--- /dev/null |
54 |
+++ b/dev-db/mysqltuner/mysqltuner-1.7.15.ebuild |
55 |
@@ -0,0 +1,39 @@ |
56 |
+# Copyright 1999-2019 Gentoo Authors |
57 |
+# Distributed under the terms of the GNU General Public License v2 |
58 |
+ |
59 |
+EAPI=7 |
60 |
+ |
61 |
+MY_PN=MySQLTuner-perl |
62 |
+ |
63 |
+DESCRIPTION="MySQLTuner is a high-performance MySQL tuning script" |
64 |
+HOMEPAGE="https://github.com/major/MySQLTuner-perl" |
65 |
+SRC_URI="https://github.com/major/${MY_PN}/archive/${PV}.tar.gz -> ${P}.tar.gz" |
66 |
+ |
67 |
+LICENSE="GPL-3+" |
68 |
+SLOT="0" |
69 |
+KEYWORDS="~amd64 ~x86" |
70 |
+ |
71 |
+RDEPEND=" |
72 |
+ dev-lang/perl |
73 |
+ virtual/mysql |
74 |
+ virtual/perl-Getopt-Long" |
75 |
+ |
76 |
+DEPEND="${RDEPEND}" |
77 |
+ |
78 |
+PATCHES=( |
79 |
+ # Fix password detecting under MySQL 5.7 upstream #442 #427 #441 |
80 |
+ "${FILESDIR}/${P}-password.patch" ) |
81 |
+ |
82 |
+S="${WORKDIR}/${MY_PN}-${PV}" |
83 |
+ |
84 |
+DOCS=( USAGE.md CONTRIBUTING.md INTERNALS.md basic_passwords.txt vulnerabilities.csv ) |
85 |
+ |
86 |
+src_install() { |
87 |
+ einstalldocs |
88 |
+ |
89 |
+ newbin "${PN}.pl" "${PN}" |
90 |
+ |
91 |
+ # Passwords and vulnerabilities are meant to be fed |
92 |
+ # to the script uncompressed. |
93 |
+ docompress -x "/usr/share/doc/${PF}/basic_passwords.txt" "/usr/share/doc/${PF}/vulnerabilities.csv" |
94 |
+} |