From 95b9a3f9646886ffaf6c19dbcaed43503f73dae1 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Sl=C3=A1vek=20Banko?= Date: Thu, 26 Aug 2021 15:05:07 +0200 Subject: DEB tdesshaskpass: Add packaging files. MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Slávek Banko (cherry picked from commit 8fb8f02695e04468c1e2d72e600e4647296db749) --- .../system/tdesshaskpass/debian/postinst | 42 ++++++++++++++++++++++ 1 file changed, 42 insertions(+) create mode 100644 ubuntu/_base/applications/system/tdesshaskpass/debian/postinst (limited to 'ubuntu/_base/applications/system/tdesshaskpass/debian/postinst') diff --git a/ubuntu/_base/applications/system/tdesshaskpass/debian/postinst b/ubuntu/_base/applications/system/tdesshaskpass/debian/postinst new file mode 100644 index 000000000..7b881b29b --- /dev/null +++ b/ubuntu/_base/applications/system/tdesshaskpass/debian/postinst @@ -0,0 +1,42 @@ +#!/bin/sh +# postinst script for tdesshaskpass +# +# see: dh_installdeb(1) + +set -e + +# summary of how this script can be called: +# * `configure' +# * `abort-upgrade' +# * `abort-remove' `in-favour' +# +# * `abort-remove' +# * `abort-deconfigure' `in-favour' +# `removing' +# +# for details, see http://www.debian.org/doc/debian-policy/ or +# the debian-policy package + + +case "$1" in + configure) + update-alternatives --quiet \ + --install /usr/bin/ssh-askpass ssh-askpass \ + /opt/trinity/bin/tdesshaskpass 35 + ;; + + abort-upgrade|abort-remove|abort-deconfigure) + ;; + + *) + echo "postinst 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.1