summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorHans de Graaff <hans@degraaff.org>2019-06-12 06:39:27 +0200
committerHans de Graaff <hans@degraaff.org>2019-06-12 06:39:27 +0200
commit4217e834fc513c5e6206458303e0ba7c2c94c8ad (patch)
tree7c0042941b02f0762f72937a093fde84e8b7d8e8 /net-analyzer
parentnet-analyzer/munin-mysql: cleanup (diff)
downloadgraaff-4217e834fc513c5e6206458303e0ba7c2c94c8ad.tar.gz
graaff-4217e834fc513c5e6206458303e0ba7c2c94c8ad.tar.bz2
graaff-4217e834fc513c5e6206458303e0ba7c2c94c8ad.zip
net-analyzer/munin-mysql: add new snapshot
Signed-off-by: Hans de Graaff <hans@degraaff.org> Package-Manager: Portage-2.3.66, Repoman-2.3.11
Diffstat (limited to 'net-analyzer')
-rw-r--r--net-analyzer/munin-mysql/Manifest1
-rw-r--r--net-analyzer/munin-mysql/munin-mysql-0.20180523.ebuild46
2 files changed, 47 insertions, 0 deletions
diff --git a/net-analyzer/munin-mysql/Manifest b/net-analyzer/munin-mysql/Manifest
index 28a8faed..8dea0748 100644
--- a/net-analyzer/munin-mysql/Manifest
+++ b/net-analyzer/munin-mysql/Manifest
@@ -1 +1,2 @@
DIST munin-mysql-0.20161010.tar.gz 64844 BLAKE2B 7c0a787fb11802832a3ca6134f379926b8ff91fc06f093991dad3be7f1694e13d1c18f3b976f21dccb7eef7defec07f33290ff43e89cd83bac7789e426420657 SHA512 4e72f4033cb25d7c81c0211795f8b8b76e7c1c1d5b6a7ec66a0e2282d94bff9fe648abcd0078d05664aac59ee32aa839b9773e038b7e3154045e96d77cb59d1c
+DIST munin-mysql-0.20180523.tar.gz 65886 BLAKE2B eaf549d990e0f70c64990cddb34b3c37b175e0c214ca1ad5f48820824ac98a348c153a2a30854cf15cca452345c05ba0723b9827558928fcaac6e4a49f82ec55 SHA512 534f87da5e824f5ead6cae7571e9930bdb44e40b2a3063b4e67ec503d13f37daf4198e429161c1ed69622f54fd2b369ec0677df4140ab75085380ce128c679ad
diff --git a/net-analyzer/munin-mysql/munin-mysql-0.20180523.ebuild b/net-analyzer/munin-mysql/munin-mysql-0.20180523.ebuild
new file mode 100644
index 00000000..0afef463
--- /dev/null
+++ b/net-analyzer/munin-mysql/munin-mysql-0.20180523.ebuild
@@ -0,0 +1,46 @@
+# Copyright 1999-2019 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=7
+
+GITHUB_COMMIT="eaad017b7064f8debfeda6dd706b81e30cfa70a4"
+
+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
+ dev-perl/Module-Pluggable
+ net-analyzer/munin
+"
+
+# Depends on unpackaged Test-Regression
+RESTRICT="test"
+
+src_prepare() {
+ # Don't restart node automatically.
+ sed -i -e '/restart/d' Makefile || die
+
+ default
+}
+
+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
+}