summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDaniel Baumann <daniel.baumann@progress-linux.org>2021-12-29 02:20:11 +0000
committerDaniel Baumann <daniel.baumann@progress-linux.org>2021-12-29 02:20:23 +0000
commit6c5faf79e9de1c9531c70263316de3424856545f (patch)
tree1e7c457fab5374e2538e12b6f2b0537f69393932
parentReleasing debian version 1.12-3. (diff)
downloadclzip-6c5faf79e9de1c9531c70263316de3424856545f.tar.xz
clzip-6c5faf79e9de1c9531c70263316de3424856545f.zip
Moving to dh_installalternatives.
Signed-off-by: Daniel Baumann <daniel.baumann@progress-linux.org>
-rw-r--r--debian/clzip.alternatives26
-rwxr-xr-xdebian/clzip.postinst38
-rwxr-xr-xdebian/clzip.prerm29
-rw-r--r--debian/control1
4 files changed, 27 insertions, 67 deletions
diff --git a/debian/clzip.alternatives b/debian/clzip.alternatives
new file mode 100644
index 0000000..14a2b2f
--- /dev/null
+++ b/debian/clzip.alternatives
@@ -0,0 +1,26 @@
+# lzip-alternative
+Name: lzip
+Link: /usr/bin/lzip
+Alternative: /usr/bin/lzip.clzip
+Dependents:
+ /usr/share/info/lzip.info.gz lzip.info.gz /usr/share/info/lzip.clzip.info.gz
+ /usr/share/man/man1/lzip.1.gz lzip.1.gz /usr/share/man/man1/lzip.clzip.1.gz
+Priority: 3000
+
+# lzip-compressor
+Name: lzip-compressor
+Link: /usr/bin/lzip-compressor
+Alternative: /usr/bin/lzip.clzip
+Dependents:
+ /usr/share/info/lzip-compressor.info.gz lzip-compressor.info.gz /usr/share/info/lzip.clzip.info.gz
+ /usr/share/man/man1/lzip-compressor.1.gz lzip-compressor.1.gz /usr/share/man/man1/lzip.clzip.1.gz
+Priority: 3000
+
+# lzip-decompressor
+Name: lzip-decompressor
+Link: /usr/bin/lzip-decompressor
+Alternative: /usr/bin/lzip.clzip
+Dependents:
+ /usr/share/info/lzip-decompressor.info.gz lzip-decompressor.info.gz /usr/share/info/lzip.clzip.info.gz
+ /usr/share/man/man1/lzip-decompressor.1.gz lzip-decompressor.1.gz /usr/share/man/man1/lzip.clzip.1.gz
+Priority: 3000
diff --git a/debian/clzip.postinst b/debian/clzip.postinst
deleted file mode 100755
index 94025dc..0000000
--- a/debian/clzip.postinst
+++ /dev/null
@@ -1,38 +0,0 @@
-#!/bin/sh
-
-set -e
-
-case "${1}" in
- configure)
- # lzip-alternative
- update-alternatives --quiet \
- --install /usr/bin/lzip lzip /usr/bin/lzip.clzip 3000 \
- --slave /usr/share/info/lzip.info.gz lzip.info.gz /usr/share/info/lzip.clzip.info.gz \
- --slave /usr/share/man/man1/lzip.1.gz lzip.1.gz /usr/share/man/man1/lzip.clzip.1.gz
-
- # lzip-compressor
- update-alternatives --quiet \
- --install /usr/bin/lzip-compressor lzip-compressor /usr/bin/lzip.clzip 3000 \
- --slave /usr/share/info/lzip-compressor.info.gz lzip-compressor.info.gz /usr/share/info/lzip.clzip.info.gz \
- --slave /usr/share/man/man1/lzip-compressor.1.gz lzip-compressor.1.gz /usr/share/man/man1/lzip.clzip.1.gz
-
- # lzip-decompressor
- update-alternatives --quiet \
- --install /usr/bin/lzip-decompressor lzip-decompressor /usr/bin/lzip.clzip 3000 \
- --slave /usr/share/info/lzip-decompressor.info.gz lzip-decompressor.info.gz /usr/share/info/lzip.clzip.info.gz \
- --slave /usr/share/man/man1/lzip-decompressor.1.gz lzip-decompressor.1.gz /usr/share/man/man1/lzip.clzip.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/clzip.prerm b/debian/clzip.prerm
deleted file mode 100755
index 9c1539d..0000000
--- a/debian/clzip.prerm
+++ /dev/null
@@ -1,29 +0,0 @@
-#!/bin/sh
-
-set -e
-
-case "${1}" in
- remove|upgrade|deconfigure)
- # lzip-alternative
- update-alternatives --quiet --remove lzip /usr/bin/lzip.clzip
-
- # lzip-compressor
- update-alternatives --quiet --remove lzip-compressor /usr/bin/lzip.clzip
-
- # lzip-decompressor
- update-alternatives --quiet --remove lzip-decompressor /usr/bin/lzip.clzip
- ;;
-
- failed-upgrade)
-
- ;;
-
- *)
- echo "prerm called with unknown argument \`${1}'" >&2
- exit 1
- ;;
-esac
-
-#DEBHELPER#
-
-exit 0
diff --git a/debian/control b/debian/control
index 856294d..955c507 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),
texinfo,
Rules-Requires-Root: no