summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: 89a18a7)
raw | patch | inline | side by side (parent: 89a18a7)
author | hfrenzel-guest <hfrenzel-guest@98d490a6-b407-0410-aaaa-fdee166ba3f5> | |
Sun, 4 May 2008 22:59:12 +0000 (22:59 +0000) | ||
committer | hfrenzel-guest <hfrenzel-guest@98d490a6-b407-0410-aaaa-fdee166ba3f5> | |
Sun, 4 May 2008 22:59:12 +0000 (22:59 +0000) |
git-svn-id: svn://svn.debian.org/svn/pkg-nagios/nagvis/trunk@1441 98d490a6-b407-0410-aaaa-fdee166ba3f5
debian/README.Debian | patch | blob | history | |
debian/apache.conf | patch | blob | history | |
debian/changelog | patch | blob | history | |
debian/control | patch | blob | history | |
debian/install | patch | blob | history | |
debian/links | patch | blob | history | |
debian/overrides | [new file with mode: 0644] | patch | blob |
debian/patches/pathnames.dpatch | patch | blob | history | |
debian/postinst | patch | blob | history | |
debian/rules | patch | blob | history |
diff --git a/debian/README.Debian b/debian/README.Debian
index dd6fb47a593cc6e068bb000816eb0b09d385f0b5..20ec66c10f59b51052c44cc07b1e03209b6cf656 100644 (file)
--- a/debian/README.Debian
+++ b/debian/README.Debian
you change this account with reconfiguring ndoutils, don't forget to
dpkg-reconfigure nagvis too to get the new configuration.
-If you got still errors of not working NDOUtils, check your /etc/nagios2/nagios.cfg
+If you got still errors of not working NDOUtils, check your /etc/nagios3/nagios.cfg
if the broker module ndomod.o is enabled and check_external_commands=1 is set to
get the table <prefix>_programstatus updated.
(See http://www.nagvis.org/docs/general/often_reported_errors#nagiosnotrunning)
diff --git a/debian/apache.conf b/debian/apache.conf
index 464b8faea2cec8501c31c8675afda1154e5fcfda..8d21c711e02bbb1105e87df2b972e6f41ce3907a 100644 (file)
--- a/debian/apache.conf
+++ b/debian/apache.conf
-<Location /nagios2/nagvis>
+<Location /nagios3/nagvis>
DirectoryIndex index.php
</Location>
diff --git a/debian/changelog b/debian/changelog
index 60ab863c76d9711a49bac394a89611efa6716d92..a0d170eb563b7417e634891b3358f00be5fb4ccb 100644 (file)
--- a/debian/changelog
+++ b/debian/changelog
+nagvis (1:1.2.2-5) UNRELEASED; urgency=low
+
+ * NOT RELEASED YET
+ * changed from nagios2 to nagios3 support (Closes: 479290)
+ * debian/rules:
+ + used install instead of mkdir or cp
+ * debian/postinst:
+ + added nagvis apache.conf symlink in /etc/apache2/conf.d
+ debian/control:
+ + added libapache2-mod-php5 to Depends
+ * override lintian warning package-contains-empty-directory
+
+ -- Hendrik Frenzel <hfrenzel@scunc.net> Tue, 18 Mar 2008 19:12:30 +0100
+
nagvis (1:1.2.2-4) unstable; urgency=low
* debian/changelog:
diff --git a/debian/control b/debian/control
index dc1b62879974084b9765b2e78b6a8811084694ec..4f72cf7ab3b8c82b5ddc6580ab6d991e71583fac 100644 (file)
--- a/debian/control
+++ b/debian/control
Package: nagvis
Architecture: all
-Depends: nagios2, ndoutils-mysql, ucf, dbconfig-common, php5-mysql, php5-gd
+Depends: nagios3, ndoutils-mysql, libapache2-mod-php5, php5-mysql, php5-gd, ucf, dbconfig-common
Description: Visualization addon for Nagios
NagVis can be used to visualize Nagios Data, e.g. to display IT processes like
a mail system or a network infrastructure.
diff --git a/debian/install b/debian/install
index bcc8ac4e0d088d62d5386776305488f020f69d5b..9e319df01dafd3978fdad05cb4eabff2760a15dd 100644 (file)
--- a/debian/install
+++ b/debian/install
debian/tmp/etc/nagvis
debian/tmp/etc/nagvis/maps
debian/tmp/usr/share/nagvis
+debian/tmp/usr/share/lintian/overrides
diff --git a/debian/links b/debian/links
index 3c913c4fb213a2a01669f9c837f0cfc10a587659..bb1865f8508b21aff58f22527f3942205d6f1fbd 100644 (file)
--- a/debian/links
+++ b/debian/links
etc/nagvis/maps usr/share/nagvis/htdocs/nagvis/images/maps
etc/nagvis/templates usr/share/nagvis/htdocs/nagvis/etc/templates
etc/nagvis/templates usr/share/nagvis/htdocs/nagvis/images/templates
-usr/share/nagvis/htdocs usr/share/nagios2/htdocs/nagvis
+usr/share/nagvis/htdocs usr/share/nagios3/htdocs/nagvis
diff --git a/debian/overrides b/debian/overrides
--- /dev/null
+++ b/debian/overrides
@@ -0,0 +1,2 @@
+nagvis: package-contains-empty-directory usr/share/nagvis/htdocs/nagvis/images/shapes/
+
index c652ea36137d742c8b53ab6cfa9158d588247ca2..813af916e3d9226985d3f5edf05b909196b95a53 100755 (executable)
@@ -16,10 +16,10 @@ diff -urNad nagvis-1.2.2~/etc/nagvis.ini.php-sample nagvis-1.2.2/etc/nagvis.ini.
+;base="/usr/share/nagvis/"
; absolute html NagVis path
-;htmlbase="/nagios/nagvis"
-+;htmlbase="/nagios2/nagvis"
++;htmlbase="/nagios3/nagvis"
; absolute html NagVis cgi path
-;htmlcgi="/nagios/cgi-bin"
-+;htmlcgi="/nagios2/cgi-bin"
++;htmlcgi="/nagios3/cgi-bin"
; options for the NDO-Backend
; in this example the ID of the Backend is "ndomy_1" you can define another ID.
;maxtimewithoutupdate=180
; path to the cgi-bin of this backend
-;htmlcgi="/nagios/cgi-bin"
-+;htmlcgi="/nagios2/cgi-bin"
++;htmlcgi="/nagios3/cgi-bin"
; map rotation pools
; in this example the browser switches between the maps demo and demo2 every 15
@@ -81,52 +81,52 @@ diff -urNad nagvis-1.2.2~/nagvis/includes/classes/GlobalMainCfg.php nagvis-1.2.2
'htmlbase' => Array('must' => 1,
'editable' => 1,
- 'default' => '/nagios/nagvis',
-+ 'default' => '/nagios2/nagvis',
++ 'default' => '/nagios3/nagvis',
'match' => MATCH_STRING_PATH),
'htmlcgi' => Array('must' => 1,
'editable' => 1,
- 'default' => '/nagios/cgi-bin',
-+ 'default' => '/nagios2/cgi-bin',
++ 'default' => '/nagios3/cgi-bin',
'match' => MATCH_STRING_PATH),
'htmlimages' => Array('must' => 0,
'editable' => 0,
- 'default' => '/nagios/nagvis/nagvis/images/',
-+ 'default' => '/nagios2/nagvis/nagvis/images/',
++ 'default' => '/nagios3/nagvis/nagvis/images/',
'match' => MATCH_STRING_PATH),
'htmlhovertemplates' => Array('must' => 0,
'editable' => 0,
- 'default' => '/nagios/nagvis/nagvis/etc/templates/hover/',
-+ 'default' => '/nagios2/nagvis/nagvis/etc/templates/hover/',
++ 'default' => '/nagios3/nagvis/nagvis/etc/templates/hover/',
'match' => MATCH_STRING_PATH),
'htmlheadertemplates' => Array('must' => 0,
'editable' => 0,
- 'default' => '/nagios/nagvis/nagvis/etc/templates/header/',
-+ 'default' => '/nagios2/nagvis/nagvis/etc/templates/header/',
++ 'default' => '/nagios3/nagvis/nagvis/etc/templates/header/',
'match' => MATCH_STRING_PATH),
'htmlhovertemplateimages' => Array('must' => 0,
'editable' => 0,
- 'default' => '/nagios/nagvis/nagvis/images/templates/hover/',
-+ 'default' => '/nagios2/nagvis/nagvis/images/templates/hover/',
++ 'default' => '/nagios3/nagvis/nagvis/images/templates/hover/',
'match' => MATCH_STRING_PATH),
'htmlheadertemplateimages' => Array('must' => 0,
'editable' => 0,
- 'default' => '/nagios/nagvis/nagvis/images/templates/header/',
-+ 'default' => '/nagios2/nagvis/nagvis/images/templates/header/',
++ 'default' => '/nagios3/nagvis/nagvis/images/templates/header/',
'match' => MATCH_STRING_PATH),
'htmlicon' => Array('must' => 0,
'editable' => 0,
- 'default' => '/nagios/nagvis/nagvis/images/iconsets/',
-+ 'default' => '/nagios2/nagvis/nagvis/images/iconsets/',
++ 'default' => '/nagios3/nagvis/nagvis/images/iconsets/',
'match' => MATCH_STRING_PATH),
'htmlshape' => Array('must' => 0,
'editable' => 0,
- 'default' => '/nagios/nagvis/nagvis/images/shape/',
-+ 'default' => '/nagios2/nagvis/nagvis/images/shape/',
++ 'default' => '/nagios3/nagvis/nagvis/images/shape/',
'match' => MATCH_STRING_PATH),
'htmlmap' => Array('must' => 0,
'editable' => 0,
- 'default' => '/nagios/nagvis/nagvis/images/maps/',
-+ 'default' => '/nagios2/nagvis/nagvis/images/maps/',
++ 'default' => '/nagios3/nagvis/nagvis/images/maps/',
'match' => MATCH_STRING_PATH)),
'backend' => Array(
'backendtype' => Array('must' => 1,
@@ -135,7 +135,7 @@ diff -urNad nagvis-1.2.2~/nagvis/includes/classes/GlobalMainCfg.php nagvis-1.2.2
'cgi' => Array('must' => 1,
'editable' => 1,
- 'default' => '/usr/local/nagios/sbin/',
-+ 'default' => '/usr/lib/cgi-bin/nagios2/',
++ 'default' => '/usr/lib/cgi-bin/nagios3/',
'match' => MATCH_STRING_PATH)))),
'rotation' => Array('rotationid' => Array('must' => 1,
'editable' => 1,
diff --git a/debian/postinst b/debian/postinst
index 58ed0faa7d04216b519d977295b51db16ab09afb..c40784c1ec10023922eeb6904864509e2feac94f 100644 (file)
--- a/debian/postinst
+++ b/debian/postinst
# for details, see http://www.debian.org/doc/debian-policy/ or
# the debian-policy package
-setperm() { # thx 2 nagios2/debian/nagios2-common.postinst
+setperm() {
local user="$1"
local group="$2"
local mode="$3"
setperm www-data www-data 0775 /usr/share/nagvis/htdocs/nagvis/etc/maps
ucf /usr/share/nagvis/debian/apache.conf /etc/nagvis/apache.conf
- #if ! [ -e /etc/apache2/conf.d/nagvis.conf ]; then
- # ln -s /etc/nagvis/apache.conf /etc/apache2/conf.d/nagvis.conf
- #fi
+ if [ ! -f /etc/apache2/conf.d/nagvis.conf ]; then
+ ln -s /etc/nagvis/apache.conf /etc/apache2/conf.d/nagvis.conf
+ fi
;;
diff --git a/debian/rules b/debian/rules
index 658bb977cbfd2aabdc9a16ef136954cd786f0bfa..09f1882d0aa01d17a3f963ec0adeceab9bb5161c 100755 (executable)
--- a/debian/rules
+++ b/debian/rules
dh_testroot
dh_clean -k
- 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
+ install -d $(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 etc/* $(DEST)/etc/nagvis
mv $(DEST)/etc/nagvis/nagvis.ini.php-sample \
done
cp -a nagvis/images $(DEST)/usr/share/nagvis/htdocs/nagvis/
- mkdir -p $(DEST)/usr/share/nagvis/htdocs/nagvis/includes/
+ install -d $(DEST)/usr/share/nagvis/htdocs/nagvis/includes/
cp -a nagvis/includes/css $(DEST)/usr/share/nagvis/htdocs/nagvis/includes/
cp -a nagvis/includes/js $(DEST)/usr/share/nagvis/htdocs/nagvis/includes/
cp -a nagvis/includes/languages $(DEST)/usr/share/nagvis/htdocs/nagvis/includes/
cp -a wui/*.php $(DEST)/usr/share/nagvis/htdocs/wui/
cp -a *.php $(DEST)/usr/share/nagvis/htdocs/
- mkdir -p $(DEST)/etc/nagvis/templates/
+ install -d $(DEST)/etc/nagvis/templates/
cp -a nagvis/templates/* $(DEST)/etc/nagvis/templates/
# demo site
- mkdir -p $(DEST)/demo/nagvis/images/maps $(DEST)/demo/etc/nagvis/maps
+ 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
# config templates
- mkdir -p $(DEST)/usr/share/nagvis/debian
- cp debian/apache.conf $(DEST)/usr/share/nagvis/debian/
+ install -m 755 -d $(DEST)/usr/share/nagvis/debian
+ install -m 644 debian/apache.conf $(DEST)/usr/share/nagvis/debian/
+
+ # lintian overrides
+ install -m 755 -d $(DEST)/usr/share/lintian/overrides
+ install -m 644 debian/overrides $(DEST)/usr/share/lintian/overrides/nagvis
dh_installdirs
dh_install