file.README.Debian 980 B

123456789101112131415161718192021222324252627282930313233343536
  1. file for Debian
  2. ===============
  3. additional magic files
  4. ----------------------
  5. How users can inject their own magics for fun:
  6. 1. open /etc/magic and /etc/magic.mime with a text editor, as root,
  7. and add your own magics.
  8. 2. have fun.
  9. How package maintainers can inject their own magics for profit:
  10. 1. place your magics as plain text files in
  11. /usr/share/file/${binary_package_name}.
  12. 2. call 'file --compile ${binary_package_name}' from /usr/share/file
  13. in your postinst script (maybe we should have a trigger for that
  14. at some point). this will produce the binary magics
  15. /usr/share/file/${binary_package_name}.mgc.
  16. 3. remove the binary magics in your postrm script.
  17. 4. profit.
  18. seccomp support
  19. ---------------
  20. Starting with version 1:5.37-1, file is built using libseccomp. This
  21. will introduce a regression if applications call the program with the
  22. --uncompress option, and file(1) needs the help of external programs
  23. for uncompression.