Code

new upstream, various fixes
authorhfrenzel-guest <hfrenzel-guest@98d490a6-b407-0410-aaaa-fdee166ba3f5>
Thu, 10 Jan 2008 12:02:44 +0000 (12:02 +0000)
committerhfrenzel-guest <hfrenzel-guest@98d490a6-b407-0410-aaaa-fdee166ba3f5>
Thu, 10 Jan 2008 12:02:44 +0000 (12:02 +0000)
git-svn-id: svn://svn.debian.org/svn/pkg-nagios/nagvis/trunk@1303 98d490a6-b407-0410-aaaa-fdee166ba3f5

debian/changelog
debian/control
debian/examples
debian/patches/pathnames.dpatch
debian/postinst
debian/postrm
debian/rules

index 8596aa4427040554b2c3eebb08060dfd645b8602..137d8d0adea13e0c0d2a9bcd75efd8ac75ea96b5 100644 (file)
@@ -1,3 +1,13 @@
+nagvis (1:1.2.1-1) unstable; urgency=low
+
+  * New upstream version
+  * Update Standards-Version to 3.7.3.
+  * Enabled DM-Upload
+  * Removed old Homepage stanza in debian/control
+  * Removed bashism in debian/rules
+
+ -- Hendrik Frenzel <hfrenzel@scunc.net>  Thu, 10 Jan 2008 01:09:06 +0100
+
 nagvis (1:1.1-6) unstable; urgency=low
 
   * fixed lintian redundant-origin-field warning
index cbeb8c1fc0943c864f1cd20c7410aa17cf80a63d..dc1b62879974084b9765b2e78b6a8811084694ec 100644 (file)
@@ -4,10 +4,11 @@ Priority: extra
 Maintainer: Hendrik Frenzel <hfrenzel@scunc.net>
 Uploaders: Debian Nagios Maintainer Group <pkg-nagios-devel@lists.alioth.debian.org>
 Build-Depends: debhelper (>= 5), dpatch
-Standards-Version: 3.7.2
+Standards-Version: 3.7.3
 Homepage: http://www.nagvis.org
 Vcs-Svn: svn://svn.debian.org/svn/pkg-nagios/nagvis/trunk/
 Vcs-Browser: http://svn.debian.org/wsvn/pkg-nagios/nagvis/trunk/
+Dm-Upload-Allowed: yes
 
 Package: nagvis
 Architecture: all
@@ -25,5 +26,3 @@ Description: Visualization addon for Nagios
   * Define Sub-Map icons wich represent a complete NagVis Map of
     Hosts/Services/Groups in one icon (drill down)
   * Visualization of complete IT Processes using self drawn graphics
- .
-  Homepage: http://www.nagvis.org
index fa0fd9bfe668b82142906dd1eebc032151fe028b..0d3332484e2cf3a3f02111925808b98bce330a7c 100644 (file)
@@ -1,3 +1 @@
-dist/class.GlobalBackend-html.php
-dist/class.GlobalBackend-html.readme
 debian/tmp/demo
index 8cb6a4f05da92fa0812bdc7075cf30d4f08e36da..17a4478d1d1dca3add8676110c8d3a622708fd63 100755 (executable)
 ## DP: No description.
 
 @DPATCH@
