Subject: [alpine-devel] [PATCH 1/2] main/nrpe: Add nrpe-plugin subpackage

From: Jeff Bilyk <[email-masked]>
Date: Wed, 25 Aug 2010 20:24:03 +0000

Add check_nrpe to it's own subpackage to make it possible to add the Nagios plugin without installing daemon
---
 main/nrpe/APKBUILD |    9 ++++++++-
 1 files changed, 8 insertions(+), 1 deletions(-)

diff --git a/main/nrpe/APKBUILD b/main/nrpe/APKBUILD
index d78e894..10fdd50 100644
--- a/main/nrpe/APKBUILD
+++ b/main/nrpe/APKBUILD
@@ -11,7 +11,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 +23,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 +35,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"
-- 
1.7.2.1

---
Unsubscribe:  [email-masked]
Help:         [email-masked]
---

---

From: Jeff Bilyk <[email-masked]>
Date: Wed, 25 Aug 2010 20:24:04 +0000

Update maintainer from blank
---
 main/nrpe/APKBUILD |    3 +--
 1 files changed, 1 insertions(+), 2 deletions(-)

diff --git a/main/nrpe/APKBUILD b/main/nrpe/APKBUILD
index 10fdd50..da0e560 100644
--- a/main/nrpe/APKBUILD
+++ b/main/nrpe/APKBUILD
@@ -1,5 +1,4 @@
-# Contributor: 
-# Maintainer: 
+# Maintainer: Jeff Bilyk <[email-masked]> 
 pkgname=nrpe
 pkgver=2.12
 pkgrel=5
-- 
1.7.2.1

---