summaryrefslogtreecommitdiffstats
path: root/debian/lzd.postinst
diff options
context:
space:
mode:
Diffstat (limited to '')
-rwxr-xr-xdebian/lzd.postinst14
1 files changed, 13 insertions, 1 deletions
diff --git a/debian/lzd.postinst b/debian/lzd.postinst
index 507bd91..508a294 100755
--- a/debian/lzd.postinst
+++ b/debian/lzd.postinst
@@ -4,8 +4,20 @@ set -e
case "${1}" in
configure)
+ # lzip-alternative
update-alternatives --quiet \
- --install /usr/bin/lzip lzip /usr/bin/lzip.lzd -2000
+ --install /usr/bin/lzip lzip /usr/bin/lzip.lzd -2000 \
+ --slave /usr/share/man/man1/lzip.1.gz lzip.1.gz /usr/share/man/man1/lzip.lzd.1.gz
+
+ # lzip-compressor
+ update-alternatives --quiet \
+ --install /usr/bin/lzip-compressor lzip-compressor /usr/bin/lzip.lzd -2000 \
+ --slave /usr/share/man/man1/lzip-compressor.1.gz lzip-compressor.1.gz /usr/share/man/man1/lzip.lzd.1.gz
+
+ # lzip-decompressor
+ update-alternatives --quiet \
+ --install /usr/bin/lzip-decompressor lzip-decompressor /usr/bin/lzip.lzd -2000 \
+ --slave /usr/share/man/man1/lzip-decompressor.1.gz lzip-decompressor.1.gz /usr/share/man/man1/lzip.lzd.1.gz
;;
abort-upgrade|abort-remove|abort-deconfigure)