From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from lists.gentoo.org (pigeon.gentoo.org [208.92.234.80]) by finch.gentoo.org (Postfix) with ESMTP id 485C3138206 for ; Tue, 26 Apr 2016 00:30:36 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id 70C4A21C001; Tue, 26 Apr 2016 00:30:34 +0000 (UTC) Received: from smtp.gentoo.org (smtp.gentoo.org [140.211.166.183]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by pigeon.gentoo.org (Postfix) with ESMTPS id CEE3621C001 for ; Tue, 26 Apr 2016 00:30:33 +0000 (UTC) Received: from oystercatcher.gentoo.org (oystercatcher.gentoo.org [148.251.78.52]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.gentoo.org (Postfix) with ESMTPS id 21472340A2B for ; Tue, 26 Apr 2016 00:30:32 +0000 (UTC) Received: from localhost.localdomain (localhost [127.0.0.1]) by oystercatcher.gentoo.org (Postfix) with ESMTP id C4EE5960 for ; Tue, 26 Apr 2016 00:30:30 +0000 (UTC) From: "Michael Orlitzky" To: gentoo-commits@lists.gentoo.org Content-Transfer-Encoding: 8bit Content-type: text/plain; charset=UTF-8 Reply-To: gentoo-dev@lists.gentoo.org, "Michael Orlitzky" Message-ID: <1461630545.a299e275255caae5bb040d250763c746340b8336.mjo@gentoo> Subject: [gentoo-commits] repo/gentoo:master commit in: net-analyzer/nagios-core/files/, net-analyzer/nagios-core/ X-VCS-Repository: repo/gentoo X-VCS-Files: net-analyzer/nagios-core/files/use-INSTALL-to-install-themes-r1.patch net-analyzer/nagios-core/nagios-core-4.1.1-r1.ebuild net-analyzer/nagios-core/nagios-core-4.1.1.ebuild X-VCS-Directories: net-analyzer/nagios-core/ net-analyzer/nagios-core/files/ X-VCS-Committer: mjo X-VCS-Committer-Name: Michael Orlitzky X-VCS-Revision: a299e275255caae5bb040d250763c746340b8336 X-VCS-Branch: master Date: Tue, 26 Apr 2016 00:30:30 +0000 (UTC) Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-Id: Gentoo Linux mail X-BeenThere: gentoo-commits@lists.gentoo.org X-Archives-Salt: ee80803f-a7c7-4d98-b22b-0a71a63197d1 X-Archives-Hash: 0c1849f37c1007afd7c35eac4b4c1c0d commit: a299e275255caae5bb040d250763c746340b8336 Author: Michael Orlitzky gentoo org> AuthorDate: Tue Apr 26 00:23:28 2016 +0000 Commit: Michael Orlitzky gentoo org> CommitDate: Tue Apr 26 00:29:05 2016 +0000 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=a299e275 net-analyzer/nagios-core: new patch and revision to fix logo installation. The fix for bug 388321 required a patch, but that patch broke the installation of the theme logos (which live in their own directory). That patch has been updated as a new revision, use-INSTALL-to-install-themes-r1.patch, to avoid impacting nagios-core-4.0.8-r2.ebuild which is stable on amd64. The new revision nagios-4.1.1-r1 should pick up the new patch. Gentoo-Bug: 388321 Gentoo-Bug: 581148 Package-Manager: portage-2.2.26 .../files/use-INSTALL-to-install-themes-r1.patch | 65 ++++++++++++++++++++++ ...re-4.1.1.ebuild => nagios-core-4.1.1-r1.ebuild} | 6 +- 2 files changed, 68 insertions(+), 3 deletions(-) diff --git a/net-analyzer/nagios-core/files/use-INSTALL-to-install-themes-r1.patch b/net-analyzer/nagios-core/files/use-INSTALL-to-install-themes-r1.patch new file mode 100644 index 0000000..a14f5a3 --- /dev/null +++ b/net-analyzer/nagios-core/files/use-INSTALL-to-install-themes-r1.patch @@ -0,0 +1,65 @@ +From b6552e3b0b006fa28014150d199813de12d89ef4 Mon Sep 17 00:00:00 2001 +From: Michael Orlitzky +Date: Mon, 25 Apr 2016 20:06:18 -0400 +Subject: [PATCH 1/1] Use $(INSTALL) to install themes. + +Most of the images installed under the htdocs folder are installed +mode 644 with owner:group nagios:nagios. This is due to the use of +$(INSTALL) in html/Makefile. However, the theme images and stylesheets +are currently installed with a simple "cp -r", which leads to +inconsistencies like the following: + + $ cd /usr/share/nagios/htdocs/images + $ ls action*.gif + -rw-rw-r-- 1 nagios nagios 1.3K 2014-11-12 08:22 action.gif + -rw-r--r-- 1 root root 1.3K 2014-11-12 08:22 action-graph.gif + -rw-r--r-- 1 root root 171 2014-11-12 08:22 action-nagios.gif + -rw-r--r-- 1 root root 162 2014-11-12 08:22 action-orig.gif + +By using $(INSTALL) in the install-exfoliation and install-classicui +targets, we enforce some consistency. +--- + Makefile.in | 20 ++++++++++++++++---- + 1 file changed, 16 insertions(+), 4 deletions(-) + +diff --git a/Makefile.in b/Makefile.in +index 5b97513..0ec50b7 100644 +--- a/Makefile.in ++++ b/Makefile.in +@@ -300,8 +300,14 @@ install-webconf: + @echo "" + + install-exfoliation: +- cp -rf contrib/exfoliation/stylesheets/* $(DESTDIR)$(HTMLDIR)/stylesheets +- cp -rf contrib/exfoliation/images/* $(DESTDIR)$(HTMLDIR)/images ++ for file in contrib/exfoliation/stylesheets/*.*; \ ++ do $(INSTALL) -m 664 $(INSTALL_OPTS) $$file $(DESTDIR)$(HTMLDIR)/stylesheets; done ++ ++ for file in contrib/exfoliation/images/*.*; \ ++ do $(INSTALL) -m 664 $(INSTALL_OPTS) $$file $(DESTDIR)$(HTMLDIR)/images; done ++ ++ for file in contrib/exfoliation/images/logos/*.*; \ ++ do $(INSTALL) -m 664 $(INSTALL_OPTS) $$file $(DESTDIR)$(HTMLDIR)/images/logos; done + + @echo "" + @echo "*** Exfoliation theme installed ***" +@@ -309,8 +315,14 @@ install-exfoliation: + @echo "" + + install-classicui: +- cp -rf html/stylesheets/* $(DESTDIR)$(HTMLDIR)/stylesheets +- cp -rf html/images/* $(DESTDIR)$(HTMLDIR)/images ++ for file in html/stylesheets/*.*; \ ++ do $(INSTALL) -m 664 $(INSTALL_OPTS) $$file $(DESTDIR)$(HTMLDIR)/stylesheets; done ++ ++ for file in html/images/*.*; \ ++ do $(INSTALL) -m 664 $(INSTALL_OPTS) $$file $(DESTDIR)$(HTMLDIR)/images; done ++ ++ for file in html/images/logos/*.*; \ ++ do $(INSTALL) -m 664 $(INSTALL_OPTS) $$file $(DESTDIR)$(HTMLDIR)/images/logos; done + + @echo "" + @echo "*** Classic theme installed ***" +-- +2.7.3 + diff --git a/net-analyzer/nagios-core/nagios-core-4.1.1.ebuild b/net-analyzer/nagios-core/nagios-core-4.1.1-r1.ebuild similarity index 98% rename from net-analyzer/nagios-core/nagios-core-4.1.1.ebuild rename to net-analyzer/nagios-core/nagios-core-4.1.1-r1.ebuild index 69a4faa..748ef0e 100644 --- a/net-analyzer/nagios-core/nagios-core-4.1.1.ebuild +++ b/net-analyzer/nagios-core/nagios-core-4.1.1-r1.ebuild @@ -1,4 +1,4 @@ -# Copyright 1999-2015 Gentoo Foundation +# Copyright 1999-2016 Gentoo Foundation # Distributed under the terms of the GNU General Public License v2 # $Id$ @@ -92,9 +92,9 @@ src_prepare(){ # # http://tracker.nagios.org/view.php?id=651 # - # Gentoo bug #388321. + # Gentoo bugs #388321 and #581148. # - epatch "${FILESDIR}"/use-INSTALL-to-install-themes.patch + epatch "${FILESDIR}"/use-INSTALL-to-install-themes-r1.patch } src_configure() {