1
0
Fork 0

Adding lzip-compressor and lzip-decompressor alternatives.

Signed-off-by: Daniel Baumann <daniel@debian.org>
This commit is contained in:
Daniel Baumann 2025-02-20 15:03:50 +01:00
parent dd4cadd9c0
commit 22ad8d77bb
Signed by: daniel
GPG key ID: FBB4F0E80A80222F
3 changed files with 22 additions and 1 deletions

2
debian/control vendored
View file

@ -18,6 +18,8 @@ Depends:
${shlibs:Depends},
Provides:
lzip-alternative,
lzip-compressor,
lzip-decompressor,
Description: Educational, 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.

14
debian/lzd.postinst vendored
View file

@ -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)

7
debian/lzd.prerm vendored
View file

@ -4,7 +4,14 @@ set -e
case "${1}" in
remove|upgrade|deconfigure)
# lzip-alternative
update-alternatives --quiet --remove lzip /usr/bin/lzip.lzd
# lzip-compressor
update-alternatives --quiet --remove lzip-compressor /usr/bin/lzip.lzd
# lzip-decompressor
update-alternatives --quiet --remove lzip-decompressor /usr/bin/lzip.lzd
;;
failed-upgrade)