diff options
Diffstat (limited to 'main/nrpe/APKBUILD')
-rw-r--r-- | main/nrpe/APKBUILD | 48 |
1 files changed, 48 insertions, 0 deletions
diff --git a/main/nrpe/APKBUILD b/main/nrpe/APKBUILD new file mode 100644 index 0000000000..3e7ba13eb2 --- /dev/null +++ b/main/nrpe/APKBUILD @@ -0,0 +1,48 @@ +# Maintainer: Jeff Bilyk <jbilyk@gmail.com> +pkgname=nrpe +pkgver=2.12 +pkgrel=8 +pkgusers="nagios" +pkggroups="nagios" +pkgdesc="NRPE allows you to remotely execute Nagios plugins on other Linux/Unix machines." +url="http://www.nagios.org/download/addons" +arch="all" +license="GPL" +depends="" +makedepends="openssl-dev perl" +install="nrpe.pre-install" +subpackages="$pkgname-plugin" +source="http://downloads.sourceforge.net/nagios/$pkgname-$pkgver.tar.gz + nrpe.initd + nrpe.confd" + +build() { + cd "$srcdir"/$pkgname-$pkgver + + ./configure --prefix=/usr \ + --sysconfdir=/etc \ + --mandir=/usr/share/man \ + --infodir=/usr/share/info \ + --libexecdir=/usr/lib/nagios/plugins \ + --enable-command-args + make || return 1 +} + +package() { + cd "$srcdir"/$pkgname-$pkgver + make DESTDIR="$pkgdir" install install-daemon-config + #remove plugin since its in separate package + rm -rf "$pkgdir"/usr/lib + install -Dm755 "$srcdir"/nrpe.initd "$pkgdir"/etc/init.d/nrpe + 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" |