summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDaniel Baumann <daniel.baumann@progress-linux.org>2018-09-15 13:25:49 +0000
committerDaniel Baumann <daniel.baumann@progress-linux.org>2018-09-15 13:42:54 +0000
commitb0d6528f69e6995955515b4bf4fd89a54ae2d9d9 (patch)
treeb3579c761cb3c87402ddc7c7079982d4cefb6959
parentReleasing debian version 1.10-3. (diff)
downloadlunzip-b0d6528f69e6995955515b4bf4fd89a54ae2d9d9.tar.xz
lunzip-b0d6528f69e6995955515b4bf4fd89a54ae2d9d9.zip
Adding lzip-decompressor alternatives.
Signed-off-by: Daniel Baumann <daniel.baumann@progress-linux.org>
-rw-r--r--debian/control1
-rwxr-xr-xdebian/lunzip.postinst6
-rwxr-xr-xdebian/lunzip.prerm4
3 files changed, 11 insertions, 0 deletions
diff --git a/debian/control b/debian/control
index bbf37a5..eff6693 100644
--- a/debian/control
+++ b/debian/control
@@ -17,6 +17,7 @@ Depends:
${shlibs:Depends},
Provides:
lzip-alternative,
+ lzip-decompressor,
Description: data compressor based on the LZMA algorithm (decompressor)
Lzip is a lossless data compressor based on the LZMA algorithm, with very safe
integrity checking and a user interface similar to the one of gzip or bzip2.
diff --git a/debian/lunzip.postinst b/debian/lunzip.postinst
index 9e7208e..4c02908 100755
--- a/debian/lunzip.postinst
+++ b/debian/lunzip.postinst
@@ -4,9 +4,15 @@ set -e
case "${1}" in
configure)
+ # lzip-alternative
update-alternatives --quiet \
--install /usr/bin/lzip lzip /usr/bin/lzip.lunzip -1000 \
--slave /usr/share/man/man1/lzip.1.gz lzip.1.gz /usr/share/man/man1/lzip.lunzip.1.gz
+
+ # lzip-decompressor
+ update-alternatives --quiet \
+ --install /usr/bin/lzip-decompressor lzip-decompressor /usr/bin/lzip.lunzip -1000 \
+ --slave /usr/share/man/man1/lzip-decompressor.1.gz lzip-decompressor.1.gz /usr/share/man/man1/lzip.lunzip.1.gz
;;
abort-upgrade|abort-remove|abort-deconfigure)
diff --git a/debian/lunzip.prerm b/debian/lunzip.prerm
index 6e75227..0bb9f30 100755
--- a/debian/lunzip.prerm
+++ b/debian/lunzip.prerm
@@ -4,7 +4,11 @@ set -e
case "${1}" in
remove|upgrade|deconfigure)
+ # lzip-alternative
update-alternatives --quiet --remove lzip /usr/bin/lzip.lunzip
+
+ # lzip-decompressor
+ update-alternatives --quiet --remove lzip-decompressor /usr/bin/lzip.lunzip
;;
failed-upgrade)