Adding alternative handling for /usr/bin/lzip.
Signed-off-by: Daniel Baumann <daniel@debian.org>
This commit is contained in:
parent
2516f422e5
commit
70c378413c
4 changed files with 56 additions and 2 deletions
1
debian/control
vendored
1
debian/control
vendored
|
@ -9,6 +9,7 @@ Homepage: http://www.nongnu.org/lzip/pdlzip.html
|
|||
Package: pdlzip
|
||||
Architecture: any
|
||||
Depends: ${misc:Depends}, ${shlibs:Depends}
|
||||
Breaks: lzip (<< 1.15~)
|
||||
Description: data compressor based on the LZMA algorithm (simple version)
|
||||
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.
|
||||
|
|
24
debian/pdlzip.postinst
vendored
Normal file
24
debian/pdlzip.postinst
vendored
Normal file
|
@ -0,0 +1,24 @@
|
|||
#!/bin/sh
|
||||
|
||||
set -e
|
||||
|
||||
case "${1}" in
|
||||
configure)
|
||||
update-alternatives --quiet \
|
||||
--install /usr/bin/lzip lzip /usr/bin/lzip.public-domain 20 \
|
||||
--slave /usr/share/man/man1/lzip.1.gz lzip.1.gz /usr/share/man/man1/lzip.public-domain.1.gz
|
||||
;;
|
||||
|
||||
abort-upgrade|abort-remove|abort-deconfigure)
|
||||
|
||||
;;
|
||||
|
||||
*)
|
||||
echo "postinst called with unknown argument \`${1}'" >&2
|
||||
exit 1
|
||||
;;
|
||||
esac
|
||||
|
||||
#DEBHELPER#
|
||||
|
||||
exit 0
|
22
debian/pdlzip.prerm
vendored
Normal file
22
debian/pdlzip.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.public-domain
|
||||
;;
|
||||
|
||||
failed-upgrade)
|
||||
|
||||
;;
|
||||
|
||||
*)
|
||||
echo "prerm called with unknown argument \`${1}'" >&2
|
||||
exit 1
|
||||
;;
|
||||
esac
|
||||
|
||||
#DEBHELPER#
|
||||
|
||||
exit 0
|
11
debian/rules
vendored
11
debian/rules
vendored
|
@ -6,8 +6,15 @@
|
|||
override_dh_auto_install:
|
||||
dh_auto_install -- DESTDIR=$(CURDIR)/debian/pdlzip
|
||||
|
||||
override_dh_strip:
|
||||
dh_strip --dbg-package=pdlzip-dbg
|
||||
# alernative handling
|
||||
mv debian/pdlzip/usr/bin/pdlzip debian/pdlzip/usr/bin/lzip.public-domain
|
||||
mv debian/pdlzip/usr/share/man/man1/pdlzip.1 debian/pdlzip/usr/share/man/man1/lzip.public-domain.1
|
||||
|
||||
ln -s /usr/bin/lzip.public-domain debian/pdlzip/usr/bin/pdlzip
|
||||
ln -s /usr/share/man/man1/lzip.public-domain.1.gz debian/pdlzip/usr/share/man/man1/pdlzip.1.gz
|
||||
|
||||
override_dh_builddeb:
|
||||
dh_builddeb -- -Zxz
|
||||
|
||||
override_dh_strip:
|
||||
dh_strip --dbg-package=pdlzip-dbg
|
||||
|
|
Loading…
Add table
Reference in a new issue