tags 595313 + patch
thanks

Dear maintainer,

I've prepared an NMU for nagvis (versioned as 1:1.4.6-1.1). The diff
is attached to this message.

Regards.
diff -u nagvis-1.4.6/debian/README.Debian nagvis-1.4.6/debian/README.Debian
--- nagvis-1.4.6/debian/README.Debian
+++ nagvis-1.4.6/debian/README.Debian
@@ -1,6 +1,14 @@
 nagvis for Debian
 -----------------
 
+Since Version 1:1.4.6-1.1 you may also use nagvis with a remote database.
+However you'll need to configure the Database settings by hand.
+
+Please see /usr/share/nagvis/debian/nagvis.ini.php-sample for an example
+configuration file, and place it at /etc/nagvis/nagvis.ini.php.
+
+ -- Alexander Reichle-Schmehl <toli...@debian.org> Wed, 13 Oct 2010 15:44:01 +0200
+
 Starting with 1.4.5, there are changes from older packages.
 
 * URL and CGI-Path:
diff -u nagvis-1.4.6/debian/config nagvis-1.4.6/debian/config
--- nagvis-1.4.6/debian/config
+++ nagvis-1.4.6/debian/config
@@ -6,13 +6,16 @@
 tmp=`mktemp`
-dbconfig-load-include -f sh \
-	-udbc_dbuser -pdbc_dbpass -ddbc_dbname -sdbc_dbserver -Pdbc_dbport \
-	/etc/dbconfig-common/ndoutils-mysql.conf > $tmp
-. $tmp
-rm -f $tmp
 
-if [ -f /usr/share/dbconfig-common/dpkg/frontend.config.mysql ]; then
-	. /usr/share/dbconfig-common/dpkg/frontend.config.mysql
-	dbc_go nagvis $@
+if [ -f /etc/dbconfig-common/ndoutils-mysql.conf ] ; then
+	dbconfig-load-include -f sh \
+		-udbc_dbuser -pdbc_dbpass -ddbc_dbname -sdbc_dbserver -Pdbc_dbport \
+		/etc/dbconfig-common/ndoutils-mysql.conf > $tmp
+	. $tmp
+	if [ -f /usr/share/dbconfig-common/dpkg/frontend.config.mysql ]; then
+		. /usr/share/dbconfig-common/dpkg/frontend.config.mysql
+		dbc_go nagvis $@
+	fi
+	db_stop
 fi
-db_stop
+
+rm -f $tmp
 
diff -u nagvis-1.4.6/debian/changelog nagvis-1.4.6/debian/changelog
--- nagvis-1.4.6/debian/changelog
+++ nagvis-1.4.6/debian/changelog
@@ -1,3 +1,11 @@
+nagvis (1:1.4.6-1.1) unstable; urgency=low
+
+  * Non-maintainer upload.
+  * Only try to configure local database, if ndoutils is run localy
+    (Closes: #595313)
+
+ -- Alexander Reichle-Schmehl <toli...@debian.org>  Mon, 11 Oct 2010 13:55:28 +0200
+
 nagvis (1:1.4.6-1) unstable; urgency=low
 
   [ Hendrik Frenzel ]

Reply via email to