summaryrefslogtreecommitdiffstats
path: root/debian/zutils.preinst
diff options
context:
space:
mode:
authorDaniel Baumann <daniel.baumann@progress-linux.org>2024-05-06 03:08:42 +0000
committerDaniel Baumann <daniel.baumann@progress-linux.org>2024-05-06 03:08:42 +0000
commit923ef79d867ae4376957e6e355da166ce73ac666 (patch)
tree2a5cb66f6b060927265ed3d1bcf809fe82f3a484 /debian/zutils.preinst
parentAdding upstream version 1.8. (diff)
downloadzutils-6ffa88ee061c94047e152ada9648c23f3a564e20.tar.xz
zutils-6ffa88ee061c94047e152ada9648c23f3a564e20.zip
Adding debian version 1.8-3.debian/1.8-3debian
Signed-off-by: Daniel Baumann <daniel.baumann@progress-linux.org>
Diffstat (limited to 'debian/zutils.preinst')
-rwxr-xr-xdebian/zutils.preinst26
1 files changed, 26 insertions, 0 deletions
diff --git a/debian/zutils.preinst b/debian/zutils.preinst
new file mode 100755
index 0000000..dde1340
--- /dev/null
+++ b/debian/zutils.preinst
@@ -0,0 +1,26 @@
+#!/bin/sh
+
+set -e
+
+case "${1}" in
+ install)
+ for FILE in zcat zcmp zdiff zegrep zfgrep zgrep
+ do
+ dpkg-divert --package zutils --quiet --add --rename --divert /bin/${FILE}.gzip /bin/${FILE}
+ dpkg-divert --package zutils --quiet --add --rename --divert /usr/share/man/man1/${FILE}.gzip.1.gz /usr/share/man/man1/${FILE}.1.gz
+ done
+ ;;
+
+ abort-upgrade|upgrade)
+
+ ;;
+
+ *)
+ echo "preinst called with unknown argument \`${1}'" >&2
+ exit 1
+ ;;
+esac
+
+#DEBHELPER#
+
+exit 0