summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: 43c1421)
raw | patch | inline | side by side (parent: 43c1421)
author | Sebastian Harl <sh@tokkee.org> | |
Thu, 3 May 2007 16:39:22 +0000 (18:39 +0200) | ||
committer | Sebastian Harl <sh@tokkee.org> | |
Thu, 3 May 2007 16:39:22 +0000 (18:39 +0200) |
If the script fails to detect XML::Simple it will disable auto-migration.
debian/collectd.config | patch | blob | history | |
debian/collectd.templates | patch | blob | history | |
debian/control | patch | blob | history | |
debian/po/templates.pot | patch | blob | history |
diff --git a/debian/collectd.config b/debian/collectd.config
index 0a57dc8e28f8c0cb5b1a0326d6b6b4633f37f38f..2bbbf8e167f59085384891514048039671e110b5 100755 (executable)
--- a/debian/collectd.config
+++ b/debian/collectd.config
db_set collectd/auto-migrate-3-4 false
if dpkg --compare-versions "$2" lt-nl "4.0.0~"; then
- db_input high collectd/auto-migrate-3-4 || true
- db_go || true
+ if perl -MXML::Simple -e '1' 2> /dev/null; then
+ db_input high collectd/auto-migrate-3-4 || true
+ db_go || true
+ else
+ db_input high collectd/migration-3-4 || true
+ db_go || true
+ fi
fi
;;
index 21de8e5048b6f114fbe2e4390425eb2b48e1f0f3..b1f2f76faca6f0fdf0d878ef48e1b7f3ac71e215 100644 (file)
+Template: collectd/migration-3-4
+Type: note
+_Description: Layout of RRD files has changed
+ The layout of the RRD files created by collectd has changed significantly
+ since version 3.x. In order to keep your old data you have to migrate it.
+ This can be done by using /usr/lib/collectd/utils/migrate-3-4.px.
+ .
+ This step requires the XML::Simple Perl module (libxml-simple-perl) which you
+ do not currently have installed. You need to perform the migration manually.
+ .
+ See /usr/share/doc/collectd/NEWS.Debian for details.
+
Template: collectd/auto-migrate-3-4
Type: boolean
Default: false
_Description: Automatically try to migrate your RRD files?
The layout of the RRD files created by collectd has changed significantly
since version 3.x. In order to keep your old data you have to migrate it.
- This can be done by using /usr/lib/collectd/utils/migrate-3-4.px. This step
- can be done automatically. In this case a backup of /var/lib/collectd/ is
- made in /var/backups/. You need to have the XML::Simple Perl module
- (libxml-simple-per) installed for this script to work.
+ This can be done by using /usr/lib/collectd/utils/migrate-3-4.px.
.
- See /usr/share/doc/collectd/NEWS.Debian for details.
+ This step can be done automatically. In this case a backup of
+ /var/lib/collectd/ is made in /var/backups/. This script is still
+ experimental, though. Do not expect it to work in all cases.
.
- This script is still experimental. Do not expect it to work in all cases.
+ See /usr/share/doc/collectd/NEWS.Debian for details.
diff --git a/debian/control b/debian/control
index 3f7773ec56b3ed2bba7ee059724827410bb3b9a1..88c4b4dd73f4a354cc72bbdd87bf4115e31985b7 100644 (file)
--- a/debian/control
+++ b/debian/control
Package: collectd
Architecture: any
Depends: ${shlibs:Depends}, ${misc:Depends}
+Recommends: libxml-simple-perl
Suggests: collectd-apache, collectd-mysql, collectd-sensors, collectd-dev,
collectd-ping, collectd-dns, collectd-perl,librrds-perl, hddtemp, mbmon
Provides: collectd-hddtemp
index fbf3c2c996d25cb488fc5f34bcd09ef7de6e8edf..a3892146f234c0772a22f29b33b7ddfb68bd99f5 100644 (file)
--- a/debian/po/templates.pot
+++ b/debian/po/templates.pot
msgstr ""
"Project-Id-Version: PACKAGE VERSION\n"
"Report-Msgid-Bugs-To: sh@tokkee.org\n"
-"POT-Creation-Date: 2007-05-01 22:08+0200\n"
+"POT-Creation-Date: 2007-05-03 18:36+0200\n"
"PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n"
"Last-Translator: FULL NAME <EMAIL@ADDRESS>\n"
"Language-Team: LANGUAGE <LL@li.org>\n"
"Content-Type: text/plain; charset=CHARSET\n"
"Content-Transfer-Encoding: 8bit\n"
-#. Type: boolean
+#. Type: note
#. Description
#: ../collectd.templates:1001
-msgid "Automatically try to migrate your RRD files?"
+msgid "Layout of RRD files has changed"
msgstr ""
+#. Type: note
+#. Description
#. Type: boolean
#. Description
-#: ../collectd.templates:1001
+#: ../collectd.templates:1001 ../collectd.templates:2001
msgid ""
"The layout of the RRD files created by collectd has changed significantly "
"since version 3.x. In order to keep your old data you have to migrate it. "
-"This can be done by using /usr/lib/collectd/utils/migrate-3-4.px. This step "
-"can be done automatically. In this case a backup of /var/lib/collectd/ is "
-"made in /var/backups/. You need to have the XML::Simple Perl module (libxml-"
-"simple-per) installed for this script to work."
+"This can be done by using /usr/lib/collectd/utils/migrate-3-4.px."
msgstr ""
-#. Type: boolean
+#. Type: note
#. Description
#: ../collectd.templates:1001
+msgid ""
+"This step requires the XML::Simple Perl module (libxml-simple-perl) which "
+"you do not currently have installed. You need to perform the migration "
+"manually."
+msgstr ""
+
+#. Type: note
+#. Description
+#. Type: boolean
+#. Description
+#: ../collectd.templates:1001 ../collectd.templates:2001
msgid "See /usr/share/doc/collectd/NEWS.Debian for details."
msgstr ""
#. Type: boolean
#. Description
-#: ../collectd.templates:1001
+#: ../collectd.templates:2001
+msgid "Automatically try to migrate your RRD files?"
+msgstr ""
+
+#. Type: boolean
+#. Description
+#: ../collectd.templates:2001
msgid ""
-"This script is still experimental. Do not expect it to work in all cases."
+"This step can be done automatically. In this case a backup of /var/lib/"
+"collectd/ is made in /var/backups/. This script is still experimental, "
+"though. Do not expect it to work in all cases."
msgstr ""