diff --git a/debian/changelog b/debian/changelog index 96ef5be..20b6db8 100644 --- a/debian/changelog +++ b/debian/changelog @@ -1,3 +1,9 @@ +lzd (0.2-2) experimental; urgency=low + + * Adding lzip alternatives handling. + + -- Daniel Baumann Tue, 04 Jun 2013 16:53:08 +0200 + lzd (0.2-1) experimental; urgency=low * Merging upstream version 0.2. diff --git a/debian/lzd.postinst b/debian/lzd.postinst new file mode 100644 index 0000000..309e810 --- /dev/null +++ b/debian/lzd.postinst @@ -0,0 +1,23 @@ +#!/bin/sh + +set -e + +case "${1}" in + configure) + update-alternatives --quiet \ + --install /usr/bin/lzip lzip /usr/bin/lzip.educational-decompressor 1 + ;; + + abort-upgrade|abort-remove|abort-deconfigure) + + ;; + + *) + echo "postinst called with unknown argument \`${1}'" >&2 + exit 1 + ;; +esac + +#DEBHELPER# + +exit 0 diff --git a/debian/lzd.prerm b/debian/lzd.prerm new file mode 100644 index 0000000..5582754 --- /dev/null +++ b/debian/lzd.prerm @@ -0,0 +1,22 @@ +#!/bin/sh + +set -e + +case "${1}" in + remove|upgrade|deconfigure) + update-alternatives --quiet --remove lzip /usr/bin/lzip.educational-decompressor + ;; + + failed-upgrade) + + ;; + + *) + echo "prerm called with unknown argument \`${1}'" >&2 + exit 1 + ;; +esac + +#DEBHELPER# + +exit 0