diff options
Diffstat (limited to '')
-rw-r--r-- | debian/control | 2 | ||||
-rw-r--r-- | debian/lzip.README.Debian | 8 | ||||
-rwxr-xr-x | debian/lzip.postinst | 13 | ||||
-rwxr-xr-x | debian/lzip.prerm | 7 |
4 files changed, 30 insertions, 0 deletions
diff --git a/debian/control b/debian/control index ea94062..f404d41 100644 --- a/debian/control +++ b/debian/control @@ -18,6 +18,8 @@ Depends: ${shlibs:Depends}, Provides: lzip-alternative, + lzip-compressor, + lzip-decompressor, Description: 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/lzip.README.Debian b/debian/lzip.README.Debian index b36f972..eb71338 100644 --- a/debian/lzip.README.Debian +++ b/debian/lzip.README.Debian @@ -73,6 +73,11 @@ This allows: before, install plzip and all your Lzip operations are now parallelized automatically. +Additional lzip-compressor and lzip-decompressor are provided, both as virtual +packages as well as alternatives in /usr/bin. This allows one to use a mixed +mode of setting lzip alternatives globally, such as using plzip for +decompression and lzip for compression. + 3. Best practice ---------------- @@ -86,6 +91,9 @@ To make the best use of Lzip, the following should be considered: implementation (e.g. use 'Depends: lzip-alternative | lzip' or 'Depends: lzip-alternative | plzip', not 'Depends: lzip'). + * use compressor or decompressor explicitly (e.g. use + 'Depends: lzip-decompressor | lunzip' if you don't need to compress files). + 4. See also ----------- diff --git a/debian/lzip.postinst b/debian/lzip.postinst index f4ee4fc..421394d 100755 --- a/debian/lzip.postinst +++ b/debian/lzip.postinst @@ -4,10 +4,23 @@ set -e case "${1}" in configure) + # lzip-alternative update-alternatives --quiet \ --install /usr/bin/lzip lzip /usr/bin/lzip.lzip 5000 \ --slave /usr/share/info/lzip.info.gz lzip.info.gz /usr/share/info/lzip.lzip.info.gz \ --slave /usr/share/man/man1/lzip.1.gz lzip.1.gz /usr/share/man/man1/lzip.lzip.1.gz + + # lzip-compressor + update-alternatives --quiet \ + --install /usr/bin/lzip-compressor lzip-compressor /usr/bin/lzip.lzip 5000 \ + --slave /usr/share/info/lzip-compressor.info.gz lzip-compressor.info.gz /usr/share/info/lzip.lzip.info.gz \ + --slave /usr/share/man/man1/lzip-compressor.1.gz lzip-compressor.1.gz /usr/share/man/man1/lzip.lzip.1.gz + + # lzip-decompressor + update-alternatives --quiet \ + --install /usr/bin/lzip-decompressor lzip-decompressor /usr/bin/lzip.lzip 5000 \ + --slave /usr/share/info/lzip-decompressor.info.gz lzip-decompressor.info.gz /usr/share/info/lzip.lzip.info.gz \ + --slave /usr/share/man/man1/lzip-decompressor.1.gz lzip-decompressor.1.gz /usr/share/man/man1/lzip.lzip.1.gz ;; abort-upgrade|abort-remove|abort-deconfigure) diff --git a/debian/lzip.prerm b/debian/lzip.prerm index 35e8122..88f2bd8 100755 --- a/debian/lzip.prerm +++ b/debian/lzip.prerm @@ -4,7 +4,14 @@ set -e case "${1}" in remove|upgrade|deconfigure) + # lzip-alternative update-alternatives --quiet --remove lzip /usr/bin/lzip.lzip + + # lzip-compressor + update-alternatives --quiet --remove lzip-compressor /usr/bin/lzip.lzip + + # lzip-decompressor + update-alternatives --quiet --remove lzip-decompressor /usr/bin/lzip.lzip ;; failed-upgrade) |