summaryrefslogtreecommitdiffstats
path: root/debian/klibc-utils.postinst
diff options
context:
space:
mode:
authorDaniel Baumann <daniel.baumann@progress-linux.org>2024-04-19 17:06:05 +0000
committerDaniel Baumann <daniel.baumann@progress-linux.org>2024-04-19 17:06:05 +0000
commit1aa22fd5afd692a2411ab2ffd42bdd96db3e2b9f (patch)
treeccc43985c0c11bc84e775e54f4aab6b6545bcf7e /debian/klibc-utils.postinst
parentAdding upstream version 2.0.13. (diff)
downloadklibc-debian.tar.xz
klibc-debian.zip
Adding debian version 2.0.13-4.debian/2.0.13-4debian
Signed-off-by: Daniel Baumann <daniel.baumann@progress-linux.org>
Diffstat (limited to 'debian/klibc-utils.postinst')
-rw-r--r--debian/klibc-utils.postinst20
1 files changed, 20 insertions, 0 deletions
diff --git a/debian/klibc-utils.postinst b/debian/klibc-utils.postinst
new file mode 100644
index 0000000..f31c443
--- /dev/null
+++ b/debian/klibc-utils.postinst
@@ -0,0 +1,20 @@
+#!/bin/sh
+
+set -e
+
+if [ ! -L /usr/share/doc/klibc-utils ] && \
+[ -e /usr/share/doc/klibc-utils ]; then
+ rm -rf /usr/share/doc/klibc-utils
+ cd /usr/share/doc/
+ ln -sf libklibc /usr/share/doc/klibc-utils
+fi
+
+# Remove diversion which was used during upgrades to stretch.
+# This command can be removed after the buster release.
+if dpkg --compare-versions "$2" lt 2.0.4-12~; then
+ dpkg-divert --package klibc-utils --remove --rename \
+ --divert /usr/share/initramfs-tools/hooks/klibc^i-t \
+ /usr/share/initramfs-tools/hooks/klibc
+fi
+
+#DEBHELPER#