Code

Working on 1.6.4 package
[pkg-nagvis.git] / debian / patches / config.dpatch
1 #! /bin/sh /usr/share/dpatch/dpatch-run
2 ## config.dpatch by Wolfgang Barth <wob@swobspace.net>
3 ##
4 ## All lines beginning with `## DP:' are a description of the patch.
5 ## DP: changes default configs
7 @DPATCH@
8 diff -urNad '--exclude=CVS' '--exclude=.svn' '--exclude=.git' '--exclude=.arch' '--exclude=.hg' '--exclude=_darcs' '--exclude=.bzr' nagvis-1.5.10~/etc/nagvis.ini.php-sample nagvis-1.5.10/etc/nagvis.ini.php-sample
9 --- nagvis-1.5.10~/etc/nagvis.ini.php-sample    2011-07-31 11:51:23.000000000 +0200
10 +++ nagvis-1.5.10/etc/nagvis.ini.php-sample     2011-09-26 16:24:19.000000000 +0200
11 @@ -108,7 +108,18 @@
12  ; Path definitions
13  [paths]
14  ; absolute physical NagVis path
15 -;base="/usr/local/nagvis/"
16 +base="/usr/share/nagvis/htdocs/"
17 +cfg="/etc/nagvis/"
18 +var="/var/cache/nagvis/"
19 +images="/var/lib/nagvis/images/"
20 +icon="/var/lib/nagvis/images/iconsets/"
21 +shape="/var/lib/nagvis/images/shapes/"
22 +map="/var/lib/nagvis/images/maps/"
23 +headertemplate="/etc/nagvis/templates/header/"
24 +hovertemplate="/etc/nagvis/templates/hover/"
25 +contexttemplate="/etc/nagvis/templates/context/"
26 +gadget="/etc/nagvis/gadgets"
27 +
28  ; absolute html NagVis path
29  ;htmlbase="/nagvis"
30  ; absolute html NagVis cgi path
31 @@ -280,7 +291,7 @@
32  ; The statushost needs to be given in the following format:
33  ;   "<backend_id>:<hostname>" -> e.g. "live_2:nagios"
34  ;statushost=""
35 -;socket="unix:/usr/local/nagios/var/rw/live"
36 +socket="unix:/var/lib/icinga/rw/live"
37  
38  ; Example definition for a MySQL backend
39  ; in this example the ID of the Backend is "ndomy_1" you can define another ID.
40 diff -urNad '--exclude=CVS' '--exclude=.svn' '--exclude=.git' '--exclude=.arch' '--exclude=.hg' '--exclude=_darcs' '--exclude=.bzr' nagvis-1.5.10~/share/server/core/defines/global.php nagvis-1.5.10/share/server/core/defines/global.php
41 --- nagvis-1.5.10~/share/server/core/defines/global.php 2011-07-31 11:51:23.000000000 +0200
42 +++ nagvis-1.5.10/share/server/core/defines/global.php  2011-09-26 16:27:28.000000000 +0200
43 @@ -64,7 +64,7 @@
44  define('DEBUGLEVEL', 6);
45  
46  // Path to the debug file
47 -define('DEBUGFILE', '../../../var/nagvis-debug.log');
48 +define('DEBUGFILE', '/var/log/nagvis-debug.log');
49  
50  // It is possible to define a second main configuration file
51  // to pre-define some options in a file the user may not be
52 @@ -78,8 +78,8 @@
53  // The last value wins.
54  //
55  // Path to the main configuration file
56 -define('CONST_MAINCFG', '../../../etc/nagvis.ini.php');
57 -define('CONST_MAINCFG_CACHE', '../../../var/nagvis.ini.php');
58 +define('CONST_MAINCFG', '/etc/nagvis/nagvis.ini.php');
59 +define('CONST_MAINCFG_CACHE', '/etc/nagvis/nagvis.ini.php');
60  
61  // Path to "site" main configuration file
62  //define('CONST_MAINCFG_SITE', '../../../etc/nagvis-site.ini.php');