diff options
author | Daniel Baumann <daniel.baumann@progress-linux.org> | 2018-07-19 05:24:07 +0000 |
---|---|---|
committer | Daniel Baumann <daniel.baumann@progress-linux.org> | 2018-07-24 15:21:13 +0000 |
commit | 49ab02676f8f5dfe97f4e7b1a94ae69b56526f2c (patch) | |
tree | bb2574a05a22ab0f47061ebb07b1e86889245148 | |
parent | Updating to standards version 4.1.5. (diff) | |
download | zutils-49ab02676f8f5dfe97f4e7b1a94ae69b56526f2c.tar.xz zutils-49ab02676f8f5dfe97f4e7b1a94ae69b56526f2c.zip |
Skipping zcat for now (Closes: #902936, #903931).
Signed-off-by: Daniel Baumann <daniel.baumann@progress-linux.org>
Diffstat (limited to '')
-rwxr-xr-x | debian/rules | 4 | ||||
-rw-r--r-- | debian/zutils.lintian-overrides | 2 | ||||
-rwxr-xr-x | debian/zutils.postinst | 31 | ||||
-rwxr-xr-x | debian/zutils.postrm | 3 | ||||
-rwxr-xr-x | debian/zutils.preinst | 14 |
5 files changed, 51 insertions, 3 deletions
diff --git a/debian/rules b/debian/rules index 80e5fe9..6e2196b 100755 --- a/debian/rules +++ b/debian/rules @@ -23,5 +23,9 @@ override_dh_auto_install: # removing unused files rm -f debian/zutils/usr/share/info/dir* + # skipping zcat (#902936, #903931) + mv debian/zutils/bin/zcat debian/zutils/bin/zcat.zutils + mv debian/zutils/usr/share/man/man1/zcat.1 debian/zutils/usr/share/man/man1/zcat.zutils.1 + override_dh_gencontrol: dh_gencontrol -- -Vbuilt-using="glibc (= $$(dpkg-query --show --showformat='$${source:Version}' libc-dev-bin))" diff --git a/debian/zutils.lintian-overrides b/debian/zutils.lintian-overrides index dfcaf05..62ec06b 100644 --- a/debian/zutils.lintian-overrides +++ b/debian/zutils.lintian-overrides @@ -1,4 +1,4 @@ -zutils: statically-linked-binary bin/zcat +zutils: statically-linked-binary bin/zcat.zutils zutils: statically-linked-binary bin/zcmp zutils: statically-linked-binary bin/zdiff zutils: statically-linked-binary bin/zgrep diff --git a/debian/zutils.postinst b/debian/zutils.postinst new file mode 100755 index 0000000..66ef2da --- /dev/null +++ b/debian/zutils.postinst @@ -0,0 +1,31 @@ +#!/bin/sh + +set -e + +case "${1}" in + configure) + # restoring zcat (#902936, #903931) + for FILE in zcat + do if [ ! -e /bin/${FILE}.gzip ] + then + continue + fi + + dpkg-divert --package zutils --quiet --remove --rename --divert /bin/${FILE}.gzip /bin/${FILE} + dpkg-divert --package zutils --quiet --remove --rename --divert /usr/share/man/man1/${FILE}.gzip.1.gz /usr/share/man/man1/${FILE}.1.gz + done + ;; + + abort-upgrade|abort-remove|abort-deconfigure) + + ;; + + *) + echo "postinst called with unknown argument \`${1}'" >&2 + exit 1 + ;; +esac + +#DEBHELPER# + +exit 0 diff --git a/debian/zutils.postrm b/debian/zutils.postrm index d732840..654c983 100755 --- a/debian/zutils.postrm +++ b/debian/zutils.postrm @@ -4,7 +4,8 @@ set -e case "${1}" in remove) - for FILE in zcat zcmp zdiff zegrep zfgrep zgrep + # skipping zcat (#902936, #903931) + for FILE in zcmp zdiff zegrep zfgrep zgrep do dpkg-divert --package zutils --quiet --remove --rename --divert /bin/${FILE}.gzip /bin/${FILE} dpkg-divert --package zutils --quiet --remove --rename --divert /usr/share/man/man1/${FILE}.gzip.1.gz /usr/share/man/man1/${FILE}.1.gz diff --git a/debian/zutils.preinst b/debian/zutils.preinst index b9aa4a5..68e995c 100755 --- a/debian/zutils.preinst +++ b/debian/zutils.preinst @@ -4,11 +4,23 @@ set -e case "${1}" in install) - for FILE in zcat zcmp zdiff zegrep zfgrep zgrep + # skipping zcat (#902936, #903931) + for FILE in zcmp zdiff zegrep zfgrep zgrep do dpkg-divert --package zutils --quiet --add --rename --divert /bin/${FILE}.gzip /bin/${FILE} dpkg-divert --package zutils --quiet --add --rename --divert /usr/share/man/man1/${FILE}.gzip.1.gz /usr/share/man/man1/${FILE}.1.gz done + + # restoring zcat (#902936, #903931) + for FILE in zcat + do if [ ! -e /bin/${FILE}.gzip ] + then + continue + fi + + dpkg-divert --package zutils --quiet --remove --rename --divert /bin/${FILE}.gzip /bin/${FILE} + dpkg-divert --package zutils --quiet --remove --rename --divert /usr/share/man/man1/${FILE}.gzip.1.gz /usr/share/man/man1/${FILE}.1.gz + done ;; upgrade|abort-upgrade) |