246-magic-add-epub.patch 806 B

1234567891011121314151617181920
  1. Author: Adam Buchbinder <adam.buchbinder@gmail.com>
  2. Description:
  3. Add support for EPUB ebooks, fixing some false ZIP negatives (Closes: #596873).
  4. diff -Naurp file.orig/magic/Magdir/archive file/magic/Magdir/archive
  5. --- file.orig/magic/Magdir/archive 2010-09-18 11:35:32.913838992 +0200
  6. +++ file/magic/Magdir/archive 2010-09-18 11:36:03.694842516 +0200
  7. @@ -662,6 +662,12 @@
  8. >>>>78 string -template Template
  9. !:mime application/vnd.oasis.opendocument.image-template
  10. +# EPUB (OEBPS) books using OCF (Open Container Format)
  11. +# From: Adam Buchbinder <adam.buchbinder@gmail.com>
  12. +# URL: http://www.idpf.org/ocf/ocf1.0/download/ocf10.htm, section 4.
  13. +>>38 string application/epub+zip EPUB ebook
  14. +!:mime application/epub+zip
  15. +
  16. # Zoo archiver
  17. 20 lelong 0xfdc4a7dc Zoo archive data
  18. !:mime application/x-zoo