[Pkg-nagios-changes] [pkg-check-mk] 07/09: check-mk-server: Add debconf note about RRD update.

Alexander Wirt formorer at debian.org
Sun Sep 8 10:03:27 UTC 2013


This is an automated email from the git hooks/post-receive script.

formorer pushed a commit to branch master
in repository pkg-check-mk.

commit 411c2074f28ad8ab51a6d6c6f95546827ae67d1d
Author: Thomas Bechtold <t.bechtold at telekom.de>
Date:   Thu Aug 8 17:26:03 2013 +0200

    check-mk-server: Add debconf note about RRD update.
---
 debian/check-mk-server.config    |   13 +++++++++++++
 debian/check-mk-server.postinst  |    4 ++++
 debian/check-mk-server.templates |    8 ++++++++
 debian/control                   |    2 +-
 debian/rules                     |    1 +
 5 files changed, 27 insertions(+), 1 deletion(-)

diff --git a/debian/check-mk-server.config b/debian/check-mk-server.config
new file mode 100644
index 0000000..350af36
--- /dev/null
+++ b/debian/check-mk-server.config
@@ -0,0 +1,13 @@
+#!/bin/sh
+set -e
+
+# config script is run with 2 parameters given (see man debconf-devel):
+# 1. action being performed
+# 2. version of the package that is currently installed
+
+# Source debconf library.
+. /usr/share/debconf/confmodule
+
+# Message about rdd definiton changes
+db_input high check-mk-server/v1.2_upgrade_msg || true
+db_go || true
diff --git a/debian/check-mk-server.postinst b/debian/check-mk-server.postinst
index 27fad76..821d980 100644
--- a/debian/check-mk-server.postinst
+++ b/debian/check-mk-server.postinst
@@ -2,6 +2,10 @@
 
 set -e
 
+# Source debconf library.
+. /usr/share/debconf/confmodule
+db_stop
+
 # a little helper for getting permissions right
 setperm() {
     local user="$1"
diff --git a/debian/check-mk-server.templates b/debian/check-mk-server.templates
new file mode 100644
index 0000000..57cdb0f
--- /dev/null
+++ b/debian/check-mk-server.templates
@@ -0,0 +1,8 @@
+Template: check-mk-server/v1.2_upgrade_msg
+Type: note
+Description: Convert or delete RRD graphs
+ The tcp_conn_stats check now also counts sockets in the state BOUND. From that follows that the check now issues one more performance data value.
+ Those who do not use PNP in the "MULTIPLE" mode need either to delete or convert their RRD graphs of those checks.
+ Otherwise they won't be updated anymore.
+ .
+ For further information, please read the migration notes provided upstream: http://mathias-kettner.de/checkmk_migration_notes.html .
diff --git a/debian/control b/debian/control
index 186a22e..e071e1e 100644
--- a/debian/control
+++ b/debian/control
@@ -40,7 +40,7 @@ Description: general purpose nagios-plugin for retrieving data
 
 Package: check-mk-server
 Architecture: any
-Depends: ${shlibs:Depends}, ${misc:Depends}, adduser, python, check-mk-config-nagios3 | check-mk-config-icinga
+Depends: ${shlibs:Depends}, ${misc:Depends}, adduser, python, check-mk-config-nagios3 | check-mk-config-icinga, debconf
 Recommends: check-mk-doc, snmp
 Description: general purpose nagios-plugin for retrieving data
  Check_mk adopts a new a approach for collecting data from operating systems
diff --git a/debian/rules b/debian/rules
index fc5e735..c6f4e58 100755
--- a/debian/rules
+++ b/debian/rules
@@ -56,6 +56,7 @@ install: build
 	dh_testroot
 	dh_prep
 	dh_installdirs
+	dh_installdebconf
 	mkdir -p debian/tmp
 	DESTDIR=debian/tmp ./setup.sh --yes
 	#don't use the statically linked binary.

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-nagios/pkg-check-mk.git



More information about the Pkg-nagios-changes mailing list