aboutsummaryrefslogtreecommitdiffstats
path: root/main/nrpe/APKBUILD
blob: e7f3eb5dc46a30c56d3533fd920ba789ad602cf0 (plain)
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
49
50
51
52
53
54
55
56
57
58
# Maintainer: Jeff Bilyk <jbilyk@gmail.com> 
pkgname=nrpe
pkgver=2.14
pkgrel=1
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 \
		--build=$CBUILD \
		--host=$CHOST \
		--prefix=/usr \
		--sysconfdir=/etc \
		--mandir=/usr/share/man \
		--infodir=/usr/share/info \
		--libexecdir=/usr/lib/nagios/plugins \
		--enable-command-args \
		|| return 1
	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"
sha256sums="808c7c4a82d0addf15449663e4712b5018c8bbd668e46723139f731f1ac44431  nrpe-2.14.tar.gz
3340543666444a6f7400a0d3670ab76ca945c0753733c9d12c698a4bd00a402e  nrpe.initd
c07c0eef454515c622bb0c12846ad73e961193cacd7c46cf70e49e09605e6f08  nrpe.confd"
sha512sums="bd8b55178a780710bc014d703248953bccad8ac9f048c2cfe1b86ba6c12b3d506b2e32257b1ea3a5ddaad9049753ded2fd690bd6667b13cd4fd59e1a7afae96b  nrpe-2.14.tar.gz
2f97d5dd7874d2e1fd74e2ab29e7206eb56437c995653f803891663b983571f66f168781a5c6f4164d94b31f7c6317db4e7b40e96d7a68a8854336f322f66df3  nrpe.initd
1070f3aaae560c2b2ee5195eb23787504864a8b6e1a92181158269d30e525733136482c7d299a71bbd44f575d2c919935adf9c162be6cd4fa99bbad06b9c3b0c  nrpe.confd"