1 |
commit: 9e6802fc7335a4029372f6bd01d72c3fc9f9f64b |
2 |
Author: Brian Evans <grknight <AT> gentoo <DOT> org> |
3 |
AuthorDate: Fri Sep 21 20:37:06 2018 +0000 |
4 |
Commit: Brian Evans <grknight <AT> gentoo <DOT> org> |
5 |
CommitDate: Fri Sep 21 20:38:13 2018 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=9e6802fc |
7 |
|
8 |
dev-db/mysql-init-scripts: Revbump for dependencies |
9 |
|
10 |
We need to depend on dev-db/mysql-connector-c for /usr/bin/my_print_defaults |
11 |
|
12 |
Alternatively, this might need an eselect module in the future |
13 |
|
14 |
Signed-off-by: Brian Evans <grknight <AT> gentoo.org> |
15 |
Package-Manager: Portage-2.3.49, Repoman-2.3.10 |
16 |
|
17 |
.../mysql-init-scripts-2.2-r4.ebuild | 67 ++++++++++++++++++++++ |
18 |
1 file changed, 67 insertions(+) |
19 |
|
20 |
diff --git a/dev-db/mysql-init-scripts/mysql-init-scripts-2.2-r4.ebuild b/dev-db/mysql-init-scripts/mysql-init-scripts-2.2-r4.ebuild |
21 |
new file mode 100644 |
22 |
index 00000000000..2028d860d3d |
23 |
--- /dev/null |
24 |
+++ b/dev-db/mysql-init-scripts/mysql-init-scripts-2.2-r4.ebuild |
25 |
@@ -0,0 +1,67 @@ |
26 |
+# Copyright 1999-2018 Gentoo Foundation |
27 |
+# Distributed under the terms of the GNU General Public License v2 |
28 |
+ |
29 |
+EAPI=6 |
30 |
+ |
31 |
+inherit systemd s6 tmpfiles |
32 |
+ |
33 |
+DESCRIPTION="Gentoo MySQL init scripts." |
34 |
+HOMEPAGE="https://www.gentoo.org/" |
35 |
+SRC_URI="" |
36 |
+ |
37 |
+LICENSE="GPL-2" |
38 |
+SLOT="0" |
39 |
+KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~ia64 ~mips ~ppc ~ppc64 ~s390 ~sh ~sparc ~x86 ~x86-fbsd" |
40 |
+IUSE="" |
41 |
+ |
42 |
+DEPEND="" |
43 |
+# This _will_ break with MySQL 5.0, 4.x, 3.x |
44 |
+# It also NEEDS openrc for the save_options/get_options builtins. |
45 |
+# The s6 support was added after openrc 0.16.2 |
46 |
+# mysql-connector-c needed for my_print_defaults |
47 |
+RDEPEND=" |
48 |
+ !<dev-db/mysql-5.1 |
49 |
+ !<sys-apps/openrc-0.16.2 |
50 |
+ dev-db/mysql-connector-c |
51 |
+ " |
52 |
+# Need to set S due to PMS saying we need it existing, but no SRC_URI |
53 |
+S=${WORKDIR} |
54 |
+ |
55 |
+src_install() { |
56 |
+ newconfd "${FILESDIR}/conf.d-2.0" "mysql" |
57 |
+ |
58 |
+ # s6 init scripts |
59 |
+ if use amd64 || use x86 ; then |
60 |
+ newconfd "${FILESDIR}/conf.d-2.0" "mysql-s6" |
61 |
+ newinitd "${FILESDIR}/init.d-s6-2.2" "mysql-s6" |
62 |
+ s6_install_service mysql "${FILESDIR}/run-s6" |
63 |
+ s6_install_service mysql/log "${FILESDIR}/log-s6" |
64 |
+ fi |
65 |
+ |
66 |
+ newinitd "${FILESDIR}/init.d-2.2" "mysql" |
67 |
+ newinitd "${FILESDIR}/init.d-supervise" "mysql-supervise" |
68 |
+ |
69 |
+ # systemd unit installation |
70 |
+ exeinto /usr/libexec |
71 |
+ doexe "${FILESDIR}"/mysqld-wait-ready |
72 |
+ systemd_newunit "${FILESDIR}/mysqld-v2.service" "mysqld.service" |
73 |
+ systemd_newunit "${FILESDIR}/mysqld_at-v2.service" "mysqld@.service" |
74 |
+ dotmpfiles "${FILESDIR}/mysql.conf" |
75 |
+ |
76 |
+ insinto /etc/logrotate.d |
77 |
+ newins "${FILESDIR}/logrotate.mysql" "mysql" |
78 |
+} |
79 |
+ |
80 |
+pkg_postinst() { |
81 |
+ tmpfiles_process mysql.conf |
82 |
+ if use amd64 || use x86 ; then |
83 |
+ elog "" |
84 |
+ elog "To use the mysql-s6 script, you need to install the optional sys-apps/s6 package." |
85 |
+ elog "If you wish to use s6 logging support, comment out the log-error setting in your my.cnf" |
86 |
+ fi |
87 |
+ |
88 |
+ elog "" |
89 |
+ elog "Starting with version 10.1.8, MariaDB includes an improved systemd unit named mariadb.service" |
90 |
+ elog "You should prefer that unit over this package's mysqld.service." |
91 |
+ einfo "" |
92 |
+} |