# Contributor: Idares <idares@seznam.cz>

pkgname=nagios-nrpe-plugin
pkgver=2.12
pkgrel=1
pkgdesc="The Nagios NRPE server side plugin."
license=('GPL')
arch=('i686' 'x86_64')
url="http://www.nagios.org"
source=("http://downloads.sourceforge.net/nagios/nrpe-$pkgver.tar.gz")
md5sums=('b2d75e2962f1e3151ef58794d60c9e97')

build() {
  cd $srcdir/nrpe-$pkgver
  
  ./configure \
    --prefix=/usr/share/nagios \
    --with-nagios-user=nobody \
    --with-nagios-group=nobody

  make
}

package() {
  cd $srcdir/nrpe-$pkgver
  
	make prefix=$pkgdir/usr/share/nagios install-plugin
}

# vim:set ts=2 sw=2 et:
