diff --git a/.cvsignore b/.cvsignore index 65c421e..9cd8638 100644 --- a/.cvsignore +++ b/.cvsignore @@ -1 +1 @@ -munin-1.4.1.tar.gz +munin-1.4.2.tar.gz diff --git a/munin-1.4.2-fontfix.patch b/munin-1.4.2-fontfix.patch new file mode 100644 index 0000000..3b2ab34 --- /dev/null +++ b/munin-1.4.2-fontfix.patch @@ -0,0 +1,16 @@ +diff -aur ../munin-1.4.2.orig/master/lib/Munin/Master/GraphOld.pm ./master/lib/Munin/Master/GraphOld.pm +--- ../munin-1.4.2.orig/master/lib/Munin/Master/GraphOld.pm 2009-12-16 15:53:28.000000000 +0100 ++++ ./master/lib/Munin/Master/GraphOld.pm 2009-12-17 11:22:44.753518725 +0100 +@@ -1299,9 +1299,9 @@ + # The RRD 1.2 documentation says you can identify font family + # names but I never got that to work, but full font path worked + return ( +- '--font', "LEGEND:7:$libdir/DejaVuSansMono.ttf", +- '--font', "UNIT:7:$libdir/DejaVuSans.ttf", +- '--font', "AXIS:7:$libdir/DejaVuSans.ttf", ++ '--font', "LEGEND:7:/usr/share/fonts/bitstream-vera/VeraMono.ttf", ++ '--font', "UNIT:7:/usr/share/fonts/bitstream-vera/VeraMono.ttf", ++ '--font', "AXIS:7:/usr/share/fonts/bitstream-vera/VeraMono.ttf", + ); + } elsif ($RRDs::VERSION >= 1.3) { + # RRD 1.3 and up diff --git a/munin.spec b/munin.spec index 81b9f24..35382e8 100644 --- a/munin.spec +++ b/munin.spec @@ -1,6 +1,6 @@ Name: munin -Version: 1.4.1 -Release: 3%{?dist} +Version: 1.4.2 +Release: 1%{?dist} Summary: Network-wide graphing framework (grapher/gatherer) License: GPLv2 and Bitstream Vera Group: System Environment/Daemons @@ -11,7 +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 +Patch2: munin-1.4.2-fontfix.patch Source1: munin-1.2.4-sendmail-config Source2: munin-1.2.5-hddtemp_smartctl-config @@ -121,7 +121,9 @@ java-plugins for munin-node. %prep %setup -q %patch1 -p1 +%if 0%{?rhel} < 6 && 0%{?fedora} < 11 %patch2 -p0 +%endif %build %if 0%{?rhel} > 4 || 0%{?fedora} > 6 @@ -184,13 +186,9 @@ install -m 0644 %{SOURCE4} %{buildroot}/etc/logrotate.d/munin # install config for postfix under fedora 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} > 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 -%endif +# Use system font +rm -f $RPM_BUILD_ROOT/%{_datadir}/munin/DejaVuSansMono.ttf +rm -f $RPM_BUILD_ROOT/%{_datadir}/munin/DejaVuSans.ttf %clean rm -rf $RPM_BUILD_ROOT @@ -234,7 +232,6 @@ exit 0 %{_datadir}/munin/munin-html %{_datadir}/munin/munin-limits %{_datadir}/munin/munin-update -%{_datadir}/munin/VeraMono.ttf %{perl_vendorlib}/Munin/Master %dir /etc/munin/templates %dir /etc/munin @@ -289,6 +286,12 @@ exit 0 %endif %changelog +* Thu Dec 17 2009 Ingvar Hagelund - 1.4.2-1 +- New upstream release +- Removed upstream packaged fonts +- Added a patch that makes rrdtool use the system bitstream vera fonts on + rhel < 6 and fedora < 11 + * 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 diff --git a/sources b/sources index c378b32..90482ec 100644 --- a/sources +++ b/sources @@ -1 +1 @@ -04086f23b657e05e4e5e5a8fa6082f16 munin-1.4.1.tar.gz +656f0b25af119841b610cac9682d7e54 munin-1.4.2.tar.gz