aboutsummaryrefslogtreecommitdiffstats
path: root/main/nrpe/APKBUILD
blob: 883f0bb36122ac1241bafe6ab9d326a3fcd9fe28 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
# Maintainer: Jeff Bilyk <jbilyk@gmail.com> 
pkgname=nrpe
pkgver=2.14
pkgrel=0
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="105857720e21674083a6d6be99e102c7  nrpe-2.14.tar.gz
3263044303bbfdfbbc8127cfa991ab51  nrpe.initd
6bd25a1ace9e108c5014a83adcad15b3  nrpe.confd"