]> git.pld-linux.org Git - packages/file.git/blame - file-debian.patch
- updated to 4.13, updated debian patch
[packages/file.git] / file-debian.patch
CommitLineData
d08c4ffc
JB
1--- file-4.13.orig/doc/file.man
2+++ file-4.13/doc/file.man
f8c6f9ed
AM
3@@ -1,4 +1,4 @@
4-.TH FILE __CSECTION__ "Copyright but distributable"
d08c4ffc 5+.TH FILE __CSECTION__ "January 2004" "Copyrighted but distributable"
f8c6f9ed
AM
6 .\" $Id$
7 .SH NAME
8 file
9@@ -56,10 +56,9 @@
10 meaning anything else (data is usually `binary' or non-printable).
11 Exceptions are well-known file formats (core files, tar archives)
12 that are known to contain binary data.
13-When modifying the file
14-.I __MAGIC__
15-or the program itself,
16-.B "preserve these keywords" .
17+When adding local definitions to
18+.IR /etc/magic ,
19+.BR "preserve these keywords" .
20 People depend on knowing that all the readable files in a directory
21 have the word ``text'' printed.
22 Don't do as Berkeley did and change ``shell commands text''
23@@ -98,7 +97,9 @@
24 The concept of `magic number' has been applied by extension to data files.
25 Any file with some invariant identifier at a small fixed
26 offset into the file can usually be described in this way.
27-The information identifying these files is read from the compiled
28+The information identifying these files is read from
29+.I /etc/magic
30+and the compiled
31 magic file
32 .I __MAGIC__.mgc ,
33 or
bc7258b3 34@@ -339,12 +340,6 @@
f8c6f9ed
AM
35 The order of entries in the magic file is significant.
36 Depending on what system you are using, the order that
37 they are put together may be incorrect.
38-If your old
39-.B file
40-command uses a magic file,
41-keep the old magic file around for comparison purposes
42-(rename it to
43-.IR __MAGIC__.orig ).
44 .SH EXAMPLES
45 .nf
46 $ file file.c file /dev/{wd0a,hda}
bc7258b3 47@@ -498,3 +493,7 @@
f8c6f9ed
AM
48 .B ftp.astron.com
49 in the directory
50 .I /pub/file/file-X.YZ.tar.gz
51+.PP
cc7e8ae4 52+This version contains some extensions from
f8c6f9ed 53+.B Debian
cc7e8ae4 54+(mainly new magic entries).
9ccb4ffe
JB
55--- file-4.07.orig/src/Makefile.am
56+++ file-4.07/src/Makefile.am
f8c6f9ed
AM
57@@ -4,7 +4,7 @@
58
59 bin_PROGRAMS = file
60
61-AM_CPPFLAGS = -DMAGIC='"$(MAGIC)"'
62+AM_CPPFLAGS = -DMAGIC='"/etc/magic:$(MAGIC)"'
63
64 libmagic_la_SOURCES = magic.c apprentice.c softmagic.c ascmagic.c \
65 compress.c is_tar.c readelf.c print.c fsmagic.c \
9ccb4ffe
JB
66--- file-4.07.orig/magic/Header
67+++ file-4.07/magic/Header
f8c6f9ed
AM
68@@ -1,5 +1,5 @@
69-# Magic
70 # Magic data for file(1) command.
71-# Machine-generated from src/cmd/file/magdir/*; edit there only!
72-# Format is described in magic(files), where:
73-# files is 5 on V7 and BSD, 4 on SV, and ?? in the SVID.
74+# Format is described in magic(5).
75+# Don't edit this file, edit /etc/magic or send your suggested inclusions to
76+# this file as a wishlist bug against file (using the reportbug utility).
77+
8d2707a0
JB
78--- file-4.11/magic/magic.mime.orig 2004-11-21 06:20:30.000000000 +0100
79+++ file-4.11/magic/magic.mime 2004-11-22 23:30:02.976163088 +0100
80@@ -190,7 +190,7 @@
bc7258b3 81
bc7258b3 82
9ccb4ffe
JB
83 # MPEG Layer 3 sound files
84-0 beshort &0xffe0 audio/mpeg
85+0 beshort&0xfffe =0xfffa audio/mpeg
86 #MP3 with ID3 tag
87 0 string ID3 audio/mpeg
88 # Ogg/Vorbis
8d2707a0 89@@ -289,10 +289,10 @@
f8c6f9ed
AM
90 # because it tries to uncompress it to figure out what's inside.
91
92 # standard unix compress
93-0 string \037\235 application/x-compress
94+#0 string \037\235 application/x-compress
95
96 # gzip (GNU zip, not to be confused with [Info-ZIP/PKWARE] zip archiver)
97-0 string \037\213 application/x-gzip
98+#0 string \037\213 application/x-gzip
99
100 0 string PK\003\004 application/x-zip
101
8d2707a0 102@@ -393,19 +393,14 @@
9ccb4ffe
JB
103 #
104 # from Daniel Quinlan <quinlan@yggdrasil.com>
105 #
106-0 string \<HEAD text/html
107-0 string \<head text/html
108-0 string \<TITLE text/html
109-0 string \<title text/html
110-0 string \<html text/html
111-0 string \<HTML text/html
112+0 string/cB \<!DOCTYPE\ html text/html
113+0 string/cb \<head text/html
114+0 string/cb \<title text/html
115+0 string/bc \<html text/html
116 0 string \<!-- text/html
117-0 string \<h1 text/html
118-0 string \<H1 text/html
119-0 string \<!doctype\ HTML text/html
120-0 string \<!DOCTYPE\ HTML text/html
121-0 string \<!doctype\ html text/html
122-0 string \<!doctype\ HTML text/html
123+0 string/c \<h1 text/html
124+
125+0 string \<?xml text/xml
f8c6f9ed 126
f8c6f9ed
AM
127 #------------------------------------------------------------------------------
128 # images: file(1) magic for image formats (see also "c-lang" for XPM bitmaps)
8d2707a0 129@@ -468,7 +463,7 @@
f8c6f9ed
AM
130 0 beshort 0xffd8 image/jpeg
131
132 # PC bitmaps (OS/2, Windoze BMP files) (Greg Roelofs, newt@uchicago.edu)
133-0 string BM image/bmp
134+0 string BM image/x-ms-bmp
135 #>14 byte 12 (OS/2 1.x format)
136 #>14 byte 64 (OS/2 2.x format)
137 #>14 byte 40 (Windows 3.x format)
8d2707a0 138@@ -778,6 +773,7 @@
de676a81
JB
139 #
140 0 string FWS
141 >3 byte x application/x-shockwave-flash
142+0 string CWS application/x-shockwave-flash
9ccb4ffe 143
de676a81
JB
144 # The following paramaters are created for Namazu.
145 # <http://www.namazu.org/>
8d2707a0
JB
146@@ -906,3 +902,7 @@
147 # (made the mimetype up)
148 0 string \0\0MMXPR3\0 application/x-quark-xpress-3
149
f8c6f9ed
AM
150+# Gnumeric spreadsheet
151+# This entry is only semi-helpful, as Gnumeric compresses its files, so
152+# they will ordinarily reported as "compressed", but at least -z helps
153+39 string =<gmr:Workbook application/x-gnumeric
9ccb4ffe
JB
154--- file-4.07.orig/magic/magic.local
155+++ file-4.07/magic/magic.local
f8c6f9ed
AM
156@@ -0,0 +1,3 @@
157+# Magic local data for file(1) command.
158+# Insert here your local magic data. Format is described in magic(5).
159+
This page took 0.101135 seconds and 4 git commands to generate.