diff options
-rwxr-xr-x | debian/clzip.postinst | 13 | ||||
-rwxr-xr-x | debian/clzip.prerm | 7 | ||||
-rw-r--r-- | debian/control | 2 |
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. |