Advertisement
Guest User

Rhino

a guest
Nov 4th, 2009
82
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.98 KB | None | 0 0
  1. $ cat /var/lib/dpkg/info/mono-gac.
  2. mono-gac.list mono-gac.md5sums mono-gac.postinst mono-gac.preinst mono-gac.prerm
  3. $ cat /var/lib/dpkg/info/mono-gac.list
  4. /.
  5. /usr
  6. /usr/share
  7. /usr/share/cli-common
  8. /usr/share/cli-common/runtimes.d
  9. /usr/share/cli-common/runtimes.d/mono
  10. /usr/share/mono
  11. /usr/share/mono/MonoGetAssemblyName.exe
  12. /usr/share/doc
  13. /usr/share/doc/mono-gac
  14. /usr/share/doc/mono-gac/copyright
  15. /usr/share/doc/mono-gac/changelog.Debian.gz
  16. /usr/share/man
  17. /usr/share/man/man1
  18. /usr/share/man/man1/gacutil.1.gz
  19. /usr/bin
  20. /usr/bin/gacutil
  21. $ cat /var/lib/dpkg/info/mono-gac.md5sums
  22. 8c6688b06bfd016d65283c47163e62d1 usr/share/cli-common/runtimes.d/mono
  23. 75e0e0fea6c68e27a975a253d53c12aa usr/share/mono/MonoGetAssemblyName.exe
  24. c0fd05fd66dc510f1ace63eb3e370ab5 usr/share/doc/mono-gac/copyright
  25. 107573002dbdf16b36ea0c41448e62d6 usr/share/doc/mono-gac/changelog.Debian.gz
  26. 10b02f0600b1187d452d1e665a052d78 usr/share/man/man1/gacutil.1.gz
  27. 38c6bf4d46b4eccddf9c3cd57626996c usr/bin/gacutil
  28. $ cat /var/lib/dpkg/info/mono-gac.postinst
  29. #!/bin/sh -e
  30.  
  31. # Install the GAC
  32. if [ -x /usr/share/cli-common/gac-install ]; then
  33. /usr/share/cli-common/gac-install mono
  34. fi
  35.  
  36. # Update the alternatives
  37. update-alternatives \
  38. --install /usr/bin/cli-gacutil global-assembly-cache-tool /usr/bin/gacutil 10 \
  39. --slave /usr/share/man/man1/cli-gacutil.1.gz cli-gacutil.1.gz /usr/share/man/man1/gacutil.1.gz
  40.  
  41.  
  42. $ cat /var/lib/dpkg/info/mono-gac.preinst
  43. #!/bin/sh
  44. set -e
  45. # revert Ubuntu doc dir symlinking to Debian style
  46. if [ "$1" = "upgrade" ]
  47. then if dpkg --compare-versions $2 lt 2.4 && [ -L /usr/share/doc/mono-gac ]
  48. then rm -fr /usr/share/doc/mono-gac
  49. fi
  50. fi
  51. $ cat /var/lib/dpkg/info/mono-gac.prerm
  52. #!/bin/sh -e
  53.  
  54. if [ "$1" = remove ]; then
  55. update-alternatives --remove global-assembly-cache-tool /usr/bin/gacutil
  56.  
  57. # Remove the GAC
  58. if [ -x /usr/share/cli-common/gac-remove ]; then
  59. /usr/share/cli-common/gac-remove mono
  60. fi
  61. fi
  62.  
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement