diff options
author | Natanael Copa <ncopa@alpinelinux.org> | 2010-06-24 08:48:28 +0000 |
---|---|---|
committer | Natanael Copa <ncopa@alpinelinux.org> | 2010-06-24 08:48:28 +0000 |
commit | a770a4563149fa905662648da861dd9b063ac8b9 (patch) | |
tree | 877583ba7d30eb8b9a866eb0a8c44af0a15ba334 /main/nrpe | |
parent | 465cf33483bf57bb455b656050e1c2e9fe761af4 (diff) | |
download | aports-a770a4563149fa905662648da861dd9b063ac8b9.tar.bz2 aports-a770a4563149fa905662648da861dd9b063ac8b9.tar.xz |
main/nrpe: add conf.d file
fixes #364
Diffstat (limited to 'main/nrpe')
-rw-r--r-- | main/nrpe/APKBUILD | 11 | ||||
-rw-r--r-- | main/nrpe/nrpe.confd | 2 | ||||
-rw-r--r-- | main/nrpe/nrpe.initd | 2 |
3 files changed, 10 insertions, 5 deletions
diff --git a/main/nrpe/APKBUILD b/main/nrpe/APKBUILD index 6b5041678..d78e894fb 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 000000000..18cd22951 --- /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 0bff759ce..92fe3837e 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 $? } |