summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDaniel Baumann <daniel.baumann@progress-linux.org>2018-09-15 13:24:28 +0000
committerDaniel Baumann <daniel.baumann@progress-linux.org>2018-12-28 09:49:06 +0000
commit7c074bd03d812eed48261e8eb6d5925ad38cdd89 (patch)
tree9fd457cef500175b22c45a11cfb7c4c7ffc3d5b0
parentReleasing debian version 1.7-2. (diff)
downloadplzip-7c074bd03d812eed48261e8eb6d5925ad38cdd89.tar.xz
plzip-7c074bd03d812eed48261e8eb6d5925ad38cdd89.zip
Adding lzip-compressor and lzip-decompressor alternatives.
Signed-off-by: Daniel Baumann <daniel.baumann@progress-linux.org>
-rw-r--r--debian/control2
-rwxr-xr-xdebian/plzip.postinst13
-rwxr-xr-xdebian/plzip.prerm7
3 files changed, 22 insertions, 0 deletions
diff --git a/debian/control b/debian/control
index 88dc7b5..9bf4e8e 100644
--- a/debian/control
+++ b/debian/control
@@ -19,6 +19,8 @@ Depends:
${shlibs:Depends},
Provides:
lzip-alternative,
+ lzip-compressor,
+ lzip-decompressor,
Description: parallel, 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/plzip.postinst b/debian/plzip.postinst
index 22a74b5..68f68d2 100755
--- a/debian/plzip.postinst
+++ b/debian/plzip.postinst
@@ -4,10 +4,23 @@ set -e
case "${1}" in
configure)
+ # lzip-alternative
update-alternatives --quiet \
--install /usr/bin/lzip lzip /usr/bin/lzip.plzip 6000 \
--slave /usr/share/info/lzip.info.gz lzip.info.gz /usr/share/info/lzip.plzip.info.gz \
--slave /usr/share/man/man1/lzip.1.gz lzip.1.gz /usr/share/man/man1/lzip.plzip.1.gz
+
+ # lzip-compressor
+ update-alternatives --quiet \
+ --install /usr/bin/lzip-compressor lzip-compressor /usr/bin/lzip.plzip 6000 \
+ --slave /usr/share/info/lzip-compressor.info.gz lzip-compressor.info.gz /usr/share/info/lzip.plzip.info.gz \
+ --slave /usr/share/man/man1/lzip-compressor.1.gz lzip-compressor.1.gz /usr/share/man/man1/lzip.plzip.1.gz
+
+ # lzip-decompressor
+ update-alternatives --quiet \
+ --install /usr/bin/lzip-decompressor lzip-decompressor /usr/bin/lzip.plzip 6000 \
+ --slave /usr/share/info/lzip-decompressor.info.gz lzip-decompressor.info.gz /usr/share/info/lzip.plzip.info.gz \
+ --slave /usr/share/man/man1/lzip-decompressor.1.gz lzip-decompressor.1.gz /usr/share/man/man1/lzip.plzip.1.gz
;;
abort-upgrade|abort-remove|abort-deconfigure)
diff --git a/debian/plzip.prerm b/debian/plzip.prerm
index ddeeba4..7bd08c1 100755
--- a/debian/plzip.prerm
+++ b/debian/plzip.prerm
@@ -4,7 +4,14 @@ set -e
case "${1}" in
remove|upgrade|deconfigure)
+ # lzip-alternative
update-alternatives --quiet --remove lzip /usr/bin/lzip.plzip
+
+ # lzip-compressor
+ update-alternatives --quiet --remove lzip-compressor /usr/bin/lzip.plzip
+
+ # lzip-decompressor
+ update-alternatives --quiet --remove lzip-decompressor /usr/bin/lzip.plzip
;;
failed-upgrade)