aboutsummaryrefslogtreecommitdiffstats
path: root/contrib/packages/deb/ubuntu-focal/debian/xtigervncviewer.postinst
diff options
context:
space:
mode:
Diffstat (limited to 'contrib/packages/deb/ubuntu-focal/debian/xtigervncviewer.postinst')
-rw-r--r--contrib/packages/deb/ubuntu-focal/debian/xtigervncviewer.postinst18
1 files changed, 18 insertions, 0 deletions
diff --git a/contrib/packages/deb/ubuntu-focal/debian/xtigervncviewer.postinst b/contrib/packages/deb/ubuntu-focal/debian/xtigervncviewer.postinst
new file mode 100644
index 00000000..4df0c65f
--- /dev/null
+++ b/contrib/packages/deb/ubuntu-focal/debian/xtigervncviewer.postinst
@@ -0,0 +1,18 @@
+#!/bin/sh -e
+
+if [ "$1" = "configure" ]; then
+ MAN=/usr/share/man/man1
+ BIN=/usr/bin
+ update-alternatives --install \
+ $BIN/vncviewer vncviewer $BIN/xtigervncviewer 74 \
+ --slave \
+ $MAN/vncviewer.1.gz vncviewer.1.gz $MAN/xtigervncviewer.1.gz \
+ --slave \
+ $MAN/xvncviewer.1.gz xvncviewer.1.gz $MAN/xtigervncviewer.1.gz \
+ --slave \
+ $BIN/xvncviewer xvncviewer $BIN/xtigervncviewer
+fi
+
+#DEBHELPER#
+
+exit 0