From 2076a93c965b35221327bc6becc61eca835305ce Mon Sep 17 00:00:00 2001 From: Ingvar Hagelund Date: Dec 11 2009 13:53:39 +0000 Subject: - More correct fedora and el versions for previous font path fix - Added a patch that fixes a quoting bug in GraphOld.pm, fixing fonts on el4 --- diff --git a/munin-1.4.1-fontfix.patch b/munin-1.4.1-fontfix.patch new file mode 100644 index 0000000..2e53638 --- /dev/null +++ b/munin-1.4.1-fontfix.patch @@ -0,0 +1,19 @@ +diff -Naur ../munin-1.4.1.orig/master/lib/Munin/Master/GraphOld.pm ./master/lib/Munin/Master/GraphOld.pm +--- ../munin-1.4.1.orig/master/lib/Munin/Master/GraphOld.pm 2009-12-04 12:13:58.000000000 +0100 ++++ ./master/lib/Munin/Master/GraphOld.pm 2009-12-11 13:19:19.825500312 +0100 +@@ -1099,12 +1099,12 @@ + push(@complete, '--font', 'LEGEND:7:monospace'); + } + else { +- push(@complete, '--font', 'LEGEND:7:$libdir/VeraMono.ttf'); ++ push(@complete, '--font', "LEGEND:7:$libdir/VeraMono.ttf"); + } + + push(@complete, +- '--font', 'UNIT:7:$libdir/VeraMono.ttf', +- '--font', 'AXIS:7:$libdir/VeraMono.ttf'); ++ '--font', "UNIT:7:$libdir/VeraMono.ttf", ++ '--font', "AXIS:7:$libdir/VeraMono.ttf"); + } + + push(@complete, '-W', $watermark) if $RRDs::VERSION >= 1.2; diff --git a/munin.spec b/munin.spec index 659ca88..81b9f24 100644 --- a/munin.spec +++ b/munin.spec @@ -1,6 +1,6 @@ Name: munin Version: 1.4.1 -Release: 2%{?dist} +Release: 3%{?dist} Summary: Network-wide graphing framework (grapher/gatherer) License: GPLv2 and Bitstream Vera Group: System Environment/Daemons @@ -11,6 +11,7 @@ BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n) Source0: http://downloads.sourceforge.net/sourceforge/munin/%{name}-%{version}.tar.gz Patch1: munin-1.4.0-config.patch +Patch2: munin-1.4.1-fontfix.patch Source1: munin-1.2.4-sendmail-config Source2: munin-1.2.5-hddtemp_smartctl-config @@ -38,7 +39,11 @@ Requires: logrotate Requires: /bin/mail Requires(pre): shadow-utils Requires: perl(:MODULE_COMPAT_%(eval "`%{__perl} -V:version`"; echo $version)) +%if 0%{?rhel} > 5 || 0%{?fedora} > 6 Requires: dejavu-sans-mono-fonts +%else +Requires: bitstream-vera-fonts +%endif %description Munin is a highly flexible and powerful solution used to create graphs of @@ -116,6 +121,7 @@ java-plugins for munin-node. %prep %setup -q %patch1 -p1 +%patch2 -p0 %build %if 0%{?rhel} > 4 || 0%{?fedora} > 6 @@ -180,7 +186,7 @@ install -m 0644 %{SOURCE6} %{buildroot}/etc/munin/plugin-conf.d/postfix # Use font from bitstream-vera-fonts-sans-mono rm -f $RPM_BUILD_ROOT/%{_datadir}/munin/VeraMono.ttf -%if 0%{?rhel} > 0 || 0%{?fedora} > 10 +%if 0%{?rhel} > 5 || 0%{?fedora} > 6 ln -s /usr/share/fonts/dejavu/DejaVuSansMono.ttf $RPM_BUILD_ROOT/%{_datadir}/munin/VeraMono.ttf %else ln -s /usr/share/fonts/bitstream-vera/VeraMono.ttf $RPM_BUILD_ROOT/%{_datadir}/munin/VeraMono.ttf @@ -283,6 +289,10 @@ exit 0 %endif %changelog +* Fri Dec 11 2009 Ingvar Hagelund - 1.4.1-3 +- More correct fedora and el versions for previous font path fix +- Added a patch that fixes a quoting bug in GraphOld.pm, fixing fonts on el4 + * Wed Dec 09 2009 Ingvar Hagelund - 1.4.1-2 - Remove jmx plugins when not supported (like on el4 and older fedora) - Correct font path on older distros like el5, el4 and fedora<11