1 |
commit: 00e5c01f3a9ae5d2407b4d2201df00eb190c6105 |
2 |
Author: Brian Evans <grknight <AT> gentoo <DOT> org> |
3 |
AuthorDate: Mon Aug 27 17:40:40 2018 +0000 |
4 |
Commit: Brian Evans <grknight <AT> gentoo <DOT> org> |
5 |
CommitDate: Mon Aug 27 17:40:40 2018 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=00e5c01f |
7 |
|
8 |
dev-db/mysql-init-scripts: Use tmpfiles eclass during install |
9 |
|
10 |
Package-Manager: Portage-2.3.48, Repoman-2.3.10 |
11 |
|
12 |
dev-db/mysql-init-scripts/mysql-init-scripts-2.2-r3.ebuild | 5 +++-- |
13 |
1 file changed, 3 insertions(+), 2 deletions(-) |
14 |
|
15 |
diff --git a/dev-db/mysql-init-scripts/mysql-init-scripts-2.2-r3.ebuild b/dev-db/mysql-init-scripts/mysql-init-scripts-2.2-r3.ebuild |
16 |
index 8fa8c8341de..d0a1278895f 100644 |
17 |
--- a/dev-db/mysql-init-scripts/mysql-init-scripts-2.2-r3.ebuild |
18 |
+++ b/dev-db/mysql-init-scripts/mysql-init-scripts-2.2-r3.ebuild |
19 |
@@ -3,7 +3,7 @@ |
20 |
|
21 |
EAPI=6 |
22 |
|
23 |
-inherit systemd s6 |
24 |
+inherit systemd s6 tmpfiles |
25 |
|
26 |
DESCRIPTION="Gentoo MySQL init scripts." |
27 |
HOMEPAGE="https://www.gentoo.org/" |
28 |
@@ -44,13 +44,14 @@ src_install() { |
29 |
doexe "${FILESDIR}"/mysqld-wait-ready |
30 |
systemd_newunit "${FILESDIR}/mysqld-v2.service" "mysqld.service" |
31 |
systemd_newunit "${FILESDIR}/mysqld_at-v2.service" "mysqld@.service" |
32 |
- systemd_dotmpfilesd "${FILESDIR}/mysql.conf" |
33 |
+ dotmpfiles "${FILESDIR}/mysql.conf" |
34 |
|
35 |
insinto /etc/logrotate.d |
36 |
newins "${FILESDIR}/logrotate.mysql" "mysql" |
37 |
} |
38 |
|
39 |
pkg_postinst() { |
40 |
+ tmpfiles_process mysql.conf |
41 |
if use amd64 || use x86 ; then |
42 |
elog "" |
43 |
elog "To use the mysql-s6 script, you need to install the optional sys-apps/s6 package." |