blob: ad8601a5fcc0692cceca982b3f03ba41945d5a9f (
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
46
47
48
49
50
51
52
53
54
|
# Copyright 1999-2014 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
EAPI=5
JAVA_PKG_IUSE="doc source"
inherit java-pkg-2 java-pkg-simple
MY_P="${PN}-gentoo-${PV}"
DESCRIPTION="JMX Monitoring plugin for Munin"
HOMEPAGE="https://github.com/tcurdt/jmx2munin"
SRC_URI="https://github.com/gentoo/jmx2munin/tarball/${MY_P} -> ${MY_P}.tar.gz"
LICENSE="Apache-2.0"
SLOT="0"
KEYWORDS="~amd64"
IUSE=""
CDEPEND="dev-java/jcommander:0"
DEPEND="${CDEPEND}
>=virtual/jdk-1.6"
RDEPEND="${CDEPEND}
net-analyzer/munin
>=virtual/jre-1.6"
S="${WORKDIR}/${MY_P}"
JAVA_SRC_DIR="src/main/java/org/vafer/jmx"
JAVA_GENTOO_CLASSPATH="jcommander"
src_unpack() {
unpack ${A}
mv gentoo-${PN}-* ${MY_P}
}
java_prepare() {
rm pom.xml || die
}
src_install() {
java-pkg-simple_src_install
java-pkg_dolauncher ${PN} --main org.vafer.jmx.munin.Munin
exeinto /usr/libexec/munin/plugins
newexe contrib/${PN}.sh ${PN}_
dodoc README.md contrib/jmx2munin.cfg/cassandra/nodes_in_cluster
keepdir /etc/munin/${PN}
}
|