git: 04673886096f - main - net-mgmt/nagios4: Update to 4.5.0

From: Jochen Neumeister <joneum_at_FreeBSD.org>
Date: Sat, 17 Feb 2024 08:23:11 UTC
The branch main has been updated by joneum:

URL: https://cgit.FreeBSD.org/ports/commit/?id=04673886096fc6016079e9a21bdefe6e6b4efd93

commit 04673886096fc6016079e9a21bdefe6e6b4efd93
Author:     Jochen Neumeister <joneum@FreeBSD.org>
AuthorDate: 2024-02-17 08:21:55 +0000
Commit:     Jochen Neumeister <joneum@FreeBSD.org>
CommitDate: 2024-02-17 08:23:03 +0000

    net-mgmt/nagios4: Update to 4.5.0
    
    Changelog: https://github.com/NagiosEnterprises/nagioscore/blob/nagios-4.5.0/Changelog
    
    Sponsored by:   Netzkommun GmbH
---
 net-mgmt/nagios4/Makefile                      |  4 ++--
 net-mgmt/nagios4/distinfo                      |  6 +++---
 net-mgmt/nagios4/files/patch-html_index.php.in | 18 ++++++++++++------
 net-mgmt/nagios4/files/patch-html_main.php     |  6 +++---
 4 files changed, 20 insertions(+), 14 deletions(-)

diff --git a/net-mgmt/nagios4/Makefile b/net-mgmt/nagios4/Makefile
index eb98f6d76c6b..b823f2bd39c0 100644
--- a/net-mgmt/nagios4/Makefile
+++ b/net-mgmt/nagios4/Makefile
@@ -1,6 +1,6 @@
 PORTNAME=	nagios
-PORTVERSION=	4.4.13
-PORTREVISION=	1
+PORTVERSION=	4.5.0
+PORTREVISION=	0
 PORTEPOCH=	1
 CATEGORIES=	net-mgmt
 MASTER_SITES=	https://assets.nagios.com/downloads/nagioscore/releases/ \
diff --git a/net-mgmt/nagios4/distinfo b/net-mgmt/nagios4/distinfo
index 8f5fa461b28b..2e6b571bdb0c 100644
--- a/net-mgmt/nagios4/distinfo
+++ b/net-mgmt/nagios4/distinfo
@@ -1,3 +1,3 @@
-TIMESTAMP = 1685866161
-SHA256 (nagios-4.4.13.tar.gz) = c289488c7ba71e66aae9890113eee475b9cedfe92f663a899ac6f70764fc1727
-SIZE (nagios-4.4.13.tar.gz) = 11341150
+TIMESTAMP = 1708115629
+SHA256 (nagios-4.5.0.tar.gz) = 164e05daed1adf72640b323453b6c13f4d13d90e56a95c7cdd8dccf8519e9be0
+SIZE (nagios-4.5.0.tar.gz) = 11540118
diff --git a/net-mgmt/nagios4/files/patch-html_index.php.in b/net-mgmt/nagios4/files/patch-html_index.php.in
index b6589b525c46..b8cfe2514a32 100644
--- a/net-mgmt/nagios4/files/patch-html_index.php.in
+++ b/net-mgmt/nagios4/files/patch-html_index.php.in
@@ -1,11 +1,17 @@
---- html/index.php.in.orig	2017-02-23 20:00:40 UTC
-+++ html/index.php.in
-@@ -1,6 +1,7 @@
+--- html/index.php.in.orig	2024-02-17 08:44:48.310422000 +0100
++++ html/index.php.in	2024-02-17 09:00:54.496033000 +0100
+@@ -1,4 +1,5 @@
  <?php
 +include_once(dirname(__FILE__).'/includes/utils.inc.php');
  // Allow specifying main window URL for permalinks, etc.
--$url = 'main.php';
-+$url = $cfg['cgi_base_url'].'/tac.cgi';
+ $url = 'main.php';
  
- if ("@COREWINDOW@" == "yes" && isset($_GET['corewindow'])) {
+@@ -23,7 +24,7 @@ if ("@COREWINDOW@" == "yes" && isset($_GET['corewindow
+ 		}
+ 	}
+ 	if (preg_match("/^http:\/\/|^https:\/\/|^\//", $url) != 1)
+-		$url = "main.php";
++		$url = $cfg['cgi_base_url'].'/tac.cgi';
+ }
  
+ $this_year = '2023';
diff --git a/net-mgmt/nagios4/files/patch-html_main.php b/net-mgmt/nagios4/files/patch-html_main.php
index 39377e342321..a8228acc1c12 100644
--- a/net-mgmt/nagios4/files/patch-html_main.php
+++ b/net-mgmt/nagios4/files/patch-html_main.php
@@ -1,9 +1,9 @@
---- html/main.php.orig	2023-06-04 10:27:05.620233000 +0200
-+++ html/main.php	2023-06-04 10:31:49.442315000 +0200
+--- html/main.php.orig	2024-02-17 09:09:32.460023000 +0100
++++ html/main.php	2024-02-17 09:12:55.192427000 +0100
 @@ -146,33 +146,6 @@ $this_year = '2023';
  	<div class="product">Nagios<sup><span style="font-size: small;">&reg;</span></sup> Core<sup><span style="font-size: small;">&trade;</span></sup></div>
  	<div class="version">Version <?php echo $this_version; ?></div>
- 	<div class="releasedate">June 01, 2023</div>
+ 	<div class="releasedate">November 14, 2023</div>
 -	<div class="checkforupdates"><a href="https://www.nagios.org/checkforupdates/?version=<?php echo $this_version; ?>&amp;product=nagioscore" target="_blank">Check for updates</a></div>
 -</div>
 -