Upstream have fixed their version, and keeping this local version in
sync is a waste of time (especially as it's broken with bookworm).
+nagios-plugins-local (0.26) unstable; urgency=medium
+
+ * Remove check_running_kernel and associated overrides as the upstream
+ version was fixed back in 2019
+
+ -- Michael Howe <michael@michaelhowe.org> Sun, 16 Jul 2023 20:53:51 +0100
+
nagios-plugins-local (0.25) unstable; urgency=medium
* Update remaining nagios plugins to python3, and also modernise them
/usr/lib/nagios/plugins/check_monit
/usr/lib/nagios/plugins/check_iostat
/usr/lib/nagios/plugins/check_systemd
-/usr/lib/nagios/plugins/check_running_kernel
--- /dev/null
+#!/bin/sh
+
+set -e
+
+remove_diversion() {
+ dpkg-divert --package nagios-plugins-local-client --remove --rename /usr/lib/nagios/plugins/check_running_kernel
+}
+
+if [ "configure" = "$1" ] && dpkg --compare-versions "$2" ge "0.25"; then
+ if dpkg-divert --list | grep -q -F "/usr/lib/nagios/plugins/check_running_kernel" ; then
+ remove_diversion
+ fi
+fi
+
+#DEBHELPER#
+
+exit 0
dpkg-divert --add --package nagios-plugins-local-client --rename --divert /usr/lib/nagios/plugins/check_running_kernel.distrib /usr/lib/nagios/plugins/check_running_kernel
}
-if [ "upgrade" != "$1" ] || dpkg --compare-versions "$2" lt "0.20"; then
- add_diversion
-fi
+#if [ "upgrade" != "$1" ] || dpkg --compare-versions "$2" lt "0.20"; then
+ # add_diversion
+#fi
#DEBHELPER#