blob: bbabfe33909f43d23bedd8910e3d90e1d4ed8805 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
|
# Copyright 1999-2014 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: $
EAPI=5
GITHUB_COMMIT="53ea00609f412ac62d38ac2f0d82579a1729d9b7"
DESCRIPTION="Improved MySQL Graphs for Munin"
HOMEPAGE="https://github.com/kjellm/munin-mysql"
LICENSE="GPL-2"
SRC_URI="https://github.com/kjellm/munin-mysql/archive/${GITHUB_COMMIT}.tar.gz -> ${P}.tar.gz"
S="${WORKDIR}/${PN}-${GITHUB_COMMIT}"
KEYWORDS="~amd64"
SLOT="0"
IUSE=""
RDEPEND="
dev-perl/DBD-mysql
dev-perl/DBI
net-analyzer/munin
virtual/perl-Module-Pluggable
"
# Depends on unpackaged Test-Regression
RESTRICT="test"
src_prepare() {
# Don't restart node automatically.
sed -i -e '/restart/d' Makefile || die
}
src_install() {
local config="${D}/etc/munin"
local perllib="${D}"$(perl '-V:installvendorlib'|cut -d"'" -f2)
mkdir -p "${config}/plugins" "${config}/plugin-conf.d" || die
emake PLUGIN_DIR="${D}/usr/share/munin/plugins" \
CONFIG_DIR="${config}" \
PERL_SITELIB_DIR="${perllib}" \
install
}
|