#! /bin/sh
# postinst script for user-ja
#
# see: dh_installdeb(1)

set -e

# summary of how this script can be called:
#        * <postinst> `configure' <most-recently-configured-version>
#        * <old-postinst> `abort-upgrade' <new version>
#        * <conflictor's-postinst> `abort-remove' `in-favour' <package>
#          <new-version>
#        * <deconfigured's-postinst> `abort-deconfigure' `in-favour'
#          <failed-install-package> <version> `removing'
#          <conflicting-package> <version>
# for details, see /usr/doc/packaging-manual/
#
# quoting from the policy:
#     Any necessary prompting should almost always be confined to the
#     post-installation script, and should be protected with a conditional
#     so that unnecessary prompting doesn't happen if a package's
#     installation fails and the `postinst' is called with `abort-upgrade',
#     `abort-remove' or `abort-deconfigure'.

case "$1" in
    configure)

	echo "---------------------------------------"
	echo "user-ja does not change any setup unless"
	echo "the user execute the configuration command: "
	echo " 1st: login as a normal (not special) user account"
	echo " 2nd: execute /usr/bin/user-ja-conf"
	echo " "

	if [ "$TERM" = "kterm" -o "$TERM" = "kon" -o "$TERM" = "jfbterm" ]
	then
	  echo 'user-ja $B$O%f!<%6$,@_Dj%3%^%s%I$r<B9T$7$J$1$l$P(B'
	  echo '$B4{B8$N@_Dj$K$J$K$bJQ99$r2C$($^$;$s!#(B'
	  echo '$B0lHL%f!<%6$N%"%+%&%s%H$G%m%0%$%s$7$F(B'
	  echo '$B@_Dj%3%^%s%I(B /usr/bin/user-ja-conf $B$r(B'
	  echo '$B<B9T$7$F$/$@$5$$!#(B'
	else
	  echo "user-ja HA JIDOUTEKI NIHA SETTEI WO OKONAI MASEN."
	  echo "IPPAN user NI NATTE, /usr/bin/user-ja-conf WO"
	  echo "JIKKOU SHITE KUDASAI."
	fi

	echo "---------------------------------------"

    ;;

    abort-upgrade|abort-remove|abort-deconfigure)

    ;;

    *)
        echo "postinst called with unknown argument \`$1'" >&2
        exit 0
    ;;
esac

# dh_installdeb will replace this with shell code automatically
# generated by other debhelper scripts.

#DEBHELPER#

exit 0

