aboutsummaryrefslogtreecommitdiffstats
path: root/main/nagios-plugins/APKBUILD
blob: 3fb9c3d3af790287c6e91a45ee9c3c9c379f0263 (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
49
50
51
52
53
54
55
56
# Contributor: Ɓukasz Jendrysik <scadu@yandex.com>
# Maintainer: Jeff Bilyk <jbilyk@gmail.com>
pkgname=nagios-plugins
pkgver=2.0.3
pkgrel=1
pkgdesc="Plugins for Nagios to check services on hosts"
url="http://nagiosplugins.org"
arch="all"
license="GPL2"
depends="fping net-snmp-tools bind-tools nrpe-plugin perl-net-snmp"
makedepends="net-snmp-tools openssl-dev openldap-dev mariadb-dev postgresql-dev libpq
	linux-headers"
source="https://www.nagios-plugins.org/download/nagios-plugins-$pkgver.tar.gz"
pkgusers="nagios"
pkggroups="nagios"
subpackages=""
options="suid"

prepare() {
	cd "$srcdir/$pkgname-$pkgver"
	update_config_sub || return 1
}

build() {
	cd "$srcdir/$pkgname-$pkgver"

	./configure \
		--build=$CBUILD \
		--host=$CHOST \
		--prefix=/usr \
		--mandir=/usr/share/man \
		--infodir=/usr/share/info \
		--bindir=/usr/sbin \
		--libexecdir=/usr/lib/nagios/plugins \
		--localstatedir=/var/nagios \
		--with-ps-command="/bin/ps" \
		--with-ps-format="%d %s %s %s" \
		--with-ps-varlist="&procpid,&procuid,&procpcpu,procprog" \
		--with-ps-cols=4 \
		--with-ping-command="/bin/ping -c %d %s" \
		|| return 1
	make all || return 1
}

package() {
	cd "$srcdir/$pkgname-$pkgver"
	make DESTDIR="$pkgdir" install || return 1
	rm -rf "$pkgdir"/usr/lib/charset.alias
	rmdir -p "$pkgdir"/usr/lib 2>/dev/null
	return 0
}


md5sums="6755765bab88b506181268ef7982595e  nagios-plugins-2.0.3.tar.gz"
sha256sums="8f0021442dce0138f0285ca22960b870662e28ae8973d49d439463588aada04a  nagios-plugins-2.0.3.tar.gz"
sha512sums="2753e6f3fc7433a5583fee01e63a65b9ea74155964f2b6e6bf3458e56cb29ea5dbd020f83816044a717b66d6548d203b3a082fba0faedcd629c7a8457bc19b36  nagios-plugins-2.0.3.tar.gz"