aboutsummaryrefslogtreecommitdiffstats
path: root/main/nrpe/APKBUILD
diff options
context:
space:
mode:
Diffstat (limited to 'main/nrpe/APKBUILD')
-rw-r--r--main/nrpe/APKBUILD14
1 files changed, 10 insertions, 4 deletions
diff --git a/main/nrpe/APKBUILD b/main/nrpe/APKBUILD
index d78e894fb1..fd66dba15f 100644
--- a/main/nrpe/APKBUILD
+++ b/main/nrpe/APKBUILD
@@ -1,8 +1,7 @@
-# Contributor:
-# Maintainer:
+# Maintainer: Jeff Bilyk <jbilyk@gmail.com>
pkgname=nrpe
pkgver=2.12
-pkgrel=5
+pkgrel=6
pkgusers="nagios"
pkggroups="nagios"
pkgdesc="NRPE allows you to remotely execute Nagios plugins on other Linux/Unix machines."
@@ -11,7 +10,7 @@ license="GPL"
depends=""
makedepends="openssl-dev perl"
install="nrpe.pre-install"
-subpackages=
+subpackages="$pkgname-plugin"
source="http://downloads.sourceforge.net/nagios/$pkgname-$pkgver.tar.gz
nrpe.initd
nrpe.confd"
@@ -23,6 +22,7 @@ build() {
--sysconfdir=/etc \
--mandir=/usr/share/man \
--infodir=/usr/share/info \
+ --libexecdir=/usr/lib/nagios/plugins \
--enable-command-args
make || return 1
}
@@ -34,6 +34,12 @@ package() {
install -Dm644 "$srcdir"/nrpe.confd "$pkgdir"/etc/conf.d/nrpe
}
+plugin() {
+ pkgdesc="Nagios plugin to check result via NRPE daemon"
+ cd "$srcdir"/$pkgname-$pkgver
+ make DESTDIR="$subpkgdir" install-plugin
+}
+
md5sums="b2d75e2962f1e3151ef58794d60c9e97 nrpe-2.12.tar.gz
3263044303bbfdfbbc8127cfa991ab51 nrpe.initd
6bd25a1ace9e108c5014a83adcad15b3 nrpe.confd"