aboutsummarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 9e6286bb518f2899cb015baa7a7f72a86a2a27ab (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
27
28
29
30
31
32
33
# Maintainer: Mark Grimes <mgrimes at peculier dot com>
# Contributor: Idares <idares@seznam.cz>
# 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
}