summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRobin H. Johnson <robbat2@gentoo.org>2008-06-12 04:01:55 +0000
committerRobin H. Johnson <robbat2@gentoo.org>2008-06-12 04:01:55 +0000
commitfaabb2cb0f6a3775953120a0e2910164f7aff953 (patch)
tree4102c90c8cd5d1d185e625be9415814b972c34de /net-analyzer/munin/files
parentVersion bump. (diff)
downloadgentoo-2-faabb2cb0f6a3775953120a0e2910164f7aff953.tar.gz
gentoo-2-faabb2cb0f6a3775953120a0e2910164f7aff953.tar.bz2
gentoo-2-faabb2cb0f6a3775953120a0e2910164f7aff953.zip
Resolve bug #225671 and also clean up USE flags to better represent the new 1.3.4 version. Commit was missed two days ago, due to my desktop crashing.
(Portage version: 2.1.5.4)
Diffstat (limited to 'net-analyzer/munin/files')
-rw-r--r--net-analyzer/munin/files/munin-1.3.4-no-html-if-no-input.patch19
1 files changed, 19 insertions, 0 deletions
diff --git a/net-analyzer/munin/files/munin-1.3.4-no-html-if-no-input.patch b/net-analyzer/munin/files/munin-1.3.4-no-html-if-no-input.patch
new file mode 100644
index 000000000000..c22854f55703
--- /dev/null
+++ b/net-analyzer/munin/files/munin-1.3.4-no-html-if-no-input.patch
@@ -0,0 +1,19 @@
+If munin-update has not yet produced any RRD files, then we cannot produce HTML
+output yet.
+
+Signed-off-by: Robin H. Johnson <robbat2@gentoo.org>
+
+diff -Nuar munin-1.3.4.orig/server/munin-html.in munin-1.3.4/server/munin-html.in
+--- munin-1.3.4.orig/server/munin-html.in 2008-03-07 17:42:40.000000000 -0800
++++ munin-1.3.4/server/munin-html.in 2008-06-09 14:30:23.000000000 -0700
+@@ -154,6 +154,10 @@
+ $groups = $groups->{"groups"}; # root->groups
+ }
+
++if(scalar(keys(%$groups)) == 0) {
++ die "No data available from munin-update yet";
++}
++
+ # Draw main index
+ my $template = HTML::Template->new(filename => "$config->{tmpldir}/munin-overview.tmpl",
+ die_on_bad_params => 0,