home *** CD-ROM | disk | FTP | other *** search
/ PC Welt 2006 November (DVD) / PCWELT_11_2006.ISO / casper / filesystem.squashfs / usr / share / doc / binfmt-support / README.Debian < prev    next >
Encoding:
Text File  |  2004-01-16  |  1.4 KB  |  42 lines

  1. binfmt-support for Debian
  2. -------------------------
  3.  
  4. You must have binfmt_misc either compiled into your Linux kernel or
  5. available as a module in order to use this package. The module will be
  6. automatically inserted if necessary.
  7.  
  8. If you're a system administrator, update-binfmts(8) should tell you all you
  9. need to know about how to use update-binfmts to manage your own local binary
  10. formats.
  11.  
  12. If you're a package maintainer and want to use update-binfmts, you should
  13. install a format file like the following (without the leading spaces) in
  14. /usr/share/binfmts:
  15.  
  16.   package javawrapper
  17.   interpreter /usr/bin/javawrapper
  18.   magic \xca\xfe\xba\xbe
  19.  
  20. Assuming that this file is installed in /usr/share/binfmts/javawrapper, the
  21. postinst should then do this:
  22.  
  23.   if [ configure = "$1" -a -x /usr/sbin/update-binfmts ]; then
  24.     /usr/sbin/update-binfmts --import javawrapper
  25.   fi
  26.  
  27. The prerm script should then do the reverse:
  28.  
  29.   if [ remove = "$1" -a -x /usr/sbin/update-binfmts ]; then
  30.     /usr/sbin/update-binfmts --package javawrapper \
  31.       --remove javawrapper /usr/bin/javawrapper
  32.   fi
  33.  
  34. You should add 'Conflicts: binfmt-support (<< 1.1.2)' to your control file
  35. to ensure that the --import option is available and working.
  36.  
  37. binfmt-support currently has no effect on the Hurd, although it should
  38. install without any problems. Patches from Hurd experts to make translators
  39. look like this interface are welcome.
  40.  
  41.  -- Colin Watson <cjwatson@debian.org>  Sat, 26 Jan 2002 19:05:24 +0000
  42.