File: 100-DejaVu-Fonts-Path.patch

package info (click to toggle)
munin 1.4.5-3+deb6u1
  • links: PTS, VCS
  • area: main
  • in suites: squeeze-lts
  • size: 4,988 kB
  • ctags: 806
  • sloc: perl: 8,936; sh: 3,105; java: 1,754; makefile: 585; python: 143
file content (32 lines) | stat: -rw-r--r-- 1,359 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
Description: Debian specific patch, to explicitly configure
 rrd 1.2 to use the debian provided DejaVuSans*.ttf fonts, as 
 we removed the ones provided by munin in order to avoid 
 duplication.

 This is a rewrite of a similar patch, which was removed at
 http://munin-monitoring.org/changeset/3215 & 
 http://munin-monitoring.org/changeset/3238.

Origin: other
Bug-Debian: http://bugs.debian.org/578782
Forwarded: no
Author: Tom Feiner <feiner.tom@gmail.com>
Last-Update: 2010-04-22
Index: munin-1.4.4/master/lib/Munin/Master/GraphOld.pm
===================================================================
--- munin-1.4.4.orig/master/lib/Munin/Master/GraphOld.pm	(revision 3505)
+++ munin-1.4.4/master/lib/Munin/Master/GraphOld.pm	(working copy)
@@ -1304,9 +1304,10 @@
 	# 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/truetype/ttf-dejavu/DejaVuSansMono.ttf",
+		'--font', "UNIT:7:/usr/share/fonts/truetype/ttf-dejavu/DejaVuSans.ttf",
+		'--font', "AXIS:7:/usr/share/fonts/truetype/ttf-dejavu/DejaVuSans.ttf",
+
 	       );
     } elsif ($RRDs::VERSION >= 1.3) {
 	# RRD 1.3 and up