summaryrefslogtreecommitdiffstats
path: root/debian/zutils.postrm
diff options
context:
space:
mode:
authorDaniel Baumann <daniel.baumann@progress-linux.org>2024-04-14 12:58:25 +0000
committerDaniel Baumann <daniel.baumann@progress-linux.org>2024-04-14 12:58:25 +0000
commitf8b544ad8eef4c7cfea133073d7360cb4e44ddf3 (patch)
tree7d9d190039f70569d87e655b4ac9ecc0e5f5ae4a /debian/zutils.postrm
parentAdding upstream version 1.13. (diff)
downloadzutils-f8b544ad8eef4c7cfea133073d7360cb4e44ddf3.tar.xz
zutils-f8b544ad8eef4c7cfea133073d7360cb4e44ddf3.zip
Adding debian version 1.13-2.debian/1.13-2
Signed-off-by: Daniel Baumann <daniel.baumann@progress-linux.org>
Diffstat (limited to 'debian/zutils.postrm')
-rwxr-xr-xdebian/zutils.postrm27
1 files changed, 27 insertions, 0 deletions
diff --git a/debian/zutils.postrm b/debian/zutils.postrm
new file mode 100755
index 0000000..9a3c7c5
--- /dev/null
+++ b/debian/zutils.postrm
@@ -0,0 +1,27 @@
+#!/bin/sh
+
+set -e
+
+case "${1}" in
+ remove)
+ for FILE in zcat zcmp zdiff zegrep zfgrep zgrep
+ do
+ dpkg-divert --package zutils --quiet --remove --rename --divert "/usr/bin/${FILE}.gzip" "/usr/bin/${FILE}"
+ dpkg-divert --package zutils --quiet --remove --rename --divert "/bin/${FILE}.gzip.usr-is-merged" "/bin/${FILE}"
+ dpkg-divert --package zutils --quiet --remove --rename --divert /usr/share/man/man1/${FILE}.gzip.1.gz /usr/share/man/man1/${FILE}.1.gz
+ done
+ ;;
+
+ purge|upgrade|failed-upgrade|abort-install|abort-upgrade|disappear)
+
+ ;;
+
+ *)
+ echo "postrm called with unknown argument \`${1}'" >&2
+ exit 1
+ ;;
+esac
+
+#DEBHELPER#
+
+exit 0