Adding alternative handling for /usr/bin/lzip.
Signed-off-by: Daniel Baumann <daniel@debian.org>
This commit is contained in:
parent
8706c75bbe
commit
309dad1fbd
4 changed files with 57 additions and 0 deletions
25
debian/clzip.postinst
vendored
Normal file
25
debian/clzip.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.c 30 \
|
||||
--slave /usr/share/info/lzip.info.gz lzip.info.gz /usr/share/info/lzip.c.info.gz \
|
||||
--slave /usr/share/man/man1/lzip.1.gz lzip.1.gz /usr/share/man/man1/lzip.c.1.gz
|
||||
;;
|
||||
|
||||
abort-upgrade|abort-remove|abort-deconfigure)
|
||||
|
||||
;;
|
||||
|
||||
*)
|
||||
echo "postinst called with unknown argument \`${1}'" >&2
|
||||
exit 1
|
||||
;;
|
||||
esac
|
||||
|
||||
#DEBHELPER#
|
||||
|
||||
exit 0
|
22
debian/clzip.prerm
vendored
Normal file
22
debian/clzip.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.c
|
||||
;;
|
||||
|
||||
failed-upgrade)
|
||||
|
||||
;;
|
||||
|
||||
*)
|
||||
echo "prerm called with unknown argument \`${1}'" >&2
|
||||
exit 1
|
||||
;;
|
||||
esac
|
||||
|
||||
#DEBHELPER#
|
||||
|
||||
exit 0
|
1
debian/control
vendored
1
debian/control
vendored
|
@ -9,6 +9,7 @@ Homepage: http://www.nongnu.org/lzip/clzip.html
|
|||
Package: clzip
|
||||
Architecture: any
|
||||
Depends: ${misc:Depends}, ${shlibs:Depends}
|
||||
Breaks: lzip (<< 1.15~)
|
||||
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.
|
||||
|
|
9
debian/rules
vendored
9
debian/rules
vendored
|
@ -9,6 +9,15 @@ override_dh_auto_install:
|
|||
# removing unused files
|
||||
rm -f debian/clzip/usr/share/info/dir*
|
||||
|
||||
# alernative handling
|
||||
mv debian/clzip/usr/bin/clzip debian/clzip/usr/bin/lzip.c
|
||||
mv debian/clzip/usr/share/info/clzip.info debian/clzip/usr/share/info/lzip.c.info
|
||||
mv debian/clzip/usr/share/man/man1/clzip.1 debian/clzip/usr/share/man/man1/lzip.c.1
|
||||
|
||||
ln -s /usr/bin/lzip.c debian/clzip/usr/bin/clzip
|
||||
ln -s /usr/share/info/lzip.c.info.gz debian/clzip/usr/share/info/clzip.info.gz
|
||||
ln -s /usr/share/man/man1/lzip.c.1.gz debian/clzip/usr/share/man/man1/clzip.1.gz
|
||||
|
||||
override_dh_builddeb:
|
||||
dh_builddeb -- -Zxz
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue