summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--debian/changelog6
-rw-r--r--debian/control6
-rw-r--r--debian/liblz-dev.postinst24
-rw-r--r--debian/liblz-dev.prerm22
-rw-r--r--debian/liblz1.postinst24
-rw-r--r--debian/liblz1.prerm22
-rwxr-xr-xdebian/rules14
7 files changed, 117 insertions, 1 deletions
diff --git a/debian/changelog b/debian/changelog
index 4c1db3d..373f6c6 100644
--- a/debian/changelog
+++ b/debian/changelog
@@ -1,3 +1,9 @@
+lzlib (1.4-2) experimental; urgency=low
+
+ * Including minilzip.
+
+ -- Daniel Baumann <mail@daniel-baumann.ch> Tue, 04 Jun 2013 17:03:00 +0200
+
lzlib (1.4-1) experimental; urgency=low
* Merging upstream version 1.4.
diff --git a/debian/control b/debian/control
index 41cdb49..03142de 100644
--- a/debian/control
+++ b/debian/control
@@ -11,6 +11,8 @@ Section: libs
Architecture: any
Pre-Depends: multiarch-support
Depends: ${misc:Depends}, ${shlibs:Depends}
+Breaks: lzip (<< 1.15~)
+Provides: lzip-alternative
Description: data compressor based on the LZMA algorithm (library)
The lzlib compression library provides in-memory LZMA compression and
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
Section: libdevel
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)
The lzlib compression library provides in-memory LZMA compression and
decompression functions, including integrity checking of the uncompressed data.
diff --git a/debian/liblz-dev.postinst b/debian/liblz-dev.postinst
new file mode 100644
index 0000000..4c093c3
--- /dev/null
+++ b/debian/liblz-dev.postinst
@@ -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
diff --git a/debian/liblz-dev.prerm b/debian/liblz-dev.prerm
new file mode 100644
index 0000000..dace4a4
--- /dev/null
+++ b/debian/liblz-dev.prerm
@@ -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
diff --git a/debian/liblz1.postinst b/debian/liblz1.postinst
new file mode 100644
index 0000000..7a9fa90
--- /dev/null
+++ b/debian/liblz1.postinst
@@ -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
diff --git a/debian/liblz1.prerm b/debian/liblz1.prerm
new file mode 100644
index 0000000..abacdf1
--- /dev/null
+++ b/debian/liblz1.prerm
@@ -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
diff --git a/debian/rules b/debian/rules
index e256952..b87b999 100755
--- a/debian/rules
+++ b/debian/rules
@@ -11,6 +11,20 @@ override_dh_auto_configure:
override_dh_auto_install:
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
rm -f debian/tmp/usr/share/info/dir*