Adding alternative handling for /usr/bin/lzip.
Signed-off-by: Daniel Baumann <daniel@debian.org>
This commit is contained in:
parent
cfbffdc6b3
commit
babddf4dca
4 changed files with 57 additions and 0 deletions
25
debian/plzip.postinst
vendored
Normal file
25
debian/plzip.postinst
vendored
Normal file
|
@ -0,0 +1,25 @@
|
|||
#!/bin/sh
|
||||
|
||||
set -e
|
||||
|
||||
case "${1}" in
|
||||
configure)
|
||||
update-alternatives --quiet \
|
||||
--install /usr/bin/lzip lzip /usr/bin/lzip.parallel 200 \
|
||||
--slave /usr/share/info/lzip.info.gz lzip.info.gz /usr/share/info/lzip.parallel.info.gz \
|
||||
--slave /usr/share/man/man1/lzip.1.gz lzip.1.gz /usr/share/man/man1/lzip.parallel.1.gz
|
||||
;;
|
||||
|
||||
abort-upgrade|abort-remove|abort-deconfigure)
|
||||
|
||||
;;
|
||||
|
||||
*)
|
||||
echo "postinst called with unknown argument \`${1}'" >&2
|
||||
exit 1
|
||||
;;
|
||||
esac
|
||||
|
||||
#DEBHELPER#
|
||||
|
||||
exit 0
|
Loading…
Add table
Add a link
Reference in a new issue