postinst is in defoma 0.11.12ubuntu1.
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 35 36 37 38 39 40  | #! /bin/sh
# postinst script for defoma
#
# see: dh_installdeb(1)
set -e
if [ "X$1" = Xconfigure ]; then
  case "X$2" in
    X0.8.1|X0.8.2|X0.9.0)
    if [ -f /usr/share/defoma/scripts/psfontmgr.defoma ]; then
      rm -f /var/lib/defoma/psfontmgr.d/* || true
      rm -f /var/lib/defoma/x-postscript.font-cache || true
      defoma-app update psfontmgr
    fi
    ;;
  esac
  if [ "X$2" != X ]; then
    if dpkg --compare-versions "$2" lt "0.10.1"; then
      if [ -n "`ls /usr/share/defoma/scripts/*.defoma`" ]; then
        cp /usr/share/defoma/scripts/*.defoma /var/lib/defoma/scripts
      fi
    fi
  fi
fi
case "$1" in
    configure|abort-upgrade|abort-remove|abort-deconfigure)
    ;;
    *)
        exit 0
    ;;
esac
# dh_installdeb will replace this with shell code automatically
# generated by other debhelper scripts.
exit 0
 |