aboutsummaryrefslogtreecommitdiffstats
path: root/main/nrpe
diff options
context:
space:
mode:
Diffstat (limited to 'main/nrpe')
-rw-r--r--main/nrpe/APKBUILD11
-rw-r--r--main/nrpe/nrpe.confd2
-rw-r--r--main/nrpe/nrpe.initd2
3 files changed, 10 insertions, 5 deletions
diff --git a/main/nrpe/APKBUILD b/main/nrpe/APKBUILD
index 6b50416780..d78e894fb1 100644
--- a/main/nrpe/APKBUILD
+++ b/main/nrpe/APKBUILD
@@ -2,7 +2,7 @@
# Maintainer:
pkgname=nrpe
pkgver=2.12
-pkgrel=4
+pkgrel=5
pkgusers="nagios"
pkggroups="nagios"
pkgdesc="NRPE allows you to remotely execute Nagios plugins on other Linux/Unix machines."
@@ -13,7 +13,8 @@ makedepends="openssl-dev perl"
install="nrpe.pre-install"
subpackages=
source="http://downloads.sourceforge.net/nagios/$pkgname-$pkgver.tar.gz
- nrpe.initd"
+ nrpe.initd
+ nrpe.confd"
build() {
cd "$srcdir"/$pkgname-$pkgver
@@ -29,8 +30,10 @@ build() {
package() {
cd "$srcdir"/$pkgname-$pkgver
make DESTDIR="$pkgdir" install install-daemon-config
- install -Dm755 ../nrpe.initd "$pkgdir"/etc/init.d/nrpe
+ install -Dm755 "$srcdir"/nrpe.initd "$pkgdir"/etc/init.d/nrpe
+ install -Dm644 "$srcdir"/nrpe.confd "$pkgdir"/etc/conf.d/nrpe
}
md5sums="b2d75e2962f1e3151ef58794d60c9e97 nrpe-2.12.tar.gz
-a1e3fbbfdd46437f7385742d49d5eb85 nrpe.initd"
+3263044303bbfdfbbc8127cfa991ab51 nrpe.initd
+6bd25a1ace9e108c5014a83adcad15b3 nrpe.confd"
diff --git a/main/nrpe/nrpe.confd b/main/nrpe/nrpe.confd
new file mode 100644
index 0000000000..18cd229511
--- /dev/null
+++ b/main/nrpe/nrpe.confd
@@ -0,0 +1,2 @@
+# override the default options.
+# nrpe_options="-c /etc/nrpe.cfg"
diff --git a/main/nrpe/nrpe.initd b/main/nrpe/nrpe.initd
index 0bff759cee..92fe3837ee 100644
--- a/main/nrpe/nrpe.initd
+++ b/main/nrpe/nrpe.initd
@@ -22,7 +22,7 @@ start() {
ebegin "Starting NRPE"
start-stop-daemon --start --quiet \
--pidfile $pidfile \
- --exec $daemon -- ${nrpe_options:- -c $conf -d}
+ --exec $daemon -- -d ${nrpe_options:- -c $conf}
eend $?
}