diff --git a/debian/changelog b/debian/changelog index 21c13a1..0110021 100644 --- a/debian/changelog +++ b/debian/changelog @@ -4,6 +4,8 @@ nagios-plugins (1.4.14-3) UNRELEASED; urgency=medium * Move postfix | sendmail-bin | exim4-daemon-heavy | exim4-daemon-light to Suggests, thanks to Glennie Vignarajah (CLoses: #574591) * Install NEWS.Debian and README.Debian* to the appropriate packages + * Add 42_check_linux_raid_fix_rebuild.dpatch to return Warning when + rebuilding volume, thanks to Christoph Martin (CLoses: #574612) -- Jan Wagner Tue, 16 Mar 2010 09:35:20 +0100 diff --git a/debian/patches/42_check_linux_raid_fix_rebuild.dpatch b/debian/patches/42_check_linux_raid_fix_rebuild.dpatch new file mode 100755 index 0000000..f99208f --- /dev/null +++ b/debian/patches/42_check_linux_raid_fix_rebuild.dpatch @@ -0,0 +1,17 @@ +#! /bin/sh /usr/share/dpatch/dpatch-run +## 42_check_linux_raid_fix_rebuild.dpatch by Christoph Martin +## +## DP: Return Warning when rebuilding volume + +@DPATCH@ +diff -urNad '--exclude=CVS' '--exclude=.svn' '--exclude=.git' '--exclude=.arch' '--exclude=.hg' '--exclude=_darcs' '--exclude=.bzr' nagios-plugins-1.4.14~/contrib/check_linux_raid.pl nagios-plugins-1.4.14/contrib/check_linux_raid.pl +--- nagios-plugins-1.4.14~/contrib/check_linux_raid.pl 2010-03-19 15:35:24.000000000 +0100 ++++ nagios-plugins-1.4.14/contrib/check_linux_raid.pl 2010-03-19 15:37:35.000000000 +0100 +@@ -64,6 +64,7 @@ + } elsif (/recovery = (.*?)\s/) { + $recovery{$device} = $1; + ($finish{$device}) = /finish=(.*?min)/; ++ $device=undef; + } elsif (/^\s*$/) { + $device=undef; + }