From 2b3e080d6aa33771ae84fc4d091b3465687e5692 Mon Sep 17 00:00:00 2001
From: Celeste <20312-Celeste@users.gitlab.alpinelinux.org>
Date: Thu, 25 Jul 2024 06:31:48 +0000
Subject: [PATCH] community/monitoring-plugins: upgrade to 2.4.0

(1) remove -lang subpackage, as localization files
    in the `po` directory have all been removed:

    https://github.com/monitoring-plugins/monitoring-plugins/commit/40370b8ff0332692c1d8d47c24ebda02b7a18823

(2) --with-ssh-command needs to be passed to
    ./configure for check_by_ssh plugin to be enabled
---
 community/monitoring-plugins/APKBUILD | 14 +++++---------
 1 file changed, 5 insertions(+), 9 deletions(-)

diff --git a/community/monitoring-plugins/APKBUILD b/community/monitoring-plugins/APKBUILD
index 2f8e1eafbcfa..11db6fda2e2a 100644
--- a/community/monitoring-plugins/APKBUILD
+++ b/community/monitoring-plugins/APKBUILD
@@ -1,8 +1,8 @@
 # Contributor: Francesco Colista <fcolista@alpinelinux.org>
 # Maintainer: Francesco Colista <fcolista@alpinelinux.org>
 pkgname=monitoring-plugins
-pkgver=2.3.5
-pkgrel=2
+pkgver=2.4.0
+pkgrel=0
 pkgdesc="Plugins for Icinga, Naemon, Nagios, Shinken, Sensu and other monitoring applications"
 url="https://www.monitoring-plugins.org"
 arch="all"
@@ -21,14 +21,9 @@ makedepends="
 	perl-net-snmp
 	"
 checkdepends="cmd:ksh"
-subpackages="$pkgname-lang $pkgname-doc"
+subpackages="$pkgname-doc"
 source="https://www.monitoring-plugins.org/download/monitoring-plugins-$pkgver.tar.gz"
 
-prepare() {
-	default_prepare
-	update_config_guess
-}
-
 build() {
 	 ./configure \
 		--prefix=/usr \
@@ -38,6 +33,7 @@ build() {
 		--with-ping6-command="/bin/ping6 -n -U -w %d -c %d %s" \
 		--with-sudo-command="/usr/bin/sudo" \
 		--with-mailq-command="/usr/bin/mailq" \
+		--with-ssh-command="/usr/bin/ssh" \
 		--with-openssl \
 		--with-pgsql=/usr \
 		--with-dbi \
@@ -57,5 +53,5 @@ package() {
 }
 
 sha512sums="
-bb04d547584a4aed82bfd605d129b652b45c7356c0610fb1da53a57b2ab889b67afccdd53998e2612ec06571bdc5fc238ef0d378b96e29ec072f657e74eabd55  monitoring-plugins-2.3.5.tar.gz
+7e9aae7768ed9fccbaf377fc54a70374f6a41e8e8ef95cf7440e44fca1080eb23e6b3d737214c96d772eb9a32cdfdbf1b88e0eb35eda0690047d5fe1b485a6b2  monitoring-plugins-2.4.0.tar.gz
 "
-- 
GitLab