diff options
| author | Linus Sundqvist <linus.sundqvist@loopia.se> | 2026-08-18 08:04:24 +0000 |
|---|---|---|
| committer | Matthias Fechner <mfechner@FreeBSD.org> | 2026-08-18 08:04:24 +0000 |
| commit | 584c15e5a78c722e7aa3ebcb02f6c92d16513166 (patch) | |
| tree | 810e67db43819dae4dbd6a67e04f13c0f383f838 | |
| parent | d5c96ba20c67cfc0629e214b6fff1007e1aa17db (diff) | |
net-mgmt/monitoring-plugins: Remove sudo from check_mailq
Fixes error:
/usr/local/libexec/nagios/check_mailq
Global symbol "$sudo" requires explicit package name (did you forget to declare "my $sudo"?) at /usr/local/libexec/nagios/check_mailq line 580.
Execution of /usr/local/libexec/nagios/check_mailq aborted due to compilation errors.
Upstream removed sudo for check_mailq completely in version 3.0.3.
Changes: https://github.com/monitoring-plugins/monitoring-plugins/releases/tag/v3.0.3
PR: 297472
| -rw-r--r-- | net-mgmt/monitoring-plugins/Makefile | 1 | ||||
| -rw-r--r-- | net-mgmt/monitoring-plugins/files/patch-plugins-scripts_check__mailq.pl | 2 |
2 files changed, 2 insertions, 1 deletions
diff --git a/net-mgmt/monitoring-plugins/Makefile b/net-mgmt/monitoring-plugins/Makefile index c0fc97c87954..f98c79a9a4c3 100644 --- a/net-mgmt/monitoring-plugins/Makefile +++ b/net-mgmt/monitoring-plugins/Makefile @@ -1,5 +1,6 @@ PORTNAME= monitoring-plugins PORTVERSION= 3.0.3 +PORTREVISION= 1 CATEGORIES= net-mgmt MASTER_SITES= https://www.monitoring-plugins.org/download/ \ LOCAL/mat/${PORTNAME} diff --git a/net-mgmt/monitoring-plugins/files/patch-plugins-scripts_check__mailq.pl b/net-mgmt/monitoring-plugins/files/patch-plugins-scripts_check__mailq.pl index fc244ca94d41..b94fd8277ee0 100644 --- a/net-mgmt/monitoring-plugins/files/patch-plugins-scripts_check__mailq.pl +++ b/net-mgmt/monitoring-plugins/files/patch-plugins-scripts_check__mailq.pl @@ -8,7 +8,7 @@ +elsif ( $mailq eq "opensmtp" ) { + ## open mailq + if ( defined $utils::PATH_TO_MAILQ && -x $utils::PATH_TO_MAILQ ) { -+ if (! open (MAILQ, "$sudo $utils::PATH_TO_MAILQ | " ) ) { ++ if (! open (MAILQ, "$utils::PATH_TO_MAILQ | " ) ) { + print "ERROR: could not open $utils::PATH_TO_MAILQ \n"; + exit $ERRORS{'UNKNOWN'}; + } |
