summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDaniel Baumann <daniel.baumann@progress-linux.org>2021-12-29 02:06:32 +0000
committerDaniel Baumann <daniel.baumann@progress-linux.org>2021-12-29 02:07:44 +0000
commit7cf76ac8285a5dcbd49dacc8ae531f49f275f49c (patch)
tree46ece8d338dc0b01065a87e4adc9b06b730bea39
parentReleasing debian version 0.7-2. (diff)
downloadxlunzip-7cf76ac8285a5dcbd49dacc8ae531f49f275f49c.tar.xz
xlunzip-7cf76ac8285a5dcbd49dacc8ae531f49f275f49c.zip
Moving to dh_installalternatives.
Signed-off-by: Daniel Baumann <daniel.baumann@progress-linux.org>
-rw-r--r--debian/control1
-rw-r--r--debian/xlunzip.alternatives17
-rwxr-xr-xdebian/xlunzip.postinst32
-rwxr-xr-xdebian/xlunzip.prerm26
4 files changed, 18 insertions, 58 deletions
diff --git a/debian/control b/debian/control
index 63e0544..923bc08 100644
--- a/debian/control
+++ b/debian/control
@@ -3,6 +3,7 @@ Section: utils
Priority: optional
Maintainer: Daniel Baumann <daniel.baumann@progress-linux.org>
Build-Depends:
+ debhelper (>= 13.1~),
debhelper-compat (= 13),
Rules-Requires-Root: no
Standards-Version: 4.6.0
diff --git a/debian/xlunzip.alternatives b/debian/xlunzip.alternatives
new file mode 100644
index 0000000..f1c636b
--- /dev/null
+++ b/debian/xlunzip.alternatives
@@ -0,0 +1,17 @@
+# lzip-alternative
+Name: lzip
+Link: /usr/bin/lzip
+Alternative: /usr/bin/lzip.xlunzip
+Dependents:
+ /usr/share/info/lzip.info.gz lzip.info.gz /usr/share/info/lzip.xlunzip.info.gz
+ /usr/share/man/man1/lzip.1.gz lzip.1.gz /usr/share/man/man1/lzip.xlunzip.1.gz
+Priority: -3000
+
+# lzip-decompressor
+Name: lzip-decompressor
+Link: /usr/bin/lzip-decompressor
+Alternative: /usr/bin/lzip.xlunzip
+Dependents:
+ /usr/share/info/lzip-decompressor.info.gz lzip-decompressor.info.gz /usr/share/info/lzip.xlunzip.info.gz
+ /usr/share/man/man1/lzip-decompressor.1.gz lzip-decompressor.1.gz /usr/share/man/man1/lzip.xlunzip.1.gz
+Priority: -3000
diff --git a/debian/xlunzip.postinst b/debian/xlunzip.postinst
deleted file mode 100755
index c5f45c2..0000000
--- a/debian/xlunzip.postinst
+++ /dev/null
@@ -1,32 +0,0 @@
-#!/bin/sh
-
-set -e
-
-case "${1}" in
- configure)
- # lzip-alternative
- update-alternatives --quiet \
- --install /usr/bin/lzip lzip /usr/bin/lzip.xlunzip -3000 \
- --slave /usr/share/info/lzip.info.gz lzip.info.gz /usr/share/info/lzip.xlunzip.info.gz \
- --slave /usr/share/man/man1/lzip.1.gz lzip.1.gz /usr/share/man/man1/lzip.xlunzip.1.gz
-
- # lzip-decompressor
- update-alternatives --quiet \
- --install /usr/bin/lzip-decompressor lzip-decompressor /usr/bin/lzip.xlunzip -3000 \
- --slave /usr/share/info/lzip-decompressor.info.gz lzip-decompressor.info.gz /usr/share/info/lzip.xlunzip.info.gz \
- --slave /usr/share/man/man1/lzip-decompressor.1.gz lzip-decompressor.1.gz /usr/share/man/man1/lzip.xlunzip.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/xlunzip.prerm b/debian/xlunzip.prerm
deleted file mode 100755
index 40f704f..0000000
--- a/debian/xlunzip.prerm
+++ /dev/null
@@ -1,26 +0,0 @@
-#!/bin/sh
-
-set -e
-
-case "${1}" in
- remove|upgrade|deconfigure)
- # lzip-alternative
- update-alternatives --quiet --remove lzip /usr/bin/lzip.xlunzip
-
- # lzip-decompressor
- update-alternatives --quiet --remove lzip-decompressor /usr/bin/lzip.xlunzip
- ;;
-
- failed-upgrade)
-
- ;;
-
- *)
- echo "prerm called with unknown argument \`${1}'" >&2
- exit 1
- ;;
-esac
-
-#DEBHELPER#
-
-exit 0