summaryrefslogtreecommitdiff
path: root/debian/eterm.postinst
diff options
context:
space:
mode:
Diffstat (limited to 'debian/eterm.postinst')
-rw-r--r--debian/eterm.postinst20
1 files changed, 20 insertions, 0 deletions
diff --git a/debian/eterm.postinst b/debian/eterm.postinst
new file mode 100644
index 0000000..c8809a9
--- /dev/null
+++ b/debian/eterm.postinst
@@ -0,0 +1,20 @@
+#!/bin/sh
+
+set -e
+
+if [ "$1" = configure ]; then
+ xte='x-terminal-emulator'
+ binary='/usr/bin/Eterm'
+ xtebinary="/usr/bin/$xte"
+ xteman="/usr/share/man/man1/$xte.1.gz"
+ man='/usr/share/man/man1/Eterm.1.gz'
+
+ chown root.utmp $binary
+ chmod 2755 $binary
+
+ update-alternatives \
+ --install $xtebinary $xte $binary 10 \
+ --slave $xteman $xte.1.gz $man
+fi
+
+#DEBHELPER#