diff options
| author | Petr Vaněk <arkamar@gentoo.org> | 2024-04-08 13:57:26 +0200 |
|---|---|---|
| committer | Petr Vaněk <arkamar@gentoo.org> | 2024-04-08 15:56:55 +0200 |
| commit | c48f8dd8c90980285b51259f47303383c9dffe9a (patch) | |
| tree | 7dcf6117dcb203fab0b3c68ab42bc12d356e0d3a /dev-db/mysql-init-scripts/mysql-init-scripts-2.3-r8.ebuild | |
| parent | 968c960aa36b23813987a64de48b760322a47cac (diff) | |
| download | gentoo-c48f8dd8c90980285b51259f47303383c9dffe9a.tar.gz gentoo-c48f8dd8c90980285b51259f47303383c9dffe9a.tar.bz2 gentoo-c48f8dd8c90980285b51259f47303383c9dffe9a.zip | |
dev-db/mysql-init-scripts: fix typo in extra commands list
This fixes remaining typos in extra commands lists referencing
bootstrap_galera function:
boostrap_galera -> bootstrap_galera
It is followup to the commit 460c2f8c5390 ("dev-db/mysql-init-scripts:
Fix important typo and commit straight to stable")
Signed-off-by: Petr Vaněk <arkamar@gentoo.org>
Diffstat (limited to 'dev-db/mysql-init-scripts/mysql-init-scripts-2.3-r8.ebuild')
| -rw-r--r-- | dev-db/mysql-init-scripts/mysql-init-scripts-2.3-r8.ebuild | 66 |
1 files changed, 66 insertions, 0 deletions
diff --git a/dev-db/mysql-init-scripts/mysql-init-scripts-2.3-r8.ebuild b/dev-db/mysql-init-scripts/mysql-init-scripts-2.3-r8.ebuild new file mode 100644 index 000000000000..ce3110eecafa --- /dev/null +++ b/dev-db/mysql-init-scripts/mysql-init-scripts-2.3-r8.ebuild @@ -0,0 +1,66 @@ +# Copyright 1999-2024 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=8 + +inherit systemd s6 tmpfiles + +DESCRIPTION="Gentoo MySQL init scripts" +HOMEPAGE="https://wiki.gentoo.org/wiki/No_homepage" +# Need to set S due to PMS saying we need it existing, but no SRC_URI +S=${WORKDIR} + +LICENSE="GPL-2" +SLOT="0" +KEYWORDS="~alpha amd64 arm arm64 ~hppa ~ia64 ~loong ~mips ppc ppc64 ~riscv ~s390 sparc x86" + +# This _will_ break with MySQL 5.0, 4.x, 3.x +# It also NEEDS openrc for the save_options/get_options builtins. +# The s6 support was added after openrc 0.16.2 +# mysql-connector-c needed for my_print_defaults +RDEPEND=" + !<dev-db/mysql-5.1 + !<sys-apps/openrc-0.16.2 + dev-db/mysql-connector-c + !prefix? ( + acct-group/mysql acct-user/mysql + ) +" + +src_install() { + newconfd "${FILESDIR}"/conf.d-2.0 mysql + + # s6 init scripts + if use amd64 || use x86 ; then + newconfd "${FILESDIR}"/conf.d-2.0 mysql-s6 + newinitd "${FILESDIR}"/init.d-s6-2.3 mysql-s6 + s6_install_service mysql "${FILESDIR}"/run-s6 + s6_install_service mysql/log "${FILESDIR}"/log-s6 + fi + + newinitd "${FILESDIR}"/init.d-2.3 mysql + newinitd "${FILESDIR}"/init.d-supervise-2.3 mysql-supervise + + # systemd unit installation + exeinto /usr/libexec + doexe "${FILESDIR}"/mysqld-wait-ready + systemd_newunit "${FILESDIR}"/mysqld-v2.service mysqld.service + systemd_newunit "${FILESDIR}"/mysqld_at-v2.service mysqld@.service + newtmpfiles "${FILESDIR}"/mysql.conf-r1 mysql.conf + + insinto /etc/logrotate.d + newins "${FILESDIR}"/logrotate.mysql-2.3 mysql +} + +pkg_postinst() { + tmpfiles_process mysql.conf + + if use amd64 || use x86 ; then + elog "To use the mysql-s6 script, you need to install the optional sys-apps/s6 package." + elog "If you wish to use s6 logging support, comment out the log-error setting in your my.cnf" + elog + fi + + elog "Starting with version 10.1.8, MariaDB includes an improved systemd unit named mariadb.service" + elog "You should prefer that unit over this package's mysqld.service." +} |
