diff options
author | Daniel Baumann <daniel.baumann@progress-linux.org> | 2018-09-15 13:25:46 +0000 |
---|---|---|
committer | Daniel Baumann <daniel.baumann@progress-linux.org> | 2018-09-15 14:33:23 +0000 |
commit | 06528febc41ceba58956da0cd07b7827f6a3bf51 (patch) | |
tree | eeb75f1b3d0927bba50baf751d56b4422b78339e | |
parent | Releasing debian version 1.0-6. (diff) | |
download | lzd-06528febc41ceba58956da0cd07b7827f6a3bf51.tar.xz lzd-06528febc41ceba58956da0cd07b7827f6a3bf51.zip |
Adding lzip-compressor and lzip-decompressor alternatives.
Signed-off-by: Daniel Baumann <daniel.baumann@progress-linux.org>
Diffstat (limited to '')
-rw-r--r-- | debian/control | 2 | ||||
-rwxr-xr-x | debian/lzd.postinst | 14 | ||||
-rwxr-xr-x | debian/lzd.prerm | 7 |
3 files changed, 22 insertions, 1 deletions
diff --git a/debian/control b/debian/control index d0f7fa0..6fa45ea 100644 --- a/debian/control +++ b/debian/control @@ -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. diff --git a/debian/lzd.postinst b/debian/lzd.postinst index 507bd91..508a294 100755 --- a/debian/lzd.postinst +++ b/debian/lzd.postinst @@ -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) diff --git a/debian/lzd.prerm b/debian/lzd.prerm index 392f6c7..3ad403d 100755 --- a/debian/lzd.prerm +++ b/debian/lzd.prerm @@ -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) |