# Contributor: Idares <idares@seznam.cz>
# Maintainer : Parabola GNU / Linux-libre Aurelien Desbrieres <aurelien@cwb.IO>

pkgname=nagios-plugins
pkgver=1.4.16
pkgrel=1
pkgdesc="Plugins are scripts and programs that perform host and service checks."
license=('GPL')
arch=('i686' 'x86_64')
url="http://www.nagiosplugins.org"
source=("http://downloads.sourceforge.net/nagiosplug/$pkgname-$pkgver.tar.gz"
        "stdio.patch")
makedepends=('net-snmp')
optdepends=('net-snmp: for SNMP checking.')

build() {
	cd $srcdir/$pkgname-$pkgver
	patch -p1 -i "$srcdir/stdio.patch"
	./configure --prefix=/usr/share/nagios
	make
	make prefix=$startdir/pkg/usr/share/nagios install
	make prefix=$startdir/pkg/usr/share/nagios install-root
}

sha1sums=('52db48b15572b98c6fcd8aaec2ef4d2aad7640d3'
          '6a40a8bc8c907f5cf722e4440900d872767d465c')