git: 49f88402b5c0 - main - net-mgmt/check_ups_health: update 3.0.1.2 -> 3.0.4.1, fix build

From: Kurt Jaeger <pi_at_FreeBSD.org>
Date: Sat, 31 Dec 2022 12:59:38 UTC
The branch main has been updated by pi:

URL: https://cgit.FreeBSD.org/ports/commit/?id=49f88402b5c0f1756f0bd918a12e3e3fa948b073

commit 49f88402b5c0f1756f0bd918a12e3e3fa948b073
Author:     Kurt Jaeger <pi@FreeBSD.org>
AuthorDate: 2022-12-31 12:56:38 +0000
Commit:     Kurt Jaeger <pi@FreeBSD.org>
CommitDate: 2022-12-31 12:56:38 +0000

    net-mgmt/check_ups_health: update 3.0.1.2 -> 3.0.4.1, fix build
    
    Changes:        https://labs.consol.de/nagios/check_ups_health/
---
 net-mgmt/check_ups_health/Makefile                            |  2 +-
 net-mgmt/check_ups_health/distinfo                            |  6 +++---
 .../check_ups_health/files/patch-plugins-scripts_subst.in     | 11 +++++++++++
 3 files changed, 15 insertions(+), 4 deletions(-)

diff --git a/net-mgmt/check_ups_health/Makefile b/net-mgmt/check_ups_health/Makefile
index 630ed6d2775f..44763cb7f15e 100644
--- a/net-mgmt/check_ups_health/Makefile
+++ b/net-mgmt/check_ups_health/Makefile
@@ -1,5 +1,5 @@
 PORTNAME=	check_ups_health
-PORTVERSION=	3.0.1.2
+PORTVERSION=	3.0.4.1
 CATEGORIES=	net-mgmt
 MASTER_SITES=	https://labs.consol.de/assets/downloads/nagios/
 
diff --git a/net-mgmt/check_ups_health/distinfo b/net-mgmt/check_ups_health/distinfo
index 882e2ead3a88..ff1a75db529d 100644
--- a/net-mgmt/check_ups_health/distinfo
+++ b/net-mgmt/check_ups_health/distinfo
@@ -1,3 +1,3 @@
-TIMESTAMP = 1624193058
-SHA256 (check_ups_health-3.0.1.2.tar.gz) = e86dee71279a1875349ca2be2b02182db2dccd36062bfee12ab95f72505d68e7
-SIZE (check_ups_health-3.0.1.2.tar.gz) = 289867
+TIMESTAMP = 1672487336
+SHA256 (check_ups_health-3.0.4.1.tar.gz) = 0d8e9020e3324d28cf88b8e1668ab419a35461e72f755f7eab1092a6e487fd8f
+SIZE (check_ups_health-3.0.4.1.tar.gz) = 292354
diff --git a/net-mgmt/check_ups_health/files/patch-plugins-scripts_subst.in b/net-mgmt/check_ups_health/files/patch-plugins-scripts_subst.in
new file mode 100644
index 000000000000..e2b59e321b02
--- /dev/null
+++ b/net-mgmt/check_ups_health/files/patch-plugins-scripts_subst.in
@@ -0,0 +1,11 @@
+--- plugins-scripts/subst.in.orig	2022-05-02 13:20:51 UTC
++++ plugins-scripts/subst.in
+@@ -41,7 +41,7 @@ BEGIN {
+ 
+ /^#! ?\/.*\/python/ {sub(/^#! ?\/.*\/python/,"#! @PYTHON@");}
+ /^#! ?\/.*\/perl/ {sub(/^#! ?\/.*\/perl/,"#! @PERL@");}
+-/^#! ?\/.*\/[a-z]{0,2}awk/ {sub(/^#! ?\/.*\/[a-z]{0,2}awk/,"#! @AWK@");}
++# /^#! ?\/.*\/[a-z]{0,2}awk/ {sub(/^#! ?\/.*\/[a-z]{0,2}awk/,"#! @AWK@");}
+ /^#! ?\/.*\/sh/ {sub(/^#! ?\/.*\/sh/,"#! @SHELL@");}
+ 
+ # add to libexecdir to INC for perl utils.pm