From: Sebastian Harl Date: Sat, 19 May 2007 18:52:13 +0000 (+0200) Subject: migrate-3-4.px requires perl and rrdtool but no longer XML::Simple. X-Git-Tag: collectd-4.0.2-1~38 X-Git-Url: https://git.tokkee.org/?a=commitdiff_plain;h=602d1cf2aa77067eb74146f93dc5829351e324ab;p=pkg-collectd.git migrate-3-4.px requires perl and rrdtool but no longer XML::Simple. --- diff --git a/debian/collectd.config b/debian/collectd.config index 2bbbf8e..38ccb22 100755 --- a/debian/collectd.config +++ b/debian/collectd.config @@ -17,7 +17,7 @@ case "$1" in db_set collectd/auto-migrate-3-4 false if dpkg --compare-versions "$2" lt-nl "4.0.0~"; then - if perl -MXML::Simple -e '1' 2> /dev/null; then + if perl -e '1' 2> /dev/null && rrdtool > /dev/null 2>&1; then db_input high collectd/auto-migrate-3-4 || true db_go || true else diff --git a/debian/collectd.templates b/debian/collectd.templates index b1f2f76..c9d71dc 100644 --- a/debian/collectd.templates +++ b/debian/collectd.templates @@ -5,8 +5,8 @@ _Description: Layout of RRD files has changed 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. + This step requires the perl and rrdtool packages which you do not currently + have installed. You need to perform the migration manually. . See /usr/share/doc/collectd/NEWS.Debian for details. diff --git a/debian/control b/debian/control index f868188..ae69c3f 100644 --- a/debian/control +++ b/debian/control @@ -9,7 +9,7 @@ Standards-Version: 3.7.2 Package: collectd Architecture: any Depends: ${shlibs:Depends}, ${misc:Depends} -Recommends: libxml-simple-perl +Recommends: perl, rrdtool Suggests: collectd-apache, collectd-mysql, collectd-sensors, collectd-dev, collectd-ping, collectd-dns, collectd-perl,librrds-perl, hddtemp, mbmon Provides: collectd-hddtemp