From b08293e544fb5eb5e004f02139e4aa06660395b6 Mon Sep 17 00:00:00 2001 From: Daniel Baumann Date: Sun, 14 Apr 2024 22:34:44 +0200 Subject: Adding debian version 2:4.0.4-4. Signed-off-by: Daniel Baumann --- debian/postrm | 51 +++++++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 51 insertions(+) create mode 100644 debian/postrm (limited to 'debian/postrm') diff --git a/debian/postrm b/debian/postrm new file mode 100644 index 0000000..47743f2 --- /dev/null +++ b/debian/postrm @@ -0,0 +1,51 @@ +#!/bin/sh +# postrm script for procps +# +# see: dh_installdeb(1) + +set -e + +# summary of how this script can be called: +# * `remove' +# * `purge' +# * `upgrade' +# * `failed-upgrade' +# * `abort-install' +# * `abort-install' +# * `abort-upgrade' +# * `disappear' +# +# for details, see http://www.debian.org/doc/debian-policy/ or +# the debian-policy package + +restoreoldconffile() +{ + v=$1 + f=/etc/init.d/procps + c=1:3.2.7-5 + [ ! -e "$f" ] && return + dpkg --compare-versions "$1" ge "$c" || return + mv "$f" "$f.sh" +} + +case "$1" in + abort-upgrade) + restoreoldconffile + ;; + purge|remove|upgrade|failed-upgrade|abort-install|abort-upgrade|disappear) + ;; + + *) + echo "postrm called with unknown argument \`$1'" >&2 + exit 1 + ;; +esac + +# dh_installdeb will replace this with shell code automatically +# generated by other debhelper scripts. + +#DEBHELPER# + +exit 0 + + -- cgit v1.2.3