aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPhilippe Chaintreuil <gentoo_bugs_peep@parallaxshift.com>2024-03-04 17:57:13 -0500
committerPhilippe Chaintreuil <gentoo_bugs_peep@parallaxshift.com>2024-03-05 10:30:23 -0500
commit9f599b78e04e14a74a1fa1343ed0631fb559066c (patch)
treea8687be6fb844f81a898ede35c3a8331bd8dda4a /net-analyzer
parentnet-misc/gdrive: add QA_PREBUILT (diff)
downloadguru-9f599b78e04e14a74a1fa1343ed0631fb559066c.tar.gz
guru-9f599b78e04e14a74a1fa1343ed0631fb559066c.tar.bz2
guru-9f599b78e04e14a74a1fa1343ed0631fb559066c.zip
bump to latest as of 2024-03-04
Signed-off-by: Philippe Chaintreuil <gentoo_bugs_peep@parallaxshift.com>
Diffstat (limited to 'net-analyzer')
-rw-r--r--net-analyzer/munin-contrib/Manifest1
-rw-r--r--net-analyzer/munin-contrib/munin-contrib-0.2024.03.04.ebuild115
2 files changed, 116 insertions, 0 deletions
diff --git a/net-analyzer/munin-contrib/Manifest b/net-analyzer/munin-contrib/Manifest
index b91a3e99b..3b0cb179f 100644
--- a/net-analyzer/munin-contrib/Manifest
+++ b/net-analyzer/munin-contrib/Manifest
@@ -1 +1,2 @@
DIST munin-contrib-0.2021.04.27.tar.gz 6782163 BLAKE2B 6977d16a84a37bc15bbcae6295d52a087f9d6b694069cb384a8c79d1b2d0233052fc3057ae5bd14da305de78e9f0614b18768e51d5c49bee12f0ee6c3ccadeaa SHA512 2f7aca7a51b34a600e7d27cb5b4beebf6d8ddd1d4edfbb8a9ca6e4c4912acd38e0213efe9bef028b674c54ec91ecdc66b4782c00987e6dfd833cf86191c8dbfb
+DIST munin-contrib-0.2024.03.04.tar.gz 8897446 BLAKE2B ceb713774f3af106f7373643e83200616d75499bdb0f89ac12bf0b8e8f211b060886f406e4308ac8f58480a467e946f7aa4ba662d6599de3ed0fba85284fc28b SHA512 a095964f3709745d8dcc178f1f1014cdf136da5dbc466a5d195a5ed252f08b69b71732011e9c4a7037556354b83b9b04af53a725ce4339651ac1b239ecfaa177
diff --git a/net-analyzer/munin-contrib/munin-contrib-0.2024.03.04.ebuild b/net-analyzer/munin-contrib/munin-contrib-0.2024.03.04.ebuild
new file mode 100644
index 000000000..30f460151
--- /dev/null
+++ b/net-analyzer/munin-contrib/munin-contrib-0.2024.03.04.ebuild
@@ -0,0 +1,115 @@
+# Copyright 1999-2021 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI="7"
+
+inherit toolchain-funcs
+
+COMMIT="83f4e970c4a7378540057318a5083653ee2f138b"
+
+SRC_URI="https://github.com/munin-monitoring/contrib/archive/${COMMIT}.tar.gz -> ${P}.tar.gz"
+KEYWORDS="~amd64"
+DESCRIPTION="user contributed stuff related to munin"
+HOMEPAGE="https://github.com/munin-monitoring/contrib"
+LICENSE="GPL-3+ Apache-2.0 GPL-2 LGPL-2 GPL-2+ LGPL-3+ MIT" #TODO: investigate all the licenses
+SLOT="0"
+IUSE="examples +plugins templates tools"
+RDEPEND="net-analyzer/munin"
+
+S="${WORKDIR}/contrib-${COMMIT}"
+README_PLUGINS=(
+ plugins/README.md
+ plugins/apache/apache_byprojects/README.md
+ plugins/apache/apache_vhosts/README.txt
+ plugins/apt/deb_packages/README.md
+ plugins/jmx/readme.txt
+ plugins/kamailio/README.md
+ plugins/network/linux_if/README.md
+ plugins/nfs-freebsd/README.rst
+ plugins/nginx/nginx_byprojects/README.md
+ plugins/prosody/README.rst
+ plugins/rackspace/README
+ plugins/tarsnap/README.md
+ plugins/varnish/README-varnish4.md
+ plugins/varnish/README.rst
+ plugins/znc/README.md
+ plugins/zope/README-zodb
+)
+README_TOOLS=(
+ tools/munin-node-c/README
+ tools/munin-node-from-hell/README.rst
+ tools/munin-plugins-busybox/README
+ tools/pmmn/plugins/README
+ tools/pypmmn/README.rst
+)
+
+src_prepare() {
+ default
+ rm "plugins/nginx/nginx_byprojects/LICENSE.txt" || die
+}
+
+src_configure() {
+ return
+}
+
+src_compile() {
+ export CC=$(tc-getCC)
+
+ pushd plugins/cpu || die
+ emake multicpu1sec-c || die
+ rm multicpu1sec-c.c || die
+ popd
+ pushd plugins/disk/smart-c || die
+ emake
+ rm *.h *.o *.c Makefile || die
+ popd
+ pushd plugins/network || die
+ emake if1sec-c || die
+ rm if1sec-c.c || die
+ popd
+}
+
+src_install() {
+ if use tools ; then
+ for i in "${README_TOOLS[@]}" ; do
+ p="${ED}/usr/share/doc/${PF}/${i%/*}"
+ mkdir -p "${p}" || die
+ mv "${i}" "${p}" || die
+ done
+ insinto "/usr/libexec/munin"
+ doins -r tools
+ fi
+
+ if use plugins; then
+ #install documentation in subfolders
+ for i in plugins/{apt,network,}/*/example-graphs ; do
+ p="${ED}/usr/share/doc/${PF}/${i}"
+ mkdir -p "${p}" || die
+ mv "${i}" "${p}" || die
+ done
+ for i in "${README_PLUGINS[@]}" ; do
+ p="${ED}/usr/share/doc/${PF}/${i%/*}"
+ mkdir -p "${p}" || die
+ mv "${i}" "${p}" || die
+ done
+
+ #install plugins without getting mad at preserving exec bit
+ mkdir -p "${ED}/usr/libexec/munin/plugins/contrib" || die
+ mv plugins/* "${ED}/usr/libexec/munin/plugins/contrib" || die
+
+ elog "2023 Feb 1, the network/transmission file was replaced "
+ elog "by a directory of the same name. You may get a file collision "
+ elog "warning because of it. As long as you haven't made manual "
+ elog "edits to the file, you can remove the transmission.backup.#### "
+ elog "file if one is made."
+ elog
+ elog "See https://github.com/munin-monitoring/contrib/commit/2a12025ee5a22dad41be8f1c05052c2a93e3d3bd"
+ fi
+
+ insinto "/etc/munin/templates"
+ use templates && doins -r templates/munstrap
+
+ use examples && dodoc -r samples/munin.conf
+
+ dodoc README.md
+}