diff options
author | Daniel Baumann <daniel.baumann@progress-linux.org> | 2018-09-15 13:24:31 +0000 |
---|---|---|
committer | Daniel Baumann <daniel.baumann@progress-linux.org> | 2018-12-28 09:46:02 +0000 |
commit | 035c70938c48654ddb139f769069fecbd9ec139f (patch) | |
tree | 41edee5f7cc60cfbc3e7e95b87b1048d979c7869 | |
parent | Releasing debian version 1.9-2. (diff) | |
download | pdlzip-035c70938c48654ddb139f769069fecbd9ec139f.tar.xz pdlzip-035c70938c48654ddb139f769069fecbd9ec139f.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/pdlzip.postinst | 11 | ||||
-rwxr-xr-x | debian/pdlzip.prerm | 7 |
3 files changed, 20 insertions, 0 deletions
diff --git a/debian/control b/debian/control index 1bf615e..982efe6 100644 --- a/debian/control +++ b/debian/control @@ -17,6 +17,8 @@ Depends: ${shlibs:Depends}, Provides: lzip-alternative, + lzip-compressor, + lzip-decompressor, Description: data compressor based on the LZMA algorithm (simple version) 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/pdlzip.postinst b/debian/pdlzip.postinst index f5200e8..bd2d424 100755 --- a/debian/pdlzip.postinst +++ b/debian/pdlzip.postinst @@ -4,9 +4,20 @@ set -e case "${1}" in configure) + # lzip-alternative update-alternatives --quiet \ --install /usr/bin/lzip lzip /usr/bin/lzip.pdlzip 2000 \ --slave /usr/share/man/man1/lzip.1.gz lzip.1.gz /usr/share/man/man1/lzip.pdlzip.1.gz + + # lzip-compressor + update-alternatives --quiet \ + --install /usr/bin/lzip-compressor lzip-compressor /usr/bin/lzip.pdlzip 2000 \ + --slave /usr/share/man/man1/lzip-compressor.1.gz lzip-compressor.1.gz /usr/share/man/man1/lzip.pdlzip.1.gz + + # lzip-decompressor + update-alternatives --quiet \ + --install /usr/bin/lzip-decompressor lzip-decompressor /usr/bin/lzip.pdlzip 2000 \ + --slave /usr/share/man/man1/lzip-decompressor.1.gz lzip-decompressor.1.gz /usr/share/man/man1/lzip.pdlzip.1.gz ;; abort-upgrade|abort-remove|abort-deconfigure) diff --git a/debian/pdlzip.prerm b/debian/pdlzip.prerm index 16b049c..57beec7 100755 --- a/debian/pdlzip.prerm +++ b/debian/pdlzip.prerm @@ -4,7 +4,14 @@ set -e case "${1}" in remove|upgrade|deconfigure) + # lzip-alternative update-alternatives --quiet --remove lzip /usr/bin/lzip.pdlzip + + # lzip-compressor + update-alternatives --quiet --remove lzip-compressor /usr/bin/lzip.pdlzip + + # lzip-decompressor + update-alternatives --quiet --remove lzip-decompressor /usr/bin/lzip.pdlzip ;; failed-upgrade) |