From 4f2d7949f03e1c198bc888f2d05f421d35c57e21 Mon Sep 17 00:00:00 2001 From: V3n3RiX Date: Mon, 9 Oct 2017 18:53:29 +0100 Subject: reinit the tree, so we can have metadata --- net-analyzer/check_mk_agent/Manifest | 3 + .../check_mk_agent/check_mk_agent-1.2.8_p16.ebuild | 94 ++++++++++++++++++++++ net-analyzer/check_mk_agent/metadata.xml | 25 ++++++ 3 files changed, 122 insertions(+) create mode 100644 net-analyzer/check_mk_agent/Manifest create mode 100644 net-analyzer/check_mk_agent/check_mk_agent-1.2.8_p16.ebuild create mode 100644 net-analyzer/check_mk_agent/metadata.xml (limited to 'net-analyzer/check_mk_agent') diff --git a/net-analyzer/check_mk_agent/Manifest b/net-analyzer/check_mk_agent/Manifest new file mode 100644 index 000000000000..abed54a2ed55 --- /dev/null +++ b/net-analyzer/check_mk_agent/Manifest @@ -0,0 +1,3 @@ +DIST check_mk-1.2.8p16.tar.gz 16298683 SHA256 b161d4e37b4313696c93b9272626bcc367c90f4be1798bd283c3b581795e1747 SHA512 601c76b2b62de9176122c69b011b5f7ac6b71650d1b3e411c103f5e9c3e91256ce8d3db6fcd1edc2a11f86dcba4e8ea18ec5a1f9f3eae5b25a4bb3ba712341eb WHIRLPOOL 7ef193c4e9087866ae635e198b2028abb1c245914dcf81240b6939c76a83ab5a4389de7d0e363239bbf12467cd276790d9c85553354ad10a7da1612054438fea +EBUILD check_mk_agent-1.2.8_p16.ebuild 2193 SHA256 b4d7e547cae72d51f6c7971705f18e1f28db9357634a1048a3abada3d8535d8f SHA512 b62d188ec2825fa9bc983c75e92ac6e9d3a7bcdc0a244cf2b3e711c298c5f92731cb25d1a24913ba301a8b85c66fb7c515492ecfe7af7dadf6c820ba183ee9eb WHIRLPOOL 15be47940d207d27bac6b4e3f4b719ea0ea4ae1cde939464e5b48fd592633326a7533f597000248a542c683fea0a431b8a12c059cae7ca2092ca41f95a4fa5a5 +MISC metadata.xml 1105 SHA256 442f4ecb8e0597e174a66c189efb9dbf94969155afc5c7c653edaeb24718a411 SHA512 dee7505f21436e97d80242771f9f8f2347831cc4da163a1b9c873d1ee1d3dbdaaf1138f3e147fbb0e7ab4d124a386b71074a5c882e71952e13c3fb4af6a3e7d3 WHIRLPOOL bb2c52622e37133eb6d8386a94b2843f129249927a325bb2db599c1edae42b34fb483bfa3d3b9ded0d43f1268fecb6afe7476244cf90a0346403cc9335b3a99a diff --git a/net-analyzer/check_mk_agent/check_mk_agent-1.2.8_p16.ebuild b/net-analyzer/check_mk_agent/check_mk_agent-1.2.8_p16.ebuild new file mode 100644 index 000000000000..0bb80b3ddcd0 --- /dev/null +++ b/net-analyzer/check_mk_agent/check_mk_agent-1.2.8_p16.ebuild @@ -0,0 +1,94 @@ +# Copyright 1999-2017 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 + +EAPI=6 + +inherit systemd + +DESCRIPTION="Agent to report data to Check_MK for monitoring" +HOMEPAGE="http://mathias-kettner.de/check_mk.html" + +MY_PV="${PV/_p/p}" +MY_P="check_mk-${MY_PV}" + +LICENSE="GPL-2" +SLOT="0" +KEYWORDS="~amd64 ~x86" +IUSE="apache_status logwatch mysql nfsexports oracle postgres smart +xinetd zypper" + +RDEPEND="!!net-analyzer/check_mk + app-shells/bash:* + xinetd? ( || ( sys-apps/xinetd sys-apps/systemd ) ) + " +DEPEND="${RDEPEND}" + +SRC_URI="http://mathias-kettner.de/download/${MY_P}.tar.gz" + +src_unpack() { + # check_mk is a tarball containing tarballs + unpack ${A} + mkdir -p "${S}" || die + cd "${S}" || die + unpack "${WORKDIR}"/${MY_P}/agents.tar.gz + mkdir -p "${S}"/doc || die + cd "${S}"/doc || die + unpack "${WORKDIR}"/${MY_P}/doc.tar.gz +} + +src_prepare() { + cat <Makefile +all: waitmax + +waitmax: waitmax.c + \$(CC) \$(CFLAGS) \$< -o \$@ \$(LDFLAGS) + +EOF + + if [[ -f waitmax ]]; then + rm waitmax || die "Couldn't delete precompiled waitmax file" + fi + + default +} + +src_compile() { + # compile waitmax + emake CFLAGS="${CFLAGS}" LDFLAGS="${LDFLAGS}" CC="$(tc-getCC)" +} + +src_install() { + # Install agent related files + newbin check_mk_agent.linux check_mk_agent + dobin waitmax + + keepdir /usr/lib/check_mk_agent/local + dodir /usr/lib/check_mk_agent/plugins + dodir /etc/check_mk + + dodoc doc/{AUTHORS,COPYING,ChangeLog} + docompress + + if use xinetd; then + insinto /etc/xinetd.d + newins cfg_examples/xinetd.conf check_mk + systemd_dounit cfg_examples/systemd/check_mk{.socket,@.service} + fi + + # Install the check_mk_agent logwatch plugin + if use logwatch; then + insinto /etc/check_mk + doins cfg_examples/logwatch.cfg + exeinto /usr/lib/check_mk_agent/plugins + doexe plugins/mk_logwatch + fi + + # Install any other useflag-enabled agent plugins + exeinto /usr/lib/check_mk_agent/plugins + use smart && doexe plugins/smart + use mysql && doexe plugins/mk_mysql + use postgres && doexe plugins/mk_postgres + use apache_status && doexe plugins/apache_status + use zypper && doexe plugins/mk_zypper + use oracle && doexe plugins/mk_oracle + use nfsexports && doexe plugins/nfsexports +} diff --git a/net-analyzer/check_mk_agent/metadata.xml b/net-analyzer/check_mk_agent/metadata.xml new file mode 100644 index 000000000000..8cdfbbe9f07a --- /dev/null +++ b/net-analyzer/check_mk_agent/metadata.xml @@ -0,0 +1,25 @@ + + + + + axs@gentoo.org + Ian Stakenvicius (_AxS_) + + + The agent, to gather and report system and other monitoring data to Check_MK enabled + Nagios/Icigna centralized monitoring servers. + + + Install check_mk-agent logwatch plugin. + Install check_mk-agent S.M.A.R.T plugin. + Install check_mk-agent mysql plugin. + Install check_mk-agent postgres plugin. + Install check_mk-agent apache-status plugin. + Install check_mk-agent nfsexports plugin. + Install check_mk-agent zypper plugin. + + + http://mathias-kettner.com/check_mk_download.html + http://mathias-kettner.com/checkmk.html + + -- cgit v1.2.3