Adding alternative handling for /usr/bin/lzip.
Signed-off-by: Daniel Baumann <daniel@debian.org>
This commit is contained in:
parent
c0c732650b
commit
d98bc001a2
4 changed files with 57 additions and 1 deletions
2
debian/control
vendored
2
debian/control
vendored
|
@ -9,7 +9,7 @@ Homepage: http://www.nongnu.org/lzip/lziprecover.html
|
|||
Package: lziprecover
|
||||
Architecture: any
|
||||
Depends: ${misc:Depends}, ${shlibs:Depends}
|
||||
Conflicts: lzip (<< 1.13~rc1-1~)
|
||||
Breaks: lzip (<< 1.15~)
|
||||
Description: lossless data compressor based on the LZMA algorithm (recovery)
|
||||
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.
|
||||
|
|
25
debian/lziprecover.postinst
vendored
Normal file
25
debian/lziprecover.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.recover 50 \
|
||||
--slave /usr/share/info/lzip.info.gz lzip.info.gz /usr/share/info/lzip.recover.info.gz \
|
||||
--slave /usr/share/man/man1/lzip.1.gz lzip.1.gz /usr/share/man/man1/lzip.recover.1.gz
|
||||
;;
|
||||
|
||||
abort-upgrade|abort-remove|abort-deconfigure)
|
||||
|
||||
;;
|
||||
|
||||
*)
|
||||
echo "postinst called with unknown argument \`${1}'" >&2
|
||||
exit 1
|
||||
;;
|
||||
esac
|
||||
|
||||
#DEBHELPER#
|
||||
|
||||
exit 0
|
22
debian/lziprecover.prerm
vendored
Normal file
22
debian/lziprecover.prerm
vendored
Normal file
|
@ -0,0 +1,22 @@
|
|||
#!/bin/sh
|
||||
|
||||
set -e
|
||||
|
||||
case "${1}" in
|
||||
remove|upgrade|deconfigure)
|
||||
update-alternatives --quiet --remove lzip /usr/bin/lzip.recover
|
||||
;;
|
||||
|
||||
failed-upgrade)
|
||||
|
||||
;;
|
||||
|
||||
*)
|
||||
echo "prerm called with unknown argument \`${1}'" >&2
|
||||
exit 1
|
||||
;;
|
||||
esac
|
||||
|
||||
#DEBHELPER#
|
||||
|
||||
exit 0
|
9
debian/rules
vendored
9
debian/rules
vendored
|
@ -9,6 +9,15 @@ override_dh_auto_install:
|
|||
# removing unused files
|
||||
rm -f debian/lziprecover/usr/share/info/dir*
|
||||
|
||||
# alernative handling
|
||||
mv debian/lziprecover/usr/bin/lziprecover debian/lziprecover/usr/bin/lzip.recover
|
||||
mv debian/lziprecover/usr/share/info/lziprecover.info debian/lziprecover/usr/share/info/lzip.recover.info
|
||||
mv debian/lziprecover/usr/share/man/man1/lziprecover.1 debian/lziprecover/usr/share/man/man1/lzip.recover.1
|
||||
|
||||
ln -s /usr/bin/lzip.recover debian/lziprecover/usr/bin/lziprecover
|
||||
ln -s /usr/share/info/lzip.recover.info.gz debian/lziprecover/usr/share/info/lziprecover.info.gz
|
||||
ln -s /usr/share/man/man1/lzip.recover.1.gz debian/lziprecover/usr/share/man/man1/lziprecover.1.gz
|
||||
|
||||
override_dh_strip:
|
||||
dh_strip --dbg-package=lziprecover-dbg
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue