mirror of
https://gitlab.alpinelinux.org/alpine/aports.git
synced 2025-10-09 06:21:59 +02:00
the configure script requres that --with-perl has a valid patch to perl upstream bug report: https://github.com/monitoring-plugins/monitoring-plugins/issues/1480 If --with-pgsql has no path specified, then will things go bad too. upstream bug report: https://github.com/monitoring-plugins/monitoring-plugins/issues/1484
52 lines
1.4 KiB
Plaintext
52 lines
1.4 KiB
Plaintext
# Contributor: Francesco Colista <fcolista@alpinelinux.org>
|
|
# Maintainer: Francesco Colista <fcolista@alpinelinux.org>
|
|
pkgname=monitoring-plugins
|
|
pkgver="2.2"
|
|
pkgrel=1
|
|
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
|
|
|
|
prepare() {
|
|
default_prepare || return 1
|
|
update_config_guess || return 1
|
|
update_config_sub || return 1
|
|
}
|
|
|
|
build() {
|
|
cd "$builddir"
|
|
./configure \
|
|
--prefix=/usr \
|
|
--libexecdir=/usr/lib/monitoring-plugins \
|
|
--with-perl="$(which perl)" \
|
|
--with-openssl \
|
|
--with-pgsql=/usr \
|
|
--with-dbi \
|
|
--with-mysql \
|
|
--with-ipv6
|
|
make || return 1
|
|
}
|
|
|
|
package() {
|
|
cd "$builddir"
|
|
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="5f8cfa132891d6d96e69bee3f2c26f7d4546f572be6a18f25ea5d9069f162cb2e424361289a5c26bec60d7b63d28a269437fd6f25645903a1c142fdcbbf77f27 monitoring-plugins-2.2.tar.gz"
|