# Maintainer: Mark Grimes # Contributor: Idares # https://github.com/mvgrimes/aur-nagios-npre-plugin pkgname=nagios-nrpe-plugin pkgver=4.0.3 pkgrel=1 pkgdesc="The Nagios Server NRPE plugin (install on the monitoring machine)." license=('GPL') arch=('any') url="http://www.nagios.org" source=("https://downloads.sourceforge.net/project/nagios/nrpe-4.x/nrpe-${pkgver}/nrpe-${pkgver}.tar.gz") md5sums=('42252d3c721c87ebb5e38b748f187e8d') depends=(nagios) install=nagios-nrpe-plugin.install # nagios already depends on openssl-1.0 build() { cd ${srcdir}/nrpe-${pkgver} ./configure \ --prefix=/usr/share/nagios \ --enable-ssl \ --with-nagios-user=nagios \ --with-nagios-group=nagios \ || return 1 make nrpe || return 1 } package() { cd ${srcdir}/nrpe-${pkgver} make DESTDIR=${pkgdir} install-plugin || return 1 }