mirror of
https://gitlab.alpinelinux.org/alpine/aports.git
synced 2025-07-22 02:35:23 +03:00
59 lines
1.8 KiB
Text
59 lines
1.8 KiB
Text
# Contributor: Francesco Colista <fcolista@alpinelinux.org>
|
|
# Maintainer: Francesco Colista <fcolista@alpinelinux.org>
|
|
pkgname=monitoring-plugins
|
|
pkgver=2.3.3
|
|
pkgrel=0
|
|
pkgdesc="Plugins for Icinga, Naemon, Nagios, Shinken, Sensu and other monitoring applications"
|
|
url="https://www.monitoring-plugins.org"
|
|
arch="all"
|
|
license="GPL-3.0-or-later"
|
|
options="suid !check" # Tests require interactive output and connecting to various URLs
|
|
depends="iputils procps bind-tools"
|
|
makedepends="
|
|
gettext-dev
|
|
libdbi-dev
|
|
libpq-dev
|
|
linux-headers
|
|
mariadb-connector-c-dev
|
|
net-snmp-tools
|
|
openssl-dev
|
|
perl-dev
|
|
perl-net-snmp
|
|
"
|
|
checkdepends="cmd:ksh"
|
|
subpackages="$pkgname-lang $pkgname-doc"
|
|
source="https://www.monitoring-plugins.org/download/$pkgname-$pkgver.tar.gz
|
|
mariadb.patch
|
|
prototype.patch
|
|
"
|
|
|
|
build() {
|
|
./configure \
|
|
--prefix=/usr \
|
|
--libexecdir=/usr/lib/monitoring-plugins \
|
|
--with-perl="$(which perl)" \
|
|
--with-ping-command="/bin/ping -n -U -w %d -c %d %s" \
|
|
--with-ping6-command="/bin/ping6 -n -U -w %d -c %d %s" \
|
|
--with-openssl \
|
|
--with-pgsql=/usr \
|
|
--with-dbi \
|
|
--with-mysql \
|
|
--with-ipv6
|
|
make
|
|
}
|
|
|
|
package() {
|
|
make DESTDIR="$pkgdir" install
|
|
|
|
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
|
|
}
|
|
|
|
sha512sums="
|
|
502274b47da2ad04d0e2e4e29baa7e5ad8b9a9ece36794dcdf7dfcc087de30e514ff6937eaaa26b93daad329fcd11b72c3c87cad826e6bf6bafffa450077706f monitoring-plugins-2.3.3.tar.gz
|
|
3db122a22012dbd571865023d5542c38541a6667b8e00a08d4180c04117300737f57dbdff3264240cda9f6746419022bace8da06d997b0ade776604c55da9bde mariadb.patch
|
|
8e217d791424453486d4733f4a2209b956a56b9278092d2b65db845d875251796a222e636087bc2bbadb47534189dffa13d19b6f51f172bca8f5d3dac5961375 prototype.patch
|
|
"
|