diff options
author | Daniel Baumann <daniel.baumann@progress-linux.org> | 2024-05-06 01:16:25 +0000 |
---|---|---|
committer | Daniel Baumann <daniel.baumann@progress-linux.org> | 2024-05-06 01:16:25 +0000 |
commit | 493d99a59cc0189b4a6e9b5d4d74d9d747e34e01 (patch) | |
tree | f874c5dd860f5340e2988d0ad4fd30724db945a1 /debian/preinst | |
parent | Adding upstream version 2.8.5. (diff) | |
download | man-db-493d99a59cc0189b4a6e9b5d4d74d9d747e34e01.tar.xz man-db-493d99a59cc0189b4a6e9b5d4d74d9d747e34e01.zip |
Adding debian version 2.8.5-2.debian/2.8.5-2
Signed-off-by: Daniel Baumann <daniel.baumann@progress-linux.org>
Diffstat (limited to 'debian/preinst')
-rw-r--r-- | debian/preinst | 30 |
1 files changed, 30 insertions, 0 deletions
diff --git a/debian/preinst b/debian/preinst new file mode 100644 index 0000000..41dcab3 --- /dev/null +++ b/debian/preinst @@ -0,0 +1,30 @@ +#!/bin/sh +set -e + +# Clean up a cron job that the old man package apparently left around. +if [ -e /etc/cron.daily/man ]; then + echo " Removing /etc/cron.daily/man cron job from obsolete man package." + mv /etc/cron.daily/man /etc/cron.daily/man.moved-by-preinst +fi + +# Clean up a cron job left around by man-db from some time ago. +if [ -e /etc/cron.weekly/catman ]; then + echo " Removing obsolete /etc/cron.weekly/catman cron job." + mv /etc/cron.weekly/catman /etc/cron.weekly/catman.moved-by-preinst +fi + +# Migrate old statoverrides to new paths. +if dpkg --compare-versions "$2" lt 2.5.5-4; then + for x in $maybesetuid; do + overrides="$(dpkg-statoverride --list /usr/lib/man-db/$x || true)" + [ "$overrides" ] || continue + echo "$overrides" | while read owner group mode file; do + dpkg-statoverride --remove "$file" || true + dpkg-statoverride --add "$owner" "$group" "$mode" /usr/bin/$x || true + done + done +fi + +#DEBHELPER# + +exit 0 |