Code

2d0e76ce2dd34f53978b4cdb4064486bbd5cff1c
[pkg-nagvis.git] / debian / patches / 10_pathnames.dpatch
1 #! /bin/sh /usr/share/dpatch/dpatch-run
2 ## 10_pathnames.dpatch by Wolfgang Barth <wob@swobspace.net>
3 ##
4 ## All lines beginning with `## DP:' are a description of the patch.
5 ## DP: No description.
7 @DPATCH@
8 diff -urNad nagvis-1.4.6~/etc/nagvis.ini.php-sample nagvis-1.4.6/etc/nagvis.ini.php-sample
9 --- nagvis-1.4.6~/etc/nagvis.ini.php-sample     2010-02-04 21:51:13.000000000 +0100
10 +++ nagvis-1.4.6/etc/nagvis.ini.php-sample      2010-03-01 18:40:01.000000000 +0100
11 @@ -24,17 +24,26 @@
12  
13  ; Path definitions
14  [paths]
15 -; absolute physical NagVis path
16 -;base="/usr/local/nagios/share/nagvis/"
17 +base="/usr/share/nagvis/htdocs/"
18 +cfg="/etc/nagvis/"
19 +var="/var/cache/nagvis/"
20 +mapcfg="/etc/nagvis/maps/"
21 +images="/var/lib/nagvis/images/"
22 +icon="/var/lib/nagvis/images/iconsets/"
23 +shape="/var/lib/nagvis/images/shapes/"
24 +map="/var/lib/nagvis/images/maps/"
25 +headertemplate="/etc/nagvis/templates/header/"
26 +hovertemplate="/etc/nagvis/templates/hover/"
27 +contexttemplate="/etc/nagvis/templates/context/"
28  ; absolute html NagVis path
29 -;htmlbase="/nagios/nagvis"
30 +htmlbase="/nagvis"
31  ; absolute html NagVis cgi path
32 -;htmlcgi="/nagios/cgi-bin"
33 +htmlcgi="/nagios3/cgi-bin"
34  
35  ; Default values which get inherited to the maps and its objects
36  [defaults]
37  ; default backend (id of the default backend)
38 -;backend="ndomy_1"
39 +backend="ndomy_1"
40  ; background color of maps
41  ;backgroundcolor="#fff"
42  ; Enable/Disable the context menu on map objects. With the context menu you are
43 @@ -158,8 +168,8 @@
44  ; ----------------------------
45  
46  ; Example definition of a livestatus backend. In this case the backend_id is live_1
47 -[backend_live_1]
48 -backendtype="mklivestatus"
49 +;[backend_live_1]
50 +;backendtype="mklivestatus"
51  ;socket="unix:/usr/local/nagios/var/rw/live"
52  
53  ; in this example the ID of the Backend is "ndomy_1" you can define another ID.
54 @@ -186,9 +196,9 @@
55  ;htmlcgi="/nagios/cgi-bin"
56  
57  ; in this example the ID of the Backend is "ndo2fs_1" you can define another ID.
58 -[backend_ndo2fs_1]
59 +;[backend_ndo2fs_1]
60  ; type of backend - MUST be set
61 -backendtype="ndo2fs"
62 +;backendtype="ndo2fs"
63  ; Path to the ndo2fs var directory where the VOLATILE and PERSISTENT directories are
64  ;path="/usr/local/ndo2fs/var"
65  ; Name of the instance to get the data from
66 @@ -223,12 +233,12 @@
67  
68  ; in this example the browser switches between the maps demo and demo2 every 15
69  ; seconds, the rotation is enabled by url: index.php?rotation=demo
70 -[rotation_demo]
71 +;[rotation_demo]
72  ; These steps are rotated. The "Demo2:" is a label which is being displayed in
73  ; the index pages rotation list.
74 -maps="demo,Demo2:demo2"
75 +;maps="demo,Demo2:demo2"
76  ; rotation interval (seconds)
77 -interval=15
78 +;interval=15
79  
80  ; ------------------------------------------------------------------------------
81  ; Below you find some advanced stuff
82 diff -urNad nagvis-1.4.6~/nagvis/includes/defines/global.php nagvis-1.4.6/nagvis/includes/defines/global.php
83 --- nagvis-1.4.6~/nagvis/includes/defines/global.php    2010-02-04 21:51:13.000000000 +0100
84 +++ nagvis-1.4.6/nagvis/includes/defines/global.php     2010-03-01 18:39:30.000000000 +0100
85 @@ -61,13 +61,13 @@
86  define('DEBUGLEVEL', 4);
87  
88  // Path to the debug file
89 -define('DEBUGFILE', '../var/nagvis-debug.log');
90 +define('DEBUGFILE', '/var/log/nagvis-debug.log');
91  
92  // NagVis Version
93  define('CONST_VERSION', '1.4.6');
94  
95  // Path to the main configuration file
96 -define('CONST_MAINCFG', '../etc/nagvis.ini.php');
97 +define('CONST_MAINCFG', '/etc/nagvis/nagvis.ini.php');
98  
99  // Needed minimal PHP version
100  define('CONST_NEEDED_PHP_VERSION', '5.0');