# Contributor: Sergei Lukin # Contributor: Stefan Wagner # Maintainer: Stefan Wagner pkgname=munin pkgver=2.0.72 pkgrel=2 pkgdesc="A distributed monitoring/graphing tool" url="https://munin-monitoring.org/" arch="noarch" license="GPL-2.0-only" _perl_modules="perl-net-snmp perl-log-log4perl perl-net-ssleay perl-net-server perl-date-manip perl-file-copy-recursive perl-fcgi" _perl_master_modules="perl-rrd perl-html-template perl-io-socket-inet6 perl-uri" depends="$pkgname-node" makedepends="bash rrdtool perl-dev perl-module-build $_perl_modules $_perl_master_modules" pkgusers=munin pkggroups=munin subpackages="$pkgname-node" source="$pkgname-$pkgver.tar.gz::https://github.com/munin-monitoring/munin/archive/refs/tags/$pkgver.tar.gz munin-config.patch fix-build.patch $pkgname.crond $pkgname-node.initd $pkgname.logrotate $pkgname-node.logrotate" build() { make -j1 } package() { depends="rrdtool $_perl_master_modules" make DESTDIR="$pkgdir" install-master-prime rm -rf "$pkgdir"/usr/share/man install -m644 -D "$srcdir"/$pkgname.crond \ "$pkgdir"/etc/munin/munin.cron.sample install -m644 -D "$srcdir"/$pkgname.logrotate \ "$pkgdir"/etc/logrotate.d/$pkgname install -d -o $pkgusers -g $pkggroups "$pkgdir"/usr/share/webapps/munin/html } node() { depends="bash perl $_perl_modules" install="$subpkgname.pre-install" cd "$builddir" mkdir -p "$subpkgdir" make DESTDIR="$subpkgdir" install-common-prime install-node-prime \ install-plugins-prime rm -rf "$subpkgdir"/usr/share/man install -m644 -D "$srcdir"/$subpkgname.logrotate \ "$pkgdir"/etc/logrotate.d/$subpkgname install -m755 -D "$srcdir"/$subpkgname.initd \ "$subpkgdir"/etc/init.d/$subpkgname } sha512sums=" 10a43b4899f389fe058a695c1095dbeba6fc273543b4c6109ad812a51a4904c5ddbad6937ae726522d56a7e4fa62c642e25a00e20d2fd75597e8442cc03b9ce2 munin-2.0.72.tar.gz d39760b9c0546638feaf164ad132a0f384f1b70872de2251a328a27a64797501f926141a7273cd5e41a8c11ec4d7a4adda1863b02439d9caa8b216fac60d3062 munin-config.patch 0c2c257ab1b218fa87439de6b5b73782492143bf625cdf18481fff97d648446554c5e1decb6dd44c8803b0ccf1eb6949398da261876093963a8230eda1afe0a8 fix-build.patch 194b742b2ff8312c4c42a8a77d1d9a80bc53ced2343248c36f4229b0b0d366e898487fb5e415f1f5ccea7210a7a86e25de5e45193dbb5d26d2d6a195f0597642 munin.crond ee055a2bcb0ee3895190ac28b9474a50896e9c6d8f88bb93bc00fd802f313c00bc92fcbb46e22c545fb1c111d63398725c09a8bf7adc8a8977e1832b19f61044 munin-node.initd 0f4768033f63103cb41b3f3869ebe378098f85409a909afa311a49587cb6afcffe2b2199821cd41a08f41bbeba3d37121561406978960e3345fbccfd230040e6 munin.logrotate 34cdc04e83067d2fc839efaf06d96da892d76b77555a4b7b633f9a88fb86dc5f4413fe7a4f6c540e95724b23e8a4ad0ff37f521d44046bfcf18cb0428b94e6e2 munin-node.logrotate "