git: 09ef120a4dc0 - main - net-mgmt/monitoring-plugins: Fix installing setuid-plugins

From: Matthias Fechner <mfechner_at_FreeBSD.org>
Date: Sun, 20 Sep 2026 06:27:41 UTC
The branch main has been updated by mfechner:

URL: https://cgit.FreeBSD.org/ports/commit/?id=09ef120a4dc0ad8e718948bd1c5cd16c6a1e624b

commit 09ef120a4dc0ad8e718948bd1c5cd16c6a1e624b
Author:     Oleksandr Kryvulia <o.kryvulia@flex-it.com.ua>
AuthorDate: 2026-09-20 06:26:24 +0000
Commit:     Matthias Fechner <mfechner@FreeBSD.org>
CommitDate: 2026-09-20 06:26:24 +0000

    net-mgmt/monitoring-plugins: Fix installing setuid-plugins
    
    PR:             298566
---
 net-mgmt/monitoring-plugins/Makefile                       |  2 +-
 ...ins-root_Makefile.in => patch-plugins-root_Makefile.am} | 14 +++++++-------
 2 files changed, 8 insertions(+), 8 deletions(-)

diff --git a/net-mgmt/monitoring-plugins/Makefile b/net-mgmt/monitoring-plugins/Makefile
index f0c896c6074e..8a791aaea6d3 100644
--- a/net-mgmt/monitoring-plugins/Makefile
+++ b/net-mgmt/monitoring-plugins/Makefile
@@ -1,6 +1,6 @@
 PORTNAME=	monitoring-plugins
 PORTVERSION=	3.0.3
-PORTREVISION=	2
+PORTREVISION=	3
 CATEGORIES=	net-mgmt
 MASTER_SITES=	https://www.monitoring-plugins.org/download/ \
 		LOCAL/mat/${PORTNAME}
diff --git a/net-mgmt/monitoring-plugins/files/patch-plugins-root_Makefile.in b/net-mgmt/monitoring-plugins/files/patch-plugins-root_Makefile.am
similarity index 66%
rename from net-mgmt/monitoring-plugins/files/patch-plugins-root_Makefile.in
rename to net-mgmt/monitoring-plugins/files/patch-plugins-root_Makefile.am
index 535287ed402d..ee21dfd6043c 100644
--- a/net-mgmt/monitoring-plugins/files/patch-plugins-root_Makefile.in
+++ b/net-mgmt/monitoring-plugins/files/patch-plugins-root_Makefile.am
@@ -1,6 +1,6 @@
---- plugins-root/Makefile.in.orig	2020-12-09 21:48:11 UTC
-+++ plugins-root/Makefile.in
-@@ -1357,10 +1357,6 @@ INSTALL_SUID = \
+--- plugins-root/Makefile.am.orig	2026-09-16 09:21:09 UTC
++++ plugins-root/Makefile.am
+@@ -51,10 +51,6 @@ INSTALL_SUID = \
  	p=$$f; \
  	echo " $(INSTALL_PROGRAM) $$p $(DESTDIR)$(libexecdir)/$$p"; \
  	$(INSTALL_PROGRAM) $$p $(DESTDIR)$(libexecdir)/$$p; \
@@ -10,10 +10,10 @@
 -	chmod $(setuid_root_mode) $(DESTDIR)$(libexecdir)/$$p; \
  	done
  
- 
-@@ -1795,9 +1791,7 @@ install-exec-local: $(noinst_PROGRAMS)
- 	rm -f $$TMPFILE; \
- 	echo > $$TMPFILE; \
+ install-root: $(noinst_PROGRAMS)
+@@ -67,9 +63,7 @@ install-exec-local: $(noinst_PROGRAMS)
+ 	## See if we can create a setuid root executable in $(libexecdir).
+ 	## If not, then don't even try to install setuid plugins.
  	can_create_suid_root_executable=no; \
 -	chown root $$TMPFILE > /dev/null 2>&1 \
 -	  && chmod $(setuid_root_mode) $$TMPFILE > /dev/null 2>&1 \