mirror of
https://github.com/gentoo-mirror/gentoo.git
synced 2026-08-24 18:58:08 -07:00
35 lines
881 B
Bash
35 lines
881 B
Bash
# Copyright 1999-2026 Gentoo Authors
|
|
# Distributed under the terms of the GNU General Public License v2
|
|
|
|
EAPI=8
|
|
|
|
MY_PN="MySQLTuner-perl"
|
|
|
|
DESCRIPTION="Makes recommendations for increased performance and stability for MySQL"
|
|
HOMEPAGE="https://github.com/major/MySQLTuner-perl"
|
|
SRC_URI="https://github.com/jmrenouard/${MY_PN}/archive/refs/tags/v${PV}.tar.gz -> ${P}.tar.gz"
|
|
S="${WORKDIR}/${MY_PN}-${PV}"
|
|
|
|
LICENSE="GPL-3+"
|
|
SLOT="0"
|
|
KEYWORDS="amd64 x86"
|
|
|
|
RDEPEND="dev-lang/perl"
|
|
|
|
# Tests need internet access
|
|
RESTRICT="test"
|
|
|
|
src_compile() {
|
|
:;
|
|
}
|
|
|
|
src_install() {
|
|
newbin mysqltuner.pl mysqltuner
|
|
dodoc {CONTRIBUTING,INTERNALS,USAGE}.md
|
|
einstalldocs
|
|
|
|
# Passwords and vulnerabilities are meant to be fed to the script uncompressed.
|
|
dodoc basic_passwords.txt vulnerabilities.csv
|
|
docompress -x "/usr/share/doc/${PF}/basic_passwords.txt" "/usr/share/doc/${PF}/vulnerabilities.csv"
|
|
}
|