1

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

Jeff Bilyk
Details
Message ID
<1282767844-7439-1-git-send-email-jbilyk@gmail.com>
Sender timestamp
1282767843
DKIM signature
missing
Download raw message
Patch: +8 -1
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:  alpine-devel+unsubscribe@lists.alpinelinux.org
Help:         alpine-devel+help@lists.alpinelinux.org
---

[alpine-devel] [PATCH 2/2] main/nrpe: Update maintainer

Jeff Bilyk
Details
Message ID
<1282767844-7439-2-git-send-email-jbilyk@gmail.com>
In-Reply-To
<1282767844-7439-1-git-send-email-jbilyk@gmail.com> (view parent)
Sender timestamp
1282767844
DKIM signature
missing
Download raw message
Patch: +1 -2
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 <jbilyk@gmail.com> 
 pkgname=nrpe
 pkgver=2.12
 pkgrel=5
-- 
1.7.2.1



---
Unsubscribe:  alpine-devel+unsubscribe@lists.alpinelinux.org
Help:         alpine-devel+help@lists.alpinelinux.org
---