aboutsummaryrefslogtreecommitdiffstats
path: root/community/monitoring-plugins/APKBUILD
blob: b9ec874242bd8686cfbacf67ffb24361dcfaa8dc (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
# Contributor: Francesco Colista <fcolista@alpinelinux.org>
# Maintainer: Francesco Colista <fcolista@alpinelinux.org>
pkgname=monitoring-plugins
pkgver="2.2"
pkgrel=0
pkgdesc="Plugins for Icinga, Naemon, Nagios, Shinken, Sensu and other monitoring applications"
url="http://www.monitoring-plugins.org"
arch="all"
license="GPL3"
depends=""
depends_dev=""
options="suid"
makedepends="$depends_dev linux-headers libdbi-dev 
	libressl-dev mariadb-dev postgresql-dev perl-dev "
install=""
subpackages="$pkgname-doc"
source="https://www.monitoring-plugins.org/download/$pkgname-$pkgver.tar.gz"
builddir="$srcdir"/$pkgname-$pkgver

build() {
	cd "$builddir"
	 ./configure \
		--prefix=/usr \
		--libexecdir=/usr/lib/monitoring-plugins
		--with-perl \
		--with-openssl \
		--with-pgsql \
		--with-dbi \
		--with-mysql \
		--with-ipv6  
	make || return 1
}

package() {
	cd "$builddir"
	make DESTDIR="$pkgdir" install

	install -Dm644 LEGAL "$pkgdir"/usr/share/licenses/$pkgname/LEGAL
	
	for i in ABOUT-NLS ACKNOWLEDGEMENTS AUTHORS CODING ChangeLog \
		FAQ NEWS README REQUIREMENTS SUPPORT THANKS; do
		install -Dm644 $i "$pkgdir"/usr/share/doc/$pkgname/$i
	done
	rm $pkgdir/usr/lib/charset.alias
}

md5sums="549e243ba1fb5c5b3be3a86961de40a7  monitoring-plugins-2.2.tar.gz"
sha256sums="296a538f00a9cbef7f528ff2d43af357a44b384dc98a32389a675b62a6dd3665  monitoring-plugins-2.2.tar.gz"
sha512sums="5f8cfa132891d6d96e69bee3f2c26f7d4546f572be6a18f25ea5d9069f162cb2e424361289a5c26bec60d7b63d28a269437fd6f25645903a1c142fdcbbf77f27  monitoring-plugins-2.2.tar.gz"