summaryrefslogtreecommitdiff
path: root/pcr/nagios-plugins/PKGBUILD
blob: c296489632d6271f2f813e5d74c9274317811eab (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
# Contributor: Idares <idares@seznam.cz>
# Maintainer: Aurélien Desbrières <aurelien@cwb.io>

pkgname=nagios-plugins
pkgver=2.0.3
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://nagios-plugins.org/download/$pkgname-$pkgver.tar.gz")
makedepends=('net-snmp')
optdepends=('net-snmp: for SNMP checking.')
sha1sums=('29b6183ab9d796299dc17c395eef493415d1e9d6')

build() {
  cd $srcdir/$pkgname-$pkgver
  ./configure --prefix=/usr/share/nagios
  make
}

package() {
  cd $srcdir/$pkgname-$pkgver
  make prefix=$startdir/pkg/usr/share/nagios install
  make prefix=$startdir/pkg/usr/share/nagios install-root
}