Including minilzip.
Signed-off-by: Daniel Baumann <daniel@debian.org>
This commit is contained in:
parent
a0738620e6
commit
23acc2c1bd
6 changed files with 111 additions and 1 deletions
6
debian/control
vendored
6
debian/control
vendored
|
@ -11,6 +11,8 @@ Section: libs
|
||||||
Architecture: any
|
Architecture: any
|
||||||
Pre-Depends: multiarch-support
|
Pre-Depends: multiarch-support
|
||||||
Depends: ${misc:Depends}, ${shlibs:Depends}
|
Depends: ${misc:Depends}, ${shlibs:Depends}
|
||||||
|
Breaks: lzip (<< 1.15~)
|
||||||
|
Provides: lzip-alternative
|
||||||
Description: data compressor based on the LZMA algorithm (library)
|
Description: data compressor based on the LZMA algorithm (library)
|
||||||
The lzlib compression library provides in-memory LZMA compression and
|
The lzlib compression library provides in-memory LZMA compression and
|
||||||
decompression functions, including integrity checking of the uncompressed data.
|
decompression functions, including integrity checking of the uncompressed data.
|
||||||
|
@ -19,7 +21,9 @@ Description: data compressor based on the LZMA algorithm (library)
|
||||||
Package: liblz-dev
|
Package: liblz-dev
|
||||||
Section: libdevel
|
Section: libdevel
|
||||||
Architecture: any
|
Architecture: any
|
||||||
Depends: ${misc:Depends}, liblz1 (= ${binary:Version})
|
Depends: ${misc:Depends}, ${shlibs:Depends}, liblz1 (= ${binary:Version})
|
||||||
|
Breaks: lzip (<< 1.15~)
|
||||||
|
Provides: lzip-alternative
|
||||||
Description: data compressor based on the LZMA algorithm (development)
|
Description: data compressor based on the LZMA algorithm (development)
|
||||||
The lzlib compression library provides in-memory LZMA compression and
|
The lzlib compression library provides in-memory LZMA compression and
|
||||||
decompression functions, including integrity checking of the uncompressed data.
|
decompression functions, including integrity checking of the uncompressed data.
|
||||||
|
|
24
debian/liblz-dev.postinst
vendored
Normal file
24
debian/liblz-dev.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.mini-static 70 \
|
||||||
|
--slave /usr/share/man/man1/lzip.1.gz lzip.1.gz /usr/share/man/man1/lzip.mini-static.1.gz
|
||||||
|
;;
|
||||||
|
|
||||||
|
abort-upgrade|abort-remove|abort-deconfigure)
|
||||||
|
|
||||||
|
;;
|
||||||
|
|
||||||
|
*)
|
||||||
|
echo "postinst called with unknown argument \`${1}'" >&2
|
||||||
|
exit 1
|
||||||
|
;;
|
||||||
|
esac
|
||||||
|
|
||||||
|
#DEBHELPER#
|
||||||
|
|
||||||
|
exit 0
|
22
debian/liblz-dev.prerm
vendored
Normal file
22
debian/liblz-dev.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.mini-static
|
||||||
|
;;
|
||||||
|
|
||||||
|
failed-upgrade)
|
||||||
|
|
||||||
|
;;
|
||||||
|
|
||||||
|
*)
|
||||||
|
echo "prerm called with unknown argument \`${1}'" >&2
|
||||||
|
exit 1
|
||||||
|
;;
|
||||||
|
esac
|
||||||
|
|
||||||
|
#DEBHELPER#
|
||||||
|
|
||||||
|
exit 0
|
24
debian/liblz1.postinst
vendored
Normal file
24
debian/liblz1.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.mini 75 \
|
||||||
|
--slave /usr/share/man/man1/lzip.1.gz lzip.1.gz /usr/share/man/man1/lzip.mini.1.gz
|
||||||
|
;;
|
||||||
|
|
||||||
|
abort-upgrade|abort-remove|abort-deconfigure)
|
||||||
|
|
||||||
|
;;
|
||||||
|
|
||||||
|
*)
|
||||||
|
echo "postinst called with unknown argument \`${1}'" >&2
|
||||||
|
exit 1
|
||||||
|
;;
|
||||||
|
esac
|
||||||
|
|
||||||
|
#DEBHELPER#
|
||||||
|
|
||||||
|
exit 0
|
22
debian/liblz1.prerm
vendored
Normal file
22
debian/liblz1.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.mini
|
||||||
|
;;
|
||||||
|
|
||||||
|
failed-upgrade)
|
||||||
|
|
||||||
|
;;
|
||||||
|
|
||||||
|
*)
|
||||||
|
echo "prerm called with unknown argument \`${1}'" >&2
|
||||||
|
exit 1
|
||||||
|
;;
|
||||||
|
esac
|
||||||
|
|
||||||
|
#DEBHELPER#
|
||||||
|
|
||||||
|
exit 0
|
14
debian/rules
vendored
14
debian/rules
vendored
|
@ -11,6 +11,20 @@ override_dh_auto_configure:
|
||||||
override_dh_auto_install:
|
override_dh_auto_install:
|
||||||
dh_auto_install -- LDCONFIG=/bin/true
|
dh_auto_install -- LDCONFIG=/bin/true
|
||||||
|
|
||||||
|
# minilzip
|
||||||
|
install -D -m 0755 minilzip_shared debian/liblz1/usr/bin/lzip.mini
|
||||||
|
install -D -m 0644 doc/minilzip.1 debian/liblz1/usr/share/man/man1/lzip.mini.1
|
||||||
|
|
||||||
|
ln -s /usr/bin/lzip.mini debian/liblz1/usr/bin/minilzip
|
||||||
|
ln -s /usr/share/man/man1/lzip.mini.1.gz debian/liblz1/usr/share/man/man1/minilzip.1.gz
|
||||||
|
|
||||||
|
# minilzip.static
|
||||||
|
install -D -m 0755 minilzip debian/liblz-dev/usr/bin/lzip.mini-static
|
||||||
|
install -D -m 0644 doc/minilzip.1 debian/liblz-dev/usr/share/man/man1/lzip.mini-static.1
|
||||||
|
|
||||||
|
ln -s /usr/bin/lzip.mini-static debian/liblz-dev/usr/bin/minilzip.static
|
||||||
|
ln -s /usr/share/man/man1/lzip.mini-static.1.gz debian/liblz-dev/usr/share/man/man1/minilzip.static.1.gz
|
||||||
|
|
||||||
# removing unused files
|
# removing unused files
|
||||||
rm -f debian/tmp/usr/share/info/dir*
|
rm -f debian/tmp/usr/share/info/dir*
|
||||||
|
|
||||||
|
|
Loading…
Add table
Reference in a new issue