summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: 309e2df)
raw | patch | inline | side by side (parent: 309e2df)
author | wob-guest <wob-guest@98d490a6-b407-0410-aaaa-fdee166ba3f5> | |
Sun, 29 Nov 2009 18:29:25 +0000 (18:29 +0000) | ||
committer | wob-guest <wob-guest@98d490a6-b407-0410-aaaa-fdee166ba3f5> | |
Sun, 29 Nov 2009 18:29:25 +0000 (18:29 +0000) |
workaround for bug in nagvis-1.4.5: apache alias /nagvis/nagvis/images
(should be removed as soon as possible)
todo: more cleanup in /usr/share/nagvis/htdocs/nagvis neccessary
git-svn-id: svn://svn.debian.org/svn/pkg-nagios/nagvis/trunk@1798 98d490a6-b407-0410-aaaa-fdee166ba3f5
(should be removed as soon as possible)
todo: more cleanup in /usr/share/nagvis/htdocs/nagvis neccessary
git-svn-id: svn://svn.debian.org/svn/pkg-nagios/nagvis/trunk@1798 98d490a6-b407-0410-aaaa-fdee166ba3f5
debian/apache.conf | patch | blob | history | |
debian/changelog | patch | blob | history | |
debian/dirs | patch | blob | history | |
debian/docs | patch | blob | history | |
debian/examples | patch | blob | history | |
debian/patches/00list | patch | blob | history | |
debian/patches/10_pathnames.dpatch | patch | blob | history | |
debian/patches/30_GlobalMainCfg_bugfix.dpatch | [new file with mode: 0755] | patch | blob |
debian/rules | patch | blob | history |
diff --git a/debian/apache.conf b/debian/apache.conf
index 1683c74fcb0dee34c9ca4d480c7bdf13ee407226..90cac0caeded59c339eb9fd0f8a47bf248880b3a 100644 (file)
--- a/debian/apache.conf
+++ b/debian/apache.conf
# -- new style
+Alias /nagvis/nagvis/templates /etc/nagvis/templates
+Alias /nagvis/nagvis/gadgets /etc/nagvis/gadgets
+Alias /nagvis/nagvis/images /var/lib/nagvis/images
Alias /nagvis /usr/share/nagvis/htdocs
# -- old style
diff --git a/debian/changelog b/debian/changelog
index 10a332e93249471b8ec3cabcdddf4a8ba0051924..30f19f5592573851217f25ba2e282735a1c46a8e 100644 (file)
--- a/debian/changelog
+++ b/debian/changelog
* (NOT RELEASED YET) New upstream release
[ Wolfgang Barth ]
* New upstream version
- * switching location of templates from /etc/nagvis/templates back to
- /usr/share/nagvis/htdocs/nagvis/templates
* User uploaded maps now in /var/lib/nagvis/images/maps
(1.3.1: /etc/maps) to avoid security problems
* Cache location nagvis/var ist now /var/cache/nagvis
* nagios independent htmlbase /nagvis and corresponding apache.conf
linked to /etc/apache2/conf.d
* README.backends.Merlin added
+ * all images now in /var/lib/nagvis/images
[ Alexander Wirt ]
* New upstream version
diff --git a/debian/dirs b/debian/dirs
index df1351bea3f9c88d14f5850bd8f0a5f673aea916..8b0050a22b8e8f559822ed237afc4d1880d344ca 100644 (file)
--- a/debian/dirs
+++ b/debian/dirs
etc/nagvis/maps
-etc/nagvis/templates
var/lib/nagvis/images
var/lib/nagvis/images/maps
var/cache/nagvis
diff --git a/debian/docs b/debian/docs
index d306c607a4cd88ad978ff60e839cee9a892e65f0..bff8277eddecf0db98d3c165f099c4cf98186a81 100644 (file)
--- a/debian/docs
+++ b/debian/docs
README
-docs/Changelog
+docs/changelog
diff --git a/debian/examples b/debian/examples
index bb3f37859d8303f7404d2925e7461d34229660d8..41159398a17f1279eb375d206f9a2b6283e2d2ce 100644 (file)
--- a/debian/examples
+++ b/debian/examples
-debian/nagvis/demo
+debian/tmp/demo
etc/nagvis.ini.php-sample
diff --git a/debian/patches/00list b/debian/patches/00list
index a02cbdb0bfa17b8f1f1e4b64a31c7951543b3153..dcdf9f80b574ee230949aad2bdeec069b2ba91b0 100644 (file)
--- a/debian/patches/00list
+++ b/debian/patches/00list
10_pathnames.dpatch
20_configpath.dpatch
+30_GlobalMainCfg_bugfix.dpatch
index cc3453e362699d511f57e914a97ff723d73d5208..4e55af9d9e1c4806c2434900a506accb2dc924d8 100755 (executable)
@DPATCH@
diff -urNad trunk~/etc/nagvis.ini.php-sample trunk/etc/nagvis.ini.php-sample
--- trunk~/etc/nagvis.ini.php-sample 2009-11-27 16:41:36.000000000 +0100
-+++ trunk/etc/nagvis.ini.php-sample 2009-11-28 17:20:58.000000000 +0100
-@@ -24,17 +24,20 @@
++++ trunk/etc/nagvis.ini.php-sample 2009-11-29 19:09:27.000000000 +0100
+@@ -24,17 +24,26 @@
; Path definitions
[paths]
+base="/usr/share/nagvis/htdocs/"
+cfg="/etc/nagvis/"
+var="/var/cache/nagvis/"
-+map="/var/lib/nagvis/images/maps/"
+mapcfg="/etc/nagvis/maps/"
++images="/var/lib/nagvis/images/"
++icon="/var/lib/nagvis/images/iconsets/"
++shape="/var/lib/nagvis/images/shapes/"
++map="/var/lib/nagvis/images/maps/"
++headertemplate="/etc/nagvis/templates/header/"
++hovertemplate="/etc/nagvis/templates/hover/"
++contexttemplate="/etc/nagvis/templates/context/"
; absolute html NagVis path
-;htmlbase="/nagios/nagvis"
+htmlbase="/nagvis"
; background color of maps
;backgroundcolor="#fff"
; Enable/Disable the context menu on map objects. With the context menu you are
-@@ -123,7 +126,7 @@
+@@ -123,7 +132,7 @@
; Default root host (NagVis uses this if it can't detect it via NDO)
;defaultroot=""
; Path to the graphviz binaries (dot,neato,...); Only needed if not in ENV PATH
; Show the automap in the lists (Map index and dropdown menu in header)
;showinlists=1
-@@ -158,8 +161,8 @@
+@@ -158,8 +167,8 @@
; ----------------------------
; Example definition of a livestatus backend. In this case the backend_id is live_1
;socket="unix:/usr/local/nagios/var/rw/live"
; in this example the ID of the Backend is "ndomy_1" you can define another ID.
-@@ -186,9 +189,9 @@
+@@ -186,9 +195,9 @@
;htmlcgi="/nagios/cgi-bin"
; in this example the ID of the Backend is "ndo2fs_1" you can define another ID.
; Path to the ndo2fs var directory where the VOLATILE and PERSISTENT directories are
;path="/usr/local/ndo2fs/var"
; Name of the instance to get the data from
-@@ -198,37 +201,18 @@
+@@ -198,37 +207,18 @@
; path to the cgi-bin of this backend
;htmlcgi="/nagios/cgi-bin"
diff --git a/debian/patches/30_GlobalMainCfg_bugfix.dpatch b/debian/patches/30_GlobalMainCfg_bugfix.dpatch
--- /dev/null
@@ -0,0 +1,19 @@
+#! /bin/sh /usr/share/dpatch/dpatch-run
+## 30_GlobalMainCfg_bugfix.dpatch by Wolfgang Barth <wob@swobspace.net>
+##
+## All lines beginning with `## DP:' are a description of the patch.
+## DP: No description.
+
+@DPATCH@
+diff -urNad trunk~/nagvis/includes/classes/GlobalMainCfg.php trunk/nagvis/includes/classes/GlobalMainCfg.php
+--- trunk~/nagvis/includes/classes/GlobalMainCfg.php 2009-11-27 16:41:36.000000000 +0100
++++ trunk/nagvis/includes/classes/GlobalMainCfg.php 2009-11-29 18:54:35.000000000 +0100
+@@ -348,7 +348,7 @@
+ 'editable' => 0,
+ 'default' => '',
+ 'match' => MATCH_STRING_PATH),
+- 'hovercontext' => Array('must' => 0,
++ 'contexttemplate' => Array('must' => 0,
+ 'editable' => 0,
+ 'default' => '',
+ 'match' => MATCH_STRING_PATH),
diff --git a/debian/rules b/debian/rules
index 5ac8ae81b3f9faa56d1186f3c7645bc9811335ea..ce276f56b8cee69a290d5f1a1dfd185c144084b2 100755 (executable)
--- a/debian/rules
+++ b/debian/rules
include /usr/share/dpatch/dpatch.make
DEST = debian/nagvis
+TMP = debian/tmp
configure: configure-stamp
configure-stamp:
dh_clean -k
dh_installdirs
dh_install
+
+ # -- images to /var
+ mv $(DEST)/usr/share/nagvis/htdocs/nagvis/images/* $(DEST)/var/lib/nagvis/images/.
+
+ # -- templates
+ mv $(DEST)/usr/share/nagvis/htdocs/nagvis/templates $(DEST)/etc/nagvis/.
+
+ # -- gadgets
+ mv $(DEST)/usr/share/nagvis/htdocs/nagvis/gadgets $(DEST)/etc/nagvis/.
[ -x /usr/bin/html2text ] && \
- /usr/bin/html2text -ascii -nobs < docs/en_US/changelog.html > docs/Changelog
+ /usr/bin/html2text -ascii -nobs < docs/en_US/changelog.html > docs/changelog
mv $(DEST)/etc/nagvis/nagvis.ini.php-sample \
$(DEST)/usr/share/nagvis/debian/
sed -e 's/^[; ]*\(\<dbhost\) *=.*$$/\1=_DBC_DBSERVER_/' \
$(DEST)/usr/share/nagvis/debian/nagvis.ini.php-sample
# demo site
- install -d $(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/
- rm -rf $(DEST)/usr/share/nagvis/htdocs/nagvis/images/maps
+ install -d $(TMP)/demo/etc/nagvis/maps
+ mv $(DEST)/etc/nagvis/maps/demo*.cfg $(TMP)/demo/etc/nagvis/maps/
dh_link
dh_lintian