# Maintainer: Julian Brost pkgname=check-nwc-health pkgver=11.2.4 pkgrel=1 pkgdesc="Monitoring check for various network equipment" arch=('any') url='https://labs.consol.de/nagios/check_nwc_health/' license=('GPL') depends=('perl' 'perl-json' 'perl-json-xs' 'perl-file-slurp') makedepends=() optdepends=('perl-net-snmp: checks based on SNMP' 'perl-soap-lite: checks based on UPnP' 'perl-xml-libxml: checks based on UPnP' 'perl-xml-treebuilder: FritzBox checks') source=("https://labs.consol.de/assets/downloads/nagios/check_nwc_health-$pkgver.tar.gz") sha256sums=('7d229bf18f75fb98c99cbf4e041f3fa848ba8a61cecda31fb5bb2f49feb1c61e') build() { cd "check_nwc_health-$pkgver" ./configure --prefix=/usr --libexecdir=/usr/lib/monitoring-plugins make } check() { cd "check_nwc_health-$pkgver" ./plugins-scripts/check_nwc_health --help > /dev/null } package() { cd "check_nwc_health-$pkgver" make DESTDIR="$pkgdir/" install }