Skip to content

Commit

Permalink
dev-db/mysql-init-scripts: Use tmpfiles eclass during install
Browse files Browse the repository at this point in the history
Package-Manager: Portage-2.3.48, Repoman-2.3.10
  • Loading branch information
Brian Evans committed Aug 27, 2018
1 parent faa1e1a commit 00e5c01
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions dev-db/mysql-init-scripts/mysql-init-scripts-2.2-r3.ebuild
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@

EAPI=6

inherit systemd s6
inherit systemd s6 tmpfiles

DESCRIPTION="Gentoo MySQL init scripts."
HOMEPAGE="https://www.gentoo.org/"
Expand Down Expand Up @@ -44,13 +44,14 @@ src_install() {
doexe "${FILESDIR}"/mysqld-wait-ready
systemd_newunit "${FILESDIR}/mysqld-v2.service" "mysqld.service"
systemd_newunit "${FILESDIR}/mysqld_at-v2.service" "[email protected]"
systemd_dotmpfilesd "${FILESDIR}/mysql.conf"
dotmpfiles "${FILESDIR}/mysql.conf"

insinto /etc/logrotate.d
newins "${FILESDIR}/logrotate.mysql" "mysql"
}

pkg_postinst() {
tmpfiles_process mysql.conf
if use amd64 || use x86 ; then
elog ""
elog "To use the mysql-s6 script, you need to install the optional sys-apps/s6 package."
Expand Down

0 comments on commit 00e5c01

Please sign in to comment.