home *** CD-ROM | disk | FTP | other *** search
/ PC Welt 2006 November (DVD) / PCWELT_11_2006.ISO / casper / filesystem.squashfs / var / lib / dpkg / info / libpango1.0-common.postinst < prev    next >
Encoding:
Text File  |  2006-08-23  |  2.2 KB  |  73 lines

  1. #! /bin/sh
  2. # postinst script for pango
  3. #
  4. # see: dh_installdeb(1)
  5.  
  6. set -e
  7.  
  8. . /usr/share/debconf/confmodule
  9.  
  10. # summary of how this script can be called:
  11. #        * <postinst> `configure' <most-recently-configured-version>
  12. #        * <old-postinst> `abort-upgrade' <new version>
  13. #        * <conflictor's-postinst> `abort-remove' `in-favour' <package>
  14. #          <new-version>
  15. #        * <deconfigured's-postinst> `abort-deconfigure' `in-favour'
  16. #          <failed-install-package> <version> `removing'
  17. #          <conflicting-package> <version>
  18. # for details, see http://www.debian.org/doc/debian-policy/ or
  19. # the debian-policy package
  20. #
  21. # quoting from the policy:
  22. #     Any necessary prompting should almost always be confined to the
  23. #     post-installation script, and should be protected with a conditional
  24. #     so that unnecessary prompting doesn't happen if a package's
  25. #     installation fails and the `postinst' is called with `abort-upgrade',
  26. #     `abort-remove' or `abort-deconfigure'.
  27.  
  28. case "$1" in
  29.     configure)
  30.     /usr/sbin/update-pango-modules
  31.  
  32.     mkdir -p /etc/pango
  33.     db_get libpango1.0-common/use_defoma
  34.     if [ "$RET" = "true" ]; then
  35.         /usr/sbin/update-pangox-aliases
  36.         if test -f /etc/pango/pangox.aliases && ! test -h /etc/pango/pangox.aliases; then
  37.             mv /etc/pango/pangox.aliases /etc/pango/pangox.aliases-old
  38.         fi
  39.         if ! test -e /etc/pango/pangox.aliases && test -f /var/lib/defoma/pango.d/pangox.aliases; then
  40.             ln -sf /var/lib/defoma/pango.d/pangox.aliases /etc/pango/pangox.aliases
  41.         fi
  42.     else
  43.         if test -f /etc/pango/pangox.aliases && test -h /etc/pango/pangox.aliases; then
  44.             /usr/sbin/update-pangox-aliases
  45.             rm -f /etc/pango/pangox.aliases
  46.             sed -e 's/## THIS FILE.*//g' /var/lib/defoma/pango.d/pangox.aliases > /etc/pango/pangox.aliases
  47.             chmod 644 /etc/pango/pangox.aliases
  48.         elif ! test -f /etc/pango/pangox.aliases; then
  49.             /usr/sbin/update-pangox-aliases
  50.             sed -e 's/## THIS FILE.*//g' /var/lib/defoma/pango.d/pangox.aliases > /etc/pango/pangox.aliases
  51.         fi
  52.     fi
  53.     ;;
  54.  
  55.     abort-upgrade|abort-remove|abort-deconfigure)
  56.  
  57.     ;;
  58.  
  59.     *)
  60.         echo "postinst called with unknown argument \`$1'" >&2
  61.         exit 1
  62.     ;;
  63. esac
  64.  
  65. # dh_installdeb will replace this with shell code automatically
  66. # generated by other debhelper scripts.
  67.  
  68.  
  69.  
  70. exit 0
  71.  
  72.  
  73.