summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDaniel Baumann <daniel.baumann@progress-linux.org>2018-09-15 13:25:27 +0000
committerDaniel Baumann <daniel.baumann@progress-linux.org>2018-09-15 13:39:42 +0000
commitf6d1949ce423402420f5a09e0e279037943c8bd2 (patch)
tree5158a8592565c3a9f9513c4d0c75d02794d04155
parentReleasing debian version 1.10-2. (diff)
downloadclzip-f6d1949ce423402420f5a09e0e279037943c8bd2.tar.xz
clzip-f6d1949ce423402420f5a09e0e279037943c8bd2.zip
Adding lzip-compressor and lzip-decompressor alternatives.
Signed-off-by: Daniel Baumann <daniel.baumann@progress-linux.org>
Diffstat (limited to '')
-rwxr-xr-xdebian/clzip.postinst13
-rwxr-xr-xdebian/clzip.prerm7
-rw-r--r--debian/control2
3 files changed, 22 insertions, 0 deletions
diff --git a/debian/clzip.postinst b/debian/clzip.postinst
index e1af1a7..94025dc 100755
--- a/debian/clzip.postinst
+++ b/debian/clzip.postinst
@@ -4,10 +4,23 @@ set -e
case "${1}" in
configure)
+ # lzip-alternative
update-alternatives --quiet \
--install /usr/bin/lzip lzip /usr/bin/lzip.clzip 3000 \
--slave /usr/share/info/lzip.info.gz lzip.info.gz /usr/share/info/lzip.clzip.info.gz \
--slave /usr/share/man/man1/lzip.1.gz lzip.1.gz /usr/share/man/man1/lzip.clzip.1.gz
+
+ # lzip-compressor
+ update-alternatives --quiet \
+ --install /usr/bin/lzip-compressor lzip-compressor /usr/bin/lzip.clzip 3000 \
+ --slave /usr/share/info/lzip-compressor.info.gz lzip-compressor.info.gz /usr/share/info/lzip.clzip.info.gz \
+ --slave /usr/share/man/man1/lzip-compressor.1.gz lzip-compressor.1.gz /usr/share/man/man1/lzip.clzip.1.gz
+
+ # lzip-decompressor
+ update-alternatives --quiet \
+ --install /usr/bin/lzip-decompressor lzip-decompressor /usr/bin/lzip.clzip 3000 \
+ --slave /usr/share/info/lzip-decompressor.info.gz lzip-decompressor.info.gz /usr/share/info/lzip.clzip.info.gz \
+ --slave /usr/share/man/man1/lzip-decompressor.1.gz lzip-decompressor.1.gz /usr/share/man/man1/lzip.clzip.1.gz
;;
abort-upgrade|abort-remove|abort-deconfigure)
diff --git a/debian/clzip.prerm b/debian/clzip.prerm
index 023e80f..9c1539d 100755
--- a/debian/clzip.prerm
+++ b/debian/clzip.prerm
@@ -4,7 +4,14 @@ set -e
case "${1}" in
remove|upgrade|deconfigure)
+ # lzip-alternative
update-alternatives --quiet --remove lzip /usr/bin/lzip.clzip
+
+ # lzip-compressor
+ update-alternatives --quiet --remove lzip-compressor /usr/bin/lzip.clzip
+
+ # lzip-decompressor
+ update-alternatives --quiet --remove lzip-decompressor /usr/bin/lzip.clzip
;;
failed-upgrade)
diff --git a/debian/control b/debian/control
index d1abf79..72e843c 100644
--- a/debian/control
+++ b/debian/control
@@ -18,6 +18,8 @@ Depends:
${shlibs:Depends},
Provides:
lzip-alternative,
+ lzip-compressor,
+ lzip-decompressor,
Description: C, 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.