[packages/nagios] Rel 3; fix patch
arekm
arekm at pld-linux.org
Thu Jun 2 18:09:56 CEST 2022
commit a494ecb59375ccc9954e1af00e967d2debab7a00
Author: Arkadiusz Miśkiewicz <arekm at maven.pl>
Date: Thu Jun 2 18:08:43 2022 +0200
Rel 3; fix patch
do-not-fetch-rss.patch | 22 ++++++++++------------
nagios.spec | 2 +-
2 files changed, 11 insertions(+), 13 deletions(-)
---
diff --git a/nagios.spec b/nagios.spec
index 08e56a9..550f148 100644
--- a/nagios.spec
+++ b/nagios.spec
@@ -13,7 +13,7 @@ Summary(pl.UTF-8): Program do monitorowania serwerów/usług/sieci
Summary(pt_BR.UTF-8): Programa para monitoração de máquinas e serviços
Name: nagios
Version: 4.4.7
-Release: 2
+Release: 3
License: GPL v2+
Group: Networking
# https://www.nagios.org/downloads/nagios-core/thanks/?product_download=nagioscore-source
diff --git a/do-not-fetch-rss.patch b/do-not-fetch-rss.patch
index 92fb3d0..361570b 100644
--- a/do-not-fetch-rss.patch
+++ b/do-not-fetch-rss.patch
@@ -11,29 +11,27 @@ diff -urNp -x '*.orig' nagios-4.4.6.org/html/main.php nagios-4.4.6/html/main.php
<script type='text/javascript'>
var cookie;
+<?php
-+ $updateinfo=get_update_information();
-+ if ($updateinfo['update_checks_enabled']!==false):
++ $updateinfo=get_update_information();
++ if ($updateinfo['update_checks_enabled']!==false):
+?>
$(document).ready(function() {
loadRemoteFeed( // Our top banner splash.
'#splashbox0-contents', 'corebanner', 1,
-@@ -47,7 +51,9 @@ $this_year = '2020';
- '#splashbox5-contents', 'corepromo', 3,
- '<ul>', processPromoItem, '</ul>'
- );
--
-+<?php
-+ endif;
-+?>
+@@ -37,6 +41,7 @@ $this_year = '2022';
+
getCoreStatus();
});
++<?php endif ?>
-@@ -152,7 +158,7 @@ $this_year = '2020';
+ // Fetch an RSS feed and format HTML for the first n items.
+ function loadRemoteFeed(id, name, n, prefix, formatter, suffix) {
+@@ -125,7 +130,8 @@ $this_year = '2022';
<div id="updateversioninfo">
<?php
- $updateinfo = get_update_information();
-+ //$updateinfo = get_update_information();
++ // $updateinfo = get_update_information();
++ $updateinfo['update_checks_enabled'] = false;
if (!$updateinfo['update_checks_enabled']) {
?>
<div class="updatechecksdisabled">
================================================================
---- gitweb:
http://git.pld-linux.org/gitweb.cgi/packages/nagios.git/commitdiff/a494ecb59375ccc9954e1af00e967d2debab7a00
More information about the pld-cvs-commit
mailing list