--- file-4.26.orig/debian/file.docs +++ file-4.26/debian/file.docs @@ -0,0 +1 @@ +README --- file-4.26.orig/debian/libmagic-dev.install +++ file-4.26/debian/libmagic-dev.install @@ -0,0 +1,5 @@ +/usr/include +/usr/lib/*.a +/usr/lib/*.la +/usr/lib/*.so +/usr/share/man/man3 --- file-4.26.orig/debian/rules +++ file-4.26/debian/rules @@ -0,0 +1,155 @@ +#!/usr/bin/make -f + +# Uncomment this to turn on verbose mode. +#export DH_VERBOSE=1 + +include /usr/share/dpatch/dpatch.make + +# These are used for cross-compiling and for saving the configure script +# from having to guess our platform (since we know it already) +DEB_HOST_GNU_TYPE ?= $(shell dpkg-architecture -qDEB_HOST_GNU_TYPE) +DEB_BUILD_GNU_TYPE ?= $(shell dpkg-architecture -qDEB_BUILD_GNU_TYPE) + +ifneq ($(DEB_HOST_GNU_TYPE),$(DEB_BUILD_GNU_TYPE)) + CROSS= --build=$(DEB_BUILD_GNU_TYPE) --host=$(DEB_HOST_GNU_TYPE) \ + CC=$(DEB_HOST_GNU_TYPE)-gcc LD=$(DEB_HOST_GNU_TYPE)-ld +else + CROSS= --build=$(DEB_BUILD_GNU_TYPE) +endif + +# HOWMANY is the number of bytes looked at by file +CFLAGS = -DHOWMANY=0x18000 + +CFLAGS += -Wall -g + +ifneq (,$(findstring noopt,$(DEB_BUILD_OPTIONS))) + CFLAGS += -O0 +else + CFLAGS += -O2 +endif + +PYTHON_VERSIONS=$(shell pyversions -r debian/control) + +config.status: configure patch-stamp + dh_testdir + + rm -f ltmain.sh + libtoolize --automake + aclocal + automake + autoconf + + # Configuring package + mv config.sub config.sub.upstream && ln -s /usr/share/misc/config.sub + mv config.guess config.guess.upstream && ln -s /usr/share/misc/config.guess + CFLAGS="$(CFLAGS)" ./configure $(CROSS) --prefix=/usr --datadir=\$${prefix}/share --mandir=\$${prefix}/share/man --enable-fsect-man5 + rm config.sub && mv config.sub.upstream config.sub + rm config.guess && mv config.guess.upstream config.guess + +build: build-stamp +build-stamp: config.status + dh_testdir + + # Building package + mv libtool libtool.upstream && ln -s /usr/bin/libtool libtool + $(MAKE) + rm libtool && mv libtool.upstream libtool + + set -e; \ + for python in $(PYTHON_VERSIONS); \ + do \ + (cd python && $$python setup.py build_ext \ + -L$(CURDIR)/src/.libs); \ + done + set -e; \ + for python in $(PYTHON_VERSIONS); do \ + (cd python && $$python-dbg setup.py build_ext -L$(CURDIR)/src/.libs); \ + done + + touch build-stamp + +clean: unpatch + dh_testdir + dh_testroot + rm -f build-stamp + + # Cleaning package + [ ! -f Makefile ] || $(MAKE) clean + [ ! -f Makefile ] || $(MAKE) distclean + rm -rf python/build + + dh_clean + +install: build + dh_testdir + dh_testroot + dh_prep + dh_installdirs + + # Installing package + mv libtool libtool.upstream && ln -s /usr/bin/libtool libtool + $(MAKE) prefix=$(CURDIR)/debian/tmp/usr install + rm libtool && mv libtool.upstream libtool + + install -D -m 0644 magic/magic.local debian/tmp/etc/magic + install -D -m 0644 magic/magic.local debian/tmp/etc/magic.mime + + set -e; \ + for python in $(PYTHON_VERSIONS); \ + do \ + (cd python && $$python setup.py install --no-compile \ + --root=$(CURDIR)/debian/python-magic); \ + done + + set -e; \ + for python in $(PYTHON_VERSIONS); do \ + (cd python && $$python-dbg setup.py install --no-compile \ + --root=$(CURDIR)/debian/python-magic-dbg); \ + done + find debian/python-*-dbg ! -type d ! -name '*.so' | xargs rm -f + find debian/python-*-dbg -depth -empty -exec rmdir {} \; + + # Installing additional headers + mkdir -p debian/libmagic-dev/usr/include/file + cp src/file.h src/patchlevel.h debian/libmagic-dev/usr/include/file + + # Installing plain magic.mime for compatibility + install -D -m 0644 debian/legacy/magic.mime debian/libmagic1/usr/share/file/magic.mime + + # Installing bug congtrols + install -D -m 0644 debian/bug/presubj debian/file/usr/share/bug/file/presubj + install -D -m 0644 debian/bug/control debian/libmagic1/usr/share/bug/libmagic1/control + install -D -m 0644 debian/bug/presubj-lib debian/libmagic1/usr/share/bug/libmagic1/presubj + install -D -m 0644 debian/bug/control debian/libmagic-dev/usr/share/bug/libmagic-dev/control + +binary-indep: build install + +binary-arch: build install + dh_testdir + dh_testroot + dh_installchangelogs ChangeLog + dh_installdocs + dh_installexamples + dh_install --sourcedir=debian/tmp + dh_lintian + dh_python + dh_link +ifeq (,$(findstring -i, $(DH_OPTIONS))) + dh_strip -Npython-magic -Npython-magic-dbg + DH_OPTIONS= dh_strip -ppython-magic --dbg-package=python-magic-dbg + + rm -rf debian/python-magic-dbg/usr/share/doc/python-magic-dbg + mkdir -p debian/python-magic-dbg/usr/share/doc + ln -s python-magic debian/python-magic-dbg/usr/share/doc/python-magic-dbg +endif + dh_compress + dh_fixperms + dh_makeshlibs + dh_installdeb + dh_shlibdeps -Llibmagic1 -ldebian/libmagic1/usr/lib + dh_gencontrol + dh_md5sums + dh_builddeb + +binary: binary-indep binary-arch +.PHONY: build clean binary-indep binary-arch binary install --- file-4.26.orig/debian/file.install +++ file-4.26/debian/file.install @@ -0,0 +1,3 @@ +/etc +/usr/bin +/usr/share/man/man1 --- file-4.26.orig/debian/python-magic.examples +++ file-4.26/debian/python-magic.examples @@ -0,0 +1 @@ +python/example.py --- file-4.26.orig/debian/control +++ file-4.26/debian/control @@ -0,0 +1,73 @@ +Source: file +Section: utils +Priority: standard +Maintainer: Daniel Baumann +Build-Depends: debhelper (>= 7), dpatch, autotools-dev, autoconf, automake, libtool, python, python-all-dev, python-all-dbg, zlib1g-dev +Standards-Version: 3.8.0 +Homepage: http://www.darwinsys.com/file/ +Vcs-Browser: http://git.debian.net/?p=debian/file.git +Vcs-Git: git://git.debian.net/git/debian/file.git +XS-Python-Version: all + +Package: file +Section: utils +Priority: standard +Architecture: any +Depends: ${shlibs:Depends}, ${misc:Depends}, libmagic1 (= ${binary:Version}) +Description: Determines file type using "magic" numbers + File tests each argument in an attempt to classify it. There are three sets of + tests, performed in this order: filesystem tests, magic number tests, and + language tests. The first test that succeeds causes the file type to be + printed. + . + Starting with version 4, the file command is not much more than a wrapper + around the "magic" library. + +Package: libmagic1 +Section: libs +Priority: standard +Architecture: any +Depends: ${shlibs:Depends}, ${misc:Depends} +Suggests: file +Description: File type determination library using "magic" numbers + This library can be used to classify files according to magic number tests. It + implements the core functionality of the file command. + +Package: libmagic-dev +Section: libdevel +Priority: optional +Architecture: any +Depends: libmagic1 (= ${binary:Version}), zlib1g-dev +Suggests: file +Description: File type determination library using "magic" numbers (development) + This library can be used to classify files according to magic number tests. It + implements the core functionality of the file command. + . + This package contains the development files. + +Package: python-magic +Section: python +Priority: extra +Architecture: any +Depends: ${shlibs:Depends}, ${misc:Depends}, ${python:Depends} +Provides: ${python:Provides} +Suggests: python-magic-dbg +XB-Python-Version: ${python:Versions} +Description: File type determination library using "magic" numbers (Python bindings) + This library can be used to classify files according to magic number tests. It + implements the core functionality of the file command. + . + This package contains the Python bindings to query /etc/magic information for a + given file in Python. + +Package: python-magic-dbg +Section: python +Architecture: any +Priority: extra +Depends: python-magic (= ${binary:Version}), python-dbg, ${shlibs:Depends} +Description: File type determination library using "magic" numbers (Python bindings/debug) + This library can be used to classify files according to magic number tests. It + implements the core functionality of the file command. + . + This package contains the Python bindings to query /etc/magic information for a + given file in Python, built for the Python debug interpreter. --- file-4.26.orig/debian/libmagic1.install +++ file-4.26/debian/libmagic1.install @@ -0,0 +1,3 @@ +/usr/lib/*.so.* +/usr/share/file +/usr/share/man/man5 --- file-4.26.orig/debian/libmagic1.links +++ file-4.26/debian/libmagic1.links @@ -0,0 +1,3 @@ +/usr/share/file/magic /usr/share/misc/magic +/usr/share/file/magic.mgc /usr/share/misc/magic.mgc +/usr/share/file/magic.mime /usr/share/misc/magic.mime --- file-4.26.orig/debian/file.lintian-overrides +++ file-4.26/debian/file.lintian-overrides @@ -0,0 +1,2 @@ +# File and its library companion should always be updated together +file: package-has-a-duplicate-relation --- file-4.26.orig/debian/changelog +++ file-4.26/debian/changelog @@ -0,0 +1,1196 @@ +file (4.26-2) unstable; urgency=medium + + * Using patch-stamp rather than patch in rules file. + * Replacing obsolete dh_clean -k with dh_prep. + * Adding patch from Toeroek Edwin to update llvm magics + (Closes: #505805). + * Adding patch to add mime entries for ruby (Closes: #502201). + * Adding patch from Ori Avtalion to update gimp magics + (Closes: #501200). + * Corrected spelling of 'ScummVM' in magic-add-scummvm.dpatch. + * Adding patch from Adam Buchbinder to update wav + magics (Closes: #508174). + + -- Daniel Baumann Tue, 9 Dec 2008 13:28:00 +0100 + +file (4.26-1) unstable; urgency=low + + * Updating vcs fields in control file. + * Merging upstream version 4.26. + * Rediffing 903-file-localmagic.dpatch. + + -- Daniel Baumann Mon, 8 Sep 2008 13:57:00 +0200 + +file (4.25-1) unstable; urgency=low + + * Adding patch from Russell Coker to add volume label + and UUID support for linux ext (Closes: #489865). + * Adding patch from Russell Coker to add volume label + and UUID support for linux swap (Closes: #489865). + * Adding patch from Eric Cooper to update ocaml magics + (Closes: #488992). + * Removing 907-file-funcs.dpatch, went upstream. + * Removing 905-file-printf.dpatch, went upstream. + * Updating 903-file-localmagic.dpatch for 4.25. + * Updating 901-file-mgc.dpatch for 4.25. + * Updating 338-magic-add-cromfs.dpatch for 4.25. + * Updating 325-magic-add-sgf.dpatch for 4.25. + * Updating 321-magic-add-pe5.dpatch for 4.25. + * Updating 212-magic-update-pfm.dpatch for 4.25. + * Updating 211-magic-update-mono.dpatch for 4.25. + * Updating 206-magic-update-bash.dpatch for 4.25. + * Updating 205-magic-update-tcsh.dpatch for 4.25. + * Removing 201-magic-update-mp3.dpatch, went upstream. + * Merging upstream version 4.25. + + -- Daniel Baumann Tue, 15 Jul 2008 16:26:00 +0200 + +file (4.24-4) unstable; urgency=high + + * Adding patch from Jelmer Vernooij to add new + magics for bzr (Closes: #488742). + * Adding symlinks to /usr/share/misc to conform to the LSB, thanks to + Matthias Klose . + * Adding zlibg1-dev to libmagic-dev depends (Closes: #472856). + * Adding patch to revert upstream change to stop build plain magic + files. This fixes #481247 correctly now (Closes: #481247). + * Reverting previous wrong NMU. + + -- Daniel Baumann Tue, 1 Jul 2008 18:46:00 +0200 + +file (4.24-3.1) unstable; urgency=low + + * Non-maintainer upload from the Cambridge BSP. + * Work around bug #488562, that file assumes readdir() will return sorted + names - instead of compiling magic.mgc from Magdir directly, use the logic + already in debian/rules to build (the file that will become) + /usr/share/file/magic, then compile magic.mgc from that. (Closes: #481247) + + -- Simon McVittie Sun, 29 Jun 2008 19:32:24 +0000 + +file (4.24-3) unstable; urgency=medium + + * Rewriting copyright file in machine-interpretable format. + * Updating package to debhelper 7. + * Adding patch to update pfm magic. + * Adding patch to update mono magic. + * Adding patch to update Digifax magic. + * Adding patch to update OS/2 REXX magic. + * Adding patch to update real media magic. + * Adding patch to update zip magic. + * Updating bash magic to also look for /usr/bin/bash. + * Updating tcsh magic to also look for /usr/bin/tcsh. + * Adding patch from Russell Coker to add new magic for + selinux (Closes: #485886). + * Updating to standards 3.8.0. + * Adding patch to add mime for asf magics (Closes: #483797). + * Adding patch from Werner Fink to add new magic for scribus. + * Adding patch from Werner Fink to update reiserfs magic also + detecting ReiserFS V3.6.19. + * Adding patch from Werner Fink to add new magic for CROM + filesystem. + * Adding patch from Werner Fink to update (and re-enabled) + awk magic. + * Adding patch from Werner Fink to fix regressions with mp3 + files (Closes: #480683, #481377). + * Adding patch for new TokyoCabinet database magic, thanks Benoit Sibaud + (Closes: #481768). + * Adding patch for new QDBM Quick Database Manager magic, thanks Benoit Sibaud + (Closes: #481717). + * Fixing regression in file 4.24 with file_printf(), thanks Martin Dorey + (Closes: #481523). + * Removing annoying warnings when files can't be opened, thanks Martin Dorey + (Closes: #481512). + * Adding new magic for freemind, thanks to Jamie Thompson + (Closes: #472385). + + -- Daniel Baumann Thu, 26 Jun 2008 16:06:00 +0200 + +file (4.24-2) unstable; urgency=medium + + * Adding plain magic files for compatibility. + * Using lintian debhelper to install lintian overrides. + * Removing watch file. + * Removing useless whitespaces in changelog file. + * Adding vcs fields in control file. + * Upgrading package to debhelper 6. + + -- Daniel Baumann Sat, 3 May 2008 14:09:00 +0200 + +file (4.24-1) experimental; urgency=low + + * New upstream release: + - The following patches went upstream completely: + 102-magic-remove-bennet, 103-magic-remove-bzip, 104-magic-remove-cgm, + 105-magic-remove-com, 106-magic-remove-emf, 108-magic-remove-quicktime, + 201-magic-update-avi, 203-magic-update-cow, 204-magic-update-cracklib, + 206-magic-update-elf-b, 207-magic-update-elf-c, 208-magic-update-hp, + 209-magic-update-jpeg, 210-magic-update-m4v, 211-magic-update-macintosh, + 213-magic-update-pcp, 214-magic-update-perl, 215-magic-update-sh, + 216-magic-update-spectrum, 301-magic-add-adf, 302-magic-add-apple2, + 303-magic-add-arm, 304-magic-add-avg, 305-magic-add-clarion, + 306-magic-add-dds, 307-magic-add-erlang, 308-magic-add-gedcom, + 309-magic-add-git, 309-magic-add-inform, 310-magic-add-llvm, + 311-magic-add-lua, 312-magic-add-luks, 313-magic-add-lzma, + 314-magic-add-mathcad, 315-magic-add-mdi, 316-magic-add-mercurial, + 317-magic-add-mozilla, 318-magic-add-nlm, and 332-magic-add-svg, + 901-file-elf, 902-file-kfreebsd, and 905-file-segfault. + - The following patches went upstream almost completely: + 998-doc-manpages and 999-conglomeration. + - Thanks to Reuben Thomas to merge them. + + -- Daniel Baumann Tue, 1 Apr 2008 11:30:00 +0200 + +file (4.23-2) unstable; urgency=low + + * Applied patch from Neil Williams to add crossbuild + support to debian/rules (Closes: #465111). + + -- Daniel Baumann Sun, 10 Feb 2008 20:16:00 +0100 + +file (4.23-1) unstable; urgency=low + + * New upstream release: + - Removing '101-magic-remove-awk.dpatch', went upstream. + - Removing '107-magic-remove-msi.dpatch', went upstream. + - Removing '202-magic-update-blender.dpatch', went upstream. + - Removing '205-magic-update-elf-a.dpatch', went upstream. + - Removing '212-magic-update-os2rexx.dpatch', went upstream. + - Removing '319-magic-add-ocfs.dpatch', went upstream. + + -- Daniel Baumann Sat, 12 Jan 2008 17:23:00 +0100 + +file (4.21-4) unstable; urgency=low + + * Bumping to new policy. + * Using new homepage field in control. + * Using ${binary:Version} in all depends. + * Added patch from Josh Triplett to add new magic for + Mozilla XUL fastload files (XUL.mfasl and XPC.mfasl; Closes: #452354). + * Added patch from Seo Sanghyeon to add new + magic for Mercurial bundles (Closes: #451067). + * Correct wrong applied patch for SNES sound files (Closes: #410847). + * Added patch from Mathias Brodala to add new magic for + X11 cursor files (Closes: #451246). + + -- Daniel Baumann Sun, 23 Dec 2007 18:09:00 +0100 + +file (4.21-3) unstable; urgency=low + + * Including extra headers in /usr/include/file (Closes: #397307). + * Added patch from Eduardo Sabbatella to + add magic for SGF Smart Game Format (Closes: #428605). + * Added patch from Josh Triplett to add magic for git + bundles (Closes: #430070). + * Added patch from Mathieu Malaterre to extend + JPEG 2000 magic (Closes: #439005). + * Added patch from Daniele Sempione to add magic for + Microsoft Document Imaging Format (.mdi) (Closes: #430548). + * Added patch from Nicolas Collignon to add magics + for OpenSSH and OpenSSL certificates/key files (Closes: #439537). + + -- Daniel Baumann Sun, 26 Aug 2007 09:51:00 +0200 + +file (4.21-2) unstable; urgency=low + + * Applied patch from Michael Casadevall to fix + FTBFS on hurd (Closes: #433716). + + -- Daniel Baumann Thu, 19 Jul 2007 08:27:00 +0200 + +file (4.21-1) unstable; urgency=low + + * New upstream release. + * Rediffed 211-magic-update-os2rexx.dpatch. + * Removed 302-magic-add-ape.dpatch, went upstream. + * Rediffed 304-magic-add-arm.dpatch. + * Rediffed 317-magic-add-ocfs.dpatch. + * Rediffed 318-magic-add-par2.dpatch. + * Rediffed 322-magic-add-scummvm.dpatch. + * Rediffed 325-magic-add-subversion.dpatch. + * Rediffed 326-magic-add-supercollider.dpatch. + * Rediffed 328-magic-add-xen.dpatch. + * Removed 999-upstream-reg-startend.dpatch, now included in upstream. + * Updated 905-file-segfault.dpatch. + * Rediffed 999-conglomeration.dpatch. + + -- Daniel Baumann Fri, 1 Jun 2007 20:29:00 +0200 + +file (4.20-8) unstable; urgency=low + + * Build a python-magic-dbg package. + + -- Daniel Baumann Thu, 17 May 2007 20:40:00 +0200 + +file (4.20-7) unstable; urgency=medium + + * Replacing work around patch from Ubuntu with proper fix from + Werner Fink of OpenSuse (CVE-2007-2026). + + -- Daniel Baumann Thu, 17 May 2007 19:57:00 +0200 + +file (4.20-6) unstable; urgency=medium + + * Fixed clean: target in rule (Closes: #424269). + * Added patch from Anthon van der Neut to add magic for LUKS + (Closes: #394246). + * Added patch from Jelmer Vernooij to add magic for + Power-Tab. + * Added patch from Sven Anders to fix a segfault with -c. + * Added patch from Kees Cook to work around regex DoS + (CVE-2007-2026) by disabling the respective magic. + * Added patch from Noel Torres to add magic + for SVG (Closes: #417331). + * Added patch from Josh Triplett to add magic for + Mathcad documents (Closes: #421426). + * Added patch from Matthias Urlichs to update elf magic + with missing elf architectures (Closes: #424859). + * Added patch from Josef Spillner <2005@kuarepoti-dju.net> to update magic + for HFS+ partition table detection (Closes: #405313). + + -- Daniel Baumann Thu, 17 May 2007 18:15:00 +0200 + +file (4.20-5) unstable; urgency=low + + * Added patch from Ralph Amissah to update magic for + SiSU Markup Language. + * Added patch from Josh Triplett to disable magic for + Bennet Yee's face format (Closes: #420855). + * Updated copyright file (Closes: #398453). + + -- Daniel Baumann Thu, 26 Apr 2007 08:13:00 +0200 + +file (4.20-4) unstable; urgency=low + + * Rediffed some patches, now having always the same format of adding new + magics. + * Added patch from Ralph Amissah to add magic for + SiSU Markup Language. + * Added patch from Radek Vokal to add magic for + Xen saved domains. + * Added patch from Radek Vokal to add magic for + Apple Emulator 2IMG format. + * Added patch from Aaron Botsis to add magic for + Oracle Clustered Filesytem. + * Added patch from Werner Fink to update pcp magics. + * Added patch from Mads Martin Joergensen to add magic for + NetWare Loadable Modules (NLMs). + * Added patch from Reuben Thomas to add magic for + Inform interactive fiction language (Closes: #394522). + * Added patch to add magic for Erlang BEAM and JAM files (Closes: #388356). + * Added patch from David Newgas to add magic for + AVG vault files (Closes: #381053). + * Added patch from root to add magic for detecting + H.264 video in AVI files (Closes: #347263). + * Added patch from Seo Sanghyeon to update + lua magic with Lua bytecode (Closes: #335036). + * Added patch from Daniel van Eeden to add magic for + PAR2 archive files (Closes: #294070). + * Added patch from Mario Lang to add magic for + SuperCollider 3 Synth Definition File Format (Closes: #284803). + * Added patch from Russell Coker to add magic for + Adaptive Multi-Rate Codec files (Closes: #279322). + * Added patch from Phil Endecott to add magic for + GEDCOME genealogical data files (Closes: #277339). + * Added patch from Nicolas François to + fix wrong formating in manpage (Closes: #417511). + + -- Daniel Baumann Tue, 3 Apr 2007 14:25:00 +0200 + +file (4.20-3) unstable; urgency=low + + * Added patch from Josh Triplett to add magic for + SNES SPC700 sound files (Closes: #410847). + * Added patch from Reuben Thomas to add magic for the + Lua scripting language (Closes: #394524). + * Added patch from Nigel McNie to detect m4v files as m4v + instead of mp4 (Closes: #384018). + * Added patch from Mark Hindley to update + sh scripts identifier (Closes: #368613). + * Added patch from Robert Millan to add magic for the + LZMA compression format (Closes: #364260). + * Added patch from Simon Horman to add magic for the + Ulead Photo Explorer5 image format (Closes: #339397). + * Added patch from Robert Millan to add magic for the + Monkey's audio format (Closes: #334862). + * Added patch from Josh Babcock to updated magic for + Blender (Closes: #323291). + * Added patch from Matthew Palmer to update magic for + COW from 2.0 to 3.0 (Closes: #283515, #319128). + * Added patch from Robert Millan to add magic for the + OpenRISC binary format (Closes: #316076). + * Added patch from Philip Kendall to update the + spectrum magics (Closes: #296202). + * Added patch from Al Stone to add magic for the + LLVM byte-codes (Closes: #293427). + * Added patch from Julien Blache to add magic for + Clarion files (Closes: #282680). + * Added patch from Sven Hartge to add magic for + scummVM savegame files (Closes: #263488). + * Added patch from Nicolas Chauvat to add magic + for CGNS Advnaced Data Format files (Closes: #242644). + * Added patch from Edward Betts to add magic for + pmenu (Closes: #38543). + + -- Daniel Baumann Tue, 27 Mar 2007 17:51:00 +0100 + +file (4.20-2) unstable; urgency=low + + * New maintainer (Closes: #416263). + * Redone debian directory. + + -- Daniel Baumann Tue, 27 Mar 2007 13:28:00 +0100 + +file (4.20-1) unstable; urgency=high + + * New upstream version + - Fixes supposed vulnerability in the file_fprintf in funcs.c + (closes: #415362 and justifies urgency) + - MPEG ADTS signedness fixed (closes: #392009) + - Better TeX/LaTeX magic (closes: #402062) + - Better XML mimetype magic (closes: #345834) + - More linespacing in manpage (closes: #402058) + * Revert URL in copyright file (see #406820), as the old one is supposed to + be correct, even if it disappeared temporarily. + * Fixed typo in manpage (closes: #394514) + * Make Perl script entries consistent (closes: #394523) + * Disable second MS Installer entry (closes: #409895) + * Disable one-byte magic for COM (closes: #393775, #339618) + * audio/midi mimetype (closes: #401839) + * Enable gzip mimetype magic (closes: #324889) + * Disabled some QuickTime entries (ASCII words, closes: #366986, #308394) + + -- Michael Piefel Mon, 19 Mar 2007 14:55:46 +0100 + +file (4.19-1) unstable; urgency=low + + * New upstream version. + * Use correct new URL to upstream now (closes: #406820) + + -- Michael Piefel Fri, 19 Jan 2007 16:03:27 +0100 + +file (4.17-5) unstable; urgency=high + + * Initialize some previously uninitialized memory, this could lead to a + segmentation fault when using magic_compile in libmagic (closes: #403085) + + -- Michael Piefel Fri, 15 Dec 2006 13:36:12 +0100 + +file (4.17-4) unstable; urgency=medium + + * Add proper depends for python-magic (fixes not yet filed serious bug) + + -- Michael Piefel Tue, 26 Sep 2006 14:01:00 +0200 + +file (4.17-3) unstable; urgency=low + + * Add example /etc/magic.mime and document the fact that file only look for + a magic.mime file if the base magic file exists (closes: #382057) + * Remove AWK detection by regular expression testing just for ‘BEGIN:’; + this caused a lot of false guesses (and problems with naughty programs + reading other programs’ files), this closes: #308305, #375403 and makes + others disappear (for the time being, for example, it closes: #375722) + * Added Python 2.5 byte-compiled (closes: #376711) + * Fix some bad MIME types (closes: #379042, thanks to Moritz Naumann) + + -- Michael Piefel Mon, 14 Aug 2006 15:28:25 +0200 + +file (4.17-2) unstable; urgency=low + + * Using new python infrastructure now: python2.3-magic and python2.4-magic + dropped in favour of python-magic containing all versions + * Identify Mono assemblies (closes: #314756) + + -- Michael Piefel Wed, 14 Jun 2006 11:39:15 +0200 + +file (4.17-1) unstable; urgency=low + + * New upstream (closes: #343648) + * Improved over-confident 64bit-cracklib rule (closes: #343504) + * Revert ELF file-reading (by Alessandro Rubini, closes: #345089) + * Detect GNU/kFreeBSD binaries (by Robert Millan, closes: #307475) + + -- Michael Piefel Wed, 15 Mar 2006 10:25:06 +0100 + +file (4.15-2) unstable; urgency=low + + * Add Build-Depends to python, although I really don’t see the point of the + python package (since file Build-Depended transitively on python2.3 + anyway), which claims to be a dependency package only (closes: #333859) + * Disabled EMF detection as it not only caused false positives, which might + have been acceptible, but a segmentation fault (closes: #333502) + * Move the magic databases from /usr/share/misc/file to /usr/share/file; + this still violates the FHS in letter, but not in spirit; this is + different from the position in other distros (closes: #215139, #278478) + + -- Michael Piefel Fri, 14 Oct 2005 16:01:54 +0200 + +file (4.15-1) unstable; urgency=low + + * New upstream, closes: #305914 + - Maya with string version (closes: #246962) + - added ESRI Shapefile format (closes: #277552) + - added Adlib tunes (closes: #317192) + - many more magic additions, probably closing some bugs as well + - magic files can now contain regular expressions + * Fix manpage typo (closes: #323539) + * Mention possibly unexpected behaviour of -k in man page (closes: #259193) + * ELF machine 21 can be PowerPC64 (closes: #299620) + * Remove gzip/bzip2-detection for Debian packages (closes: #328623) + * Updated HP 38/39/40/48/49 magic (closes: #326680) + * Disabled BZIP detection (closes: #277648) + * Enabled the python bindings (Martin von Löwis, closes: #325073) + + -- Michael Piefel Wed, 12 Oct 2005 10:35:17 +0200 + +file (4.12-1) unstable; urgency=high + + * New upstream version. Closes: #283316, a potential stack smash in ELF + header parsing. Urgency set to high. + * /etc/magic is read, as it should (Closes: #279324) + * No further changes to increase the slim chance of getting into Sarge. + + -- Michael Piefel Mon, 06 Dec 2004 10:42:47 +0100 + +file (4.10-3) unstable; urgency=high + + * The “for the love of Branden” release. + * Urgency high in a vain attempt to get this into sarge. + * Fix MIME detection for 3DS (actually, remove it because it was hilarious, + closes: #216368) + * Do _not_ depend on gcc-3.4 + + -- Michael Piefel Fri, 30 Jul 2004 11:14:48 +0200 + +file (4.10-2) unstable; urgency=medium + + * Fix multibyte vs. byte issue in files-from (closes: #261799) + + -- Michael Piefel Wed, 28 Jul 2004 11:40:53 +0200 + +file (4.10-1) unstable; urgency=low + + * New upstream version. + - No more doubling of file names with -z (closes: #260393) + * New magic for SLL16 (closes: #249190) + * New magic for SVN dumps (closes: #256652) + * Patch for error return code on non-existant files + (courtesy of Federico Grau, closes: #257805) + + -- Michael Piefel Mon, 26 Jul 2004 12:58:40 +0200 + +file (4.09-1) unstable; urgency=low + + * New upstream version. This includes almost every patch that the Debian + version had, so this package is very close to upstream's. + * Disable some more Apple magic (closes: #231476); curiously, most of the + Apple magic is very weak. + * Disable very weak Assembler magic (closes: #223328) + * Disable weak AWK magic (closes: #223282) + * Added DjVu magic (closes: #238570) + * Removed erroneous 5th column in magic.mime (closes: #246428) + * Better error report messages in two places (closes: #243446, #252951) + * Use /etc/magic again (failed to touch Makefile.in, closes: #231306) + + -- Michael Piefel Fri, 11 Jun 2004 14:35:30 +0200 + +file (4.07-2) unstable; urgency=low + + * Move the "debian-additions" magic file back in; it got lost + * Move up "compress" in the list to test for gzip before FLI; this + closes: #228391 - but what happens if I have a real FLI file that + starts with the two gzip magic bytes? + * Replace the really bad magic for MP3 in magic.mime with the one found + in "animation" (closes: #227625) + + -- Michael Piefel Tue, 20 Jan 2004 11:57:47 +0100 + +file (4.07-1) unstable; urgency=low + + * New upstream + * do not loop endlessly when encountering zero-length section offsets in ELF + headers (closes: #226289) + + -- Michael Piefel Wed, 14 Jan 2004 10:54:32 +0100 + +file (4.06-2) unstable; urgency=low + + * Unified HTML detection for normal and mime; handles the main complaint of + #223340, but not all of it. + * Added Hangul Word Processor File (closes: #219867) + * Added Outlook personal folder (closes: #183764) + * Added Mobipocket e-book (closes: #222855) + * Added BIOS ROM dumps (closes: #150880) + * Added some Doom and Quake (closes: #135671) + * Added Sun/Cobalt boot ROMs (closes: #216867) + * Made VMware magic more robust and (hopefully) correct (closes: #219037); + file used to report nothing at all, due to an empty description string and + heavy reliance on the subtype (which didn't match) + + -- Michael Piefel Fri, 12 Dec 2003 13:25:34 +0100 + +file (4.06-1) unstable; urgency=low + + * New upstream. + - Return error for non-existant files (closes: #215801) + - Adds BitTorrent (closes: #201301) + * Fix minor AAC typo (closes: #215052) + * More QuickTime subformats (closes: #198809) + * Rearrange Flac detection (closes: #213693) + * Improved CAB detection (closes: #208926, #205431) + * Added Netscape Bookmarks (closes: #207344) + * Added DACT (closes: #195882) + * Added GCC precompiled headers (closes: #204304) + * Added GEOS (closes: #162852) + * Added HVQM4 (Still counting, Mark? Closes: #151138) + + -- Michael Piefel Fri, 17 Oct 2003 12:40:54 +0200 + +file (4.04-1) unstable; urgency=low + + * New upstream + * add MAXPATHLEN to apprentice.c in order to make it build on the + Hurd (closes: #212215) + * add TFMX (closes: #151217, as the rest was already there) + * recognize PO files (closes: #138423) + + -- Michael Piefel Tue, 23 Sep 2003 17:06:48 +0200 + +file (4.03-3) unstable; urgency=low + + * more and better magic: + - added Python 2.3 byte-compiled + - corrected magic for HFS+ (closes: #207576) + - fixed XML magic and added to MIME magic (closes: #186613) + - added Xbox magic (closes: #183432) + - remove ", English" from MIME type output (closes: #160415) + - remove the vain attempts to guess the size of JPEG files as they are + either wrong or confusing (sort of closes: #74938, #153833, #198053) + - add Gnumeric magic to both normal and MIME magic; note you still have to + pass -z to file (closes: #205708, #206756) + - remove compresse MIME types (related to #170981) + - add ACE archiver (closes: #178807) + * add more descriptive message for unreadable files (closes: #203168) + * rearranges header inclusions so that configuration is the same in all + compiled files (closes: #208785) + * fix the long-standing crash-on-compressed bug (closes: #197442, #207458) + + -- Michael Piefel Fri, 05 Sep 2003 11:59:54 +0200 + +file (4.03-2) unstable; urgency=low + + * Compressed Flash (closes: #179640), also for MIME (closes: #186946) + * Added GPG (closes: #197646) and JFFS2 (closes: #188780); + accidentally also closes: #203158 (debian-additions not empty anymore) + + -- Michael Piefel Tue, 29 Jul 2003 13:28:39 +0200 + +file (4.03-1) unstable; urgency=low + + * New upstream + - fixes Zsh bug (closes: #195583, #196163) + - incorporates many Debian changes to magic entries + - also closes: #196162 (no more Broken HTML) + * Reformatted ancient changelog entries and made sure changelog + is in UTF-8. + * File depends on correct library version now (closes: #194697) + * Recognizes more Magic Cookies (closes: #201301) + * Dynamically updates libtool (closes: #195330) + + -- Michael Piefel Sun, 27 Jul 2003 23:39:15 +0200 + +file (4.02-4) unstable; urgency=low + + * The "no closes:" release. + * Removed one last artifact of the raw-magic option. + * Adapt the very-short-file fix to the new environment. + + -- Michael Piefel Sat, 17 May 2003 20:01:17 +0200 + +file (4.02-3) unstable; urgency=low + + * Remove the nomgc symbol from the library (closes: #193355); this kind of + reopens #115573, but I am now sure that this is not a bug, document the + behaviour instead. + * Make HTML magic a little less picky (closes: #193296) + * Close files after looking at them (closes: #193580) + * Don't report bogus for unreadable files (closes: #193582) + + -- Michael Piefel Sat, 17 May 2003 18:01:27 +0200 + +file (4.02-2) unstable; urgency=low + + * Changed Priority of libmagic-dev to optional (closes: #193254) + * Add Conflicts of libmagic1 to older file (closes: #193236, #193238) + * Use newer libtool (closes: #193152) + + -- Michael Piefel Wed, 14 May 2003 13:47:47 +0200 + +file (4.02-1) unstable; urgency=low + + * New upstream version + * Acknowledge NMU, closes: #184204 + * Description length limit is down to 64 again. The easy way, setting it in + file.h, doesn't work anymore, and I've not yet found out why. + * Upstream has made a library out of the magic number recognition routines. + Consequently, split the package up into three binary packages, adding + libmagic1 and libmagic-dev. + * debian/rules: all new and shiny; better autotools supprt + * add some more magic: + - TI emulators skins (closes: #167267) + - Objective Caml (closes: #166830) + - ReBorn (closes: #156279) + - SE Linux policy database (closes: #159283) + - Flow Cytometry Standard (closes: #160984) + * remove some magic: + - Brian Postma's Soundmon Module (closes: #168661) + - LILO (closes: #160602) + * fixed some magic: + - XWD X Window Dump (closes: #164047, #81771) + * fix reference to magic man page in README (closes: #159992) + + -- Michael Piefel Sun, 11 May 2003 20:15:20 +0200 + +file (3.40-1.1) unstable; urgency=high + + * [readelf.c] Apply patch from upstream version 3.41 to fix buffer overflow + - CAN-2003-0102 + - http://www.idefense.com/advisory/03.04.03.txt + - Closes: #184204 + + -- Matt Zimmerman Thu, 3 Apr 2003 13:50:22 -0500 + +file (3.40-1) unstable; urgency=low + + * New upstream version (closes... no, this time I'm faster) + * Switched Maintainer and Uploaders field, thereby effectively taken over + the package after not having heard of the previous maintainer for about + a year (finally officially closes: #174338, which is already closed) + * No more whitespace on first line of debian/rules (closes: #164651) + * It seems this already was fixed, but using an addition to the additional + StuffIt magic now (closes: #170893) + * Added VRML (closes: #166955) + * Corrected unknown groff character names in magic(5) manpage (closes: #180056) + * Update TI Calculator Magic (closes: #162820) + * Make the ELF string extraction a little more robust (closes: #166832) + * Recognizes HTML even with whitespace (closes: #119193) + * Do not hang on rapidly growing archives with -z (closes: #162896) + * Remove CVS date from Ogg output, it is not very useful as version number + is printed anyway, and may cause trouble as it is not a real string, thus + breaking the output routine for LANG!=C (closes: #178479) + * Fix alignment of multifile output and wide characters + + -- Michael Piefel Sun, 16 Feb 2003 17:31:21 +0100 + +file (3.39-1) unstable; urgency=low + + * NMU + * New upstream version (closes: #148212, #151907) + - incorporates most Debian patches + - adds 9660 filesystem magic (closes: #157050; Upstream has + a different magic than reporter.) + - adds MNG magic (closes: #147264, see below) + - adds PHP magic (closes: #145929) + - detects UTF-8 and UTF-16 with BOM (closes: #102076) + - some short string magic commented out (closes: #134266) + * New Debian patches + - improved Linux kernel magic, make it like lilo (closes: #106898) + - changed BMP MIME type to x-ms-bmp (closes: #124234) + - added JNG magic (closes: #147264) + - added alternate ZIP magic (closes: #56292) + - added alternate StuffIt magic (closes: #114027) + - added/changed magic for Screamtracker (closes: #60009) + - added vCalendar magic (closes: #158338) + - added ZX spectrum magic (closes: #157162) + - added EST flat binary (closes: #139239), Aculab VoIP firmware + (closes: #138967), PPCBoot image (closes: #138958); thank you, Mark + - tried some magic for multiple master fonts (closes: #29685) + - removed some Mac magic (closes: #113733); this is not the + real fix (TM), but works for the particular problem + - removed some two-byte ASCII magic - too simple (closes: #144398) + - fixed some entries extracting strings (changed \n to \0) + - added new command line option -M which ignores compiled databases + (closes: #115573) + - give warning for one-byte files (magic is at least two bytes long, + closes: #95778, #117222) + * Move Debian magic additions all together in one spot to facilitate + patching and communication with upstream + + -- Michael Piefel Sun, 01 Sep 2002 13:13:15 +0200 + +file (3.37-3.1) unstable; urgency=low + + * NMU + * Removed regexp.patch and kleff, they didn't serve a purpose + * Bumped standards-version to 3.5. + * Added Kimwitu magic + * Improved MS Office magic (closes: #116693, #54960) + * Added XV thumb, ISDN vbox, KiSS (closes: #54391) + * Emacs 19 improved upstream (closes: #101336) + * Added long HtmlHelp magic (closes: #113876) + * Added webshots desktop (closes: #118517) + * Added newer Python magic (closes: #119572) + * Ogg magic improved upstream (closes: #91858) + * XFS cleaned up (closes: #129172) + * Targa reports size (closes: #133024) + * Documented arbitrary 50 character description limit and increased it + to 80 characters (closes: #12415) - the patch for unlimited length + doesn't work, at least not at advertised. + * Added Atari MSA (closes: #95040) + * TI-8x updated (closes: #102824) + * Better Swap (closes: #105504) + * Increased buffer size to 96K (closes: #105505) + * Better CRAMFS (closes: #115575) + * Added JFFS (closes: #118900) + * Added Hercules DASD image magic (closes: #122326) + * Added TDB magic (closes: #122328) + * Added Matlab (closes: #125666) + * Added Squeak images and (closes: #131627) + * Added User Mode COW magic (closes: #134619) + * Added even better Ogg magic and even include it (closes: #134663) + + -- Michael Piefel Mon, 04 Mar 2002 19:47:32 +0100 + +file (3.37-3) unstable; urgency=low + + * Implemented internal gzip support through the zlib library. It's much + faster than executing gzip and it works better. Many small files that + weren't properly handled now are. I've tested this with over 400 random + gzipped files and it works, but please, report any problem with this. + + -- Nicolás Lichtmaier Sun, 14 Oct 2001 05:56:19 -0300 + +file (3.37-2) unstable; urgency=low + + * The new sread function was sooo broken... I have now enhanced + it with the amazing capability of handling EOF. Now file -z + shouldn't hang (closes:Bug#115156). + + -- Nicolás Lichtmaier Thu, 11 Oct 2001 03:10:10 -0300 + +file (3.37-1) unstable; urgency=low + + * New upstream release: + * Recognizes mp3 files with IDv2 tags (closes:Bug#112829, Bug#96688). + * Adds magic for RRDtool databases (closes:Bug#114372). + * Weak magic for AppleWorks spreadsheet data was removed + (closes:Bug#110451,Bug#98447). + * Remove warning for not using a compiled magic version for /etc/magic. + I won't try to implement something to create a compiled version of + /etc/magic as: 1) This fle is empty by default and will have only a few + manually added entries, so there wouldn't be any speed gain; 2) It will + add complexity and it wouldn't be trivial. + * Added a note in magic2mime(1) deprecating its use. + * No longer recognizes sunclock's "vector map format" as PostScript + (closes:Bug#105930). + * Added magic for cramfs and reiserfs from russell@coker.com.au + (closes:Bug#105485, Bug#105508). + * Added two Palm file formats from + John Gruenenfelder (closes:Bug#104034). + + -- Nicolás Lichtmaier Mon, 8 Oct 2001 19:49:42 -0300 + +file (3.33-5) unstable; urgency=low + + * Added "Build-Depends: debhelper" (closes:Bug#86829). + * New magic for S/390 ELF binaries (closes:Bug#93491). + * Added support for large files (closes:Bug#93402). + * Fixed magic2mime to cope with the new charset detection + (closes:Bug#92931). + * Added -s option to short usage message (-h) (closes:Bug#85910). + * Added magic for Paint Shop Pro from + Telford Tendys (closes:Bug#85359). + * Removed minor PS version number from font detection magic, + suggested by Reinhard Kotucha + (closes:Bug#82667). + * Added magic for Flac audio (what's that? =) ) from + Matt Zimmerman (closes:Bug#91857). + * Added magic for newer LHA files (does someone still use lha? wow!) + from Paul Martin (closes:Bug#83454). + * Now shows which compressor a Debian package uses, + contributed by Ben Collins (closes:Bug#48389). + * Removed creation date report from Debian magic, it no longer works. + It seems that the gzipped members of the .deb file are no longer + created with the proper date. + * Added lots of Palm documents contributed by + Michael-John Turner (but replaced "document" with + "PalmOS document") (closes:Bug#87759). + * Added magic for Squish and JAM echomail/netmail Fidonet areas storage + formats contributed by peter@softwolves.pp.se (closes:Bug#90172). + + -- Nicolás Lichtmaier Sun, 6 May 2001 02:13:10 -0300 + +file (3.33-4) unstable; urgency=low + + * Modified Newton PDA package format magic so it doesn't match + Java source code files. + * When using -z, don't write the NUL terminator to the uncompressing + program. + * Ignore output from gzip (gzip should have an option to disable the + "unexpected end of file" error message) (closes:Bug#83317). + * Minor updates to debian/rules. + * Reordered description for MIPS object files to please weak parsing + in libtool (closes:Bug#83303). + + -- Nicolás Lichtmaier Tue, 30 Jan 2001 22:39:03 -0300 + +file (3.33-3) unstable; urgency=low + + * Code for detecting if an input stream is seekable assumed that lseek + returns 0 on success, which is untrue, and file was copying every ELF + file probed to a temporary file. Fixed (closes:Bug#82261). + Found by Colin Watson . + * Uses -g only if debug is in the DEB_BUILD_OPTIONS variable. + * Updated standards-version to 3.2.1. + + -- Nicolás Lichtmaier Mon, 15 Jan 2001 02:26:35 -0300 + +file (3.33-2) unstable; urgency=low + + * Added ELF magic for IBM AS/390 mainframe (closes:Bug#79575). + * Fix from Adam Heat for very small .gz files and -z, I've also + added NUL termination of the uncompressed buffer + (closes:Bug#16837,Bug#36724,Bug#37838). + * If the file is ELF and is not seekable, `file' will now copy + it to a temporary file because the ELF code needs to fseek + everywhere in the file. The idea was from Adam Heath . + (closes:Bug#28964,Bug#70629). + + -- Nicolás Lichtmaier Sun, 7 Jan 2001 23:38:58 -0300 + +file (3.33-1) unstable; urgency=low + + * New upstream release (closes:Bug#67970). Fixes: + * Recognizes Berkeley DB files (closes:Bug#18821). + * Tries to recognize EBCDIC encoded files (closes:Bug#31949). + * lif files recognized in LE systems (closes:Bug#78261). + * Contributions from Wolfram Kleff (closes:Bug#56667). + * Changed pgp armored data to pgp armored *text*. + * Added GEM image and metafile from. + * Added Vivo video format. + * Added STAD packed image. + * Added AFX compressed files. + * Added GFA-BASIC 3 data. + * Added ICE and X11 authority data. + * Added magic for DJGPP compiled files from Robert vd Boon + (closes:Bug#70600). + * Changed file for data here and there (closes:Bug#35851). + * Added Sketch document (closes:Bug#67511). + * Added SMJPEG (image format used in games) (closes:Bug#62224). + * Added magic for Sony PlayStation executables (closes:Bug#31310). + * Added other way of detecting perl scripts (closes:Bug#45426). + * Fixed detection of MP3 files with the new -i option. + * Adapted Debian patch to include long-options alternatives for the + new -k and -i options. Updated the manpage. + + -- Nicolás Lichtmaier Sun, 10 Dec 2000 19:02:07 -0300 + +file (3.28-1) unstable; urgency=low + + * New upstream release. Fixes: + * A serious attempt to detect JPEG is done now, but the + format seems to be not very magic friendly (closes:Bug#31950). + * DB2 magic added (closes:Bug#19097). + * Added another case combination for the detection of HTML files + (closes:Bug#45326). + * Improved newly added xml detection (eg: added XSL stylesheets detection). + * Some magic files weren't being included, modified Makefile.am. + The files now included are jpeg, grace, mcrypt, palm and spectrum. + + -- Nicolás Lichtmaier Tue, 28 Dec 1999 00:58:01 -0300 + +file (3.27-7) unstable; urgency=low + + * Added entry for recently announced new LSM file format. + * Removed README.Debian and folded it into the copyright file + (closes:Bug#53069). + + -- Nicolás Lichtmaier Fri, 24 Dec 1999 20:23:48 -0300 + +file (3.27-6) unstable; urgency=low + + * Applied patch with improvements to magi2mime + from J.H.M. Dassen (Ray) (closes:Bug#51399). + * Added some Windows magic from Pavel Machek + (closes:Bug#31023). + * Added magic for PCX, Adobe's PSD, MS Word, and replaced + magic for kernel detection with contributions from + Wolfram Kleff (closes:Bug#46781). + * Added magic for Linux kernel System.map files. + + -- Nicolás Lichtmaier Sun, 12 Dec 1999 17:09:08 -0300 + +file (3.27-5) unstable; urgency=low + + * Put docs and manpages under /usr/share. + * Updated `Standards-Version' to 3.1.0. + * Added contributed magic for `Smith Corona Personal Word Processors' + (closes:Bug#45704). + * Added magic for X-Post-it (closes:Bug#43031). + * Improved detection of MS-DOS batch files a bit (closes:Bug#50205). + + -- Nicolás Lichtmaier Mon, 15 Nov 1999 01:09:13 -0300 + +file (3.27-4) unstable; urgency=low + + * It was not reading /etc/magic. + * Updated manpage to say that local magic entries are read from + and should be written to /etc/magic. + + -- Nicolás Lichtmaier Sat, 10 Jul 1999 19:40:17 -0300 + +file (3.27-3) unstable; urgency=low + + * Added detection of SIDPlay audio files (closes: Bug#35564, Bug#35483). + * Added "#include " to compress.c (closes: Bug#37705). + * Fixed tiny typos in README (closes: Bug#38877). + * Added magic for Atari ST executables from Wolfram Kleff + . + * Added formats for some communications standards contributed by + W. Borgert (closes: Bug#34542, Bug#34779). + * Removed detection of format `Fasttracker "oktalyzer" module sound data'. + It was just 2 bytes at offset 0 and generated false positives + (closes: Bug#36704). + * Added detection of MPEG audio level 2.5 and improved messages for level + 3 (mp3) contributed by Wolfram Kleff + (closes: Bug#40733). + * Added audio/midi to magic2mime. + * Readded magic2mime to package. It was removed by mistake. + + -- Nicolás Lichtmaier Sat, 10 Jul 1999 03:11:45 -0300 + +file (3.27-2) unstable; urgency=low + + * Removed detection of unstriped binaries. Patch from + Sean Perry . Fixes bugs #38407, #38417, 38419. + * Added detection of NITF files from jrv@vanzandt.mv.com. + Fixes bug #38452. + * No longer includes Localstuff in /usr/share/misc/magic. Local + definitions should go to /etc/magic. + + -- Nicolás Lichtmaier Fri, 28 May 1999 00:39:32 -0300 + +file (3.27-1) unstable; urgency=low + + * New upstream release. Fixes bugs #36786, #30692, + #29353 (added shockwave/flash files). + * Removed detection of "OS/2 URL objects": too general. + * Truncates \n on output. file's outputs MUST be one line per file. + Fixes bugs #34439, #34290, #35222, #32305, #32302, #30875. + + -- Nicolás Lichtmaier Tue, 25 May 1999 21:50:13 -0300 + +file (3.26-2) frozen unstable; urgency=low + + * Moved x86 boot sector detection after linux kernel detection. + Fixes bug #24185. + * Added kernel version extraction for newer kernels. + * Removed `,' from GIF description's end. + * Changed version shown to 3.26-Debian, as this version is different from + upstream. + * Added manpage for magic2mime. + * Added more mime types for magic2mime and some fixes for the script. + * Switched to debhelper. + + -- Nicolás Lichtmaier Wed, 20 Jan 1999 02:08:24 -0300 + +file (3.26-1) frozen unstable; urgency=low + + * New upstream release. Upstream author included many Debian enhancements + and added some minor fixes. Fixes bug #30692. Bug #30875 was fixed in + previous NMU. + * Fixed autoconf use. + + -- Nicolás Lichtmaier Wed, 20 Jan 1999 03:15:45 +0000 + +file (3.24-4.2) frozen unstable; urgency=HIGH + + * NMU: + Fix critical bugs #31031 and #31057. + + -- Vincent Renardias Wed, 6 Jan 1999 01:51:15 +0100 + +file (3.24-4.1) frozen unstable; urgency=low + + * Non-maintainer release. + * Add patch so "\n"-style escapes work (closes:Bug#22854). + + -- Joel Klecker Sun, 13 Dec 1998 16:44:18 -0800 + +file (3.24-4) frozen unstable; urgency=low + + * Added `-f' to an rm that might obstaculize automatic builds, + fixes bug #19970. + * Removed very old Debian package detection that caused files starting + with 0.9 to show no description at all, fixes bugs #19657 and #19677. + + -- Nicolás Lichtmaier Sun, 22 Mar 1998 23:18:34 -0300 + +file (3.24-3) unstable; urgency=low + + * Small fix in online help. + * Changed `Standards-version' to 2.4.0.0 (no changes required). + * Moved /usr/share/magic to /usr/share/misc/magic, fixes bug #18639. + + -- Nicolás Lichtmaier Sun, 8 Mar 1998 14:28:45 -0300 + +file (3.24-2) unstable; urgency=low + + * Fixed upstream completely broken configure.in (wasn't showing special + files major & minor numbers). + * Included upsstream magic2mime in the binary package. + * Added more HTML tokns to names.h. + * Added lzop compressd files definition, contributed + by Paolo Molaro . + * Moved magic data to /usr/share/magic (not a conffile). /etc/magic will + be used for local magic definitions. + + -- Nicolás Lichtmaier Tue, 24 Feb 1998 21:21:59 -0300 + +file (3.24-1) unstable; urgency=low + + * names.h: Added HTML. + * New upstream release. + + -- Nicolás Lichtmaier Sat, 21 Feb 1998 00:47:11 -0300 + +file (3.23-1) unstable; urgency=low + + * Added long version for the new option `-b' (`--brief'). Added long + option to manpage. Added the option to the usge message (`--help'). + * Added GNU message catalog magic, contributed + by Santiago Vila Doncel , fixes bug #14743. + * Removed duplcated entry for romfs, fixes bug #13977. + * New upstream release, fixes bug #17830. + + -- Nicolás Lichtmaier Thu, 19 Feb 1998 00:12:32 -0300 + +file (3.20.1-8) unstable; urgency=low + + * Added magic for Octave contributed + by Dirk Eddelbuettel + * names.h: Added detectionn of Java source code. + * softmagic.c: When converting endianness only swap bytes if needed. + * Use %m instead of strerr. + * Added magic for WordPerfect files, contributed + by Scott K. Ellis . + + -- Nicolás Lichtmaier Fri, 10 Oct 1997 17:22:27 -0300 + +file (3.20.1-7) unstable; urgency=low + + * Changed maintainer address. + * Added filesystems and Linux86 magic, contributed + by Juan Cespedes , fixes #13279. + * Keep files' date. + * Added GIMP file formats, contributed + by Kenneth MacDonald . + + -- Nicolás Lichtmaier Wed, 9 Jul 1997 00:22:38 -0300 + +file (3.20.1-6) unstable; urgency=low + + * Minor changes to debian/rules. + * Modified manpage. + * Added `--help' option. + * Added magic data for vgetty voice formats (thanks to + David Engel ). + * Arguments to a printf casted to long long, fixes #10779. + + -- Nicolás Lichtmaier Mon, 23 Jun 1997 20:21:58 -0300 + +file (3.20.1-5) unstable; urgency=low + + * Added Linux kernel boot image version detection for new kernels. + * Removed `-Wall' warnings. + * Added "DEC SRC Virtual Paper: Lectern files" type, + contributed by Karl M. Hegbloom . + * Removed useless RCS ids. + * Corrected compilation flags. + * Don't try to keep file modification time, it changed file status change + time. And it's more natural a change in access time than in file status + change time. Fixes bug #7920. + * Minor fix to manpage. + + -- Nicolás Lichtmaier Wed, 18 Jun 1997 21:55:49 -0300 + +file (3.20.1-4) unstable; urgency=low + + * Built with libc6. + + -- Nicolás Lichtmaier Wed, 18 Jun 1997 00:09:58 -0300 + +file (3.20.1-3) unstable; urgency=low + + * Removed information about who created the /etc/magic file. + * Removed creation date from /etc/magic. This changed the md5sum of this + conffile every release. + * Man page updated. + * Added long options support. + + -- Nicolás Lichtmaier Tue, 11 Mar 1997 15:19:43 -0300 + +file (3.20.1-2) unstable; urgency=low + + * Improved MS applications' docuemts detection (#4473). + * Added Steve McIntyre's contributed formats (#6735). + * New upstream release has fixed bugs #5777 #5838 and #6656 . All + reporting that file didn't detect Java's .class. + * My name is Nicolás. Fixes #7238 (!). + + -- Nicolás Lichtmaier Wed, 12 Feb 1997 02:53:42 -0300 + +file (3.20.1-1) unstable; urgency=low + + * Added LSM files detection. + * Clarified header of /etc/magic. + * Added detection of creation time for .deb's. + * Added detection of 2.1.x kernels. + * Upstream fix to handle \n in arguments to string format broke + description that expected \n to end the string. Changed file + to discard \n's and following text at print time. + * Upstream changelog included. + * New upstream release + + -- Nicolás Lichtmaier Sun, 9 Feb 1997 23:41:39 -0300 + +file (3.19-7) unstable; urgency=low + + * Corrected section in control file. + * New maintainer. + + -- Nicolás Lichtmaier Sun, 9 Feb 1997 21:49:19 -0300 + +file (3.19-6) unstable; urgency=low + + * Added detection of pcap data files (like used by tcpdump) Peter Tobias + + * Removed signal detection from core files. Doesn't work for ELF binaries + Peter Tobias . + * Changed to new source format. + + -- Nicolás Lichtmaier Mon, 3 Feb 1997 20:11:00 -0300 + +file (3.19-5) + + * Change of maintainer and updated for multi-architecture build (fixes Bug #3332) + * Un-right-justified the description field + * Move entry for debian packages to the correct spot and update it for debian 2.0 packages (fixes Bug #3411) + * Add entry for TrueType fonts to Magdir/fonts + + -- Darren Stalder , Mon Jul 8 23:07:21 1996 + +file (3.19-4) + * added entry for Adobe Postscript PPD files in Magdir/ppd. + +file (3.19-3) + * added entry for linux kernal images to source file Magdir/linux + +file (3.19-2) + * add MAGIC=/etc/magic to make(1) invocation + * change maintainer email address + +file (3.19-1) + * added debian.* files + * modified Magdir/archive to add debian-split entry to ar archives + * modified magdir/elf to add more entry for core file --- file-4.26.orig/debian/pycompat +++ file-4.26/debian/pycompat @@ -0,0 +1 @@ +2 --- file-4.26.orig/debian/copyright +++ file-4.26/debian/copyright @@ -0,0 +1,97 @@ +Author: Christos Zoulas +Download: ftp://ftp.astron.com/pub/file/ + +Files: * +Copyright: + (C) 1985-1995 Ian F. Darwin + (C) 1994-2008 Christos Zoulas +License: BSD + This software is not subject to any export provision of the United States + Department of Commerce, and may be exported to any country or planet. + . + Redistribution and use in source and binary forms, with or without + modification, are permitted provided that the following conditions + are met: + . + 1. Redistributions of source code must retain the above copyright + notice immediately at the beginning of the file, without modification, + this list of conditions, and the following disclaimer. + . + 2. Redistributions in binary form must reproduce the above copyright + notice, this list of conditions and the following disclaimer in the + documentation and/or other materials provided with the distribution. + . + THIS SOFTWARE IS PROVIDED BY THE AUTHOR AND CONTRIBUTORS ``AS IS'' AND + ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE + IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE + ARE DISCLAIMED. IN NO EVENT SHALL THE AUTHOR OR CONTRIBUTORS BE LIABLE FOR + ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL + DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS + OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) + HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT + LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY + OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF + SUCH DAMAGE. + +Files: magic/Magdir/os9 +Copyright: (C) 1996 Ignatios Souvatzis +License: BSD + Redistribution and use in source and binary forms, with or without + modification, are permitted provided that the following conditions + are met: + . + 1. Redistributions of source code must retain the above copyright + notice, this list of conditions and the following disclaimer. + . + 2. Redistributions in binary form must reproduce the above copyright + notice, this list of conditions and the following disclaimer in the + documentation and/or other materials provided with the distribution. + . + 3. All advertising materials mentioning features or use of this software + must display the following acknowledgement: + This product includes software developed by Ignatios Souvatzis for + the NetBSD project. + . + 4. The name of the author may not be used to endorse or promote products + derived from this software without specific prior written permission. + . + THIS SOFTWARE IS PROVIDED BY THE AUTHOR ``AS IS'' AND ANY EXPRESS OR + IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES + OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. + IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, + SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, + PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; + OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, + WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR + OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF + ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. + +Files: debian/* +Copyright: (C) 2007-2008 Daniel Baumann +License: BSD + This software is not subject to any export provision of the United States + Department of Commerce, and may be exported to any country or planet. + . + Redistribution and use in source and binary forms, with or without + modification, are permitted provided that the following conditions + are met: + . + 1. Redistributions of source code must retain the above copyright + notice immediately at the beginning of the file, without modification, + this list of conditions, and the following disclaimer. + . + 2. Redistributions in binary form must reproduce the above copyright + notice, this list of conditions and the following disclaimer in the + documentation and/or other materials provided with the distribution. + . + THIS SOFTWARE IS PROVIDED BY THE AUTHOR AND CONTRIBUTORS ``AS IS'' AND + ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE + IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE + ARE DISCLAIMED. IN NO EVENT SHALL THE AUTHOR OR CONTRIBUTORS BE LIABLE FOR + ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL + DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS + OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) + HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT + LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY + OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF + SUCH DAMAGE. --- file-4.26.orig/debian/compat +++ file-4.26/debian/compat @@ -0,0 +1 @@ +7 --- file-4.26.orig/debian/bug/presubj +++ file-4.26/debian/bug/presubj @@ -0,0 +1,11 @@ +Please consider your severities. + +If you wish for a new filetype being recognized, this is a wishlist bug. +Most bugs reported against the file package are in this category. +If what file reports now is wildly wrong or misleading, a higher severity +may be appropriate. + +If file correctly reports the filetype, but you would like to receive +additional information about the file (such as the resolution of an image), +this is also wishlist. Please bear in mind that such requests will likely +be ignored when they are not accompanied by a patch. --- file-4.26.orig/debian/bug/presubj-lib +++ file-4.26/debian/bug/presubj-lib @@ -0,0 +1,14 @@ +This bug will be filed against the package file. To avoid duplicate reports, +please make sure you have checked the BTS on that package. + +Please consider your severities. + +If you wish for a new filetype being recognized, this is a wishlist bug. +Most bugs reported against the file package are in this category. +If what file reports now is wildly wrong or misleading, a higher severity +may be appropriate. + +If file correctly reports the filetype, but you would like to receive +additional information about the file (such as the resolution of an image), +this is also wishlist. Please bear in mind that such requests will likely +be ignored when they are not accompanied by a patch. --- file-4.26.orig/debian/bug/control +++ file-4.26/debian/bug/control @@ -0,0 +1 @@ +Submit-As: file --- file-4.26.orig/debian/patches/322-magic-add-pmenu.dpatch +++ file-4.26/debian/patches/322-magic-add-pmenu.dpatch @@ -0,0 +1,19 @@ +#!/bin/sh /usr/share/dpatch/dpatch-run +## 320-magic-add-pmenu.dpatch by Edward Betts +## +## DP: New magic for pmenu (Closes: #38543). + +@DPATCH@ + +diff -Naurp file-4.23.orig/magic/Magdir/commands file-4.23/magic/Magdir/commands +--- file-4.23.orig/magic/Magdir/commands 2007-06-01 19:40:26.000000000 +0000 ++++ file-4.23/magic/Magdir/commands 2008-01-12 17:34:41.000000000 +0000 +@@ -55,3 +55,8 @@ + 0 string Zend\x00 PHP script Zend Optimizer data + + 0 string $! DCL command file ++ ++# Type: Pdmenu ++# URL: http://packages.debian.org/pdmenu ++# From: Edward Betts ++0 string #!/usr/bin/pdmenu Pdmenu configuration file text --- file-4.26.orig/debian/patches/999-conglomeration.dpatch +++ file-4.26/debian/patches/999-conglomeration.dpatch @@ -0,0 +1,20 @@ +#!/bin/sh /usr/share/dpatch/dpatch-run +## 999-conglomeration.dpatch by Michael Piefel +## +## DP: Needs to be broken out (FIXME). + +@DPATCH@ + +diff -Naurp file-4.24.orig/src/fsmagic.c file-4.24/src/fsmagic.c +--- file-4.24.orig/src/fsmagic.c 2008-02-14 20:14:52.000000000 +0000 ++++ file-4.24/src/fsmagic.c 2008-04-07 08:32:13.000000000 +0000 +@@ -110,7 +110,8 @@ file_fsmagic(struct magic_set *ms, const + if (file_printf(ms, "cannot open `%s' (%s)", + fn, strerror(errno)) == -1) + return -1; +- return 1; ++ ms->haderr++; ++ return -1; + } + + if (mime) { --- file-4.26.orig/debian/patches/215-magic-update-linuxext.dpatch +++ file-4.26/debian/patches/215-magic-update-linuxext.dpatch @@ -0,0 +1,68 @@ +#!/bin/sh /usr/share/dpatch/dpatch-run +## 215-magic-update-linuxext.dpatch by Russell Coker +## +## DP: Adding volume label and UUID support for linux ext (Closes: #489865). + +@DPATCH@ + +diff -Naurp file.orig/magic/Magdir/filesystems file/magic/Magdir/filesystems +--- file.orig/magic/Magdir/filesystems 2008-07-02 13:47:23.000000000 +0000 ++++ file/magic/Magdir/filesystems 2008-07-15 14:21:39.000000000 +0000 +@@ -1027,6 +1027,8 @@ + + # ext2/ext3 filesystems - Andreas Dilger + # ext4 filesystem - Eric Sandeen ++# volume label and UUID Russell Coker ++# http://etbe.coker.com.au/2008/07/08/label-vs-uuid-vs-device/ + 0x438 leshort 0xEF53 Linux + >0x44c lelong x rev %d + >0x43e leshort x \b.%d +@@ -1042,25 +1044,32 @@ + # else large RO_COMPAT? + >>>0x464 lelong >0x0000007 ext4 filesystem data + # else large INCOMPAT? +->>0x460 lelong >0x000003f ext4 filesystem data ++>>0x460 lelong >0x000003f ext4 filesystem data ++>0x468 belong x \b, UUID=%x ++>0x46c beshort x \b-%x ++>0x46e beshort x \b-%x ++>0x470 beshort x \b-%x ++>0x472 belong x \b-%x ++>0x476 beshort x \b%x ++>0x478 string >0 \b, volume name "%s" + # General flags for any ext* fs +->0x460 lelong &0x0000004 (needs journal recovery) +->0x43a leshort &0x0000002 (errors) ++>0x460 lelong &0x0000004 (needs journal recovery) ++>0x43a leshort &0x0000002 (errors) + # INCOMPAT flags +->0x460 lelong &0x0000001 (compressed) +-#>0x460 lelong &0x0000002 (filetype) +-#>0x460 lelong &0x0000010 (meta bg) +->0x460 lelong &0x0000040 (extents) +->0x460 lelong &0x0000080 (64bit) +-#>0x460 lelong &0x0000100 (mmp) +-#>0x460 lelong &0x0000200 (flex bg) ++>0x460 lelong &0x0000001 (compressed) ++#>0x460 lelong &0x0000002 (filetype) ++#>0x460 lelong &0x0000010 (meta bg) ++>0x460 lelong &0x0000040 (extents) ++>0x460 lelong &0x0000080 (64bit) ++#>0x460 lelong &0x0000100 (mmp) ++#>0x460 lelong &0x0000200 (flex bg) + # RO_INCOMPAT flags +-#>0x464 lelong &0x0000001 (sparse super) +->0x464 lelong &0x0000002 (large files) +->0x464 lelong &0x0000008 (huge files) +-#>0x464 lelong &0x0000010 (gdt checksum) +-#>0x464 lelong &0x0000020 (many subdirs) +-#>0x463 lelong &0x0000040 (extra isize) ++#>0x464 lelong &0x0000001 (sparse super) ++>0x464 lelong &0x0000002 (large files) ++>0x464 lelong &0x0000008 (huge files) ++#>0x464 lelong &0x0000010 (gdt checksum) ++#>0x464 lelong &0x0000020 (many subdirs) ++#>0x463 lelong &0x0000040 (extra isize) + + # SGI disk labels - Nathan Scott + 0 belong 0x0BE5A941 SGI disk label (volume header) --- file-4.26.orig/debian/patches/901-file-mgc.dpatch +++ file-4.26/debian/patches/901-file-mgc.dpatch @@ -0,0 +1,51 @@ +#!/bin/sh /usr/share/dpatch/dpatch-run +## 901-file-mgc.dpatch by Daniel Baumann +## +## DP: Reverting upstream change of stopping to build plain magic file +## DP: (Closes: #481247). + +@DPATCH@ + +diff -Naurp file.orig/magic/Makefile.am file/magic/Makefile.am +--- file.orig/magic/Makefile.am 2008-06-17 17:49:11.000000000 +0000 ++++ file/magic/Makefile.am 2008-07-15 13:49:08.000000000 +0000 +@@ -4,7 +4,7 @@ + MAGIC_FRAGMENT_BASE = Magdir + MAGIC_FRAGMENT_DIR = $(top_srcdir)/magic/$(MAGIC_FRAGMENT_BASE) + +-pkgdata_DATA = magic.mgc ++pkgdata_DATA = magic.mgc magic + + EXTRA_DIST = Header Localstuff \ + $(MAGIC_FRAGMENT_DIR)/acorn \ +@@ -216,8 +216,20 @@ $(MAGIC_FRAGMENT_DIR)/xwindows \ + $(MAGIC_FRAGMENT_DIR)/zilog \ + $(MAGIC_FRAGMENT_DIR)/zyxel + ++RAW = magic + MAGIC = magic.mgc +-CLEANFILES = ${MAGIC} ++CLEANFILES = ${MAGIC} ${RAW} ++ ++${RAW}: Header Localstuff $(EXTRA_DIST) ++ cat /dev/null > $@ ++ for frag in $(EXTRA_DIST); do \ ++ if test -f $(srcdir)/$$frag; then \ ++ f=$(srcdir)/$$frag; \ ++ else \ ++ f=$$frag; \ ++ fi; \ ++ cat $$f; \ ++ done >> $@ + + # FIXME: Build file natively as well so that it can be used to compile + # the target's magic file +@@ -229,6 +241,5 @@ FILE_COMPILE = $(top_builddir)/src/file + FILE_COMPILE_DEP = $(FILE_COMPILE) + endif + +-${MAGIC}: $(EXTRA_DIST) $(FILE_COMPILE_DEP) +- $(FILE_COMPILE) -C -m $(MAGIC_FRAGMENT_DIR) +- @mv $(MAGIC_FRAGMENT_BASE).mgc $@ ++${MAGIC}: $(EXTRA_DIST) $(FILE_COMPILE_DEP) $(RAW) ++ $(FILE_COMPILE) -C -m $(RAW) --- file-4.26.orig/debian/patches/329-magic-add-ssl.dpatch +++ file-4.26/debian/patches/329-magic-add-ssl.dpatch @@ -0,0 +1,18 @@ +#!/bin/sh /usr/share/dpatch/dpatch-run +## 325-magic-add-ssl.dpatch by Nicolas Collignon +## +## DP: New magic for OpenSSL certificates/key files (Closes: #439537). + +@DPATCH@ + +diff -Naur file-4.21.orig/magic/Magdir/ssl file-4.21/magic/Magdir/ssl +--- file-4.21.orig/magic/Magdir/ssl 1970-01-01 00:00:00.000000000 +0000 ++++ file-4.21/magic/Magdir/ssl 2007-08-26 08:27:04.000000000 +0000 +@@ -0,0 +1,7 @@ ++# Type: OpenSSL certificates/key files ++# From: Nicolas Collignon ++ ++0 string -----BEGIN\ CERTIFICATE----- PEM certificate ++0 string -----BEGIN\ CERTIFICATE\ REQ PEM certificate request ++0 string -----BEGIN\ RSA\ PRIVATE PEM RSA private key ++0 string -----BEGIN\ DSA\ PRIVATE PEM DSA private key --- file-4.26.orig/debian/patches/335-magic-add-freemind.dpatch +++ file-4.26/debian/patches/335-magic-add-freemind.dpatch @@ -0,0 +1,19 @@ +#!/bin/sh /usr/share/dpatch/dpatch-run +## 335-magic-add-freemind.dpatch by Jamie Thompson +## +## DP: New magic for Freemind (Closes: #472385). + +@DPATCH@ + +diff -Naurp file.orig/magic/Magdir/wordprocessors file/magic/Magdir/wordprocessors +--- file.orig/magic/Magdir/wordprocessors 2008-05-04 14:12:49.000000000 +0000 ++++ file/magic/Magdir/wordprocessors 2008-05-04 14:18:38.000000000 +0000 +@@ -148,3 +148,8 @@ + 0 string DOC + >43 byte 0x16 Just System Word Processor Ichitaro v6 + !:mime application/x-ichitaro6 ++ ++# Type: Freemind mindmap documents ++# From: Jamie Thompson ++0 string/cB \100 regex/c =^[\ \t]{0,10}call[\ \t]{1,10}rxfunc OS/2 REXX batch file text ++100 search/0xffff say ++>100 regex/c =^[\ \t]{0,10}say\ ['"] OS/2 REXX batch file text + + 0 leshort 0x14c MS Windows COFF Intel 80386 object file + #>4 ledate x stamp %s --- file-4.26.orig/debian/patches/904-file-make.dpatch +++ file-4.26/debian/patches/904-file-make.dpatch @@ -0,0 +1,19 @@ +#!/bin/sh /usr/share/dpatch/dpatch-run +## 904-file-make.dpatch by Michael Piefel +## +## DP: FIXME + +@DPATCH@ + +diff -Naurp file-4.23.orig/src/Makefile.in file-4.23/src/Makefile.in +--- file-4.23.orig/src/Makefile.in 2008-01-12 17:55:24.000000000 +0000 ++++ file-4.23/src/Makefile.in 2008-01-12 17:56:46.000000000 +0000 +@@ -300,7 +300,7 @@ clean-binPROGRAMS: + done + file$(EXEEXT): $(file_OBJECTS) $(file_DEPENDENCIES) + @rm -f file$(EXEEXT) +- $(LINK) $(file_OBJECTS) $(file_LDADD) $(LIBS) ++ $(LINK) $(file_OBJECTS) $(file_LDADD) + + mostlyclean-compile: + -rm -f *.$(OBJEXT) --- file-4.26.orig/debian/patches/204-magic-update-asf.dpatch +++ file-4.26/debian/patches/204-magic-update-asf.dpatch @@ -0,0 +1,18 @@ +#!/bin/sh /usr/share/dpatch/dpatch-run +## 204-magic-update-asf.dpatch by Daniel Baumann +## +## DP: Add mime to asf magic. + +@DPATCH@ + +diff -Naurp file.orig/magic/Magdir/animation file/magic/Magdir/animation +--- file.orig/magic/Magdir/animation 2008-05-26 23:24:27.000000000 +0200 ++++ file/magic/Magdir/animation 2008-05-31 15:03:45.000000000 +0200 +@@ -686,6 +686,7 @@ + + # Microsoft Advanced Streaming Format (ASF) + 0 belong 0x3026b275 Microsoft ASF ++!:mime video/x-ms-asf + + # MNG Video Format, + 0 string \x8aMNG MNG video data, --- file-4.26.orig/debian/patches/202-magic-update-awk.dpatch +++ file-4.26/debian/patches/202-magic-update-awk.dpatch @@ -0,0 +1,18 @@ +#!/bin/sh /usr/share/dpatch/dpatch-run +## 202-magic-update-awk.dpatch by Werner Fink +## +## DP: Updates (and re-enables) awk magic. + +@DPATCH@ + +diff -Naurp file-4.24.orig/magic/Magdir/commands file-4.24/magic/Magdir/commands +--- file-4.24.orig/magic/Magdir/commands 2008-05-04 14:12:49.000000000 +0000 ++++ file-4.24/magic/Magdir/commands 2008-05-21 09:36:15.000000000 +0000 +@@ -49,6 +49,7 @@ + # update to distinguish from *.vcf files + # this is broken because postscript has /EBEGIN{ for example. + #0 search/Bb BEGIN { awk script text ++0 regex =^\\s*BEGIN\\s*[{] awk script text + + # AT&T Bell Labs' Plan 9 shell + 0 string/b #!\ /bin/rc Plan 9 rc shell script text executable --- file-4.26.orig/debian/patches/219-magic-update-wav.dpatch +++ file-4.26/debian/patches/219-magic-update-wav.dpatch @@ -0,0 +1,25 @@ +#!/bin/sh /usr/share/dpatch/dpatch-run +## 219-magic-update-wav.dpatch by Adam Buchbinder +## +## DP: Updating wav magics (Closes: #508174). + +@DPATCH@ + +diff -Naurp file.orig/magic/Magdir/riff file/magic/Magdir/riff +--- file.orig/magic/Magdir/riff 2008-12-05 17:28:11.000000000 -0500 ++++ file/magic/Magdir/riff 2008-12-05 17:33:48.000000000 -0500 +@@ -39,12 +39,14 @@ + >>20 leshort 2 \b, Microsoft ADPCM + >>20 leshort 6 \b, ITU G.711 A-law + >>20 leshort 7 \b, ITU G.711 mu-law ++>>20 leshort 8 \b, Microsoft DTS + >>20 leshort 17 \b, IMA ADPCM + >>20 leshort 20 \b, ITU G.723 ADPCM (Yamaha) + >>20 leshort 49 \b, GSM 6.10 + >>20 leshort 64 \b, ITU G.721 ADPCM + >>20 leshort 80 \b, MPEG + >>20 leshort 85 \b, MPEG Layer 3 ++>>20 leshort 0x2001 \b, DTS + >>22 leshort =1 \b, mono + >>22 leshort =2 \b, stereo + >>22 leshort >2 \b, %d channels --- file-4.26.orig/debian/patches/203-magic-update-reiserfs.dpatch +++ file-4.26/debian/patches/203-magic-update-reiserfs.dpatch @@ -0,0 +1,18 @@ +#!/bin/sh /usr/share/dpatch/dpatch-run +## 203-magic-update-reiserfs.dpatch by Werner Fink +## +## DP: Updating reiserfs magic to detect ReiserFS V3.6.19. + +@DPATCH@ + +diff -Naurp file-4.24.orig/magic/Magdir/filesystems file-4.24/magic/Magdir/filesystems +--- file-4.24.orig/magic/Magdir/filesystems 2008-05-04 14:12:49.000000000 +0000 ++++ file-4.24/magic/Magdir/filesystems 2008-05-21 09:43:04.000000000 +0000 +@@ -1178,6 +1178,7 @@ + # reiserfs - russell@coker.com.au + 0x10034 string ReIsErFs ReiserFS V3.5 + 0x10034 string ReIsEr2Fs ReiserFS V3.6 ++0x10034 string ReIsEr3Fs ReiserFS V3.6.19 + >0x1002c leshort x block size %d + >0x10032 leshort &2 (mounted or unclean) + >0x10000 lelong x num blocks %d --- file-4.26.orig/debian/patches/337-magic-add-tokyocabinet.dpatch +++ file-4.26/debian/patches/337-magic-add-tokyocabinet.dpatch @@ -0,0 +1,20 @@ +#!/bin/sh /usr/share/dpatch/dpatch-run +## 337-magic-add-tokyocabinet.dpatch by Benoit Sibaud +## +## DP: New magic for TokyoCabinet database (Closes: #481768). + +@DPATCH@ + +diff -Naurp file-4.24.orig/magic/Magdir/database file-4.24/magic/Magdir/database +--- file-4.24.orig/magic/Magdir/database 2008-05-21 09:07:49.000000000 +0000 ++++ file-4.24/magic/Magdir/database 2008-05-21 09:15:26.000000000 +0000 +@@ -247,3 +247,9 @@ + # From: Benoit Sibaud + 0 string \\[depot\\]\n\f Quick Database Manager, little endian + 0 string \\[DEPOT\\]\n\f Quick Database Manager, big endian ++ ++# Type: TokyoCabinet database ++# URL: http://tokyocabinet.sourceforge.net/ ++# From: Benoit Sibaud ++0 string ToKyO\ CaBiNeT\n TokyoCabinet database ++>14 string x (version %s) --- file-4.26.orig/debian/patches/217-magic-update-ruby.dpatch +++ file-4.26/debian/patches/217-magic-update-ruby.dpatch @@ -0,0 +1,21 @@ +#!/bin/sh /usr/share/dpatch/dpatch-run +## 217-magic-update-ruby.dpatch by Daniel Baumann +## +## DP: Adding mime entries for ruby (Closes: #502201). + +@DPATCH@ + +diff -Naurp file.orig/magic/Magdir/ruby file/magic/Magdir/ruby +--- file.orig/magic/Magdir/ruby 2008-10-19 14:31:15.000000000 +0000 ++++ file/magic/Magdir/ruby 2008-11-15 19:28:44.000000000 +0000 +@@ -5,6 +5,10 @@ + + # Ruby scripts + 0 search/1/b #!\ /usr/bin/ruby Ruby script text executable ++!:mime application/x-ruby + 0 search/1/b #!\ /usr/local/bin/ruby Ruby script text executable ++!:mime application/x-ruby + 0 search/1 #!/usr/bin/env\ ruby Ruby script text executable ++!:mime application/x-ruby + 0 search/1 #!\ /usr/bin/env\ ruby Ruby script text executable ++!:mime application/x-ruby --- file-4.26.orig/debian/patches/212-magic-update-pfm.dpatch +++ file-4.26/debian/patches/212-magic-update-pfm.dpatch @@ -0,0 +1,24 @@ +#!/bin/sh /usr/share/dpatch/dpatch-run +## 212-magic-update-pfm.dpatch +## +## DP: Update pfm magic. + +@DPATCH@ + +diff -Naurp file.orig/magic/Magdir/msdos file/magic/Magdir/msdos +--- file.orig/magic/Magdir/msdos 2008-07-02 15:16:52.000000000 +0000 ++++ file/magic/Magdir/msdos 2008-07-15 13:36:26.000000000 +0000 +@@ -504,6 +504,13 @@ + # Acroread or something files wrongly identified as G3 .pfm + # these have the form \000 \001 any? \002 \000 \000 + # or \000 \001 any? \022 \000 \000 ++0 belong&0xffff00ff 0x00010012 PFM data ++>4 string \000\000 ++>6 string >\060 - %s ++ ++0 belong&0xffff00ff 0x00010002 PFM data ++>4 string \000\000 ++>6 string >\060 - %s + #0 string \000\001 pfm? + #>3 string \022\000\000Copyright\ yes + #>3 string \002\000\000Copyright\ yes --- file-4.26.orig/debian/patches/207-magic-update-zip.dpatch +++ file-4.26/debian/patches/207-magic-update-zip.dpatch @@ -0,0 +1,19 @@ +#!/bin/sh /usr/share/dpatch/dpatch-run +## 207-magic-update-zip.dpatch +## +## DP: Update zip magic. + +@DPATCH@ + +diff -Naurp file.orig/magic/Magdir/msdos file/magic/Magdir/msdos +--- file.orig/magic/Magdir/msdos 2008-05-31 22:17:03.000000000 +0200 ++++ file/magic/Magdir/msdos 2008-06-13 09:44:56.000000000 +0200 +@@ -256,7 +256,7 @@ + + # a few unknown ZIP sfxes, no idea if they are needed or if they are + # already captured by the generic patterns above +->122 string Windows\ self-extracting\ ZIP \b, ZIP self-extracting archive ++>0x7a string Windows\ self-extracting\ ZIP \b, ZIP self-extracting archive + >(8.s*16) search/0x20 PKSFX \b, ZIP self-extracting archive (PKZIP) + # TODO: how to add this? >FileSize-34 string Windows\ Self-Installing\ Executable \b, ZIP self-extracting archive + # --- file-4.26.orig/debian/patches/334-magic-add-xcursor.dpatch +++ file-4.26/debian/patches/334-magic-add-xcursor.dpatch @@ -0,0 +1,19 @@ +#!/bin/sh /usr/share/dpatch/dpatch-run +## 331-magic-add-xcursor.dpatch by Mathias Brodala +## +## DP: New magic for X11 cursor files (Closes: #451246). + +@DPATCH@ + +diff -Naur file-4.21.orig/magic/Magdir/images file-4.21/magic/Magdir/images +--- file-4.21.orig/magic/Magdir/images 2007-12-23 17:40:53.000000000 +0000 ++++ file-4.21/magic/Magdir/images 2007-12-23 17:40:46.000000000 +0000 +@@ -534,3 +534,8 @@ + # URL: http://www.jisyo.com/cgibin/view.cgi?EXT=pe5 (Japanese) + # From: Simon Horman + 0 string IIO2H Ulead Photo Explorer5 ++ ++# Type: X11 cursor ++# URL: http://webcvs.freedesktop.org/mime/shared-mime-info/freedesktop.org.xml.in?view=markup ++# From: Mathias Brodala ++0 string Xcur X11 cursor --- file-4.26.orig/debian/patches/330-magic-add-subversion.dpatch +++ file-4.26/debian/patches/330-magic-add-subversion.dpatch @@ -0,0 +1,19 @@ +#!/bin/sh /usr/share/dpatch/dpatch-run +## 325-magic-add-subversion.dpatch by Michael Piefel +## +## DP: New magic for SVN dumps (closes: #256652). + +@DPATCH@ + +diff -Naur file-4.21.orig/magic/Magdir/revision file-4.21/magic/Magdir/revision +--- file-4.21.orig/magic/Magdir/revision 2007-12-23 17:25:39.000000000 +0000 ++++ file-4.21/magic/Magdir/revision 2007-12-23 17:26:34.000000000 +0000 +@@ -17,3 +17,8 @@ + 0 string HG10 Mercurial bundle, + >4 string UN uncompressed + >4 string BZ bzip2 compressed ++ ++# Type: Subversion (SVN) dumps ++# From: Uwe Zeisberger ++0 string SVN-fs-dump-format-version: Subversion dumpfile ++>28 string >\0 (version: %s) --- file-4.26.orig/debian/patches/325-magic-add-sgf.dpatch +++ file-4.26/debian/patches/325-magic-add-sgf.dpatch @@ -0,0 +1,25 @@ +#!/bin/sh /usr/share/dpatch/dpatch-run +## 323-magic-add-sgf.dpatch by Eduardo Sabbatella +## +## DP: New magic for SGF Smart Game Format + +@DPATCH@ + +diff -Naurp file.orig/magic/Magdir/games file/magic/Magdir/games +--- file.orig/magic/Magdir/games 2008-04-23 19:00:59.000000000 +0000 ++++ file/magic/Magdir/games 2008-07-15 13:41:19.000000000 +0000 +@@ -243,3 +243,14 @@ + >&0 string n\ NetImmerse game engine file + >>&0 regex [0-9a-z.]+ \b, version %s + ++# Type: SGF Smart Game Format ++# URL: http://www.red-bean.com/sgf/ ++# From: Eduardo Sabbatella ++2 regex/c \\(;.*GM\\[[0-9]{1,2}\\] Smart Game Format ++>2 regex/c GM\\[1\\] - Go Game ++>2 regex/c GM\\[6\\] - BackGammon Game ++>2 regex/c GM\\[11\\] - Hex Game ++>2 regex/c GM\\[18\\] - Amazons Game ++>2 regex/c GM\\[19\\] - Octi Game ++>2 regex/c GM\\[20\\] - Gess Game ++>2 regex/c GM\\[21\\] - twix Game --- file-4.26.orig/debian/patches/998-doc-manpages.dpatch +++ file-4.26/debian/patches/998-doc-manpages.dpatch @@ -0,0 +1,63 @@ +#!/bin/sh /usr/share/dpatch/dpatch-run +## 998-doc-manpages.dpatch by Michael Piefel +## +## DP: FIXME, and #417511. + +@DPATCH@ + +diff -Naurp file-4.24.orig/doc/file.man file-4.24/doc/file.man +--- file-4.24.orig/doc/file.man 2008-03-07 15:00:07.000000000 +0000 ++++ file-4.24/doc/file.man 2008-04-07 08:26:06.000000000 +0000 +@@ -51,7 +51,7 @@ meaning anything else (data is usually + or non-printable). + Exceptions are well-known file formats (core files, tar archives) + that are known to contain binary data. +-When modifying magic files or the program itself, make sure to ++When adding local definitions to /etc/magic, make sure to + .Em "preserve these keywords" . + Users depend on knowing that all the readable files in a directory + have the word +@@ -95,7 +95,8 @@ The concept of a + has been applied by extension to data files. + Any file with some invariant identifier at a small fixed + offset into the file can usually be described in this way. +-The information identifying these files is read from the compiled ++The information identifying these files is read from /etc/magic ++and the the compiled + magic file + .Pa __MAGIC__.mgc , + or the files in the directory +@@ -326,6 +327,11 @@ will not attempt to open + adds + .Dq .mgc + to the value of this variable as appropriate. ++However, ++.Pa file ++has to exist in order for ++.Pa file.mime ++to be considered. + The environment variable + .Dv POSIXLY_CORRECT + controls (on systems that support symbolic links), whether +@@ -401,12 +407,6 @@ will be distributed periodically. + The order of entries in the magic file is significant. + Depending on what system you are using, the order that + they are put together may be incorrect. +-If your old +-.Nm +-command uses a magic file, +-keep the old magic file around for comparison purposes +-(rename it to +-.Pa __MAGIC__.orig ). + .Sh EXAMPLES + .Bd -literal -offset indent + $ file file.c file /dev/{wd0a,hda} +@@ -548,3 +548,8 @@ on + .Dv ftp.astron.com + in the directory + .Dv /pub/file/file-X.YZ.tar.gz ++.Pp ++This Debian version adds a number of new magix entries. It can be ++obtained from every site carrying a Debian distribution (that is ++.Dv ftp.debian.org ++and mirrors). --- file-4.26.orig/debian/patches/326-magic-add-sisu.dpatch +++ file-4.26/debian/patches/326-magic-add-sisu.dpatch @@ -0,0 +1,51 @@ +#!/bin/sh /usr/share/dpatch/dpatch-run +## 323-magic-add-sisu.dpatch by Ralph Amissah +## +## DP: New magic for SiSU Markup Language. + +@DPATCH@ + +diff -Naurp file-4.24.orig/magic/Magdir/sisu file-4.24/magic/Magdir/sisu +--- file-4.24.orig/magic/Magdir/sisu 1970-01-01 00:00:00.000000000 +0000 ++++ file-4.24/magic/Magdir/sisu 2008-04-07 08:10:25.000000000 +0000 +@@ -0,0 +1,18 @@ ++# Type: SiSU Markup Language ++# URL: http://www.sisudoc.org/ ++# From: Ralph Amissah ++ ++0 regex \^%?[\ \t]*SiSU[\ \t]+insert SiSU text insert ++>5 regex [0-9.]+ %s ++ ++0 regex \^%[\ \t]+SiSU[\ \t]+master SiSU text master ++>5 regex [0-9.]+ %s ++ ++0 regex \^%?[\ \t]*SiSU[\ \t]+text SiSU text ++>5 regex [0-9.]+ %s ++ ++0 regex \^%?[\ \t]*SiSU[\ \t][0-9.]+ SiSU text ++>5 regex [0-9.]+ %s ++ ++0 regex \^%*[\ \t]*sisu-[0-9.]+ SiSU text ++>5 regex [0-9.]+ %s +diff -Naurp file-4.24.orig/magic/Makefile.am file-4.24/magic/Makefile.am +--- file-4.24.orig/magic/Makefile.am 2008-03-22 21:41:00.000000000 +0000 ++++ file-4.24/magic/Makefile.am 2008-04-07 08:11:04.000000000 +0000 +@@ -170,6 +170,7 @@ $(MAGIC_FRAGMENT_DIR)/sgi \ + $(MAGIC_FRAGMENT_DIR)/sgml \ + $(MAGIC_FRAGMENT_DIR)/sharc \ + $(MAGIC_FRAGMENT_DIR)/sinclair \ ++$(MAGIC_FRAGMENT_DIR)/sisu \ + $(MAGIC_FRAGMENT_DIR)/sketch \ + $(MAGIC_FRAGMENT_DIR)/smalltalk \ + $(MAGIC_FRAGMENT_DIR)/sniffer \ +diff -Naurp file-4.24.orig/magic/Makefile.in file-4.24/magic/Makefile.in +--- file-4.24.orig/magic/Makefile.in 2008-03-22 21:41:06.000000000 +0000 ++++ file-4.24/magic/Makefile.in 2008-04-07 08:11:10.000000000 +0000 +@@ -330,6 +330,7 @@ $(MAGIC_FRAGMENT_DIR)/sgi \ + $(MAGIC_FRAGMENT_DIR)/sgml \ + $(MAGIC_FRAGMENT_DIR)/sharc \ + $(MAGIC_FRAGMENT_DIR)/sinclair \ ++$(MAGIC_FRAGMENT_DIR)/sisu \ + $(MAGIC_FRAGMENT_DIR)/sketch \ + $(MAGIC_FRAGMENT_DIR)/smalltalk \ + $(MAGIC_FRAGMENT_DIR)/sniffer \ --- file-4.26.orig/debian/patches/206-magic-update-bash.dpatch +++ file-4.26/debian/patches/206-magic-update-bash.dpatch @@ -0,0 +1,21 @@ +#!/bin/sh /usr/share/dpatch/dpatch-run +## 206-magic-update-bash.dpatch +## +## DP: Add another shebang path for bash. + +@DPATCH@ + +diff -Naurp file.orig/magic/Magdir/commands file/magic/Magdir/commands +--- file.orig/magic/Magdir/commands 2008-07-15 13:31:02.000000000 +0000 ++++ file/magic/Magdir/commands 2008-07-15 13:30:55.000000000 +0000 +@@ -58,6 +58,10 @@ o string/b #!\ /usr/bin/tcsh Tenex C she + # bash shell magic, from Peter Tobias (tobias@server.et-inf.fho-emden.de) + 0 string/b #!\ /bin/bash Bourne-Again shell script text executable + !:mime text/x-shellscript ++0 string/b #!\ /usr/bin/bash Bourne-Again shell script text executable ++!:mime text/x-shellscript ++0 string/b #!\ /usr/local/bash Bourne-Again shell script text executable ++!:mime text/x-shellscript + 0 string/b #!\ /usr/local/bin/bash Bourne-Again shell script text executable + !:mime text/x-shellscript + --- file-4.26.orig/debian/patches/323-magic-add-powertab.dpatch +++ file-4.26/debian/patches/323-magic-add-powertab.dpatch @@ -0,0 +1,19 @@ +#!/bin/sh /usr/share/dpatch/dpatch-run +## 321-magic-add-powertab.dpatch by Jelmer Vernooij +## +## DP: New magic for Power-Tab + +@DPATCH@ + +diff -Naur file-4.20.orig/magic/Magdir/chord file-4.20/magic/Magdir/chord +--- file-4.20.orig/magic/Magdir/chord 2003-03-24 14:48:32.000000000 +0000 ++++ file-4.20/magic/Magdir/chord 2007-05-17 16:33:26.000000000 +0000 +@@ -7,3 +7,8 @@ + # + 0 string {title Chord text file + ++# Type: PowerTab file format ++# URL: http://www.power-tab.net/ ++# From: Jelmer Vernooij ++0 string ptab\003\000 Power-Tab v3 Tablature File ++0 string ptab\004\000 Power-Tab v4 Tablature File --- file-4.26.orig/debian/patches/321-magic-add-pe5.dpatch +++ file-4.26/debian/patches/321-magic-add-pe5.dpatch @@ -0,0 +1,19 @@ +#!/bin/sh /usr/share/dpatch/dpatch-run +## 319-magic-add-pe5.dpatch by Simon Horman +## +## DP: New magic for the Ulead Photo Explorer5 image format (Closes: #339397). + +@DPATCH@ + +diff -Naurp file.orig/magic/Magdir/images file/magic/Magdir/images +--- file.orig/magic/Magdir/images 2008-07-02 15:16:52.000000000 +0000 ++++ file/magic/Magdir/images 2008-07-15 13:39:37.000000000 +0000 +@@ -600,3 +600,8 @@ + # Wavelet Scalar Quantization format used in gray-scale fingerprint images + # From Tano M Fotang + 0 string \xff\xa0\xff\xa8\x00 Wavelet Scalar Quantization image data ++ ++# Type: Ulead Photo Explorer5 (.pe5) ++# URL: http://www.jisyo.com/cgibin/view.cgi?EXT=pe5 (Japanese) ++# From: Simon Horman ++0 string IIO2H Ulead Photo Explorer5 --- file-4.26.orig/debian/patches/340-magic-add-selinux.dpatch +++ file-4.26/debian/patches/340-magic-add-selinux.dpatch @@ -0,0 +1,57 @@ +#!/bin/sh /usr/share/dpatch/dpatch-run +## 339-magic-add-selinux.dpatch by Russell Coker +## +## DP: Adds new magics for SE Linux (Closes: #485886). + +@DPATCH@ + +diff -Naurp file.orig/magic/Magdir/selinux file/magic/Magdir/selinux +--- file.orig/magic/Magdir/selinux 1970-01-01 01:00:00.000000000 +0100 ++++ file/magic/Magdir/selinux 2008-06-13 09:07:24.000000000 +0200 +@@ -0,0 +1,24 @@ ++# Type: SE Linux policy modules *.pp reference policy ++# for Fedora 5 to 9, RHEL5, and Debian Etch and Lenny. ++# URL: http://doc.coker.com.au/computers/selinux-magic ++# From: Russell Coker ++ ++0 lelong 0xf97cff8f SE Linux modular policy ++>4 lelong x version %d, ++>8 lelong x %d sections, ++>>(12.l) lelong 0xf97cff8d ++>>>(12.l+27) lelong x mod version %d, ++>>>(12.l+31) lelong 0 Not MLS, ++>>>(12.l+31) lelong 1 MLS, ++>>>(12.l+23) lelong 2 ++>>>>(12.l+47) string >\0 module name %s ++>>>(12.l+23) lelong 1 base ++ ++1 string policy_module( SE Linux policy module source ++2 string policy_module( SE Linux policy module source ++ ++0 string ##\ SE Linux policy interface source ++ ++#0 search gen_context( SE Linux policy file contexts ++ ++#0 search gen_sens( SE Linux policy MLS constraints source +diff -Naurp file.orig/magic/Makefile.am file/magic/Makefile.am +--- file.orig/magic/Makefile.am 2008-06-13 09:07:45.000000000 +0200 ++++ file/magic/Makefile.am 2008-06-13 09:08:16.000000000 +0200 +@@ -164,6 +164,7 @@ $(MAGIC_FRAGMENT_DIR)/sc \ + $(MAGIC_FRAGMENT_DIR)/sccs \ + $(MAGIC_FRAGMENT_DIR)/scientific \ + $(MAGIC_FRAGMENT_DIR)/securitycerts \ ++$(MAGIC_FRAGMENT_DIR)/selinux \ + $(MAGIC_FRAGMENT_DIR)/sendmail \ + $(MAGIC_FRAGMENT_DIR)/sequent \ + $(MAGIC_FRAGMENT_DIR)/sgi \ +diff -Naurp file.orig/magic/Makefile.in file/magic/Makefile.in +--- file.orig/magic/Makefile.in 2008-06-13 09:07:45.000000000 +0200 ++++ file/magic/Makefile.in 2008-06-13 09:08:23.000000000 +0200 +@@ -324,6 +324,7 @@ $(MAGIC_FRAGMENT_DIR)/sc \ + $(MAGIC_FRAGMENT_DIR)/sccs \ + $(MAGIC_FRAGMENT_DIR)/scientific \ + $(MAGIC_FRAGMENT_DIR)/securitycerts \ ++$(MAGIC_FRAGMENT_DIR)/selinux \ + $(MAGIC_FRAGMENT_DIR)/sendmail \ + $(MAGIC_FRAGMENT_DIR)/sequent \ + $(MAGIC_FRAGMENT_DIR)/sgi \ --- file-4.26.orig/debian/patches/00list +++ file-4.26/debian/patches/00list @@ -0,0 +1,45 @@ +202-magic-update-awk.dpatch +203-magic-update-reiserfs.dpatch +204-magic-update-asf.dpatch +205-magic-update-tcsh.dpatch +206-magic-update-bash.dpatch +207-magic-update-zip.dpatch +208-magic-update-real.dpatch +209-magic-update-os2.dpatch +210-magic-update-digifax.dpatch +211-magic-update-mono.dpatch +212-magic-update-pfm.dpatch +213-magic-update-ocaml.dpatch +214-magic-update-linuxswap.dpatch +215-magic-update-linuxext.dpatch +216-magic-update-llvm.dpatch +217-magic-update-ruby.dpatch +218-magic-update-gimp.dpatch +219-magic-update-wav.dpatch +320-magic-add-par2.dpatch +321-magic-add-pe5.dpatch +322-magic-add-pmenu.dpatch +323-magic-add-powertab.dpatch +324-magic-add-scummvm.dpatch +325-magic-add-sgf.dpatch +326-magic-add-sisu.dpatch +327-magic-add-snes.dpatch +328-magic-add-ssh.dpatch +329-magic-add-ssl.dpatch +330-magic-add-subversion.dpatch +331-magic-add-supercollider.dpatch +333-magic-add-xen.dpatch +334-magic-add-xcursor.dpatch +335-magic-add-freemind.dpatch +336-magic-add-qdbm.dpatch +337-magic-add-tokyocabinet.dpatch +338-magic-add-cromfs.dpatch +339-magic-add-scribus.dpatch +340-magic-add-selinux.dpatch +341-magic-add-bzr.dpatch +901-file-mgc.dpatch +903-file-localmagic.dpatch +904-file-make.dpatch +906-file-hurd.dpatch +998-doc-manpages.dpatch +999-conglomeration.dpatch --- file-4.26.orig/debian/patches/210-magic-update-digifax.dpatch +++ file-4.26/debian/patches/210-magic-update-digifax.dpatch @@ -0,0 +1,23 @@ +#!/bin/sh /usr/share/dpatch/dpatch-run +## 210-magic-update-digifax.dpatch +## +## DP: Update Digifax magic. + +@DPATCH@ + +diff -Naurp file.orig/magic/Magdir/modem file/magic/Magdir/modem +--- file.orig/magic/Magdir/modem 2008-06-13 15:00:30.000000000 +0200 ++++ file/magic/Magdir/modem 2008-06-13 15:25:40.000000000 +0200 +@@ -2,9 +2,9 @@ + # modem: file(1) magic for modem programs + # + # From: Florian La Roche +-4 string Research, Digifax-G3-File +->29 byte 1 , fine resolution +->29 byte 0 , normal resolution ++1 string PC\ Research,\ Inc Digifax-G3-File ++>29 byte 1 \b, fine resolution ++>29 byte 0 \b, normal resolution + + 0 short 0x0100 raw G3 data, byte-padded + 0 short 0x1400 raw G3 data --- file-4.26.orig/debian/patches/216-magic-update-llvm.dpatch +++ file-4.26/debian/patches/216-magic-update-llvm.dpatch @@ -0,0 +1,24 @@ +#!/bin/sh /usr/share/dpatch/dpatch-run +## 216-magic-update-llvm.dpatch by Toeroek Edwin +## +## DP: Updating llvm magic (Closes: #505805). + +@DPATCH@ + +diff -Naurp file.orig/magic/Magdir/llvm file/magic/Magdir/llvm +--- file.orig/magic/Magdir/llvm 2008-10-19 14:31:15.000000000 +0000 ++++ file/magic/Magdir/llvm 2008-11-15 19:15:51.000000000 +0000 +@@ -1,10 +1,12 @@ + + #------------------------------------------------------------------------------ + # llvm: file(1) magic for LLVM byte-codes +-# URL: http://llvm.cs.uiuc.edu/docs/BytecodeFormat.html#signature ++# URL: http://llvm.org/docs/BitCodeFormat.html + # From: Al Stone + + 0 string llvm LLVM byte-codes, uncompressed + 0 string llvc0 LLVM byte-codes, null compression + 0 string llvc1 LLVM byte-codes, gzip compression + 0 string llvc2 LLVM byte-codes, bzip2 compression ++0 string \xde\xc0\x17\x0b LLVM bitcode, wrapper ++0 string BC\xc0\xde LLVM bitcode --- file-4.26.orig/debian/patches/214-magic-update-linuxswap.dpatch +++ file-4.26/debian/patches/214-magic-update-linuxswap.dpatch @@ -0,0 +1,35 @@ +#!/bin/sh /usr/share/dpatch/dpatch-run +## 214-magic-update-linuxswap.dpatch by Russell Coker +## +## DP: Adding volume label and UUID support for linux swap (Closes: #489865). + +@DPATCH@ + +diff -Naurp file.orig/magic/Magdir/linux file/magic/Magdir/linux +--- file.orig/magic/Magdir/linux 2008-06-04 18:02:25.000000000 +0000 ++++ file/magic/Magdir/linux 2008-07-15 14:16:43.000000000 +0000 +@@ -56,11 +56,19 @@ + # Linux swap file with swsusp1 image, from Jeff Bailey + 4076 string SWAPSPACE2S1SUSPEND Linux/i386 swap file (new style) with SWSUSP1 image + # according to man page of mkswap (8) March 1999 +-4086 string SWAPSPACE2 Linux/i386 swap file (new style) +->0x400 long x %d (4K pages) +->0x404 long x size %d pages +->>4086 string SWAPSPACE2 +->>>1052 string >\0 Label %s ++# volume label and UUID Russell Coker ++# http://etbe.coker.com.au/2008/07/08/label-vs-uuid-vs-device/ ++4086 string SWAPSPACE2 Linux/i386 swap file (new style), ++>0x400 long x version %d (4K pages), ++>0x404 long x size %d pages, ++>1052 string \0 no label, ++>1052 string >\0 LABEL=%s, ++>0x40c belong x UUID=%x ++>0x410 beshort x \b-%x ++>0x412 beshort x \b-%x ++>0x414 beshort x \b-%x ++>0x416 belong x \b-%x ++>0x41a beshort x \b%x + # ECOFF magic for OSF/1 and Linux (only tested under Linux though) + # + # from Erik Troan (ewt@redhat.com) examining od dumps, so this --- file-4.26.orig/debian/patches/211-magic-update-mono.dpatch +++ file-4.26/debian/patches/211-magic-update-mono.dpatch @@ -0,0 +1,18 @@ +#!/bin/sh /usr/share/dpatch/dpatch-run +## 211-magic-update-mono.dpatch +## +## DP: Update Mono magic. + +@DPATCH@ + +diff -Naurp file.orig/magic/Magdir/msdos file/magic/Magdir/msdos +--- file.orig/magic/Magdir/msdos 2008-07-02 15:16:52.000000000 +0000 ++++ file/magic/Magdir/msdos 2008-07-15 13:33:43.000000000 +0000 +@@ -68,6 +68,7 @@ + >>&0 leshort 0x290 PA-RISC + >>&18 leshort&0x0100 >0 32-bit + >>&18 leshort&0x1000 >0 system file ++>>&228 lelong >0 \b, Mono/.Net assembly + >>&0xf4 search/0x140 \x0\x40\x1\x0 + >>>(&0.l+(4)) string MSCF \b, WinHKI CAB self-extracting archive + >30 string Copyright\ 1989-1990\ PKWARE\ Inc. Self-extracting PKZIP archive --- file-4.26.orig/debian/patches/327-magic-add-snes.dpatch +++ file-4.26/debian/patches/327-magic-add-snes.dpatch @@ -0,0 +1,26 @@ +#!/bin/sh /usr/share/dpatch/dpatch-run +## 324-magic-add-snes.dpatch by Josh Triplett +## +## DP: New magic for SNES SPC700 sound files (Closes: #410847). + +@DPATCH@ + +diff -Naur file-4.21.orig/magic/Magdir/audio file-4.21/magic/Magdir/audio +--- file-4.21.orig/magic/Magdir/audio 2007-12-23 17:32:42.000000000 +0000 ++++ file-4.21/magic/Magdir/audio 2007-12-23 17:33:57.000000000 +0000 +@@ -268,6 +268,15 @@ + >122 byte&0x1 =1 PAL + >122 byte&0x1 =0 NTSC + ++# Type: SNES SPC700 sound files ++# From: Josh Triplett ++0 string SNES-SPC700\ Sound\ File\ Data\ v SNES SPC700 sound file ++>&0 string 0.30 \b, version %s ++>>0x23 byte 0x1B \b, without ID666 tag ++>>0x23 byte 0x1A \b, with ID666 tag ++>>>0x2E string >\0 \b, song "%.32s" ++>>>0x4E string >\0 \b, game "%.32s" ++ + # Impulse tracker module (audio/x-it) + 0 string IMPM Impulse Tracker module sound data - + >4 string >\0 "%s" --- file-4.26.orig/debian/patches/906-file-hurd.dpatch +++ file-4.26/debian/patches/906-file-hurd.dpatch @@ -0,0 +1,22 @@ +#!/bin/sh /usr/share/dpatch/dpatch-run +## 906-file-hurd.dpatch by Michael Casadevall +## +## DP: Fixes a FTBFS on hurd (Closes: #433716). + +@DPATCH@ + +diff -Naur file-4.21.orig/src/magic.c file-4.21/src/magic.c +--- file-4.21.orig/src/magic.c 2007-03-26 17:59:50.000000000 +0000 ++++ file-4.21/src/magic.c 2007-07-19 06:25:16.000000000 +0000 +@@ -58,6 +58,11 @@ + #include + #endif + ++#ifndef PIPE_BUF ++// Get the PIPE_BUF from pathconf ++#define PIPE_BUF pathconf(".", _PC_PIPE_BUF) ++#endif ++ + #include /* for byte swapping */ + + #include "patchlevel.h" --- file-4.26.orig/debian/patches/338-magic-add-cromfs.dpatch +++ file-4.26/debian/patches/338-magic-add-cromfs.dpatch @@ -0,0 +1,26 @@ +#!/bin/sh /usr/share/dpatch/dpatch-run +## 338-magic-add-cromfs.dpatch by Werner Fink +## +## DP: Adds new magic for CROM filesystem. + +@DPATCH@ + +diff -Naurp file.orig/magic/Magdir/filesystems file/magic/Magdir/filesystems +--- file.orig/magic/Magdir/filesystems 2008-07-02 13:47:23.000000000 +0000 ++++ file/magic/Magdir/filesystems 2008-07-15 13:43:26.000000000 +0000 +@@ -1327,3 +1327,15 @@ + # dvdisaster's .ecc + # From: "Nelson A. de Oliveira" + 0 string *dvdisaster* dvdisaster error correction file ++ ++# Type: CROM filesystem ++# From: Werner Fink ++0 string CROMFS CROMFS ++>6 string >\0 \b version %2.2s, ++>8 ulequad >0 \b block data at %lld, ++>16 ulequad >0 \b fblock table at %lld, ++>24 ulequad >0 \b inode table at %lld, ++>32 ulequad >0 \b root at %lld, ++>40 ulelong >0 \b fblock size = %ld, ++>44 ulelong >0 \b block size = %ld, ++>48 ulequad >0 \b bytes = %lld --- file-4.26.orig/debian/patches/339-magic-add-scribus.dpatch +++ file-4.26/debian/patches/339-magic-add-scribus.dpatch @@ -0,0 +1,20 @@ +#!/bin/sh /usr/share/dpatch/dpatch-run +## 339-magic-add-scribus.dpatch by Werner Fink +## +## DP: Adds new magics for Scribus. + +@DPATCH@ + +diff -Naurp file-4.24.orig/magic/Magdir/wordprocessors file-4.24/magic/Magdir/wordprocessors +--- file-4.24.orig/magic/Magdir/wordprocessors 2008-05-21 09:49:43.000000000 +0000 ++++ file-4.24/magic/Magdir/wordprocessors 2008-05-21 09:50:54.000000000 +0000 +@@ -153,3 +153,9 @@ + # From: Jamie Thompson + 0 string/cB \ ++0 string \ +## +## DP: Update ocaml magic (Closes: #488992). + +@DPATCH@ + +diff -Naurp file.orig/magic/Magdir/ocaml file/magic/Magdir/ocaml +--- file.orig/magic/Magdir/ocaml 2008-07-15 14:13:20.000000000 +0000 ++++ file/magic/Magdir/ocaml 2008-07-15 14:13:08.000000000 +0000 +@@ -1,7 +1,7 @@ + + #------------------------------------------------------------------------------ + # ocaml: file(1) magic for Objective Caml files. +-0 string Caml1999 Objective caml ++0 string Caml1999 OCaml + >8 string X exec file + >8 string I interface file (.cmi) + >8 string O object file (.cmo) +@@ -10,4 +10,4 @@ + >8 string Z native library file (.cmxa) + >8 string M abstract syntax tree implementation file + >8 string N abstract syntax tree interface file +->9 string >\0 (Version %3.3s). ++>9 string >\0 (Version %3.3s) --- file-4.26.orig/debian/patches/320-magic-add-par2.dpatch +++ file-4.26/debian/patches/320-magic-add-par2.dpatch @@ -0,0 +1,17 @@ +#!/bin/sh /usr/share/dpatch/dpatch-run +## 318-magic-add-par2.dpatch by Daniel van Eeden +## +## DP: New magic for PAR2 archive files (Closes: #294070). + +@DPATCH@ + +diff -Naurp file-4.24.orig/magic/Magdir/archive file-4.24/magic/Magdir/archive +--- file-4.24.orig/magic/Magdir/archive 2008-02-28 18:57:34.000000000 +0000 ++++ file-4.24/magic/Magdir/archive 2008-04-07 08:05:47.000000000 +0000 +@@ -803,3 +803,6 @@ + >24 belong 1 SHA-1 checksum + >24 belong 2 MD5 checksum + ++# Type: Parity Archive ++# From: Daniel van Eeden ++0 string PAR2 Parity Archive Volume Set --- file-4.26.orig/debian/patches/903-file-localmagic.dpatch +++ file-4.26/debian/patches/903-file-localmagic.dpatch @@ -0,0 +1,52 @@ +#!/bin/sh /usr/share/dpatch/dpatch-run +## 903-magic-local.dpatch by Michael Piefel +## +## DP: No longer includes Localstuff in /usr/share/misc/magic. Local definitions +## DP: should go to /etc/magic. + +@DPATCH@ + +diff -Naurp file.orig/magic/Header file/magic/Header +--- file.orig/magic/Header 2000-08-05 17:36:46.000000000 +0000 ++++ file/magic/Header 2008-09-08 11:53:44.000000000 +0000 +@@ -1,5 +1,5 @@ +-# Magic + # Magic data for file(1) command. +-# Machine-generated from src/cmd/file/magdir/*; edit there only! +-# Format is described in magic(files), where: +-# files is 5 on V7 and BSD, 4 on SV, and ?? in the SVID. ++# Format is described in magic(5). ++# Don't edit this file, edit /etc/magic or send your suggested inclusions to ++# this file as a wishlist bug against file (using the reportbug utility). ++ +diff -Naurp file.orig/magic/magic.local file/magic/magic.local +--- file.orig/magic/magic.local 1970-01-01 00:00:00.000000000 +0000 ++++ file/magic/magic.local 2008-09-08 11:53:44.000000000 +0000 +@@ -0,0 +1,3 @@ ++# Magic local data for file(1) command. ++# Insert here your local magic data. Format is described in magic(5). ++ +diff -Naurp file.orig/src/Makefile.am file/src/Makefile.am +--- file.orig/src/Makefile.am 2008-07-15 17:10:47.000000000 +0000 ++++ file/src/Makefile.am 2008-09-08 11:52:51.000000000 +0000 +@@ -4,7 +4,7 @@ include_HEADERS = magic.h + + bin_PROGRAMS = file + +-AM_CPPFLAGS = -DMAGIC='"$(MAGIC)"' ++AM_CPPFLAGS = -DMAGIC='"/etc/magic:$(MAGIC)"' + AM_CFLAGS = @WARNINGS@ + + libmagic_la_SOURCES = magic.c apprentice.c softmagic.c ascmagic.c \ +diff -Naurp file.orig/src/Makefile.in file/src/Makefile.in +--- file.orig/src/Makefile.in 2008-08-30 10:01:42.000000000 +0000 ++++ file/src/Makefile.in 2008-09-08 11:53:21.000000000 +0000 +@@ -198,7 +198,7 @@ top_srcdir = @top_srcdir@ + MAGIC = $(pkgdatadir)/magic + lib_LTLIBRARIES = libmagic.la + include_HEADERS = magic.h +-AM_CPPFLAGS = -DMAGIC='"$(MAGIC)"' ++AM_CPPFLAGS = -DMAGIC='"/etc/magic:$(MAGIC)"' + AM_CFLAGS = @WARNINGS@ + libmagic_la_SOURCES = magic.c apprentice.c softmagic.c ascmagic.c \ + compress.c is_tar.c readelf.c print.c fsmagic.c \ --- file-4.26.orig/debian/patches/218-magic-update-gimp.dpatch +++ file-4.26/debian/patches/218-magic-update-gimp.dpatch @@ -0,0 +1,18 @@ +#!/bin/sh /usr/share/dpatch/dpatch-run +## 218-magic-update-gimp.dpatch by Ori Avtalion +## +## DP: Adding mime entries for gimp (Closes: #501200). + +@DPATCH@ + +diff -Naurp file.orig/magic/Magdir/gimp file/magic/Magdir/gimp +--- file.orig/magic/Magdir/gimp 2008-10-19 14:31:15.000000000 +0000 ++++ file/magic/Magdir/gimp 2008-11-15 19:32:22.000000000 +0000 +@@ -10,6 +10,7 @@ + # ('Bucky' LaDieu, nega@vt.edu) + + 0 string gimp\ xcf GIMP XCF image data, ++!:mime image/x-xcf + >9 string file version 0, + >9 string v version + >>10 string >\0 %s, --- file-4.26.orig/debian/patches/324-magic-add-scummvm.dpatch +++ file-4.26/debian/patches/324-magic-add-scummvm.dpatch @@ -0,0 +1,18 @@ +#!/bin/sh /usr/share/dpatch/dpatch-run +## 322-magic-add-scummvm.dpatch by Sven Hartge +## +## DP: New magic for ScummVM savegame files (Closes: #263488). + +@DPATCH@ + +diff -Naurp file-4.23.orig/magic/Magdir/console file-4.23/magic/Magdir/console +--- file-4.23.orig/magic/Magdir/console 2007-09-26 20:22:31.000000000 +0000 ++++ file-4.23/magic/Magdir/console 2008-01-12 17:36:55.000000000 +0000 +@@ -252,3 +252,7 @@ + # .w3m + 0 string HM3W Warcraft III map file + ++# Type: scummVM savegame files ++# From: Sven Hartge ++0 string SCVM ScummVM savegame ++>12 string >\0 "%s" --- file-4.26.orig/debian/patches/333-magic-add-xen.dpatch +++ file-4.26/debian/patches/333-magic-add-xen.dpatch @@ -0,0 +1,20 @@ +#!/bin/sh /usr/share/dpatch/dpatch-run +## 328-magic-add-xen.dpatch by Radek Vokal +## +## DP: xen patch, recognizes Xen saved domain + +@DPATCH@ + +diff -Naurp file-4.23.orig/magic/Magdir/linux file-4.23/magic/Magdir/linux +--- file-4.23.orig/magic/Magdir/linux 2008-01-12 17:47:04.000000000 +0000 ++++ file-4.23/magic/Magdir/linux 2008-01-12 17:46:42.000000000 +0000 +@@ -248,3 +248,9 @@ + >72 string x %s] + >168 string x UUID: %s + ++# Type: Xen, the virtual machine monitor ++# From: Radek Vokal ++0 string LinuxGuestRecord Xen saved domain ++#>2 regex \(name\ [^)]*\) %s ++>20 search/256 (name (name ++>>&1 string x %s...) --- file-4.26.orig/debian/patches/341-magic-add-bzr.dpatch +++ file-4.26/debian/patches/341-magic-add-bzr.dpatch @@ -0,0 +1,20 @@ +#!/bin/sh /usr/share/dpatch/dpatch-run +## 341-magic-add-bzr.dpatch by Jelmer Vernooij +## +## DP: Adds new magics for bzr (Closes: #488742). + +@DPATCH@ + +diff -Naurp file.orig/magic/Magdir/revision file/magic/Magdir/revision +--- file.orig/magic/Magdir/revision 2008-07-01 15:42:16.000000000 +0200 ++++ file/magic/Magdir/revision 2008-07-01 15:43:34.000000000 +0200 +@@ -22,3 +22,9 @@ + # From: Uwe Zeisberger + 0 string SVN-fs-dump-format-version: Subversion dumpfile + >28 string >\0 (version: %s) ++ ++# Type: Bazaar revision bundles and merge requests ++# URL: http://www.bazaar-vcs.org/ ++# From: Jelmer Vernooij ++0 string #\ Bazaar\ revision\ bundle\ v Bazaar Bundle ++0 string #\ Bazaar\ merge\ directive\ format Bazaar merge directive --- file-4.26.orig/debian/patches/205-magic-update-tcsh.dpatch +++ file-4.26/debian/patches/205-magic-update-tcsh.dpatch @@ -0,0 +1,19 @@ +#!/bin/sh /usr/share/dpatch/dpatch-run +## 205-magic-update-tcsh.dpatch +## +## DP: Add another shebang path for tcsh. + +@DPATCH@ + +diff -Naurp file.orig/magic/Magdir/commands file/magic/Magdir/commands +--- file.orig/magic/Magdir/commands 2008-04-16 12:28:04.000000000 +0000 ++++ file/magic/Magdir/commands 2008-07-15 13:28:19.000000000 +0000 +@@ -12,6 +12,8 @@ + !:mime text/x-shellscript + 0 string/b #!\ /bin/tcsh Tenex C shell script text executable + !:mime text/x-shellscript ++0 string/b #!\ /usr/bin/tcsh Tenex C shell script text executable ++!:mime text/x-shellscript + 0 string/b #!\ /usr/local/tcsh Tenex C shell script text executable + !:mime text/x-shellscript + 0 string/b #!\ /usr/local/bin/tcsh Tenex C shell script text executable --- file-4.26.orig/debian/patches/331-magic-add-supercollider.dpatch +++ file-4.26/debian/patches/331-magic-add-supercollider.dpatch @@ -0,0 +1,20 @@ +#!/bin/sh /usr/share/dpatch/dpatch-run +## 326-magic-add-supercollider.dpatch by Mario Lang +## +## DP: Adds new magic for SuperCollider 3 Synth Definition File Format +## DP: (Closes: #284803). + +@DPATCH@ + +diff -Naurp file-4.23.orig/magic/Magdir/audio file-4.23/magic/Magdir/audio +--- file-4.23.orig/magic/Magdir/audio 2008-01-12 17:39:01.000000000 +0000 ++++ file-4.23/magic/Magdir/audio 2008-01-12 17:38:49.000000000 +0000 +@@ -576,3 +576,8 @@ + # URL: http://filext.com/detaillist.php?extdetail=AMR + # From: Russell Coker + 0 string #!AMR Adaptive Multi-Rate Codec (GSM telephony) ++ ++# Type: SuperCollider 3 Synth Definition File Format ++# From: Mario Lang ++0 string SCgf SuperCollider3 Synth Definition file, ++>4 belong x version %d --- file-4.26.orig/debian/patches/328-magic-add-ssh.dpatch +++ file-4.26/debian/patches/328-magic-add-ssh.dpatch @@ -0,0 +1,19 @@ +#!/bin/sh /usr/share/dpatch/dpatch-run +## 325-magic-add-ssl.dpatch by Nicolas Collignon +## +## DP: New magic for OpenSSH key files (Closes: #439537). + +@DPATCH@ + +diff -Naur file-4.21.orig/magic/Magdir/ssh file-4.21/magic/Magdir/ssh +--- file-4.21.orig/magic/Magdir/ssh 1970-01-01 00:00:00.000000000 +0000 ++++ file-4.21/magic/Magdir/ssh 2007-08-26 08:25:03.000000000 +0000 +@@ -0,0 +1,8 @@ ++# Type: OpenSSH key files ++# From: Nicolas Collignon ++ ++0 string SSH\ PRIVATE\ KEY OpenSSH RSA1 private key, ++>28 string >\0 version %s ++ ++0 string ssh-dss\ OpenSSH DSA public key ++0 string ssh-rsa\ OpenSSH RSA public key --- file-4.26.orig/debian/patches/208-magic-update-real.dpatch +++ file-4.26/debian/patches/208-magic-update-real.dpatch @@ -0,0 +1,19 @@ +#!/bin/sh /usr/share/dpatch/dpatch-run +## 207-magic-update-real.dpatch +## +## DP: Update RealMedia magic. + +@DPATCH@ + +diff -Naurp file.orig/magic/Magdir/audio file/magic/Magdir/audio +--- file.orig/magic/Magdir/audio 2008-05-31 22:17:03.000000000 +0200 ++++ file/magic/Magdir/audio 2008-06-13 09:48:01.000000000 +0200 +@@ -116,7 +116,7 @@ + # Real Audio (Magic .ra\0375) + 0 belong 0x2e7261fd RealAudio sound file + !:mime audio/x-pn-realaudio +-0 string .RMF RealMedia file ++0 string .RMF\0\0\0 RealMedia file + !:mime application/vnd.rn-realmedia + #video/x-pn-realvideo + #video/vnd.rn-realvideo --- file-4.26.orig/debian/patches/336-magic-add-qdbm.dpatch +++ file-4.26/debian/patches/336-magic-add-qdbm.dpatch @@ -0,0 +1,19 @@ +#!/bin/sh /usr/share/dpatch/dpatch-run +## 336-magic-add-qdmb.dpatch by Benoit Sibaud +## +## DP: New magic for QDBM Quick Database Manager (Closes: #481717). + +@DPATCH@ + +diff -Naurp file-4.24.orig/magic/Magdir/database file-4.24/magic/Magdir/database +--- file-4.24.orig/magic/Magdir/database 2008-05-04 14:12:49.000000000 +0000 ++++ file-4.24/magic/Magdir/database 2008-05-21 09:07:49.000000000 +0000 +@@ -242,3 +242,8 @@ + # URL: http://www.grc.nasa.gov/WWW/cgns/adf/ + # From: Nicolas Chauvat + 0 string @(#)ADF\ Database CGNS Advanced Data Format ++ ++# Type: QDBM Quick Database Manager ++# From: Benoit Sibaud ++0 string \\[depot\\]\n\f Quick Database Manager, little endian ++0 string \\[DEPOT\\]\n\f Quick Database Manager, big endian --- file-4.26.orig/debian/legacy/magic.mime +++ file-4.26/debian/legacy/magic.mime @@ -0,0 +1,1027 @@ +# Magic data for KMimeMagic (originally for file(1) command) +# +# Note on adding additional MIME types: +# +# [RFC2045,RFC2046] specifies that Content Types, Content Subtypes, Character +# Sets, Access Types, and conversion values for MIME mail will be assigned and +# listed by the IANA. +# http://www.iana.org/assignments/media-types/ +# +# Any unregistered file type should be listed with a preceding x-, as in +# application/x-foo (RFC2045 5.1), or a x., as in application/x.foo (RFC4288 +# 4.3). Any non x-prefixed type should be registered with IANA and listed at +# the above address. Any other behavior is a MIME standards violation! +# +# It is preferred that when a registered MIME type exists, that +# the registered Content-Type and Subtype be used to refer to a file of +# that type, so don't use application/x-zip when application/zip is +# registered. +# +# If an active RFC suggests that a MIME registration for a new type is in +# progress, make a note of it pointing to that RFC. +# +# The format is 4-5 columns: +# Column #1: byte number to begin checking from, ">" indicates continuation +# Column #2: type of data to match +# Column #3: contents of data to match +# Column #4: MIME type of result +# Column #5: MIME encoding of result (optional) + +#------------------------------------------------------------------------------ +# Localstuff: file(1) magic for locally observed files +# Add any locally observed files here. + +# Real Audio (Magic .ra\0375) +0 belong 0x2e7261fd audio/x-pn-realaudio +0 string .RMF application/vnd.rn-realmedia + +#video/x-pn-realvideo +#video/vnd.rn-realvideo +#application/vnd.rn-realmedia +# sigh, there are many mimes for that but the above are the most common. + +# Taken from magic, converted to magic.mime +# mime types according to http://www.geocities.com/nevilo/mod.htm: +# audio/it .it +# audio/x-zipped-it .itz +# audio/xm fasttracker modules +# audio/x-s3m screamtracker modules +# audio/s3m screamtracker modules +# audio/x-zipped-mod mdz +# audio/mod mod +# audio/x-mod All modules (mod, s3m, 669, mtm, med, xm, it, mdz, stm, itz, xmz, s3z) + +# Taken from loader code from mikmod version 2.14 +# by Steve McIntyre (stevem@chiark.greenend.org.uk) +# added title printing on 2003-06-24 +0 string MAS_UTrack_V00 +>14 string >/0 audio/x-mod +#audio/x-tracker-module + +#0 string UN05 MikMod UNI format module sound data + +0 string Extended\ Module: audio/x-mod +#audio/x-tracker-module +##>17 string >\0 Title: "%s" + +21 string/c \!SCREAM! audio/x-mod +#audio/x-screamtracker-module +21 string BMOD2STM audio/x-mod +#audio/x-screamtracker-module +1080 string M.K. audio/x-mod +#audio/x-protracker-module +#>0 string >\0 Title: "%s" +1080 string M!K! audio/x-mod +#audio/x-protracker-module +#>0 string >\0 Title: "%s" +1080 string FLT4 audio/x-mod +#audio/x-startracker-module +#>0 string >\0 Title: "%s" +1080 string FLT8 audio/x-mod +#audio/x-startracker-module +#>0 string >\0 Title: "%s" +1080 string 4CHN audio/x-mod +#audio/x-fasttracker-module +#>0 string >\0 Title: "%s" +1080 string 6CHN audio/x-mod +#audio/x-fasttracker-module +#>0 string >\0 Title: "%s" +1080 string 8CHN audio/x-mod +#audio/x-fasttracker-module +#>0 string >\0 Title: "%s" +1080 string CD81 audio/x-mod +#audio/x-oktalyzer-tracker-module +#>0 string >\0 Title: "%s" +1080 string OKTA audio/x-mod +#audio/x-oktalyzer-tracker-module +#>0 string >\0 Title: "%s" +# Not good enough. +#1082 string CH +#>1080 string >/0 %.2s-channel Fasttracker "oktalyzer" module sound data +1080 string 16CN audio/x-mod +#audio/x-taketracker-module +#>0 string >\0 Title: "%s" +1080 string 32CN audio/x-mod +#audio/x-taketracker-module +#>0 string >\0 Title: "%s" + +# Impuse tracker module (it) +0 string IMPM audio/x-mod +#>4 string >\0 "%s" +#>40 leshort !0 compatible w/ITv%x +#>42 leshort !0 created w/ITv%x + +#------------------------------------------------------------------------------ +# end local stuff +#------------------------------------------------------------------------------ + +# xml based formats! + +# svg + +38 string \<\!DOCTYPE\040svg image/svg+xml + +0 belong 0xfeedfeed application/x-java-keystore + +0 belong 0xcececece application/x-java-jce-keystore + + +# xml +0 string \2 beshort 0xbabe application/x-java-applet +>2 beshort 0xd00d application/x-java-pack200 + +#------------------------------------------------------------------------------ +# audio: file(1) magic for sound formats +# +# from Jan Nicolai Langfeldt , +# + +# Sun/NeXT audio data +0 string .snd +>12 belong 1 audio/basic +>12 belong 2 audio/basic +>12 belong 3 audio/basic +>12 belong 4 audio/basic +>12 belong 5 audio/basic +>12 belong 6 audio/basic +>12 belong 7 audio/basic + +>12 belong 23 audio/x-adpcm + +# DEC systems (e.g. DECstation 5000) use a variant of the Sun/NeXT format +# that uses little-endian encoding and has a different magic number +# (0x0064732E in little-endian encoding). +0 lelong 0x0064732E +>12 lelong 1 audio/x-dec-basic +>12 lelong 2 audio/x-dec-basic +>12 lelong 3 audio/x-dec-basic +>12 lelong 4 audio/x-dec-basic +>12 lelong 5 audio/x-dec-basic +>12 lelong 6 audio/x-dec-basic +>12 lelong 7 audio/x-dec-basic +# compressed (G.721 ADPCM) +>12 lelong 23 audio/x-dec-adpcm + +# Bytes 0-3 of AIFF, AIFF-C, & 8SVX audio files are "FORM" +# AIFF audio data +8 string AIFF audio/x-aiff +# AIFF-C audio data +8 string AIFC audio/x-aiff +# IFF/8SVX audio data +8 string 8SVX audio/x-aiff + + + +# Creative Labs AUDIO stuff +# Standard MIDI data +0 string MThd audio/x-midi +#>9 byte >0 (format %d) +#>11 byte >1 using %d channels +0 string MThd audio/midi +# Creative Music (CMF) data +0 string CTMF audio/x-unknown +# SoundBlaster instrument data +0 string SBI audio/x-unknown +# Creative Labs voice data +0 string Creative\ Voice\ File audio/x-unknown +## is this next line right? it came this way... +#>19 byte 0x1A +#>23 byte >0 - version %d +#>22 byte >0 \b.%d + +# [GRR 950115: is this also Creative Labs? Guessing that first line +# should be string instead of unknown-endian long...] +#0 long 0x4e54524b MultiTrack sound data +#0 string NTRK MultiTrack sound data +#>4 long x - version %ld + +# Microsoft WAVE format (*.wav) +# [GRR 950115: probably all of the shorts and longs should be leshort/lelong] +# Microsoft RIFF +0 string RIFF +# - WAVE format +>8 string WAVE audio/x-wav +>8 string/B AVI video/x-msvideo +# +>8 string CDRA image/x-coreldraw + +# AAC (aka MPEG-2 NBC) +0 beshort&0xfff6 0xfff0 audio/X-HX-AAC-ADTS +0 string ADIF audio/X-HX-AAC-ADIF +0 beshort&0xffe0 0x56e0 audio/MP4A-LATM +0 beshort 0x4De1 audio/MP4A-LATM + +# MPEG Layer 3 sound files +# modified by Joerg Jenderek +# GRR the original test are too common for many DOS files +# so test 1 <= kbits nibble <= E +0 beshort &0xffe0 +>2 ubyte&0xF0 >0x0F +>>2 ubyte&0xF0 <0xE1 audio/mpeg +#MP3 with ID3 tag +0 string ID3 audio/mpeg +# Ogg/Vorbis +0 string OggS application/ogg + +#------------------------------------------------------------------------------ +# c-lang: file(1) magic for C programs or various scripts +# + +# XPM icons (Greg Roelofs, newt@uchicago.edu) +# ideally should go into "images", but entries below would tag XPM as C source +0 string /*\ XPM image/x-xpmi + +# 3DS (3d Studio files) Conflicts with diff output 0x3d '=' +#16 beshort 0x3d3d image/x-3ds + +# this first will upset you if you're a PL/1 shop... (are there any left?) +# in which case rm it; ascmagic will catch real C programs +# C or REXX program text +#0 string /* text/x-c +# C++ program text +#0 string // text/x-c++ + +#------------------------------------------------------------------------------ +# commands: file(1) magic for various shells and interpreters +# +#0 string :\ shell archive or commands for antique kernel text +0 string #!/bin/sh application/x-shellscript +0 string #!\ /bin/sh application/x-shellscript +0 string #!/bin/csh application/x-shellscript +0 string #!\ /bin/csh application/x-shellscript +# korn shell magic, sent by George Wu, gwu@clyde.att.com +0 string #!/bin/ksh application/x-shellscript +0 string #!\ /bin/ksh application/x-shellscript +0 string #!/bin/tcsh application/x-shellscript +0 string #!\ /bin/tcsh application/x-shellscript +0 string #!/usr/local/tcsh application/x-shellscript +0 string #!\ /usr/local/tcsh application/x-shellscript +0 string #!/usr/local/bin/tcsh application/x-shellscript +0 string #!\ /usr/local/bin/tcsh application/x-shellscript +# bash shell magic, from Peter Tobias (tobias@server.et-inf.fho-emden.de) +0 string #!/bin/bash application/x-shellscript +0 string #!\ /bin/bash application/x-shellscript +0 string #!/usr/local/bin/bash application/x-shellscript +0 string #!\ /usr/local/bin/bash application/x-shellscript + +# +# zsh/ash/ae/nawk/gawk magic from cameron@cs.unsw.oz.au (Cameron Simpson) +0 string #!/bin/zsh application/x-shellscript +0 string #!/usr/bin/zsh application/x-shellscript +0 string #!/usr/local/bin/zsh application/x-shellscript +0 string #!\ /usr/local/bin/zsh application/x-shellscript +0 string #!/usr/local/bin/ash application/x-shellscript +0 string #!\ /usr/local/bin/ash application/x-shellscript +#0 string #!/usr/local/bin/ae Neil Brown's ae +#0 string #!\ /usr/local/bin/ae Neil Brown's ae +0 string #!/bin/nawk application/x-nawk +0 string #!\ /bin/nawk application/x-nawk +0 string #!/usr/bin/nawk application/x-nawk +0 string #!\ /usr/bin/nawk application/x-nawk +0 string #!/usr/local/bin/nawk application/x-nawk +0 string #!\ /usr/local/bin/nawk application/x-nawk +0 string #!/bin/gawk application/x-gawk +0 string #!\ /bin/gawk application/x-gawk +0 string #!/usr/bin/gawk application/x-gawk +0 string #!\ /usr/bin/gawk application/x-gawk +0 string #!/usr/local/bin/gawk application/x-gawk +0 string #!\ /usr/local/bin/gawk application/x-gawk +# +0 string #!/bin/awk application/x-awk +0 string #!\ /bin/awk application/x-awk +0 string #!/usr/bin/awk application/x-awk +0 string #!\ /usr/bin/awk application/x-awk +# update to distinguish from *.vcf files by Joerg Jenderek: joerg dot jenderek at web dot de +# Too general, \EBEGIN matches in postscript +#0 regex BEGIN[[:space:]]*[{] application/x-awk + +# For Larry Wall's perl language. The ``eval'' line recognizes an +# outrageously clever hack for USG systems. +# Keith Waclena +0 string #!/bin/perl application/x-perl +0 string #!\ /bin/perl application/x-perl +0 string eval\ "exec\ /bin/perl application/x-perl +0 string #!/usr/bin/perl application/x-perl +0 string #!\ /usr/bin/perl application/x-perl +0 string eval\ "exec\ /usr/bin/perl application/x-perl +0 string #!/usr/local/bin/perl application/x-perl +0 string #!\ /usr/local/bin/perl application/x-perl +0 string eval\ "exec\ /usr/local/bin/perl application/x-perl + +# Type: Lua scripting language +# URL: http://www.lua.org/ +# From: Reuben Thomas +0 string/B #!\ /usr/bin/lua application/x-lua +0 string/B #!\ /usr/local/bin/lua application/x-lua +0 string #!/usr/bin/env\ lua application/x-lua +0 string #!\ /usr/bin/env\ lua application/x-lua + +#------------------------------------------------------------------------------ +# compress: file(1) magic for pure-compression formats (no archives) +# +# compress, gzip, pack, compact, huf, squeeze, crunch, freeze, yabba, whap, etc. +# +# Formats for various forms of compressed data +# Formats for "compress" proper have been moved into "compress.c", +# because it tries to uncompress it to figure out what's inside. + +# standard unix compress +#0 string \037\235 application/x-compress + +# gzip (GNU zip, not to be confused with [Info-ZIP/PKWARE] zip archiver) +0 string \037\213 application/x-gzip + +0 string PK\003\004 application/zip + +# RAR archiver (Greg Roelofs, newt@uchicago.edu) +0 string Rar! application/x-rar + +# According to gzip.h, this is the correct byte order for packed data. +0 string \037\036 application/octet-stream +# +# This magic number is byte-order-independent. +# +0 short 017437 application/octet-stream + +# XXX - why *two* entries for "compacted data", one of which is +# byte-order independent, and one of which is byte-order dependent? +# +# compacted data +0 short 0x1fff application/octet-stream +0 string \377\037 application/octet-stream +# huf output +0 short 0145405 application/octet-stream + +# Squeeze and Crunch... +# These numbers were gleaned from the Unix versions of the programs to +# handle these formats. Note that I can only uncrunch, not crunch, and +# I didn't have a crunched file handy, so the crunch number is untested. +# Keith Waclena +#0 leshort 0x76FF squeezed data (CP/M, DOS) +#0 leshort 0x76FE crunched data (CP/M, DOS) + +# Freeze +#0 string \037\237 Frozen file 2.1 +#0 string \037\236 Frozen file 1.0 (or gzip 0.5) + +# lzh? +#0 string \037\240 LZH compressed data + +257 string ustar\0 application/x-tar posix +257 string ustar\040\040\0 application/x-tar gnu + +0 short 070707 application/x-cpio +0 short 0143561 application/x-cpio swapped + +0 string = application/x-archive +0 string \! application/x-archive +>8 string debian application/x-debian-package + +#------------------------------------------------------------------------------ +# +# RPM: file(1) magic for Red Hat Packages Erik Troan (ewt@redhat.com) +# +0 beshort 0xedab +>2 beshort 0xeedb application/x-rpm + +0 lelong&0x8080ffff 0x0000081a application/x-arc lzw +0 lelong&0x8080ffff 0x0000091a application/x-arc squashed +0 lelong&0x8080ffff 0x0000021a application/x-arc uncompressed +0 lelong&0x8080ffff 0x0000031a application/x-arc packed +0 lelong&0x8080ffff 0x0000041a application/x-arc squeezed +0 lelong&0x8080ffff 0x0000061a application/x-arc crunched + +0 leshort 0xea60 application/x-arj + +# LHARC/LHA archiver (Greg Roelofs, newt@uchicago.edu) +2 string -lh0- application/x-lharc lh0 +2 string -lh1- application/x-lharc lh1 +2 string -lz4- application/x-lharc lz4 +2 string -lz5- application/x-lharc lz5 +# [never seen any but the last; -lh4- reported in comp.compression:] +2 string -lzs- application/x-lha lzs +2 string -lh\ - application/x-lha lh +2 string -lhd- application/x-lha lhd +2 string -lh2- application/x-lha lh2 +2 string -lh3- application/x-lha lh3 +2 string -lh4- application/x-lha lh4 +2 string -lh5- application/x-lha lh5 +2 string -lh6- application/x-lha lh6 +2 string -lh7- application/x-lha lh7 +# Shell archives +10 string #\ This\ is\ a\ shell\ archive application/octet-stream x-shell + +#------------------------------------------------------------------------------ +# frame: file(1) magic for FrameMaker files +# +# This stuff came on a FrameMaker demo tape, most of which is +# copyright, but this file is "published" as witness the following: +# +# Note that this is the Framemaker Maker Interchange Format, not the +# Normal format which would be application/vnd.framemaker. +# +0 string \ +# +0 string/cB \14 byte 12 (OS/2 1.x format) +#>14 byte 64 (OS/2 2.x format) +#>14 byte 40 (Windows 3.x format) +#0 string IC icon +#0 string PI pointer +#0 string CI color icon +#0 string CP color pointer +#0 string BA bitmap array + +# CDROM Filesystems +32769 string CD001 application/x-iso9660-image + +# Newer StuffIt archives (grant@netbsd.org) +0 string StuffIt application/x-stuffit +#>162 string >0 : %s + +# BinHex is the Macintosh ASCII-encoded file format (see also "apple") +# Daniel Quinlan, quinlan@yggdrasil.com +11 string must\ be\ converted\ with\ BinHex\ 4 application/mac-binhex40 +##>41 string x \b, version %.3s + + +#------------------------------------------------------------------------------ +# lisp: file(1) magic for lisp programs +# +# various lisp types, from Daniel Quinlan (quinlan@yggdrasil.com) +0 string ;; text/plain +# Emacs 18 - this is always correct, but not very magical. +0 string \012( application/x-elc +# Emacs 19 +0 string ;ELC\023\000\000\000 application/x-elc + +#------------------------------------------------------------------------------ +# mail.news: file(1) magic for mail and news +# +# There are tests to ascmagic.c to cope with mail and news. +0 string Relay-Version: message/rfc822 +0 string #!\ rnews message/rfc822 +0 string N#!\ rnews message/rfc822 +0 string Forward\ to message/rfc822 +0 string Pipe\ to message/rfc822 +0 string Return-Path: message/rfc822 +0 string Received: message/rfc822 +0 string Path: message/news +0 string Xref: message/news +0 string From: message/rfc822 +0 string Article message/news +#------------------------------------------------------------------------------ +# msword: file(1) magic for MS Word files +# +# Contributor claims: +# Reversed-engineered MS Word magic numbers +# + +0 string \376\067\0\043 application/msword +# disable this one because it applies also to other +# Office/OLE documents for which msword is not correct. See PR#2608. +# from magic file of the apache +#0 string \320\317\021\340\241\261 application/msword +512 string \354\245\301 application/msword +0 string \333\245-\0\0\0 application/msword + + + +#------------------------------------------------------------------------------ +# printer: file(1) magic for printer-formatted files +# + +# PostScript +0 string %! application/postscript +0 string \004%! application/postscript + +# Acrobat +# (due to clamen@cs.cmu.edu) +0 string %PDF- application/pdf + +#------------------------------------------------------------------------------ +# sc: file(1) magic for "sc" spreadsheet +# +38 string Spreadsheet application/x-sc + +#------------------------------------------------------------------------------ +# tex: file(1) magic for TeX files +# +# XXX - needs byte-endian stuff (big-endian and little-endian DVI?) +# +# From + +# Although we may know the offset of certain text fields in TeX DVI +# and font files, we can't use them reliably because they are not +# zero terminated. [but we do anyway, christos] +0 string \367\002 application/x-dvi +#0 string \367\203 TeX generic font data +#0 string \367\131 TeX packed font data +#0 string \367\312 TeX virtual font data +#0 string This\ is\ TeX, TeX transcript text +#0 string This\ is\ METAFONT, METAFONT transcript text + +# There is no way to detect TeX Font Metric (*.tfm) files without +# breaking them apart and reading the data. The following patterns +# match most *.tfm files generated by METAFONT or afm2tfm. +2 string \000\021 application/x-tex-tfm +2 string \000\022 application/x-tex-tfm +#>34 string >\0 (%s) + +# Texinfo and GNU Info, from Daniel Quinlan (quinlan@yggdrasil.com) +0 string \\input\ texinfo text/x-texinfo +0 string This\ is\ Info\ file text/x-info + +# correct TeX magic for Linux (and maybe more) +# from Peter Tobias (tobias@server.et-inf.fho-emden.de) +# +0 leshort 0x02f7 application/x-dvi + +# RTF - Rich Text Format +0 string {\\rtf text/rtf + +# TeX documents, from Daniel Quinlan (quinlan@yggdrasil.com) +0 search/400 \\input text/x-tex +0 search/400 \\section text/x-tex +0 search/400 \\setlength text/x-tex +0 search/400 \\documentstyle text/x-tex +0 search/400 \\chapter text/x-tex +0 search/400 \\documentclass text/x-tex + +# Type: Inform interactive fiction language +# URL: http://www.inform-fiction.org/ +# From: Reuben Thomas +0 regex [Cc]onstant[[:space:]]+[Ss]tory text/x-inform + +#------------------------------------------------------------------------------ +# animation: file(1) magic for animation/movie formats +# +# animation formats, originally from vax@ccwf.cc.utexas.edu (VaX#n8) +# MPEG file +# MPEG sequences +0 belong 0x000001BA +>4 byte &0x40 video/mp2p +>4 byte ^0x40 video/mpeg +0 belong 0x000001BB video/mpeg +0 belong 0x000001B0 video/mp4v-es +0 belong 0x000001B5 video/mp4v-es +0 belong 0x000001B3 video/mpv +0 belong&0xFF5FFF1F 0x47400010 video/mp2t +0 belong 0x00000001 +>4 byte&0x1F 0x07 video/h264 + +# FLI animation format +0 leshort 0xAF11 video/x-fli +# FLC animation format +0 leshort 0xAF12 video/x-flc +# +# SGI and Apple formats +# Added ISO mimes +0 string MOVI video/x-sgi-movie +4 string moov video/quicktime +4 string mdat video/quicktime +4 string wide video/quicktime +4 string skip video/quicktime +4 string free video/quicktime +4 string idsc image/x-quicktime +4 string idat image/x-quicktime +4 string pckg application/x-quicktime-player +4 string/B jP image/jp2 +4 string ftyp +>8 string isom video/mp4 +>8 string mp41 video/mp4 +>8 string mp42 video/mp4 +>8 string/B jp2 image/jp2 +>8 string 3gp video/3gpp +>8 string avc1 video/3gpp +>8 string mmp4 video/mp4 +>8 string/B M4A audio/mp4 +>8 string/B M4V video/mp4 +>8 string/B qt video/quicktime +# The contributor claims: +# I couldn't find a real magic number for these, however, this +# -appears- to work. Note that it might catch other files, too, +# so BE CAREFUL! +# +# Note that title and author appear in the two 20-byte chunks +# at decimal offsets 2 and 22, respectively, but they are XOR'ed with +# 255 (hex FF)! DL format SUCKS BIG ROCKS. +# +# DL file version 1 , medium format (160x100, 4 images/screen) +0 byte 1 video/x-unknown +0 byte 2 video/x-unknown +# +# Databases +# +# GDBM magic numbers +# Will be maintained as part of the GDBM distribution in the future. +# +0 belong 0x13579ace application/x-gdbm +0 lelong 0x13579ace application/x-gdbm +0 string GDBM application/x-gdbm +# +0 belong 0x061561 application/x-dbm +# +# Executables +# +0 string \177ELF +>16 leshort 0 application/octet-stream +>16 leshort 1 application/x-object +>16 leshort 2 application/x-executable +>16 leshort 3 application/x-sharedlib +>16 leshort 4 application/x-coredump +>16 beshort 0 application/octet-stream +>16 beshort 1 application/x-object +>16 beshort 2 application/x-executable +>16 beshort 3 application/x-sharedlib +>16 beshort 4 application/x-coredump +# +# DOS +0 string MZ application/x-dosexec +# +# KDE +0 string [KDE\ Desktop\ Entry] application/x-kdelnk +0 string #\ KDE\ Config\ File application/x-kdelnk +# xmcd database file for kscd +0 string #\ xmcd text/x-xmcd + +#------------------------------------------------------------------------------ +# pkgadd: file(1) magic for SysV R4 PKG Datastreams +# +0 string #\ PaCkAgE\ DaTaStReAm application/x-svr4-package + +#PNG Image Format +0 string \x89PNG image/png + +# MNG Video Format, +0 string \x8aMNG video/x-mng +0 string \x8aJNG video/x-jng + +#------------------------------------------------------------------------------ +# Hierarchical Data Format, used to facilitate scientific data exchange +# specifications at http://hdf.ncsa.uiuc.edu/ +#Hierarchical Data Format (version 4) data +0 belong 0x0e031301 application/x-hdf +#Hierarchical Data Format (version 5) data +0 string \211HDF\r\n\032 application/x-hdf + +# Adobe Photoshop +0 string 8BPS image/vnd.adobe.photoshop + +# Felix von Leitner +0 string d8:announce application/x-bittorrent + + +# lotus 1-2-3 document +0 belong 0x00001a00 application/x-123 +0 belong 0x00000200 application/x-123 + +# MS Access database +4 string Standard\ Jet\ DB application/x-msaccess + +## magic for XBase files +#0 byte 0x02 +#>8 leshort >0 +#>>12 leshort 0 application/x-dbf +# +#0 byte 0x03 +#>8 leshort >0 +#>>12 leshort 0 application/x-dbf +# +#0 byte 0x04 +#>8 leshort >0 +#>>12 leshort 0 application/x-dbf +# +#0 byte 0x05 +#>8 leshort >0 +#>>12 leshort 0 application/x-dbf +# +#0 byte 0x30 +#>8 leshort >0 +#>>12 leshort 0 application/x-dbf +# +#0 byte 0x43 +#>8 leshort >0 +#>>12 leshort 0 application/x-dbf +# +#0 byte 0x7b +#>8 leshort >0 +#>>12 leshort 0 application/x-dbf +# +#0 byte 0x83 +#>8 leshort >0 +#>>12 leshort 0 application/x-dbf +# +#0 byte 0x8b +#>8 leshort >0 +#>>12 leshort 0 application/x-dbf +# +#0 byte 0x8e +#>8 leshort >0 +#>>12 leshort 0 application/x-dbf +# +#0 byte 0xb3 +#>8 leshort >0 +#>>12 leshort 0 application/x-dbf +# +#0 byte 0xf5 +#>8 leshort >0 +#>>12 leshort 0 application/x-dbf +# +#0 leshort 0x0006 application/x-dbt + +# Debian has entries for the old PGP formats: +# pgp: file(1) magic for Pretty Good Privacy +# see http://lists.gnupg.org/pipermail/gnupg-devel/1999-September/016052.html +#0 beshort 0x9900 application/x-pgp-keyring +#0 beshort 0x9501 application/x-pgp-keyring +#0 beshort 0x9500 application/x-pgp-keyring +#0 beshort 0xa600 application/pgp-encrypted +#0 string -----BEGIN\040PGP text/PGP armored data +#>15 string PUBLIC\040KEY\040BLOCK- public key block +#>15 string MESSAGE- message +#>15 string SIGNED\040MESSAGE- signed message +#>15 string PGP\040SIGNATURE- signature +#0 beshort 0x8501 data +#text/PGP key public ring +0 beshort 0x9900 application/pgp +#text/PGP key security ring +0 beshort 0x9501 application/pgp +#text/PGP key security ring +0 beshort 0x9500 application/pgp +#text/PGP encrypted data +0 beshort 0xa600 application/pgp-encrypted +#text/PGP armored data +##public key block +2 string ---BEGIN\ PGP\ PUBLIC\ KEY\ BLOCK- application/pgp-keys +0 string -----BEGIN\040PGP\40MESSAGE- application/pgp +0 string -----BEGIN\040PGP\40SIGNATURE- application/pgp-signature + +# +# GnuPG Magic: +# +#0 beshort 0x9901 application/x-gnupg-keyring +#0 beshort 0x8501 text/OpenPGP data +#text/GnuPG key public ring +0 beshort 0x9901 application/pgp +#text/OpenPGP data +0 beshort 0x8501 application/pgp-encrypted + +# flash: file(1) magic for Macromedia Flash file format +# +# See +# +# http://www.macromedia.com/software/flash/open/ +# +0 string FWS +>3 byte x application/x-shockwave-flash +# Flash Video +0 string FLV video/x-flv + + +# The following paramaters are created for Namazu. +# +# +# 1999/08/13 +#0 string \