[packages/nagios-theme-exfoliation] Up to 4.5.9

arekm arekm at pld-linux.org
Tue Mar 18 12:54:00 CET 2025


commit fa5eb593bd5f85e97241af08cea7b8869f4fb042
Author: Arkadiusz Miśkiewicz <arekm at maven.pl>
Date:   Tue Mar 18 11:58:50 2025 +0100

    Up to 4.5.9

 nagios-theme-exfoliation.spec | 10 ++++-----
 remove-information-leak.patch | 50 ++++---------------------------------------
 2 files changed, 9 insertions(+), 51 deletions(-)
---
diff --git a/nagios-theme-exfoliation.spec b/nagios-theme-exfoliation.spec
index 9a99a5c..e1aa9fb 100644
--- a/nagios-theme-exfoliation.spec
+++ b/nagios-theme-exfoliation.spec
@@ -1,12 +1,12 @@
 Summary:	Exfoliation Nagios theme
 Name:		nagios-theme-exfoliation
-Version:	4.5.3
-Release:	5
+Version:	4.5.9
+Release:	1
 License:	GPL v2+
 Group:		Applications/WWW
 # https://www.nagios.org/downloads/nagios-core/thanks/?product_download=nagioscore-source
 Source0:	https://assets.nagios.com/downloads/nagioscore/releases/nagios-%{version}.tar.gz
-# Source0-md5:	b77fd2fb656245dd0097c8e7b1310d3e
+# Source0-md5:	dea21ad245e301fb05d3e8408499e001
 Patch0:		system-jquery.patch
 Patch1:		remove-information-leak.patch
 URL:		http://lancet.mit.edu/mwall/projects/nagios/exfoliation.html
@@ -28,8 +28,8 @@ Exfoliation is a simple makeover for the Nagios Core web interface.
 %prep
 %setup -qc
 cd nagios-%{version}
-%patch0 -p1
-%patch1 -p1
+%patch -P0 -p1
+%patch -P1 -p1
 cd ..
 mv nagios-%{version}/contrib/exfoliation/* .
 # need some files from nagios tarball the way themes are made
diff --git a/remove-information-leak.patch b/remove-information-leak.patch
index d9b9633..95c13cd 100644
--- a/remove-information-leak.patch
+++ b/remove-information-leak.patch
@@ -89,7 +89,7 @@ diff -ur nagios-4.5.3.org/cgi/tac.c nagios-4.5.3/cgi/tac.c
 diff -ur nagios-4.5.3.org/html/main.php nagios-4.5.3/html/main.php
 --- nagios-4.5.3.org/html/main.php	2024-06-11 16:50:20.000000000 +0200
 +++ nagios-4.5.3/html/main.php	2024-08-01 12:21:25.903304305 +0200
-@@ -19,35 +19,7 @@
+@@ -23,21 +23,7 @@ if ($theme != 'dark' && $theme != 'light
  
  <script type='text/javascript'>
  	var cookie;
@@ -100,60 +100,18 @@ diff -ur nagios-4.5.3.org/html/main.php nagios-4.5.3/html/main.php
 -						"Click here to watch the entire Nagios Core 4 Tour!</a>";
 -	<?php } ?>
  	$(document).ready(function() {
--		var user = "<?php echo htmlspecialchars($_SERVER['REMOTE_USER']); ?>";
+-		var user = "<?php echo htmlspecialchars($_SERVER['REMOTE_USER'] ?? ''); ?>";
 -
 -		<?php if ($cfg["enable_page_tour"]) { ?>
 -			vBoxId += ";" + user;
 -			vbox = new vidbox({pos:'lr',vidurl:'https://www.youtube.com/embed/2hVBAet-XpY',
 -								text:vboxText,vidid:vBoxId});
 -		<?php } ?>
--		loadRemoteFeed( // Our top banner splash.
--			'#splashbox0-contents', 'corebanner', 1,
--			'', processBannerItem, ''
--		);
--
--		loadRemoteFeed( // "Latest News"
--			'#splashbox4-contents', 'frontpage', 3,
--			'<ul>', processNewsItem, '<li><a href="https://www.nagios.org/news" target="_blank">More news...</a></li></ul>'
--		);
--
--		loadRemoteFeed( // "Don't Miss..."
--			'#splashbox5-contents', 'corepromo', 3,
--			'<ul>', processPromoItem, '</ul>'
--		);
 -
  		getCoreStatus();
  	});
  
-@@ -59,7 +31,6 @@
- 			crossDomain: true,
- 			success: function(d, status, jqXHR) {
- 				// We should have Internet access, set the playlist HTML.
--				initializePlaylist();
- 
- 				var text = ''; // Start with empty text by default.
- 
-@@ -94,19 +65,6 @@
- 			: '';
- 	}
- 
--
--	// Set our playlist HTML when we know we have Internet access.
--	var playlistInitialized = false;
--	function initializePlaylist() {
--		if (!playlistInitialized) {
--			playlistInitialized = true;
--			$('#splashbox3')
--				.addClass('splashbox3-full')
--				.removeClass('splashbox3-empty')
--				.html('<iframe width="100%" height="100%" src="//www.youtube.com/embed/videoseries?list=PLN-ryIrpC_mCUW1DFwZpxpAk00i60lSkE&iv_load_policy=3&rel=0" frameborder="0" allowfullscreen></iframe>');
--		}
--	}
--
- 	// Get the daemon status JSON.
- 	function getCoreStatus() {
- 		setCoreStatusHTML('passiveonly', 'Checking process status...');
-@@ -152,12 +110,11 @@
+@@ -81,12 +67,11 @@ if ($theme != 'dark' && $theme != 'light
  
  <div id="updateversioninfo">
  <?php
@@ -167,4 +125,4 @@ diff -ur nagios-4.5.3.org/html/main.php nagios-4.5.3/html/main.php
 +			<div class="submessage">Disabling update checks presents a possible security risk.  Visit <a href="https://www.nagios.org/" target="_blank">nagios.org</a> to check for updates manually.</a></div>
  		</div>
  <?php
- 	} else if (
+ 	} else if ($updateinfo['update_available'] && $this_version < $updateinfo['update_version']) {
================================================================

---- gitweb:

http://git.pld-linux.org/gitweb.cgi/packages/nagios-theme-exfoliation.git/commitdiff/fa5eb593bd5f85e97241af08cea7b8869f4fb042



More information about the pld-cvs-commit mailing list