postinst is in kinput2-wnn 3.1-12.
This file is a maintainer script. It is executed when installing (*inst) or removing (*rm) the package.
The actual contents of the file can be viewed below.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 | #!/bin/sh
set -e
update-alternatives --install /usr/bin/kinput2 kinput2 /usr/bin/kinput2-wnn 30 --slave /usr/share/man/man1/kinput2.1x.gz kinput2.1x.gz /usr/share/man/man1/kinput2-wnn.1x.gz
update-alternatives \
--install /etc/X11/xinit/xinput.d/ja_JP xinput-ja_JP \
/etc/X11/xinit/xinput.d/kinput2-wnn 60
. /usr/share/debconf/confmodule
if [ -f /etc/X11/Xresources/kinput2-common ]; then
rm -f /etc/X11/Xresources/kinput2-common
fi
XRESOURCE=/etc/X11/Xresources/kinput2
if [ ! -f $XRESOURCE ]; then cat << EOF > $XRESOURCE
Kinput2*CcWnn.ccdef: ccdef.kinput2
EOF
fi
db_get shared/kinput2/wnn/keybindings
if [ "$RET" = "Egg" ]; then
POSTFIX=".egg"
fi
sed "s/\(Kinput2\*CcWnn\.ccdef:\).*/\1\ ccdef.kinput2$POSTFIX/g" < $XRESOURCE > $XRESOURCE.new
mv -f $XRESOURCE.new $XRESOURCE
# Automatically added by dh_installmenu
if [ "$1" = "configure" ] && [ -x "`which update-menus 2>/dev/null`" ]; then
update-menus
fi
# End automatically added section
|