Gentoo Archives: gentoo-commits

From: David Seifert <soap@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: dev-db/mysql-init-scripts/
Date: Sun, 01 Jan 2023 18:25:00
Message-Id: 1672597486.31922860863674ce1034caed40076c376cc55eef.soap@gentoo
1 commit: 31922860863674ce1034caed40076c376cc55eef
2 Author: David Seifert <soap <AT> gentoo <DOT> org>
3 AuthorDate: Sun Jan 1 18:24:46 2023 +0000
4 Commit: David Seifert <soap <AT> gentoo <DOT> org>
5 CommitDate: Sun Jan 1 18:24:46 2023 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=31922860
7
8 dev-db/mysql-init-scripts: update EAPI 6 -> 8
9
10 Signed-off-by: David Seifert <soap <AT> gentoo.org>
11
12 ...-r5.ebuild => mysql-init-scripts-2.3-r6.ebuild} | 40 ++++++++++------------
13 1 file changed, 18 insertions(+), 22 deletions(-)
14
15 diff --git a/dev-db/mysql-init-scripts/mysql-init-scripts-2.3-r5.ebuild b/dev-db/mysql-init-scripts/mysql-init-scripts-2.3-r6.ebuild
16 similarity index 66%
17 rename from dev-db/mysql-init-scripts/mysql-init-scripts-2.3-r5.ebuild
18 rename to dev-db/mysql-init-scripts/mysql-init-scripts-2.3-r6.ebuild
19 index f8c746797828..b5212ccb5bf5 100644
20 --- a/dev-db/mysql-init-scripts/mysql-init-scripts-2.3-r5.ebuild
21 +++ b/dev-db/mysql-init-scripts/mysql-init-scripts-2.3-r6.ebuild
22 @@ -1,20 +1,19 @@
23 -# Copyright 1999-2022 Gentoo Authors
24 +# Copyright 1999-2023 Gentoo Authors
25 # Distributed under the terms of the GNU General Public License v2
26
27 -EAPI=6
28 +EAPI=8
29
30 inherit systemd s6 tmpfiles
31
32 DESCRIPTION="Gentoo MySQL init scripts"
33 HOMEPAGE="https://wiki.gentoo.org/wiki/No_homepage"
34 -SRC_URI=""
35 +# Need to set S due to PMS saying we need it existing, but no SRC_URI
36 +S=${WORKDIR}
37
38 LICENSE="GPL-2"
39 SLOT="0"
40 KEYWORDS="~alpha amd64 arm arm64 ~hppa ~ia64 ~loong ~mips ppc ppc64 ~riscv ~s390 sparc x86"
41 -IUSE=""
42
43 -DEPEND=""
44 # This _will_ break with MySQL 5.0, 4.x, 3.x
45 # It also NEEDS openrc for the save_options/get_options builtins.
46 # The s6 support was added after openrc 0.16.2
47 @@ -26,45 +25,42 @@ RDEPEND="
48 !prefix? (
49 acct-group/mysql acct-user/mysql
50 )
51 - "
52 -# Need to set S due to PMS saying we need it existing, but no SRC_URI
53 -S=${WORKDIR}
54 +"
55
56 src_install() {
57 - newconfd "${FILESDIR}/conf.d-2.0" "mysql"
58 + newconfd "${FILESDIR}"/conf.d-2.0 mysql
59
60 # s6 init scripts
61 if use amd64 || use x86 ; then
62 - newconfd "${FILESDIR}/conf.d-2.0" "mysql-s6"
63 - newinitd "${FILESDIR}/init.d-s6-2.3" "mysql-s6"
64 - s6_install_service mysql "${FILESDIR}/run-s6"
65 - s6_install_service mysql/log "${FILESDIR}/log-s6"
66 + newconfd "${FILESDIR}"/conf.d-2.0 mysql-s6
67 + newinitd "${FILESDIR}"/init.d-s6-2.3 mysql-s6
68 + s6_install_service mysql "${FILESDIR}"/run-s6
69 + s6_install_service mysql/log "${FILESDIR}"/log-s6
70 fi
71
72 - newinitd "${FILESDIR}/init.d-2.3" "mysql"
73 - newinitd "${FILESDIR}/init.d-supervise-2.3" "mysql-supervise"
74 + newinitd "${FILESDIR}"/init.d-2.3 mysql
75 + newinitd "${FILESDIR}"/init.d-supervise-2.3 mysql-supervise
76
77 # systemd unit installation
78 exeinto /usr/libexec
79 doexe "${FILESDIR}"/mysqld-wait-ready
80 - systemd_newunit "${FILESDIR}/mysqld-v2.service" "mysqld.service"
81 - systemd_newunit "${FILESDIR}/mysqld_at-v2.service" "mysqld@.service"
82 - newtmpfiles "${FILESDIR}/mysql.conf-r1" "mysql.conf"
83 + systemd_newunit "${FILESDIR}"/mysqld-v2.service mysqld.service
84 + systemd_newunit "${FILESDIR}"/mysqld_at-v2.service mysqld@.service
85 + newtmpfiles "${FILESDIR}"/mysql.conf-r1 mysql.conf
86
87 insinto /etc/logrotate.d
88 - newins "${FILESDIR}/logrotate.mysql-2.3" "mysql"
89 + newins "${FILESDIR}"/logrotate.mysql-2.3 mysql
90 }
91
92 pkg_postinst() {
93 tmpfiles_process mysql.conf
94 +
95 if use amd64 || use x86 ; then
96 - elog ""
97 elog "To use the mysql-s6 script, you need to install the optional sys-apps/s6 package."
98 elog "If you wish to use s6 logging support, comment out the log-error setting in your my.cnf"
99 + elog
100 fi
101
102 - elog ""
103 elog "Starting with version 10.1.8, MariaDB includes an improved systemd unit named mariadb.service"
104 elog "You should prefer that unit over this package's mysqld.service."
105 - einfo ""
106 }