maybe chmod 0755 'cron.daily/automysqlbackup'
maybe chmod 0755 'cron.daily/bsdmainutils'
maybe chmod 0755 'cron.daily/cracklib-runtime'
+maybe chmod 0755 'cron.daily/debsums'
maybe chmod 0755 'cron.daily/devolo-updates'
maybe chmod 0755 'cron.daily/dpkg'
maybe chmod 0755 'cron.daily/etckeeper'
maybe chmod 0755 'cron.monthly'
maybe chmod 0644 'cron.monthly/.placeholder'
maybe chmod 0755 'cron.monthly/0anacron'
+maybe chmod 0755 'cron.monthly/debsums'
maybe chmod 0755 'cron.weekly'
maybe chmod 0644 'cron.weekly/.placeholder'
maybe chmod 0755 'cron.weekly/0anacron'
maybe chmod 0755 'cron.weekly/apt-xapian-index'
+maybe chmod 0755 'cron.weekly/debsums'
maybe chmod 0755 'cron.weekly/man-db'
maybe chmod 0755 'cron.weekly/tor'
maybe chmod 0755 'cron.weekly/update-notifier-common'
maybe chmod 0644 'dbus-1/system.d/wpa_supplicant.conf'
maybe chmod 0644 'debconf.conf'
maybe chmod 0644 'debian_version'
+maybe chmod 0644 'debsums-ignore'
maybe chmod 0755 'default'
maybe chmod 0644 'default/acpi-support'
maybe chmod 0644 'default/acpid'
maybe chmod 0644 'default/cryptdisks'
maybe chmod 0644 'default/cups'
maybe chmod 0644 'default/dbus'
+maybe chmod 0644 'default/debsums'
maybe chmod 0644 'default/devolo-updates'
maybe chmod 0644 'default/devpts'
maybe chmod 0644 'default/docker'
--- /dev/null
+#!/bin/sh
+
+debsums="/usr/bin/debsums"
+ignorefile="/etc/debsums-ignore"
+
+[ -x $debsums ] || exit 0
+
+# source our config
+. /etc/default/debsums
+[ "z$CRON_CHECK" = "zdaily" ] || exit 0
+
+# See ionice(1)
+if [ -x /usr/bin/ionice ] &&
+ /usr/bin/ionice -c3 true 2>/dev/null; then
+ IONICE="/usr/bin/ionice -c3"
+fi
+
+exec 3>&1
+
+$IONICE $debsums -cs 2>&1 | egrep -vf "$ignorefile" | tee /proc/self/fd/3 | sed 's/^debsums: //' | logger -t debsums
+
+# Exit with a normal status code even if errors (which could be ignored) were found
+exit 0
--- /dev/null
+#!/bin/sh
+
+debsums="/usr/bin/debsums"
+ignorefile="/etc/debsums-ignore"
+
+[ -x $debsums ] || exit 0
+
+# source our config
+. /etc/default/debsums
+[ "z$CRON_CHECK" = "zmonthly" ] || exit 0
+
+# See ionice(1)
+if [ -x /usr/bin/ionice ] &&
+ /usr/bin/ionice -c3 true 2>/dev/null; then
+ IONICE="/usr/bin/ionice -c3"
+fi
+
+exec 3>&1
+
+$IONICE $debsums -cs 2>&1 | egrep -vf "$ignorefile" | tee /proc/self/fd/3 | sed 's/^debsums: //' | logger -t debsums
+
+# Exit with a normal status code even if errors (which could be ignored) were found
+exit 0
--- /dev/null
+#!/bin/sh
+
+debsums="/usr/bin/debsums"
+ignorefile="/etc/debsums-ignore"
+
+[ -x $debsums ] || exit 0
+
+# source our config
+. /etc/default/debsums
+[ "z$CRON_CHECK" = "zweekly" ] || exit 0
+
+# See ionice(1)
+if [ -x /usr/bin/ionice ] &&
+ /usr/bin/ionice -c3 true 2>/dev/null; then
+ IONICE="/usr/bin/ionice -c3"
+fi
+
+exec 3>&1
+
+$IONICE $debsums -cs 2>&1 | egrep -vf "$ignorefile" | tee /proc/self/fd/3 | sed 's/^debsums: //' | logger -t debsums
+
+# Exit with a normal status code even if errors (which could be ignored) were found
+exit 0
--- /dev/null
+# Defaults for debsums cron jobs
+# sourced by /etc/cron.d/debsums
+
+#
+# This is a POSIX shell fragment
+#
+
+# Set this to never to disable the checksum verification or
+# one of "daily", "weekly", "monthly" to enable it
+CRON_CHECK=never