# Contributor: Francesco Colista # Maintainer: Francesco Colista pkgname=monitoring-plugins pkgver=2.3.3 pkgrel=2 pkgdesc="Plugins for Icinga, Naemon, Nagios, Shinken, Sensu and other monitoring applications" url="https://www.monitoring-plugins.org" arch="all" license="GPL-3.0-or-later" options="suid !check" # Tests require interactive output and connecting to various URLs depends="iputils procps bind-tools" makedepends=" gettext-dev libdbi-dev libpq-dev linux-headers mariadb-connector-c-dev net-snmp-tools openssl-dev perl-dev perl-net-snmp " checkdepends="cmd:ksh" subpackages="$pkgname-lang $pkgname-doc" source="https://www.monitoring-plugins.org/download/$pkgname-$pkgver.tar.gz mariadb.patch prototype.patch upstream-1840.patch " build() { ./configure \ --prefix=/usr \ --libexecdir=/usr/lib/monitoring-plugins \ --with-perl="$(which perl)" \ --with-ping-command="/bin/ping -n -U -w %d -c %d %s" \ --with-ping6-command="/bin/ping6 -n -U -w %d -c %d %s" \ --with-openssl \ --with-pgsql=/usr \ --with-dbi \ --with-mysql \ --with-ipv6 make } package() { make DESTDIR="$pkgdir" install for i in ABOUT-NLS ACKNOWLEDGEMENTS AUTHORS CODING ChangeLog \ FAQ NEWS README REQUIREMENTS SUPPORT THANKS; do install -Dm644 $i "$pkgdir"/usr/share/doc/$pkgname/$i done rm $pkgdir/usr/lib/charset.alias } sha512sums=" 502274b47da2ad04d0e2e4e29baa7e5ad8b9a9ece36794dcdf7dfcc087de30e514ff6937eaaa26b93daad329fcd11b72c3c87cad826e6bf6bafffa450077706f monitoring-plugins-2.3.3.tar.gz 3db122a22012dbd571865023d5542c38541a6667b8e00a08d4180c04117300737f57dbdff3264240cda9f6746419022bace8da06d997b0ade776604c55da9bde mariadb.patch 8e217d791424453486d4733f4a2209b956a56b9278092d2b65db845d875251796a222e636087bc2bbadb47534189dffa13d19b6f51f172bca8f5d3dac5961375 prototype.patch 92d2e0d9d07250fb76b0f8c479cc482527c1e6e5435064fbaaa0e68df92620eb14265ea2b5abe0137263bdd6b1f178652a806ea3cc4a491949a37ae75f6bf930 upstream-1840.patch "