From beb18247c34c82f0f60f319653dc7f47416b4c5c Mon Sep 17 00:00:00 2001 From: Daniel Baumann Date: Thu, 20 Feb 2025 14:25:56 +0100 Subject: [PATCH] Releasing debian version 0.2-2. Signed-off-by: Daniel Baumann --- debian/changelog | 6 ++++++ debian/lzd.postinst | 23 +++++++++++++++++++++++ debian/lzd.prerm | 22 ++++++++++++++++++++++ 3 files changed, 51 insertions(+) create mode 100644 debian/lzd.postinst create mode 100644 debian/lzd.prerm 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