file.README.Debian 767 B

1234567891011121314151617181920212223242526
  1. file for Debian
  2. ---------------
  3. How users can inject their own magics for fun:
  4. 1. open /etc/magic and /etc/magic.mime with a text editor, as root,
  5. and add your own magics.
  6. 2. have fun.
  7. How package maintainers can inject their own magics for profit:
  8. 1. place your magics as plain text files in
  9. /usr/share/file/${binary_package_name}.
  10. 2. call 'file --compile ${binary_package_name}' from /usr/share/file
  11. in your postinst script (maybe we should have a trigger for that
  12. at some point). this will produce the binary magics
  13. /usr/share/file/${binary_package_name}.mgc.
  14. 3. remove the binary magics in your postrm script.
  15. 4. profit.
  16. -- Daniel Baumann <daniel.baumann@progress-technologies.net> Sat, 27 Mar 2010 11:22:58 +0100