summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDaniel Baumann <daniel.baumann@progress-linux.org>2018-09-15 13:25:42 +0000
committerDaniel Baumann <daniel.baumann@progress-linux.org>2018-12-28 09:33:05 +0000
commit89f441dde8999310871e33117c3c24d543618041 (patch)
treeb013f8d860956e5f9e0c04b1cf674895ca8fef71
parentReleasing debian version 1.10-2. (diff)
downloadlzlib-89f441dde8999310871e33117c3c24d543618041.tar.xz
lzlib-89f441dde8999310871e33117c3c24d543618041.zip
Adding lzip-compressor and lzip-decompressor alternatives.
Signed-off-by: Daniel Baumann <daniel.baumann@progress-linux.org>
-rw-r--r--debian/control3
-rwxr-xr-xdebian/minilzip.postinst11
-rwxr-xr-xdebian/minilzip.prerm7
3 files changed, 20 insertions, 1 deletions
diff --git a/debian/control b/debian/control
index 721b29d..867c585 100644
--- a/debian/control
+++ b/debian/control
@@ -48,7 +48,8 @@ Depends:
${shlibs:Depends},
Provides:
lzip-alternative,
- minilzip,
+ lzip-compressor,
+ lzip-decompressor,
Description: minified, lossless data compressor based on the LZMA algorithm
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/minilzip.postinst b/debian/minilzip.postinst
index 07cc20a..ecd53a4 100755
--- a/debian/minilzip.postinst
+++ b/debian/minilzip.postinst
@@ -4,9 +4,20 @@ set -e
case "${1}" in
configure)
+ # lzip-alternative
update-alternatives --quiet \
--install /usr/bin/lzip lzip /usr/bin/lzip.minilzip 1000 \
--slave /usr/share/man/man1/lzip.1.gz lzip.1.gz /usr/share/man/man1/lzip.minilzip.1.gz
+
+ # lzip-compressor
+ update-alternatives --quiet \
+ --install /usr/bin/lzip-compressor lzip-compressor /usr/bin/lzip.minilzip 1000 \
+ --slave /usr/share/man/man1/lzip-compressor.1.gz lzip-compressor.1.gz /usr/share/man/man1/lzip.minilzip.1.gz
+
+ # lzip-decompressor
+ update-alternatives --quiet \
+ --install /usr/bin/lzip-decompressor lzip-decompressor /usr/bin/lzip.minilzip 1000 \
+ --slave /usr/share/man/man1/lzip-decompressor.1.gz lzip-decompressor.1.gz /usr/share/man/man1/lzip.minilzip.1.gz
;;
abort-upgrade|abort-remove|abort-deconfigure)
diff --git a/debian/minilzip.prerm b/debian/minilzip.prerm
index 54ebd3b..fffc839 100755
--- a/debian/minilzip.prerm
+++ b/debian/minilzip.prerm
@@ -4,7 +4,14 @@ set -e
case "${1}" in
remove|upgrade|deconfigure)
+ # lzip-alternative
update-alternatives --quiet --remove lzip /usr/bin/lzip.minilzip
+
+ # lzip-compressor
+ update-alternatives --quiet --remove lzip-compressor /usr/bin/lzip.minilzip
+
+ # lzip-decompressor
+ update-alternatives --quiet --remove lzip-decompressor /usr/bin/lzip.minilzip
;;
failed-upgrade)