-diff -urNad nagvis-1.1rc3~/nagvis/draw.php nagvis-1.1rc3/nagvis/draw.php
---- nagvis-1.1rc3~/nagvis/draw.php     2007-04-14 20:56:59.000000000 +0200
-+++ nagvis-1.1rc3/nagvis/draw.php      2007-07-24 19:59:28.000000000 +0200
-@@ -12,20 +12,20 @@
- ## For developer guidlines have a look at http://www.nagvis.org                       ##
- ##########################################################################
--require("./includes/classes/class.GlobalDebug.php");
--require("./includes/classes/class.GlobalGraphic.php");
--require("./includes/classes/class.GlobalMainCfg.php");
--require("./includes/classes/class.GlobalMapCfg.php");
--require("./includes/classes/class.GlobalMap.php");
--require("./includes/classes/class.GlobalPage.php");
--require("./includes/classes/class.GlobalLanguage.php");
--require("./includes/classes/class.GlobalBackendMgmt.php");
-+require("/usr/share/nagvis/includes/classes/class.GlobalDebug.php");
-+require("/usr/share/nagvis/includes/classes/class.GlobalGraphic.php");
-+require("/usr/share/nagvis/includes/classes/class.GlobalMainCfg.php");
-+require("/usr/share/nagvis/includes/classes/class.GlobalMapCfg.php");
-+require("/usr/share/nagvis/includes/classes/class.GlobalMap.php");
-+require("/usr/share/nagvis/includes/classes/class.GlobalPage.php");
-+require("/usr/share/nagvis/includes/classes/class.GlobalLanguage.php");
-+require("/usr/share/nagvis/includes/classes/class.GlobalBackendMgmt.php");
--require("./includes/classes/class.NagVisMap.php");
--require("./includes/classes/class.NagVisBackground.php");
--require("./includes/classes/class.NagVisMapCfg.php");
-+require("/usr/share/nagvis/includes/classes/class.NagVisMap.php");
-+require("/usr/share/nagvis/includes/classes/class.NagVisBackground.php");
-+require("/usr/share/nagvis/includes/classes/class.NagVisMapCfg.php");
--$MAINCFG = new GlobalMainCfg('./etc/config.ini.php');
-+$MAINCFG = new GlobalMainCfg('/etc/nagvis/config.ini.php');
- $MAPCFG = new NagVisMapCfg($MAINCFG,$_GET['map']);
- $MAPCFG->readMapConfig();
-@@ -37,4 +37,4 @@
- $BACKGROUND = new NagVisBackground($MAINCFG,$MAPCFG,$LANG,$BACKEND);
- $BACKGROUND->parseObjects();
- $BACKGROUND->parseMap();
--?>
-\ No newline at end of file
-+?>
-diff -urNad nagvis-1.1rc3~/nagvis/etc/config.ini.php.dist nagvis-1.1rc3/nagvis/etc/config.ini.php.dist
---- nagvis-1.1rc3~/nagvis/etc/config.ini.php.dist      2007-06-08 14:37:34.000000000 +0200
-+++ nagvis-1.1rc3/nagvis/etc/config.ini.php.dist       2007-07-24 19:59:28.000000000 +0200
-@@ -57,11 +57,11 @@
- ; path options
- [paths]
- ; absolute physical NagVis path
--;base="/usr/local/nagios/share/nagvis/"
-+;base="/usr/share/nagvis/htdocs"
- ; absolute html NagVis path
--;htmlbase="/nagios/nagvis"
-+;htmlbase="/nagios2/nagvis"
- ; absolute html NagVis cgi path
--;htmlcgi="/nagios/cgi-bin"
-+;htmlcgi="/nagios2/cgi-bin"
- ; options for the NDO-Backend
- ; in this example the ID of the Backend is "ndomy_1" you can define another ID.
-diff -urNad nagvis-1.1rc3~/nagvis/includes/classes/class.GlobalMainCfg.php nagvis-1.1rc3/nagvis/includes/classes/class.GlobalMainCfg.php
---- nagvis-1.1rc3~/nagvis/includes/classes/class.GlobalMainCfg.php     2007-07-24 00:31:44.000000000 +0200
-+++ nagvis-1.1rc3/nagvis/includes/classes/class.GlobalMainCfg.php      2007-07-24 19:59:28.000000000 +0200
-@@ -123,43 +123,43 @@
-                                                                                               'type' => 'string'),
-                                                       'htmlbase' => Array('must' => 1,
-                                                                                                'editable' => 1,
--                                                                                              'default' => '/nagios/nagvis',
-+                                                                                              'default' => '/nagios2/nagvis',
-                                                                                               'type' => 'string'),
-                                                       'htmlcgi' => Array('must' => 1,
-                                                                                                'editable' => 1,
--                                                                                              'default' => '/nagios/cgi-bin',
-+                                                                                              'default' => '/nagios2/cgi-bin',
-                                                                                               'type' => 'string'),
-                                                       'htmlimages' => Array('must' => 0,
-                                                                                                'editable' => 0,
--                                                                                              'default' => '/nagios/nagvis/nagvis/images/',
-+                                                                                              'default' => '/nagios2/nagvis/nagvis/images/',
-                                                                                               'type' => 'string'),
-                                                       'htmlhovertemplates' => Array('must' => 0,
-                                                                                                'editable' => 0,
--                                                                                              'default' => '/nagios/nagvis/nagvis/etc/templates/hover/',
-+                                                                                              'default' => '/nagios2/nagvis/nagvis/etc/templates/hover/',
-                                                                                               'type' => 'string'),
-                                                       'htmlheadertemplates' => Array('must' => 0,
-                                                                                                'editable' => 0,
--                                                                                              'default' => '/nagios/nagvis/nagvis/etc/templates/header/',
-+                                                                                              'default' => '/nagios2/nagvis/nagvis/etc/templates/header/',
-                                                                                               'type' => 'string'),                    
-                                                       'htmlhovertemplateimages' => Array('must' => 0,
-                                                                                                'editable' => 0,
--                                                                                              'default' => '/nagios/nagvis/nagvis/images/templates/hover/',
-+                                                                                              'default' => '/nagios2/nagvis/nagvis/images/templates/hover/',
-                                                                                               'type' => 'string'),
-                                                       'htmlheadertemplateimages' => Array('must' => 0,
-                                                                                                'editable' => 0,
--                                                                                              'default' => '/nagios/nagvis/nagvis/images/templates/header/',
-+                                                                                              'default' => '/nagios2/nagvis/nagvis/images/templates/header/',
-                                                                                               'type' => 'string'),
-                                                       'htmlicon' => Array('must' => 0,
-                                                                                                'editable' => 0,
--                                                                                              'default' => '/nagios/nagvis/nagvis/images/iconsets/',
-+                                                                                              'default' => '/nagios2/nagvis/nagvis/images/iconsets/',
-                                                                                               'type' => 'string'),
-                                                       'htmlshape' => Array('must' => 0,
-                                                                                                'editable' => 0,
--                                                                                              'default' => '/nagios/nagvis/nagvis/images/shape/',
-+                                                                                              'default' => '/nagvis/nagvis/images/shape/',
-                                                                                               'type' => 'string'),
-                                                       'htmlmap' => Array('must' => 0,
-                                                                                                'editable' => 0,
--                                                                                              'default' => '/nagios/nagvis/nagvis/images/maps/',
-+                                                                                              'default' => '/nagios2/nagvis/nagvis/images/maps/',
-                                                                                               'type' => 'string'),
-                                                       'htmldoku' => Array('must' => 1,
-                                                                                                'editable' => 0,
-@@ -216,7 +216,7 @@
-                                                                                                                                                                       'type' => 'string'),
-                                                                                                                               'cgi' => Array('must' => 1,
-                                                                                                                                                                        'editable' => 1,
--                                                                                                                                                                      'default' => '/usr/local/nagios/sbin/',
-+                                                                                                                                                                      'default' => '/usr/lib/cgi-bin/nagios2/',
-                                                                                                                                                                       'type' => 'string')))),
-                       'internal' => Array('version' => Array('must' => 1,
-                                                                                                'editable' => 0,
-@@ -251,11 +251,11 @@
-        * @author      Lars Michelsen <lars@vertical-visions.de>
-      */
-       function setPathsByBase($base,$htmlBase) {
--          $this->validConfig['paths']['cfg']['default'] = $base.'nagvis/etc/';
-+          $this->validConfig['paths']['cfg']['default'] = '/etc/nagvis/';
-               $this->validConfig['paths']['icon']['default'] = $base.'nagvis/images/iconsets/';
-               $this->validConfig['paths']['shape']['default'] = $base.'nagvis/images/shapes/';
--              $this->validConfig['paths']['language']['default'] = $base.'nagvis/includes/languages/';
--              $this->validConfig['paths']['class']['default'] = $base.'nagvis/includes/classes/';
-+              $this->validConfig['paths']['language']['default'] = $base.'nagvis/languages/';
-+              $this->validConfig['paths']['class']['default'] = '/usr/share/nagvis/includes/classes/';
-               $this->validConfig['paths']['map']['default'] = $base.'nagvis/images/maps/';
-               $this->validConfig['paths']['hovertemplate']['default'] = $base.'nagvis/etc/templates/hover/';
-               $this->validConfig['paths']['headertemplate']['default'] = $base.'nagvis/etc/templates/header/';
-diff -urNad nagvis-1.1rc3~/nagvis/includes/classes/class.NagVisFrontend.php nagvis-1.1rc3/nagvis/includes/classes/class.NagVisFrontend.php
---- nagvis-1.1rc3~/nagvis/includes/classes/class.NagVisFrontend.php    2007-07-11 15:55:47.000000000 +0200
-+++ nagvis-1.1rc3/nagvis/includes/classes/class.NagVisFrontend.php     2007-07-24 19:59:28.000000000 +0200
-@@ -25,8 +25,8 @@
-               $this->BACKEND = &$BACKEND;
-               $this->LANG = new GlobalLanguage($MAINCFG,'nagvis:global');
-               $prop = Array('title'=>$MAINCFG->getValue('internal', 'title'),
--                                        'cssIncludes'=>Array('./includes/css/style.css'),
--                                        'jsIncludes'=>Array('./includes/js/nagvis.js','./includes/js/overlib.js','./includes/js/overlib_shadow.js'),
-+                                        'cssIncludes'=>Array('css/style.css'),
-+                                        'jsIncludes'=>Array('js/nagvis.js','js/overlib.js','js/overlib_shadow.js'),
-                                         'extHeader'=>Array('<META http-equiv="refresh" CONTENT="'.$this->MAINCFG->getValue('global', 'refreshtime').';'.$this->getNextRotate().'">',
-                                                                               '<style type="text/css">body.main { background-color: '.$this->MAPCFG->getValue('global',0, 'background_color').'; }</style>'),
-                                         'allowedUsers'=> $this->MAPCFG->getValue('global',0, 'allowed_user'),
-diff -urNad nagvis-1.1rc3~/nagvis/index.php nagvis-1.1rc3/nagvis/index.php
---- nagvis-1.1rc3~/nagvis/index.php    2007-06-06 16:55:01.000000000 +0200
-+++ nagvis-1.1rc3/nagvis/index.php     2007-07-24 19:59:28.000000000 +0200
-@@ -12,20 +12,20 @@
- ## For developer guidlines have a look at http://www.nagvis.org                       ##
- ##########################################################################
--require("./includes/classes/class.GlobalDebug.php");
--require("./includes/classes/class.GlobalMainCfg.php");
--require("./includes/classes/class.GlobalMapCfg.php");
--require("./includes/classes/class.GlobalLanguage.php");
--require("./includes/classes/class.GlobalPage.php");
--require("./includes/classes/class.GlobalMap.php");
--require("./includes/classes/class.GlobalGraphic.php");
--require("./includes/classes/class.GlobalBackendMgmt.php");
-+require("/usr/share/nagvis/includes/classes/class.GlobalDebug.php");
-+require("/usr/share/nagvis/includes/classes/class.GlobalMainCfg.php");
-+require("/usr/share/nagvis/includes/classes/class.GlobalMapCfg.php");
-+require("/usr/share/nagvis/includes/classes/class.GlobalLanguage.php");
-+require("/usr/share/nagvis/includes/classes/class.GlobalPage.php");
-+require("/usr/share/nagvis/includes/classes/class.GlobalMap.php");
-+require("/usr/share/nagvis/includes/classes/class.GlobalGraphic.php");
-+require("/usr/share/nagvis/includes/classes/class.GlobalBackendMgmt.php");
--require("./includes/classes/class.NagVisMapCfg.php");
--require("./includes/classes/class.NagVisMap.php");
--require("./includes/classes/class.NagVisFrontend.php");
-+require("/usr/share/nagvis/includes/classes/class.NagVisMapCfg.php");
-+require("/usr/share/nagvis/includes/classes/class.NagVisMap.php");
-+require("/usr/share/nagvis/includes/classes/class.NagVisFrontend.php");
--$MAINCFG = new GlobalMainCfg('./etc/config.ini.php');
-+$MAINCFG = new GlobalMainCfg('/etc/nagvis/config.ini.php');
- if(!isset($_GET['map'])) {
-       $_GET['map'] = '';
-diff -urNad nagvis-1.1rc3~/wui/ajax_handler.php nagvis-1.1rc3/wui/ajax_handler.php
---- nagvis-1.1rc3~/wui/ajax_handler.php        2007-03-24 03:06:52.000000000 +0100
-+++ nagvis-1.1rc3/wui/ajax_handler.php 2007-07-24 19:59:28.000000000 +0200
-@@ -1,16 +1,16 @@
- <?php
--require("../nagvis/includes/classes/class.GlobalDebug.php");
--require("../nagvis/includes/classes/class.GlobalMainCfg.php");
--require("../nagvis/includes/classes/class.GlobalMapCfg.php");
--require("../nagvis/includes/classes/class.GlobalLanguage.php");
--require("../nagvis/includes/classes/class.GlobalPage.php");
--require("../nagvis/includes/classes/class.GlobalBackendMgmt.php");
-+require("/usr/share/nagvis/includes/classes/class.GlobalDebug.php");
-+require("/usr/share/nagvis/includes/classes/class.GlobalMainCfg.php");
-+require("/usr/share/nagvis/includes/classes/class.GlobalMapCfg.php");
-+require("/usr/share/nagvis/includes/classes/class.GlobalLanguage.php");
-+require("/usr/share/nagvis/includes/classes/class.GlobalPage.php");
-+require("/usr/share/nagvis/includes/classes/class.GlobalBackendMgmt.php");
--require("./includes/classes/class.WuiMainCfg.php");
--require("./includes/classes/class.WuiMapCfg.php");
-+require("/usr/share/nagvis/wui/includes/classes/class.WuiMainCfg.php");
-+require("/usr/share/nagvis/wui/includes/classes/class.WuiMapCfg.php");
--$MAINCFG = new WuiMainCfg('../nagvis/etc/config.ini.php');
-+$MAINCFG = new WuiMainCfg('/etc/nagvis/config.ini.php');
- switch($_GET['action']) {
-       case 'getObjects':
-diff -urNad nagvis-1.1rc3~/wui/includes/classes/class.WuiAddModify.php nagvis-1.1rc3/wui/includes/classes/class.WuiAddModify.php
---- nagvis-1.1rc3~/wui/includes/classes/class.WuiAddModify.php 2007-07-20 21:02:09.000000000 +0200
-+++ nagvis-1.1rc3/wui/includes/classes/class.WuiAddModify.php  2007-07-24 19:59:28.000000000 +0200
-@@ -29,10 +29,10 @@
-               $this->LANG = new GlobalLanguage($MAINCFG,'wui:addModify');
-               
-               $prop = Array('title'=>$MAINCFG->getValue('internal', 'title'),
--                                        'cssIncludes'=>Array('./includes/css/wui.css'),
--                                        'jsIncludes'=>Array('./includes/js/addmodify.js',
--                                                                                './includes/js/ajax.js',
--                                                                                './includes/js/wui.js'),
-+                                        'cssIncludes'=>Array('css/wui.css'),
-+                                        'jsIncludes'=>Array('js/addmodify.js',
-+                                                                                'js/ajax.js',
-+                                                                                'js/wui.js'),
-                                         'extHeader'=>Array(''),
-                                         'allowedUsers' => Array('EVERYONE'));
-               parent::GlobalPage($MAINCFG,$prop,'wui:addModify');
-diff -urNad nagvis-1.1rc3~/wui/includes/classes/class.WuiBackendManagement.php nagvis-1.1rc3/wui/includes/classes/class.WuiBackendManagement.php
---- nagvis-1.1rc3~/wui/includes/classes/class.WuiBackendManagement.php 2007-07-13 20:57:57.000000000 +0200
-+++ nagvis-1.1rc3/wui/includes/classes/class.WuiBackendManagement.php  2007-07-24 19:59:28.000000000 +0200
-@@ -26,10 +26,10 @@
-               $this->LANG = new GlobalLanguage($MAINCFG,'wui:backendManagement');
-               
-               $prop = Array('title'=>$MAINCFG->getValue('internal', 'title'),
--                                        'cssIncludes'=>Array('./includes/css/wui.css'),
--                                        'jsIncludes'=>Array('./includes/js/wui.js',
--                                                                                      './includes/js/BackendManagement.js',
--                                                                                      './includes/js/ajax.js'),
-+                                        'cssIncludes'=>Array('css/wui.css'),
-+                                        'jsIncludes'=>Array('js/wui.js',
-+                                                                                      'js/BackendManagement.js',
-+                                                                                      'js/ajax.js'),
-                                         'extHeader'=>Array(''),
-                                         'allowedUsers' => Array('EVERYONE'),
-                                         'languageRoot' => 'wui:backendManagement');
-@@ -277,4 +277,4 @@
-               return $ret;    
-       }
- }
--?>
-\ No newline at end of file
-+?>
-diff -urNad nagvis-1.1rc3~/wui/includes/classes/class.WuiBackgroundManagement.php nagvis-1.1rc3/wui/includes/classes/class.WuiBackgroundManagement.php
---- nagvis-1.1rc3~/wui/includes/classes/class.WuiBackgroundManagement.php      2007-07-13 20:57:57.000000000 +0200
-+++ nagvis-1.1rc3/wui/includes/classes/class.WuiBackgroundManagement.php       2007-07-24 19:59:28.000000000 +0200
-@@ -26,10 +26,10 @@
-               $this->LANG = new GlobalLanguage($MAINCFG,'wui:backgroundManagement');
-               
-               $prop = Array('title'=>$MAINCFG->getValue('internal', 'title'),
--                                        'cssIncludes'=>Array('./includes/css/wui.css'),
--                                        'jsIncludes'=>Array('./includes/js/BackgroundManagement.js',
--                                                                                      './includes/js/ajax.js',
--                                                                                      './includes/js/wui.js'),
-+                                        'cssIncludes'=>Array('css/wui.css'),
-+                                        'jsIncludes'=>Array('js/BackgroundManagement.js',
-+                                                                                      'js/ajax.js',
-+                                                                                      'js/wui.js'),
-                                         'extHeader'=>Array(''),
-                                         'allowedUsers' => Array('EVERYONE'),
-                                         'languageRoot' => 'wui:backgroundManagement');
-@@ -198,4 +198,4 @@
-               return $ret;    
-       }
- }
--?>
-\ No newline at end of file
-+?>
-diff -urNad nagvis-1.1rc3~/wui/includes/classes/class.WuiEditMainCfg.php nagvis-1.1rc3/wui/includes/classes/class.WuiEditMainCfg.php
---- nagvis-1.1rc3~/wui/includes/classes/class.WuiEditMainCfg.php       2007-07-13 20:57:57.000000000 +0200
-+++ nagvis-1.1rc3/wui/includes/classes/class.WuiEditMainCfg.php        2007-07-24 19:59:28.000000000 +0200
-@@ -23,8 +23,8 @@
-               $this->LANG = new GlobalLanguage($MAINCFG,'wui:editMainCfg');
-               
-               $prop = Array('title'=>$MAINCFG->getValue('internal', 'title'),
--                                        'cssIncludes'=>Array('./includes/css/wui.css'),
--                                        'jsIncludes'=>Array('./includes/js/wui.js'),
-+                                        'cssIncludes'=>Array('css/wui.css'),
-+                                        'jsIncludes'=>Array('js/wui.js'),
-                                         'extHeader'=>Array(''),
-                                         'allowedUsers' => Array('EVERYONE'),
-                                         'languageRoot' => 'wui:editMainCfg');
-@@ -289,4 +289,4 @@
-               return $ret;    
-       }
- }
--?>
-\ No newline at end of file
-+?>
-diff -urNad nagvis-1.1rc3~/wui/includes/classes/class.WuiFrontend.php nagvis-1.1rc3/wui/includes/classes/class.WuiFrontend.php
---- nagvis-1.1rc3~/wui/includes/classes/class.WuiFrontend.php  2007-07-11 22:54:50.000000000 +0200
-+++ nagvis-1.1rc3/wui/includes/classes/class.WuiFrontend.php   2007-07-24 20:01:38.000000000 +0200
-@@ -24,13 +24,13 @@
-               $this->LANG = new GlobalLanguage($this->MAINCFG,'wui:global');
-               
-               $prop = Array('title'=>$MAINCFG->getValue('internal', 'title'),
--                                        'cssIncludes'=>Array('../nagvis/includes/css/style.css','./includes/css/wui.css','./includes/css/office_xp/office_xp.css'),
--                                        'jsIncludes'=>Array('./includes/js/wui.js',
--                                                './includes/js/ajax.js',
--                                                './includes/js/jsdomenu.js',
--                                                './includes/js/jsdomenu.inc.js',
--                                                './includes/js/wz_jsgraphics.js',
--                                                './includes/js/wz_dragdrop.js'),
-+                                        'cssIncludes'=>Array('../nagvis/css/style.css','css/wui.css','css/office_xp/office_xp.css'),
-+                                        'jsIncludes'=>Array('js/wui.js',
-+                                                'js/ajax.js',
-+                                                'js/jsdomenu.js',
-+                                                'js/jsdomenu.inc.js',
-+                                                'js/wz_jsgraphics.js',
-+                                                'js/wz_dragdrop.js'),
-                                         'extHeader'=>Array("<style type=\"text/css\">body.main { background-color: ".$this->MAPCFG->getValue('global',0, 'background_color')."; }</style>"),
-                                         'allowedUsers' => $this->MAPCFG->getValue('global', 0,'allowed_for_config'),
-                                         'languageRoot' => 'wui:global');
-diff -urNad nagvis-1.1rc3~/wui/includes/classes/class.WuiMap.php nagvis-1.1rc3/wui/includes/classes/class.WuiMap.php
---- nagvis-1.1rc3~/wui/includes/classes/class.WuiMap.php       2007-07-22 12:25:12.000000000 +0200
-+++ nagvis-1.1rc3/wui/includes/classes/class.WuiMap.php        2007-07-24 19:59:28.000000000 +0200
-@@ -114,7 +114,7 @@
-               $ret = array_merge($ret,$this->parseObjects());
-               $ret = array_merge($ret,$this->parseInvisible());
-               $ret = array_merge($ret,$this->makeObjectsMoveable());
--              $ret = array_merge($ret,Array("<script type=\"text/javascript\" src=\"./includes/js/wz_tooltip.js\"></script>"));
-+              $ret = array_merge($ret,Array("<script type=\"text/javascript\" src=\"js/wz_tooltip.js\"></script>"));
-               
-               if (DEBUG&&DEBUGLEVEL&1) debug('End method WuiMap::parseMap(): Array(HTML)');
-               return $ret;
-@@ -535,4 +535,4 @@
-               if (DEBUG&&DEBUGLEVEL&1) debug('Start method WuiMap::parseInvisible(): Array(HTML)');
-               return $arr;
-       }
--}
-\ No newline at end of file
-+}
-diff -urNad nagvis-1.1rc3~/wui/includes/classes/class.WuiMapManagement.php nagvis-1.1rc3/wui/includes/classes/class.WuiMapManagement.php
---- nagvis-1.1rc3~/wui/includes/classes/class.WuiMapManagement.php     2007-07-13 20:57:57.000000000 +0200
-+++ nagvis-1.1rc3/wui/includes/classes/class.WuiMapManagement.php      2007-07-24 19:59:28.000000000 +0200
-@@ -29,10 +29,10 @@
-               $this->LANG = new GlobalLanguage($MAINCFG,'wui:mapManagement');
-               
-               $prop = Array('title'=>$MAINCFG->getValue('internal', 'title'),
--                                        'cssIncludes'=>Array('./includes/css/wui.css'),
--                                        'jsIncludes'=>Array('./includes/js/map_management.js',
--                                                                                      './includes/js/ajax.js',
--                                                                                      './includes/js/wui.js'),
-+                                        'cssIncludes'=>Array('css/wui.css'),
-+                                        'jsIncludes'=>Array('js/map_management.js',
-+                                                                                      'js/ajax.js',
-+                                                                                      'js/wui.js'),
-                                         'extHeader'=>Array(''),
-                                         'allowedUsers' => Array('EVERYONE'),
-                                         'languageRoot' => 'wui:mapManagement');
-@@ -340,4 +340,4 @@
-               return array_merge($FORM->getSubmitLine($label),$FORM->closeForm());
-       }
- }
--?>
-\ No newline at end of file
-+?>
-diff -urNad nagvis-1.1rc3~/wui/includes/classes/class.WuiShapeManagement.php nagvis-1.1rc3/wui/includes/classes/class.WuiShapeManagement.php
---- nagvis-1.1rc3~/wui/includes/classes/class.WuiShapeManagement.php   2007-06-20 18:16:07.000000000 +0200
-+++ nagvis-1.1rc3/wui/includes/classes/class.WuiShapeManagement.php    2007-07-24 19:59:28.000000000 +0200
-@@ -21,10 +21,10 @@
-         $this->LANG = new GlobalLanguage($MAINCFG,'wui:shapeManagement');
-         
-         $prop = Array('title'=>$MAINCFG->getValue('internal', 'title'),
--                    'cssIncludes'=>Array('./includes/css/wui.css'),
--                    'jsIncludes'=>Array('./includes/js/ShapeManagement.js',
--                        './includes/js/ajax.js',
--                        './includes/js/wui.js'),
-+                    'cssIncludes'=>Array('css/wui.css'),
-+                    'jsIncludes'=>Array('js/ShapeManagement.js',
-+                        'js/ajax.js',
-+                        'js/wui.js'),
-                     'extHeader'=>Array(''),
-                     'allowedUsers' => Array('EVERYONE'),
-                     'languageRoot' => 'wui:shapeManagement');
-@@ -155,4 +155,4 @@
-         if (DEBUG&&DEBUGLEVEL&1) debug('End method WuiShapeManagement::getJsLang(): Array(JS)');
-         return $ret;
-     }
--}
-\ No newline at end of file
-+}
-diff -urNad nagvis-1.1rc3~/wui/index.php nagvis-1.1rc3/wui/index.php
---- nagvis-1.1rc3~/wui/index.php       2007-06-08 01:53:59.000000000 +0200
-+++ nagvis-1.1rc3/wui/index.php        2007-07-24 19:59:28.000000000 +0200
-@@ -12,18 +12,18 @@
- ## For developer guidlines have a look at http://www.nagvis.org                       ##
- ##########################################################################
--require("../nagvis/includes/classes/class.GlobalDebug.php");
--require("../nagvis/includes/classes/class.GlobalMainCfg.php");
--require("../nagvis/includes/classes/class.GlobalMapCfg.php");
--require("../nagvis/includes/classes/class.GlobalLanguage.php");
--require("../nagvis/includes/classes/class.GlobalPage.php");
--require("../nagvis/includes/classes/class.GlobalMap.php");
--require("../nagvis/includes/classes/class.GlobalGraphic.php");
-+require("/usr/share/nagvis/includes/classes/class.GlobalDebug.php");
-+require("/usr/share/nagvis/includes/classes/class.GlobalMainCfg.php");
-+require("/usr/share/nagvis/includes/classes/class.GlobalMapCfg.php");
-+require("/usr/share/nagvis/includes/classes/class.GlobalLanguage.php");
-+require("/usr/share/nagvis/includes/classes/class.GlobalPage.php");
-+require("/usr/share/nagvis/includes/classes/class.GlobalMap.php");
-+require("/usr/share/nagvis/includes/classes/class.GlobalGraphic.php");
--require("./includes/classes/class.WuiMainCfg.php");
--require("./includes/classes/class.WuiMapCfg.php");
-+require("/usr/share/nagvis/wui/includes/classes/class.WuiMainCfg.php");
-+require("/usr/share/nagvis/wui/includes/classes/class.WuiMapCfg.php");
--$MAINCFG = new WuiMainCfg('../nagvis/etc/config.ini.php');
-+$MAINCFG = new WuiMainCfg('/etc/nagvis/config.ini.php');
- // If not set, initialize $_GET['page']
- if(!isset($_GET['page'])) {
-@@ -33,40 +33,40 @@
+diff -urNad nagvis-1.2.1~/nagvis/draw.php nagvis-1.2.1/nagvis/draw.php
+--- nagvis-1.2.1~/nagvis/draw.php      2007-10-20 16:28:44.000000000 +0200
++++ nagvis-1.2.1/nagvis/draw.php       2008-01-10 10:31:11.000000000 +0100
+@@ -14,23 +14,23 @@
+ @session_start();
+-require("./includes/defines/global.php");
+-require("./includes/defines/matches.php");
++require("/usr/share/nagvis/includes/defines/global.php");
++require("/usr/share/nagvis/includes/defines/matches.php");
+-require("./includes/functions/debug.php");
++require("/usr/share/nagvis/includes/functions/debug.php");
+-require("./includes/classes/GlobalGraphic.php");
+-require("./includes/classes/GlobalMainCfg.php");
+-require("./includes/classes/GlobalMapCfg.php");
+-require("./includes/classes/GlobalMap.php");
+-require("./includes/classes/GlobalPage.php");
+-require("./includes/classes/GlobalBackground.php");
+-require("./includes/classes/GlobalLanguage.php");
+-require("./includes/classes/GlobalBackendMgmt.php");
++require("/usr/share/nagvis/includes/classes/GlobalGraphic.php");
++require("/usr/share/nagvis/includes/classes/GlobalMainCfg.php");
++require("/usr/share/nagvis/includes/classes/GlobalMapCfg.php");
++require("/usr/share/nagvis/includes/classes/GlobalMap.php");
++require("/usr/share/nagvis/includes/classes/GlobalPage.php");
++require("/usr/share/nagvis/includes/classes/GlobalBackground.php");
++require("/usr/share/nagvis/includes/classes/GlobalLanguage.php");
++require("/usr/share/nagvis/includes/classes/GlobalBackendMgmt.php");
+-require("./includes/classes/NagVisMap.php");
+-require("./includes/classes/NagVisBackground.php");
+-require("./includes/classes/NagVisMapCfg.php");
++require("/usr/share/nagvis/includes/classes/NagVisMap.php");
++require("/usr/share/nagvis/includes/classes/NagVisBackground.php");
++require("/usr/share/nagvis/includes/classes/NagVisMapCfg.php");
+ $MAINCFG = new GlobalMainCfg(CONST_MAINCFG);
+diff -urNad nagvis-1.2.1~/nagvis/index.php nagvis-1.2.1/nagvis/index.php
+--- nagvis-1.2.1~/nagvis/index.php     2007-12-13 08:50:14.000000000 +0100
++++ nagvis-1.2.1/nagvis/index.php      2008-01-10 10:28:50.000000000 +0100
+@@ -14,23 +14,23 @@
+ @session_start();
+-require("./includes/defines/global.php");
+-require("./includes/defines/matches.php");
++require("/usr/share/nagvis/includes/defines/global.php");
++require("/usr/share/nagvis/includes/defines/matches.php");
+-require("./includes/functions/debug.php");
++require("/usr/share/nagvis/includes/functions/debug.php");
+-require("./includes/classes/GlobalMainCfg.php");
+-require("./includes/classes/GlobalMapCfg.php");
+-require("./includes/classes/GlobalLanguage.php");
+-require("./includes/classes/GlobalPage.php");
+-require("./includes/classes/GlobalMap.php");
+-require("./includes/classes/GlobalBackground.php");
+-require("./includes/classes/GlobalGraphic.php");
+-require("./includes/classes/GlobalBackendMgmt.php");
++require("/usr/share/nagvis/includes/classes/GlobalMainCfg.php");
++require("/usr/share/nagvis/includes/classes/GlobalMapCfg.php");
++require("/usr/share/nagvis/includes/classes/GlobalLanguage.php");
++require("/usr/share/nagvis/includes/classes/GlobalPage.php");
++require("/usr/share/nagvis/includes/classes/GlobalMap.php");
++require("/usr/share/nagvis/includes/classes/GlobalBackground.php");
++require("/usr/share/nagvis/includes/classes/GlobalGraphic.php");
++require("/usr/share/nagvis/includes/classes/GlobalBackendMgmt.php");
+-require("./includes/classes/NagVisMapCfg.php");
+-require("./includes/classes/NagVisMap.php");
+-require("./includes/classes/NagVisFrontend.php");
++require("/usr/share/nagvis/includes/classes/NagVisMapCfg.php");
++require("/usr/share/nagvis/includes/classes/NagVisMap.php");
++require("/usr/share/nagvis/includes/classes/NagVisFrontend.php");
+ $MAINCFG = new GlobalMainCfg(CONST_MAINCFG);
+diff -urNad nagvis-1.2.1~/wui/ajax_handler.php nagvis-1.2.1/wui/ajax_handler.php
+--- nagvis-1.2.1~/wui/ajax_handler.php 2007-10-20 16:28:44.000000000 +0200
++++ nagvis-1.2.1/wui/ajax_handler.php  2008-01-10 10:32:43.000000000 +0100
+@@ -2,19 +2,19 @@
+ @session_start();
+-require("../nagvis/includes/defines/global.php");
+-require("../nagvis/includes/defines/matches.php");
++require("/usr/share/nagvis/includes/defines/global.php");
++require("/usr/share/nagvis/includes/defines/matches.php");
+-require("../nagvis/includes/functions/debug.php");
++require("/usr/share/nagvis/includes/functions/debug.php");
+-require("../nagvis/includes/classes/GlobalMainCfg.php");
+-require("../nagvis/includes/classes/GlobalMapCfg.php");
+-require("../nagvis/includes/classes/GlobalLanguage.php");
+-require("../nagvis/includes/classes/GlobalPage.php");
+-require("../nagvis/includes/classes/GlobalBackendMgmt.php");
++require("/usr/share/nagvis/includes/classes/GlobalMainCfg.php");
++require("/usr/share/nagvis/includes/classes/GlobalMapCfg.php");
++require("/usr/share/nagvis/includes/classes/GlobalLanguage.php");
++require("/usr/share/nagvis/includes/classes/GlobalPage.php");
++require("/usr/share/nagvis/includes/classes/GlobalBackendMgmt.php");
+-require("./includes/classes/WuiMainCfg.php");
+-require("./includes/classes/WuiMapCfg.php");
++require("/usr/share/nagvis/wui/includes/classes/WuiMainCfg.php");
++require("/usr/share/nagvis/wui/includes/classes/WuiMapCfg.php");
+ $MAINCFG = new WuiMainCfg(CONST_MAINCFG);
+diff -urNad nagvis-1.2.1~/wui/index.php nagvis-1.2.1/wui/index.php
+--- nagvis-1.2.1~/wui/index.php        2007-10-20 16:28:44.000000000 +0200
++++ nagvis-1.2.1/wui/index.php 2008-01-10 10:36:36.000000000 +0100
+@@ -14,21 +14,21 @@
+ @session_start();
+-require("../nagvis/includes/defines/global.php");
+-require("../nagvis/includes/defines/matches.php");
++require("/usr/share/nagvis/nagvis/includes/defines/global.php");
++require("/usr/share/nagvis/nagvis/includes/defines/matches.php");
+-require("../nagvis/includes/functions/debug.php");
++require("/usr/share/nagvis/nagvis/includes/functions/debug.php");
+-require("../nagvis/includes/classes/GlobalMainCfg.php");
+-require("../nagvis/includes/classes/GlobalMapCfg.php");
+-require("../nagvis/includes/classes/GlobalLanguage.php");
+-require("../nagvis/includes/classes/GlobalPage.php");
+-require("../nagvis/includes/classes/GlobalMap.php");
+-require("../nagvis/includes/classes/GlobalBackground.php");
+-require("../nagvis/includes/classes/GlobalGraphic.php");
++require("/usr/share/nagvis/nagvis/includes/classes/GlobalMainCfg.php");
++require("/usr/share/nagvis/nagvis/includes/classes/GlobalMapCfg.php");
++require("/usr/share/nagvis/nagvis/includes/classes/GlobalLanguage.php");
++require("/usr/share/nagvis/nagvis/includes/classes/GlobalPage.php");
++require("/usr/share/nagvis/nagvis/includes/classes/GlobalMap.php");
++require("/usr/share/nagvis/nagvis/includes/classes/GlobalBackground.php");
++require("/usr/share/nagvis/nagvis/includes/classes/GlobalGraphic.php");
+-require("./includes/classes/WuiMainCfg.php");
+-require("./includes/classes/WuiMapCfg.php");
++require("/usr/share/nagvis/wui/includes/classes/WuiMainCfg.php");
++require("/usr/share/nagvis/wui/includes/classes/WuiMapCfg.php");
+ $MAINCFG = new WuiMainCfg(CONST_MAINCFG);
+@@ -40,40 +40,40 @@
  // Display the wanted page, if nothing is set, display the map
  switch($_GET['page']) {
        case 'edit_config':
--              require("../nagvis/includes/classes/class.GlobalForm.php");
--              require("./includes/classes/class.WuiEditMainCfg.php");
-+              require("/usr/share/nagvis/includes/classes/class.GlobalForm.php");
-+              require("/usr/share/nagvis/wui/includes/classes/class.WuiEditMainCfg.php");
+-              require("../nagvis/includes/classes/GlobalForm.php");
+-              require("./includes/classes/WuiEditMainCfg.php");
++              require("/usr/share/nagvis/includes/classes/GlobalForm.php");
++              require("/usr/share/nagvis/wui//includes/classes/WuiEditMainCfg.php");
                
                $FRONTEND = new WuiEditMainCfg($MAINCFG);
                $FRONTEND->getForm();
                $FRONTEND->printPage();
        break;
        case 'shape_management':
--              require("../nagvis/includes/classes/class.GlobalForm.php");
--              require("./includes/classes/class.WuiShapeManagement.php");
-+              require("/usr/share/nagvis/includes/classes/class.GlobalForm.php");
-+              require("/usr/share/nagvis/wui/includes/classes/class.WuiShapeManagement.php");
+-              require("../nagvis/includes/classes/GlobalForm.php");
+-              require("./includes/classes/WuiShapeManagement.php");
++              require("/usr/share/nagvis/includes/classes/GlobalForm.php");
++              require("/usr/share/nagvis/wui/includes/classes/WuiShapeManagement.php");
                $FRONTEND = new WuiShapeManagement($MAINCFG);
                $FRONTEND->getForm();
        break;
        case 'background_management':
--              require("../nagvis/includes/classes/class.GlobalForm.php");
--              require("./includes/classes/class.WuiBackgroundManagement.php");
-+              require("/usr/share/nagvis/includes/classes/class.GlobalForm.php");
-+              require("/usr/share/nagvis/wui/includes/classes/class.WuiBackgroundManagement.php");
+-              require("../nagvis/includes/classes/GlobalForm.php");
+-              require("./includes/classes/WuiBackgroundManagement.php");
++              require("/usr/share/nagvis/includes/classes/GlobalForm.php");
++              require("/usr/share/nagvis/wui/includes/classes/WuiBackgroundManagement.php");
                $FRONTEND = new WuiBackgroundManagement($MAINCFG);
                $FRONTEND->getForm();
        break;
        case 'map_management':
--              require("../nagvis/includes/classes/class.GlobalForm.php");
--              require("./includes/classes/class.WuiMapManagement.php");
-+              require("/usr/share/nagvis/includes/classes/class.GlobalForm.php");
-+              require("/usr/share/nagvis/wui/includes/classes/class.WuiMapManagement.php");
+-              require("../nagvis/includes/classes/GlobalForm.php");
+-              require("./includes/classes/WuiMapManagement.php");
++              require("/usr/share/nagvis/includes/classes/GlobalForm.php");
++              require("/usr/share/nagvis/wui/includes/classes/WuiMapManagement.php");
                $FRONTEND = new WuiMapManagement($MAINCFG);
                $FRONTEND->getForm();
        break;
        case 'backend_management':
--              require("../nagvis/includes/classes/class.GlobalForm.php");
--              require("./includes/classes/class.WuiBackendManagement.php");
-+              require("/usr/share/nagvis/includes/classes/class.GlobalForm.php");
-+              require("/usr/share/nagvis/wui/includes/classes/class.WuiBackendManagement.php");
+-              require("../nagvis/includes/classes/GlobalForm.php");
+-              require("./includes/classes/WuiBackendManagement.php");
++              require("/usr/share/nagvis/includes/classes/GlobalForm.php");
++              require("/usr/share/nagvis/wui/includes/classes/WuiBackendManagement.php");
                $FRONTEND = new WuiBackendManagement($MAINCFG);
                $FRONTEND->getForm();
        break;
        case 'addmodify':
--              require("../nagvis/includes/classes/class.GlobalForm.php");
--              require("./includes/classes/class.WuiAddModify.php");
-+              require("/usr/share/nagvis/includes/classes/class.GlobalForm.php");
-+              require("/usr/share/nagvis/wui/includes/classes/class.WuiAddModify.php");
+-              require("../nagvis/includes/classes/GlobalForm.php");
+-              require("./includes/classes/WuiAddModify.php");
++              require("/usr/share/nagvis/includes/classes/GlobalForm.php");
++              require("/usr/share/nagvis/wui/includes/classes/WuiAddModify.php");
                
                $MAPCFG = new WuiMapCfg($MAINCFG,$_GET['map']);
                $MAPCFG->readMapConfig();
-@@ -85,8 +85,8 @@
+@@ -92,8 +92,8 @@
                $FRONTEND->getForm();
        break;
        default:
--              require("./includes/classes/class.WuiFrontend.php");
--              require("./includes/classes/class.WuiMap.php");
-+              require("/usr/share/nagvis/wui/includes/classes/class.WuiFrontend.php");
-+              require("/usr/share/nagvis/wui/includes/classes/class.WuiMap.php");
+-              require("./includes/classes/WuiFrontend.php");
+-              require("./includes/classes/WuiMap.php");
++              require("/usr/share/nagvis/wui/includes/classes/WuiFrontend.php");
++              require("/usr/share/nagvis/wui/includes/classes/WuiMap.php");
                
                if(!isset($_GET['map'])) {
                        $_GET['map'] = '';      
-@@ -118,4 +118,4 @@
-               
- // print the HTML page
- $FRONTEND->printPage();
--?>
-\ No newline at end of file
-+?>
-diff -urNad nagvis-1.1rc3~/wui/wui.function.inc.php nagvis-1.1rc3/wui/wui.function.inc.php
---- nagvis-1.1rc3~/wui/wui.function.inc.php    2007-07-11 22:30:42.000000000 +0200
-+++ nagvis-1.1rc3/wui/wui.function.inc.php     2007-07-24 19:59:28.000000000 +0200
-@@ -9,15 +9,15 @@
- #     http://www.walterzorn.com                                                                                               #
- #################################################################################
--require('../nagvis/includes/classes/class.GlobalDebug.php');
--require('../nagvis/includes/classes/class.GlobalLanguage.php');
--require('../nagvis/includes/classes/class.GlobalMainCfg.php');
--require('../nagvis/includes/classes/class.GlobalPage.php');
--require('../nagvis/includes/classes/class.GlobalMapCfg.php');
--require('./includes/classes/class.WuiMainCfg.php');
--require('./includes/classes/class.WuiMapCfg.php');
-+require('/usr/share/nagvis/includes/classes/class.GlobalDebug.php');
-+require('/usr/share/nagvis/includes/classes/class.GlobalLanguage.php');
-+require('/usr/share/nagvis/includes/classes/class.GlobalMainCfg.php');
-+require('/usr/share/nagvis/includes/classes/class.GlobalPage.php');
-+require('/usr/share/nagvis/includes/classes/class.GlobalMapCfg.php');
-+require('/usr/share/nagvis/wui/includes/classes/class.WuiMainCfg.php');
-+require('/usr/share/nagvis/wui/includes/classes/class.WuiMapCfg.php');
--$MAINCFG = new WuiMainCfg('../nagvis/etc/config.ini.php');
-+$MAINCFG = new WuiMainCfg('/etc/nagvis/config.ini.php');
- ############################################
- function getArrayFromProperties($properties) {
index d33d9379297e1b9419a0cfa1cad43cf814e7430e..384df73558064a6fbe6b4cc90bde2a29c978ed82 100644 (file)
@@ -8,9 +8,9 @@ set -e
 . /usr/share/debconf/confmodule
 if [ -f /usr/share/dbconfig-common/dpkg/frontend.postinst.mysql ]; then
        . /usr/share/dbconfig-common/dpkg/frontend.postinst.mysql
-       dbc_generate_include='template:/etc/nagvis/config.ini.php'
+       dbc_generate_include='template:/etc/nagvis/nagvis.ini.php'
        dbc_generate_include_owner='www-data:www-data'
-       dbc_generate_include_args='--ucf -o template_infile=/usr/share/nagvis/debian/config.ini.php.dist'
+       dbc_generate_include_args='--ucf -o template_infile=/usr/share/nagvis/debian/nagvis.ini.php-sample'
        dbc_go nagvis $@
 fi
 db_stop
index f1b9e50a112358c2775aed678100037a5ca46a90..38815e7692c72b7061fd763a0ef685969fb9c0b3 100644 (file)
@@ -39,7 +39,7 @@ case "$1" in
 esac
 
 if [ "$1" = "purge" ]; then
-       for file in apache.conf config.ini.php; do
+       for file in apache.conf nagvis.ini.php; do
                rm -f /etc/nagvis/$file
                ucf --purge /etc/nagvis/$file
        done
index 362cf520a278091ed735aa47c098d03e9a80d90e..99acb3d853c5c73c4ea8636baf8d628b42d02c71 100755 (executable)
@@ -32,34 +32,41 @@ install: build
        dh_testroot
        dh_clean -k
        
-       mkdir -p $(DEST)/{etc,usr/share/nagvis/{debian/,htdocs/{nagvis/,wui/},{,wui/}includes}}
+       mkdir -p $(DEST)/etc/nagvis $(DEST)/usr/share/nagvis/debian/ $(DEST)/usr/share/nagvis/htdocs/nagvis/ \
+               $(DEST)/usr/share/nagvis/htdocs/wui/ $(DEST)/usr/share/nagvis/includes $(DEST)/usr/share/nagvis/wui/includes
        
-       cp -a nagvis/etc $(DEST)/etc/nagvis
-       mv $(DEST)/etc/nagvis/config.ini.php.dist \
+       cp -a etc/* $(DEST)/etc/nagvis
+       mv $(DEST)/etc/nagvis/nagvis.ini.php-sample \
                $(DEST)/usr/share/nagvis/debian/
        sed -e 's/^[; ]*\(\<dbhost\) *=.*$$/\1=_DBC_DBSERVER_/' \
            -e 's/^[; ]*\(\<dbport\) *=.*$$/\1=_DBC_DBPORT_/' \
            -e 's/^[; ]*\(\<dbname\) *=.*$$/\1=_DBC_DBNAME_/' \
            -e 's/^[; ]*\(\<dbuser\) *=.*$$/\1=_DBC_DBUSER_/' \
            -e 's/^[; ]*\(\<dbpass\) *=.*$$/\1=_DBC_DBPASS_/' \
-        < $(DEST)/usr/share/nagvis/debian/config.ini.php.dist \
-        > $(DEST)/usr/share/nagvis/debian/config.ini.php.dist.new && \
-        mv $(DEST)/usr/share/nagvis/debian/config.ini.php.dist.new \
-           $(DEST)/usr/share/nagvis/debian/config.ini.php.dist
+        < $(DEST)/usr/share/nagvis/debian/nagvis.ini.php-sample \
+        > $(DEST)/usr/share/nagvis/debian/nagvis.ini.php-sample.new && \
+        mv $(DEST)/usr/share/nagvis/debian/nagvis.ini.php-sample.new \
+           $(DEST)/usr/share/nagvis/debian/nagvis.ini.php-sample
        
-       cp -a nagvis/images $(DEST)/usr/share/nagvis/htdocs/nagvis/
        cp -a nagvis/includes/classes $(DEST)/usr/share/nagvis/includes/
-       cp -a nagvis/includes/{css,js,languages} $(DEST)/usr/share/nagvis/htdocs/nagvis/
+       cp -a nagvis/includes/defines $(DEST)/usr/share/nagvis/includes/
+       
+       cp -a nagvis/images $(DEST)/usr/share/nagvis/htdocs/nagvis/
+       cp -a nagvis/includes/css $(DEST)/usr/share/nagvis/htdocs/nagvis/
+       cp -a nagvis/includes/js $(DEST)/usr/share/nagvis/htdocs/nagvis/
+       cp -a nagvis/includes/languages $(DEST)/usr/share/nagvis/htdocs/nagvis/
+       
        cp -a nagvis/*.php $(DEST)/usr/share/nagvis/htdocs/nagvis/
        
        cp -a wui/images $(DEST)/usr/share/nagvis/htdocs/wui/
        cp -a wui/includes/classes $(DEST)/usr/share/nagvis/wui/includes/
-       cp -a wui/includes/{css,js} $(DEST)/usr/share/nagvis/htdocs/wui/
+       cp -a wui/includes/css $(DEST)/usr/share/nagvis/htdocs/wui/
+       cp -a wui/includes/js $(DEST)/usr/share/nagvis/htdocs/wui/
        cp -a wui/*.php $(DEST)/usr/share/nagvis/htdocs/wui/
        cp -a *.php $(DEST)/usr/share/nagvis/htdocs/
        
        # demo site
-       mkdir -p $(DEST)/demo/{nagvis/images/,etc/nagvis/}maps
+       mkdir -p $(DEST)/demo/nagvis/images/maps $(DEST)/demo/etc/nagvis/maps
        mv $(DEST)/etc/nagvis/maps/demo*.cfg $(DEST)/demo/etc/nagvis/maps/
        mv $(DEST)/usr/share/nagvis/htdocs/nagvis/images/maps/nagvis-demo.png \
                $(DEST)/demo/nagvis/images/maps/