Commit a770a456 authored by Natanael Copa's avatar Natanael Copa

main/nrpe: add conf.d file

fixes #364
parent 465cf334
......@@ -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"
# override the default options.
# nrpe_options="-c /etc/nrpe.cfg"
......@@ -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 $?
}
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment