1 #!/bin/sh /usr/share/dpatch/dpatch-run
2 ## 202-magic-update-awk.dpatch by Werner Fink <werner@suse.de>
4 ## DP: Updates (and re-enables) awk magic.
8 diff -Naurp file-4.24.orig/magic/Magdir/commands file-4.24/magic/Magdir/commands
9 --- file-4.24.orig/magic/Magdir/commands 2008-05-04 14:12:49.000000000 +0000
10 +++ file-4.24/magic/Magdir/commands 2008-05-21 09:36:15.000000000 +0000
12 # update to distinguish from *.vcf files
13 # this is broken because postscript has /EBEGIN{ for example.
14 #0 search/Bb BEGIN { awk script text
15 +0 regex =^\\s*BEGIN\\s*[{] awk script text
17 # AT&T Bell Labs' Plan 9 shell
18 0 string/b #!\ /bin/rc Plan 9 rc shell script text executable
19 #!/bin/sh /usr/share/dpatch/dpatch-run
20 ## 203-magic-update-reiserfs.dpatch by Werner Fink <werner@suse.de>
22 ## DP: Updating reiserfs magic to detect ReiserFS V3.6.19.
26 diff -Naurp file-4.24.orig/magic/Magdir/filesystems file-4.24/magic/Magdir/filesystems
27 --- file-4.24.orig/magic/Magdir/filesystems 2008-05-04 14:12:49.000000000 +0000
28 +++ file-4.24/magic/Magdir/filesystems 2008-05-21 09:43:04.000000000 +0000
30 # reiserfs - russell@coker.com.au
31 0x10034 string ReIsErFs ReiserFS V3.5
32 0x10034 string ReIsEr2Fs ReiserFS V3.6
33 +0x10034 string ReIsEr3Fs ReiserFS V3.6.19
34 >0x1002c leshort x block size %d
35 >0x10032 leshort &2 (mounted or unclean)
36 >0x10000 lelong x num blocks %d
37 #!/bin/sh /usr/share/dpatch/dpatch-run
38 ## 204-magic-update-asf.dpatch by Daniel Baumann <daniel@debian.org>
40 ## DP: Add mime to asf magic.
44 diff -Naurp file.orig/magic/Magdir/animation file/magic/Magdir/animation
45 --- file.orig/magic/Magdir/animation 2008-05-26 23:24:27.000000000 +0200
46 +++ file/magic/Magdir/animation 2008-05-31 15:03:45.000000000 +0200
49 # Microsoft Advanced Streaming Format (ASF) <mpruett@sgi.com>
50 0 belong 0x3026b275 Microsoft ASF
51 +!:mime video/x-ms-asf
53 # MNG Video Format, <URL:http://www.libpng.org/pub/mng/spec/>
54 0 string \x8aMNG MNG video data,
55 #!/bin/sh /usr/share/dpatch/dpatch-run
56 ## 205-magic-update-tcsh.dpatch
58 ## DP: Add another shebang path for tcsh.
62 diff -Naurp file.orig/magic/Magdir/commands file/magic/Magdir/commands
63 --- file.orig/magic/Magdir/commands 2008-04-16 12:28:04.000000000 +0000
64 +++ file/magic/Magdir/commands 2008-07-15 13:28:19.000000000 +0000
66 !:mime text/x-shellscript
67 0 string/b #!\ /bin/tcsh Tenex C shell script text executable
68 !:mime text/x-shellscript
69 +0 string/b #!\ /usr/bin/tcsh Tenex C shell script text executable
70 +!:mime text/x-shellscript
71 0 string/b #!\ /usr/local/tcsh Tenex C shell script text executable
72 !:mime text/x-shellscript
73 0 string/b #!\ /usr/local/bin/tcsh Tenex C shell script text executable
74 #!/bin/sh /usr/share/dpatch/dpatch-run
75 ## 206-magic-update-bash.dpatch
77 ## DP: Add another shebang path for bash.
81 diff -Naurp file.orig/magic/Magdir/commands file/magic/Magdir/commands
82 --- file.orig/magic/Magdir/commands 2008-07-15 13:31:02.000000000 +0000
83 +++ file/magic/Magdir/commands 2008-07-15 13:30:55.000000000 +0000
84 @@ -58,6 +58,10 @@ o string/b #!\ /usr/bin/tcsh Tenex C she
85 # bash shell magic, from Peter Tobias (tobias@server.et-inf.fho-emden.de)
86 0 string/b #!\ /bin/bash Bourne-Again shell script text executable
87 !:mime text/x-shellscript
88 +0 string/b #!\ /usr/bin/bash Bourne-Again shell script text executable
89 +!:mime text/x-shellscript
90 +0 string/b #!\ /usr/local/bash Bourne-Again shell script text executable
91 +!:mime text/x-shellscript
92 0 string/b #!\ /usr/local/bin/bash Bourne-Again shell script text executable
93 !:mime text/x-shellscript
95 #!/bin/sh /usr/share/dpatch/dpatch-run
96 ## 207-magic-update-zip.dpatch
98 ## DP: Update zip magic.
102 diff -Naurp file.orig/magic/Magdir/msdos file/magic/Magdir/msdos
103 --- file.orig/magic/Magdir/msdos 2008-05-31 22:17:03.000000000 +0200
104 +++ file/magic/Magdir/msdos 2008-06-13 09:44:56.000000000 +0200
107 # a few unknown ZIP sfxes, no idea if they are needed or if they are
108 # already captured by the generic patterns above
109 ->122 string Windows\ self-extracting\ ZIP \b, ZIP self-extracting archive
110 +>0x7a string Windows\ self-extracting\ ZIP \b, ZIP self-extracting archive
111 >(8.s*16) search/0x20 PKSFX \b, ZIP self-extracting archive (PKZIP)
112 # TODO: how to add this? >FileSize-34 string Windows\ Self-Installing\ Executable \b, ZIP self-extracting archive
114 #!/bin/sh /usr/share/dpatch/dpatch-run
115 ## 207-magic-update-real.dpatch
117 ## DP: Update RealMedia magic.
121 diff -Naurp file.orig/magic/Magdir/audio file/magic/Magdir/audio
122 --- file.orig/magic/Magdir/audio 2008-05-31 22:17:03.000000000 +0200
123 +++ file/magic/Magdir/audio 2008-06-13 09:48:01.000000000 +0200
125 # Real Audio (Magic .ra\0375)
126 0 belong 0x2e7261fd RealAudio sound file
127 !:mime audio/x-pn-realaudio
128 -0 string .RMF RealMedia file
129 +0 string .RMF\0\0\0 RealMedia file
130 !:mime application/vnd.rn-realmedia
131 #video/x-pn-realvideo
132 #video/vnd.rn-realvideo
133 #!/bin/sh /usr/share/dpatch/dpatch-run
134 ## 209-magic-update-os2.dpatch
136 ## DP: Update OS/2 REXX magic.
140 diff -Naurp file.orig/magic/Magdir/msdos file/magic/Magdir/msdos
141 --- file.orig/magic/Magdir/msdos 2008-06-13 09:44:56.000000000 +0200
142 +++ file/magic/Magdir/msdos 2008-06-13 09:51:35.000000000 +0200
145 # OS/2 batch files are REXX. the second regex is a bit generic, oh well
146 # the matched commands seem to be common in REXX and uncommon elsewhere
147 -100 regex/c =^[\ \t]{0,10}call[\ \t]{1,10}rxfunc OS/2 REXX batch file text
148 -100 regex/c =^[\ \t]{0,10}say\ ['"] OS/2 REXX batch file text
149 +100 search/0xffff rxfuncadd
150 +>100 regex/c =^[\ \t]{0,10}call[\ \t]{1,10}rxfunc OS/2 REXX batch file text
151 +100 search/0xffff say
152 +>100 regex/c =^[\ \t]{0,10}say\ ['"] OS/2 REXX batch file text
154 0 leshort 0x14c MS Windows COFF Intel 80386 object file
155 #>4 ledate x stamp %s
156 #!/bin/sh /usr/share/dpatch/dpatch-run
157 ## 210-magic-update-digifax.dpatch
159 ## DP: Update Digifax magic.
163 diff -Naurp file.orig/magic/Magdir/modem file/magic/Magdir/modem
164 --- file.orig/magic/Magdir/modem 2008-06-13 15:00:30.000000000 +0200
165 +++ file/magic/Magdir/modem 2008-06-13 15:25:40.000000000 +0200
167 # modem: file(1) magic for modem programs
169 # From: Florian La Roche <florian@knorke.saar.de>
170 -4 string Research, Digifax-G3-File
171 ->29 byte 1 , fine resolution
172 ->29 byte 0 , normal resolution
173 +1 string PC\ Research,\ Inc Digifax-G3-File
174 +>29 byte 1 \b, fine resolution
175 +>29 byte 0 \b, normal resolution
177 0 short 0x0100 raw G3 data, byte-padded
178 0 short 0x1400 raw G3 data
179 #!/bin/sh /usr/share/dpatch/dpatch-run
180 ## 211-magic-update-mono.dpatch
182 ## DP: Update Mono magic.
186 diff -Naurp file.orig/magic/Magdir/msdos file/magic/Magdir/msdos
187 --- file.orig/magic/Magdir/msdos 2008-07-02 15:16:52.000000000 +0000
188 +++ file/magic/Magdir/msdos 2008-07-15 13:33:43.000000000 +0000
190 >>&0 leshort 0x290 PA-RISC
191 >>&18 leshort&0x0100 >0 32-bit
192 >>&18 leshort&0x1000 >0 system file
193 +>>&228 lelong >0 \b, Mono/.Net assembly
194 >>&0xf4 search/0x140 \x0\x40\x1\x0
195 >>>(&0.l+(4)) string MSCF \b, WinHKI CAB self-extracting archive
196 >30 string Copyright\ 1989-1990\ PKWARE\ Inc. Self-extracting PKZIP archive
197 #!/bin/sh /usr/share/dpatch/dpatch-run
198 ## 212-magic-update-pfm.dpatch
200 ## DP: Update pfm magic.
204 diff -Naurp file.orig/magic/Magdir/msdos file/magic/Magdir/msdos
205 --- file.orig/magic/Magdir/msdos 2008-07-02 15:16:52.000000000 +0000
206 +++ file/magic/Magdir/msdos 2008-07-15 13:36:26.000000000 +0000
208 # Acroread or something files wrongly identified as G3 .pfm
209 # these have the form \000 \001 any? \002 \000 \000
210 # or \000 \001 any? \022 \000 \000
211 +0 belong&0xffff00ff 0x00010012 PFM data
213 +>6 string >\060 - %s
215 +0 belong&0xffff00ff 0x00010002 PFM data
217 +>6 string >\060 - %s
218 #0 string \000\001 pfm?
219 #>3 string \022\000\000Copyright\ yes
220 #>3 string \002\000\000Copyright\ yes
221 #!/bin/sh /usr/share/dpatch/dpatch-run
222 ## 213-magic-update-ocaml.dpatch by Eric Cooper <ecc@cmu.edu>
224 ## DP: Update ocaml magic (Closes: #488992).
228 diff -Naurp file.orig/magic/Magdir/ocaml file/magic/Magdir/ocaml
229 --- file.orig/magic/Magdir/ocaml 2008-07-15 14:13:20.000000000 +0000
230 +++ file/magic/Magdir/ocaml 2008-07-15 14:13:08.000000000 +0000
233 #------------------------------------------------------------------------------
234 # ocaml: file(1) magic for Objective Caml files.
235 -0 string Caml1999 Objective caml
236 +0 string Caml1999 OCaml
237 >8 string X exec file
238 >8 string I interface file (.cmi)
239 >8 string O object file (.cmo)
241 >8 string Z native library file (.cmxa)
242 >8 string M abstract syntax tree implementation file
243 >8 string N abstract syntax tree interface file
244 ->9 string >\0 (Version %3.3s).
245 +>9 string >\0 (Version %3.3s)
246 #!/bin/sh /usr/share/dpatch/dpatch-run
247 ## 214-magic-update-linuxswap.dpatch by Russell Coker <russell@coker.com.au>
249 ## DP: Adding volume label and UUID support for linux swap (Closes: #489865).
253 diff -Naurp file.orig/magic/Magdir/linux file/magic/Magdir/linux
254 --- file.orig/magic/Magdir/linux 2008-06-04 18:02:25.000000000 +0000
255 +++ file/magic/Magdir/linux 2008-07-15 14:16:43.000000000 +0000
257 # Linux swap file with swsusp1 image, from Jeff Bailey <jbailey@ubuntu.com>
258 4076 string SWAPSPACE2S1SUSPEND Linux/i386 swap file (new style) with SWSUSP1 image
259 # according to man page of mkswap (8) March 1999
260 -4086 string SWAPSPACE2 Linux/i386 swap file (new style)
261 ->0x400 long x %d (4K pages)
262 ->0x404 long x size %d pages
263 ->>4086 string SWAPSPACE2
264 ->>>1052 string >\0 Label %s
265 +# volume label and UUID Russell Coker
266 +# http://etbe.coker.com.au/2008/07/08/label-vs-uuid-vs-device/
267 +4086 string SWAPSPACE2 Linux/i386 swap file (new style),
268 +>0x400 long x version %d (4K pages),
269 +>0x404 long x size %d pages,
270 +>1052 string \0 no label,
271 +>1052 string >\0 LABEL=%s,
272 +>0x40c belong x UUID=%x
273 +>0x410 beshort x \b-%x
274 +>0x412 beshort x \b-%x
275 +>0x414 beshort x \b-%x
276 +>0x416 belong x \b-%x
277 +>0x41a beshort x \b%x
278 # ECOFF magic for OSF/1 and Linux (only tested under Linux though)
280 # from Erik Troan (ewt@redhat.com) examining od dumps, so this
281 #!/bin/sh /usr/share/dpatch/dpatch-run
282 ## 215-magic-update-linuxext.dpatch by Russell Coker <russell@coker.com.au>
284 ## DP: Adding volume label and UUID support for linux ext (Closes: #489865).
288 diff -Naurp file.orig/magic/Magdir/filesystems file/magic/Magdir/filesystems
289 --- file.orig/magic/Magdir/filesystems 2008-07-02 13:47:23.000000000 +0000
290 +++ file/magic/Magdir/filesystems 2008-07-15 14:21:39.000000000 +0000
291 @@ -1027,6 +1027,8 @@
293 # ext2/ext3 filesystems - Andreas Dilger <adilger@dilger.ca>
294 # ext4 filesystem - Eric Sandeen <sandeen@sandeen.net>
295 +# volume label and UUID Russell Coker
296 +# http://etbe.coker.com.au/2008/07/08/label-vs-uuid-vs-device/
297 0x438 leshort 0xEF53 Linux
298 >0x44c lelong x rev %d
299 >0x43e leshort x \b.%d
300 @@ -1042,25 +1044,32 @@
301 # else large RO_COMPAT?
302 >>>0x464 lelong >0x0000007 ext4 filesystem data
303 # else large INCOMPAT?
304 ->>0x460 lelong >0x000003f ext4 filesystem data
305 +>>0x460 lelong >0x000003f ext4 filesystem data
306 +>0x468 belong x \b, UUID=%x
307 +>0x46c beshort x \b-%x
308 +>0x46e beshort x \b-%x
309 +>0x470 beshort x \b-%x
310 +>0x472 belong x \b-%x
311 +>0x476 beshort x \b%x
312 +>0x478 string >0 \b, volume name "%s"
313 # General flags for any ext* fs
314 ->0x460 lelong &0x0000004 (needs journal recovery)
315 ->0x43a leshort &0x0000002 (errors)
316 +>0x460 lelong &0x0000004 (needs journal recovery)
317 +>0x43a leshort &0x0000002 (errors)
319 ->0x460 lelong &0x0000001 (compressed)
320 -#>0x460 lelong &0x0000002 (filetype)
321 -#>0x460 lelong &0x0000010 (meta bg)
322 ->0x460 lelong &0x0000040 (extents)
323 ->0x460 lelong &0x0000080 (64bit)
324 -#>0x460 lelong &0x0000100 (mmp)
325 -#>0x460 lelong &0x0000200 (flex bg)
326 +>0x460 lelong &0x0000001 (compressed)
327 +#>0x460 lelong &0x0000002 (filetype)
328 +#>0x460 lelong &0x0000010 (meta bg)
329 +>0x460 lelong &0x0000040 (extents)
330 +>0x460 lelong &0x0000080 (64bit)
331 +#>0x460 lelong &0x0000100 (mmp)
332 +#>0x460 lelong &0x0000200 (flex bg)
334 -#>0x464 lelong &0x0000001 (sparse super)
335 ->0x464 lelong &0x0000002 (large files)
336 ->0x464 lelong &0x0000008 (huge files)
337 -#>0x464 lelong &0x0000010 (gdt checksum)
338 -#>0x464 lelong &0x0000020 (many subdirs)
339 -#>0x463 lelong &0x0000040 (extra isize)
340 +#>0x464 lelong &0x0000001 (sparse super)
341 +>0x464 lelong &0x0000002 (large files)
342 +>0x464 lelong &0x0000008 (huge files)
343 +#>0x464 lelong &0x0000010 (gdt checksum)
344 +#>0x464 lelong &0x0000020 (many subdirs)
345 +#>0x463 lelong &0x0000040 (extra isize)
347 # SGI disk labels - Nathan Scott <nathans@debian.org>
348 0 belong 0x0BE5A941 SGI disk label (volume header)
349 #!/bin/sh /usr/share/dpatch/dpatch-run
350 ## 318-magic-add-par2.dpatch by Daniel van Eeden <daniel_e@dds.nl>
352 ## DP: New magic for PAR2 archive files (Closes: #294070).
356 diff -Naurp file-4.24.orig/magic/Magdir/archive file-4.24/magic/Magdir/archive
357 --- file-4.24.orig/magic/Magdir/archive 2008-02-28 18:57:34.000000000 +0000
358 +++ file-4.24/magic/Magdir/archive 2008-04-07 08:05:47.000000000 +0000
360 >24 belong 1 SHA-1 checksum
361 >24 belong 2 MD5 checksum
363 +# Type: Parity Archive
364 +# From: Daniel van Eeden <daniel_e@dds.nl>
365 +0 string PAR2 Parity Archive Volume Set
366 #!/bin/sh /usr/share/dpatch/dpatch-run
367 ## 319-magic-add-pe5.dpatch by Simon Horman <horms@debian.org>
369 ## DP: New magic for the Ulead Photo Explorer5 image format (Closes: #339397).
373 diff -Naurp file.orig/magic/Magdir/images file/magic/Magdir/images
374 --- file.orig/magic/Magdir/images 2008-07-02 15:16:52.000000000 +0000
375 +++ file/magic/Magdir/images 2008-07-15 13:39:37.000000000 +0000
377 # JPEG 2000 Code Stream Bitmap
378 # From Petr Splichal <psplicha@redhat.com>
379 0 string \xFF\x4F\xFF\x51\x00 JPEG-2000 Code Stream Bitmap data
381 +# Type: Ulead Photo Explorer5 (.pe5)
382 +# URL: http://www.jisyo.com/cgibin/view.cgi?EXT=pe5 (Japanese)
383 +# From: Simon Horman <horms@debian.org>
384 +0 string IIO2H Ulead Photo Explorer5
386 #!/bin/sh /usr/share/dpatch/dpatch-run
387 ## 320-magic-add-pmenu.dpatch by Edward Betts <edward@debian.org>
389 ## DP: New magic for pmenu (Closes: #38543).
393 diff -Naurp file-4.23.orig/magic/Magdir/commands file-4.23/magic/Magdir/commands
394 --- file-4.23.orig/magic/Magdir/commands 2007-06-01 19:40:26.000000000 +0000
395 +++ file-4.23/magic/Magdir/commands 2008-01-12 17:34:41.000000000 +0000
397 0 string Zend\x00 PHP script Zend Optimizer data
399 0 string $! DCL command file
402 +# URL: http://packages.debian.org/pdmenu
403 +# From: Edward Betts <edward@debian.org>
404 +0 string #!/usr/bin/pdmenu Pdmenu configuration file text
405 #!/bin/sh /usr/share/dpatch/dpatch-run
406 ## 321-magic-add-powertab.dpatch by Jelmer Vernooij <jelmer@samba.org>
408 ## DP: New magic for Power-Tab
412 diff -Naur file-4.20.orig/magic/Magdir/chord file-4.20/magic/Magdir/chord
413 --- file-4.20.orig/magic/Magdir/chord 2003-03-24 14:48:32.000000000 +0000
414 +++ file-4.20/magic/Magdir/chord 2007-05-17 16:33:26.000000000 +0000
417 0 string {title Chord text file
419 +# Type: PowerTab file format
420 +# URL: http://www.power-tab.net/
421 +# From: Jelmer Vernooij <jelmer@samba.org>
422 +0 string ptab\003\000 Power-Tab v3 Tablature File
423 +0 string ptab\004\000 Power-Tab v4 Tablature File
424 #!/bin/sh /usr/share/dpatch/dpatch-run
425 ## 322-magic-add-scummvm.dpatch by Sven Hartge <debian@ds9.argh.org>
427 ## DP: New magic for scummVM savegame files (Closes: #263488).
431 diff -Naurp file-4.23.orig/magic/Magdir/console file-4.23/magic/Magdir/console
432 --- file-4.23.orig/magic/Magdir/console 2007-09-26 20:22:31.000000000 +0000
433 +++ file-4.23/magic/Magdir/console 2008-01-12 17:36:55.000000000 +0000
436 0 string HM3W Warcraft III map file
438 +# Type: scummVM savegame files
439 +# From: Sven Hartge <debian@ds9.argh.org>
440 +0 string SCVM scummVM savegame
442 #!/bin/sh /usr/share/dpatch/dpatch-run
443 ## 323-magic-add-sgf.dpatch by Eduardo Sabbatella <eduardo_sabbatella@yahoo.com.ar>
445 ## DP: New magic for SGF Smart Game Format
449 diff -Naurp file.orig/magic/Magdir/games file/magic/Magdir/games
450 --- file.orig/magic/Magdir/games 2008-04-23 19:00:59.000000000 +0000
451 +++ file/magic/Magdir/games 2008-07-15 13:41:19.000000000 +0000
453 >&0 string n\ NetImmerse game engine file
454 >>&0 regex [0-9a-z.]+ \b, version %s
456 +# Type: SGF Smart Game Format
457 +# URL: http://www.red-bean.com/sgf/
458 +# From: Eduardo Sabbatella <eduardo_sabbatella@yahoo.com.ar>
459 +2 regex/c \\(;.*GM\\[[0-9]{1,2}\\] Smart Game Format
460 +>2 regex/c GM\\[1\\] - Go Game
461 +>2 regex/c GM\\[6\\] - BackGammon Game
462 +>2 regex/c GM\\[11\\] - Hex Game
463 +>2 regex/c GM\\[18\\] - Amazons Game
464 +>2 regex/c GM\\[19\\] - Octi Game
465 +>2 regex/c GM\\[20\\] - Gess Game
466 +>2 regex/c GM\\[21\\] - twix Game
467 #!/bin/sh /usr/share/dpatch/dpatch-run
468 ## 323-magic-add-sisu.dpatch by Ralph Amissah <ralph.amissah@gmail.com>
470 ## DP: New magic for SiSU Markup Language.
474 diff -Naurp file-4.24.orig/magic/Magdir/sisu file-4.24/magic/Magdir/sisu
475 --- file-4.24.orig/magic/Magdir/sisu 1970-01-01 00:00:00.000000000 +0000
476 +++ file-4.24/magic/Magdir/sisu 2008-04-07 08:10:25.000000000 +0000
478 +# Type: SiSU Markup Language
479 +# URL: http://www.sisudoc.org/
480 +# From: Ralph Amissah <ralph.amissah@gmail.com>
482 +0 regex \^%?[\ \t]*SiSU[\ \t]+insert SiSU text insert
485 +0 regex \^%[\ \t]+SiSU[\ \t]+master SiSU text master
488 +0 regex \^%?[\ \t]*SiSU[\ \t]+text SiSU text
491 +0 regex \^%?[\ \t]*SiSU[\ \t][0-9.]+ SiSU text
494 +0 regex \^%*[\ \t]*sisu-[0-9.]+ SiSU text
496 diff -Naurp file-4.24.orig/magic/Makefile.am file-4.24/magic/Makefile.am
497 --- file-4.24.orig/magic/Makefile.am 2008-03-22 21:41:00.000000000 +0000
498 +++ file-4.24/magic/Makefile.am 2008-04-07 08:11:04.000000000 +0000
499 @@ -170,6 +170,7 @@ $(MAGIC_FRAGMENT_DIR)/sgi \
500 $(MAGIC_FRAGMENT_DIR)/sgml \
501 $(MAGIC_FRAGMENT_DIR)/sharc \
502 $(MAGIC_FRAGMENT_DIR)/sinclair \
503 +$(MAGIC_FRAGMENT_DIR)/sisu \
504 $(MAGIC_FRAGMENT_DIR)/sketch \
505 $(MAGIC_FRAGMENT_DIR)/smalltalk \
506 $(MAGIC_FRAGMENT_DIR)/sniffer \
507 diff -Naurp file-4.24.orig/magic/Makefile.in file-4.24/magic/Makefile.in
508 --- file-4.24.orig/magic/Makefile.in 2008-03-22 21:41:06.000000000 +0000
509 +++ file-4.24/magic/Makefile.in 2008-04-07 08:11:10.000000000 +0000
510 @@ -330,6 +330,7 @@ $(MAGIC_FRAGMENT_DIR)/sgi \
511 $(MAGIC_FRAGMENT_DIR)/sgml \
512 $(MAGIC_FRAGMENT_DIR)/sharc \
513 $(MAGIC_FRAGMENT_DIR)/sinclair \
514 +$(MAGIC_FRAGMENT_DIR)/sisu \
515 $(MAGIC_FRAGMENT_DIR)/sketch \
516 $(MAGIC_FRAGMENT_DIR)/smalltalk \
517 $(MAGIC_FRAGMENT_DIR)/sniffer \
518 #!/bin/sh /usr/share/dpatch/dpatch-run
519 ## 324-magic-add-snes.dpatch by Josh Triplett <josh@freedesktop.org>
521 ## DP: New magic for SNES SPC700 sound files (Closes: #410847).
525 diff -Naur file-4.21.orig/magic/Magdir/audio file-4.21/magic/Magdir/audio
526 --- file-4.21.orig/magic/Magdir/audio 2007-12-23 17:32:42.000000000 +0000
527 +++ file-4.21/magic/Magdir/audio 2007-12-23 17:33:57.000000000 +0000
530 >122 byte&0x1 =0 NTSC
532 +# Type: SNES SPC700 sound files
533 +# From: Josh Triplett <josh@freedesktop.org>
534 +0 string SNES-SPC700\ Sound\ File\ Data\ v SNES SPC700 sound file
535 +>&0 string 0.30 \b, version %s
536 +>>0x23 byte 0x1B \b, without ID666 tag
537 +>>0x23 byte 0x1A \b, with ID666 tag
538 +>>>0x2E string >\0 \b, song "%.32s"
539 +>>>0x4E string >\0 \b, game "%.32s"
541 # Impulse tracker module (audio/x-it)
542 0 string IMPM Impulse Tracker module sound data -
544 #!/bin/sh /usr/share/dpatch/dpatch-run
545 ## 325-magic-add-ssl.dpatch by Nicolas Collignon <tsointsoin@gmail.com>
547 ## DP: New magic for OpenSSH key files (Closes: #439537).
551 diff -Naur file-4.21.orig/magic/Magdir/ssh file-4.21/magic/Magdir/ssh
552 --- file-4.21.orig/magic/Magdir/ssh 1970-01-01 00:00:00.000000000 +0000
553 +++ file-4.21/magic/Magdir/ssh 2007-08-26 08:25:03.000000000 +0000
555 +# Type: OpenSSH key files
556 +# From: Nicolas Collignon <tsointsoin@gmail.com>
558 +0 string SSH\ PRIVATE\ KEY OpenSSH RSA1 private key,
559 +>28 string >\0 version %s
561 +0 string ssh-dss\ OpenSSH DSA public key
562 +0 string ssh-rsa\ OpenSSH RSA public key
563 #!/bin/sh /usr/share/dpatch/dpatch-run
564 ## 325-magic-add-ssl.dpatch by Nicolas Collignon <tsointsoin@gmail.com>
566 ## DP: New magic for OpenSSL certificates/key files (Closes: #439537).
570 diff -Naur file-4.21.orig/magic/Magdir/ssl file-4.21/magic/Magdir/ssl
571 --- file-4.21.orig/magic/Magdir/ssl 1970-01-01 00:00:00.000000000 +0000
572 +++ file-4.21/magic/Magdir/ssl 2007-08-26 08:27:04.000000000 +0000
574 +# Type: OpenSSL certificates/key files
575 +# From: Nicolas Collignon <tsointsoin@gmail.com>
577 +0 string -----BEGIN\ CERTIFICATE----- PEM certificate
578 +0 string -----BEGIN\ CERTIFICATE\ REQ PEM certificate request
579 +0 string -----BEGIN\ RSA\ PRIVATE PEM RSA private key
580 +0 string -----BEGIN\ DSA\ PRIVATE PEM DSA private key
581 #!/bin/sh /usr/share/dpatch/dpatch-run
582 ## 325-magic-add-subversion.dpatch by Michael Piefel <piefel@debian.org>
584 ## DP: New magic for SVN dumps (closes: #256652).
588 diff -Naur file-4.21.orig/magic/Magdir/revision file-4.21/magic/Magdir/revision
589 --- file-4.21.orig/magic/Magdir/revision 2007-12-23 17:25:39.000000000 +0000
590 +++ file-4.21/magic/Magdir/revision 2007-12-23 17:26:34.000000000 +0000
592 0 string HG10 Mercurial bundle,
593 >4 string UN uncompressed
594 >4 string BZ bzip2 compressed
596 +# Type: Subversion (SVN) dumps
597 +# From: Uwe Zeisberger <zeisberg@informatik.uni-freiburg.de>
598 +0 string SVN-fs-dump-format-version: Subversion dumpfile
599 +>28 string >\0 (version: %s)
600 #!/bin/sh /usr/share/dpatch/dpatch-run
601 ## 326-magic-add-supercollider.dpatch by Mario Lang <mlang@debian.org>
603 ## DP: Adds new magic for SuperCollider 3 Synth Definition File Format
604 ## DP: (Closes: #284803).
608 diff -Naurp file-4.23.orig/magic/Magdir/audio file-4.23/magic/Magdir/audio
609 --- file-4.23.orig/magic/Magdir/audio 2008-01-12 17:39:01.000000000 +0000
610 +++ file-4.23/magic/Magdir/audio 2008-01-12 17:38:49.000000000 +0000
612 # URL: http://filext.com/detaillist.php?extdetail=AMR
613 # From: Russell Coker <russell@coker.com.au>
614 0 string #!AMR Adaptive Multi-Rate Codec (GSM telephony)
616 +# Type: SuperCollider 3 Synth Definition File Format
617 +# From: Mario Lang <mlang@debian.org>
618 +0 string SCgf SuperCollider3 Synth Definition file,
619 +>4 belong x version %d
620 #!/bin/sh /usr/share/dpatch/dpatch-run
621 ## 328-magic-add-xen.dpatch by Radek Vokal <rvokal@redhat.com>
623 ## DP: xen patch, recognizes Xen saved domain
627 diff -Naurp file-4.23.orig/magic/Magdir/linux file-4.23/magic/Magdir/linux
628 --- file-4.23.orig/magic/Magdir/linux 2008-01-12 17:47:04.000000000 +0000
629 +++ file-4.23/magic/Magdir/linux 2008-01-12 17:46:42.000000000 +0000
632 >168 string x UUID: %s
634 +# Type: Xen, the virtual machine monitor
635 +# From: Radek Vokal <rvokal@redhat.com>
636 +0 string LinuxGuestRecord Xen saved domain
637 +#>2 regex \(name\ [^)]*\) %s
638 +>20 search/256 (name (name
639 +>>&1 string x %s...)
640 #!/bin/sh /usr/share/dpatch/dpatch-run
641 ## 331-magic-add-xcursor.dpatch by Mathias Brodala <info@noctus.net>
643 ## DP: New magic for X11 cursor files (Closes: #451246).
647 diff -Naur file-4.21.orig/magic/Magdir/images file-4.21/magic/Magdir/images
648 --- file-4.21.orig/magic/Magdir/images 2007-12-23 17:40:53.000000000 +0000
649 +++ file-4.21/magic/Magdir/images 2007-12-23 17:40:46.000000000 +0000
651 # From: Simon Horman <horms@debian.org>
652 0 string IIO2H Ulead Photo Explorer5
655 +# URL: http://webcvs.freedesktop.org/mime/shared-mime-info/freedesktop.org.xml.in?view=markup
656 +# From: Mathias Brodala <info@noctus.net>
657 +0 string Xcur X11 cursor
659 #!/bin/sh /usr/share/dpatch/dpatch-run
660 ## 335-magic-add-freemind.dpatch by Jamie Thompson <debian-bugs@jamie-thompson.co.uk>
662 ## DP: New magic for Freemind (Closes: #472385).
666 diff -Naurp file.orig/magic/Magdir/wordprocessors file/magic/Magdir/wordprocessors
667 --- file.orig/magic/Magdir/wordprocessors 2008-05-04 14:12:49.000000000 +0000
668 +++ file/magic/Magdir/wordprocessors 2008-05-04 14:18:38.000000000 +0000
671 >43 byte 0x16 Just System Word Processor Ichitaro v6
672 !:mime application/x-ichitaro6
674 +# Type: Freemind mindmap documents
675 +# From: Jamie Thompson <debian-bugs@jamie-thompson.co.uk>
676 +0 string/cB \<map\ version Freemind document
677 +!:mime application/x-freemind
678 #!/bin/sh /usr/share/dpatch/dpatch-run
679 ## 336-magic-add-qdmb.dpatch by Benoit Sibaud <bsibaud@april.org>
681 ## DP: New magic for QDBM Quick Database Manager (Closes: #481717).
685 diff -Naurp file-4.24.orig/magic/Magdir/database file-4.24/magic/Magdir/database
686 --- file-4.24.orig/magic/Magdir/database 2008-05-04 14:12:49.000000000 +0000
687 +++ file-4.24/magic/Magdir/database 2008-05-21 09:07:49.000000000 +0000
689 # URL: http://www.grc.nasa.gov/WWW/cgns/adf/
690 # From: Nicolas Chauvat <nicolas.chauvat@logilab.fr>
691 0 string @(#)ADF\ Database CGNS Advanced Data Format
693 +# Type: QDBM Quick Database Manager
694 +# From: Benoit Sibaud <bsibaud@april.org>
695 +0 string \\[depot\\]\n\f Quick Database Manager, little endian
696 +0 string \\[DEPOT\\]\n\f Quick Database Manager, big endian
697 #!/bin/sh /usr/share/dpatch/dpatch-run
698 ## 337-magic-add-tokyocabinet.dpatch by Benoit Sibaud <bsibaud@april.org>
700 ## DP: New magic for TokyoCabinet database (Closes: #481768).
704 diff -Naurp file-4.24.orig/magic/Magdir/database file-4.24/magic/Magdir/database
705 --- file-4.24.orig/magic/Magdir/database 2008-05-21 09:07:49.000000000 +0000
706 +++ file-4.24/magic/Magdir/database 2008-05-21 09:15:26.000000000 +0000
708 # From: Benoit Sibaud <bsibaud@april.org>
709 0 string \\[depot\\]\n\f Quick Database Manager, little endian
710 0 string \\[DEPOT\\]\n\f Quick Database Manager, big endian
712 +# Type: TokyoCabinet database
713 +# URL: http://tokyocabinet.sourceforge.net/
714 +# From: Benoit Sibaud <bsibaud@april.org>
715 +0 string ToKyO\ CaBiNeT\n TokyoCabinet database
716 +>14 string x (version %s)
717 #!/bin/sh /usr/share/dpatch/dpatch-run
718 ## 338-magic-add-cromfs.dpatch by Werner Fink <werner@suse.de>
720 ## DP: Adds new magic for CROM filesystem.
724 diff -Naurp file.orig/magic/Magdir/filesystems file/magic/Magdir/filesystems
725 --- file.orig/magic/Magdir/filesystems 2008-07-02 13:47:23.000000000 +0000
726 +++ file/magic/Magdir/filesystems 2008-07-15 13:43:26.000000000 +0000
727 @@ -1327,3 +1327,15 @@
729 # From: "Nelson A. de Oliveira" <naoliv@gmail.com>
730 0 string *dvdisaster* dvdisaster error correction file
732 +# Type: CROM filesystem
733 +# From: Werner Fink <werner@suse.de>
734 +0 string CROMFS CROMFS
735 +>6 string >\0 \b version %2.2s,
736 +>8 ulequad >0 \b block data at %lld,
737 +>16 ulequad >0 \b fblock table at %lld,
738 +>24 ulequad >0 \b inode table at %lld,
739 +>32 ulequad >0 \b root at %lld,
740 +>40 ulelong >0 \b fblock size = %ld,
741 +>44 ulelong >0 \b block size = %ld,
742 +>48 ulequad >0 \b bytes = %lld
743 #!/bin/sh /usr/share/dpatch/dpatch-run
744 ## 339-magic-add-scribus.dpatch by Werner Fink <werner@suse.de>
746 ## DP: Adds new magics for Scribus.
750 diff -Naurp file-4.24.orig/magic/Magdir/wordprocessors file-4.24/magic/Magdir/wordprocessors
751 --- file-4.24.orig/magic/Magdir/wordprocessors 2008-05-21 09:49:43.000000000 +0000
752 +++ file-4.24/magic/Magdir/wordprocessors 2008-05-21 09:50:54.000000000 +0000
754 # From: Jamie Thompson <debian-bugs@jamie-thompson.co.uk>
755 0 string/cB \<map\ version Freemind document
756 !:mime application/x-freemind
759 +# From: Werner Fink <werner@suse.de>
760 +0 string \<SCRIBUSUTF8\ Version Scribus Document
761 +0 string \<SCRIBUSUTF8NEW\ Version Scribus Document
762 +!:mime application/x-scribus
763 #!/bin/sh /usr/share/dpatch/dpatch-run
764 ## 339-magic-add-selinux.dpatch by Russell Coker <russell@coker.com.au>
766 ## DP: Adds new magics for SE Linux (Closes: #485886).
770 diff -Naurp file.orig/magic/Magdir/selinux file/magic/Magdir/selinux
771 --- file.orig/magic/Magdir/selinux 1970-01-01 01:00:00.000000000 +0100
772 +++ file/magic/Magdir/selinux 2008-06-13 09:07:24.000000000 +0200
774 +# Type: SE Linux policy modules *.pp reference policy
775 +# for Fedora 5 to 9, RHEL5, and Debian Etch and Lenny.
776 +# URL: http://doc.coker.com.au/computers/selinux-magic
777 +# From: Russell Coker <russell@coker.com.au>
779 +0 lelong 0xf97cff8f SE Linux modular policy
780 +>4 lelong x version %d,
781 +>8 lelong x %d sections,
782 +>>(12.l) lelong 0xf97cff8d
783 +>>>(12.l+27) lelong x mod version %d,
784 +>>>(12.l+31) lelong 0 Not MLS,
785 +>>>(12.l+31) lelong 1 MLS,
786 +>>>(12.l+23) lelong 2
787 +>>>>(12.l+47) string >\0 module name %s
788 +>>>(12.l+23) lelong 1 base
790 +1 string policy_module( SE Linux policy module source
791 +2 string policy_module( SE Linux policy module source
793 +0 string ##\ <summary> SE Linux policy interface source
795 +#0 search gen_context( SE Linux policy file contexts
797 +#0 search gen_sens( SE Linux policy MLS constraints source
798 diff -Naurp file.orig/magic/Makefile.am file/magic/Makefile.am
799 --- file.orig/magic/Makefile.am 2008-06-13 09:07:45.000000000 +0200
800 +++ file/magic/Makefile.am 2008-06-13 09:08:16.000000000 +0200
801 @@ -164,6 +164,7 @@ $(MAGIC_FRAGMENT_DIR)/sc \
802 $(MAGIC_FRAGMENT_DIR)/sccs \
803 $(MAGIC_FRAGMENT_DIR)/scientific \
804 $(MAGIC_FRAGMENT_DIR)/securitycerts \
805 +$(MAGIC_FRAGMENT_DIR)/selinux \
806 $(MAGIC_FRAGMENT_DIR)/sendmail \
807 $(MAGIC_FRAGMENT_DIR)/sequent \
808 $(MAGIC_FRAGMENT_DIR)/sgi \
809 diff -Naurp file.orig/magic/Makefile.in file/magic/Makefile.in
810 --- file.orig/magic/Makefile.in 2008-06-13 09:07:45.000000000 +0200
811 +++ file/magic/Makefile.in 2008-06-13 09:08:23.000000000 +0200
812 @@ -324,6 +324,7 @@ $(MAGIC_FRAGMENT_DIR)/sc \
813 $(MAGIC_FRAGMENT_DIR)/sccs \
814 $(MAGIC_FRAGMENT_DIR)/scientific \
815 $(MAGIC_FRAGMENT_DIR)/securitycerts \
816 +$(MAGIC_FRAGMENT_DIR)/selinux \
817 $(MAGIC_FRAGMENT_DIR)/sendmail \
818 $(MAGIC_FRAGMENT_DIR)/sequent \
819 $(MAGIC_FRAGMENT_DIR)/sgi \
820 #!/bin/sh /usr/share/dpatch/dpatch-run
821 ## 341-magic-add-bzr.dpatch by Jelmer Vernooij <jelmer@samba.org>
823 ## DP: Adds new magics for bzr (Closes: #488742).
827 diff -Naurp file.orig/magic/Magdir/revision file/magic/Magdir/revision
828 --- file.orig/magic/Magdir/revision 2008-07-01 15:42:16.000000000 +0200
829 +++ file/magic/Magdir/revision 2008-07-01 15:43:34.000000000 +0200
831 # From: Uwe Zeisberger <zeisberg@informatik.uni-freiburg.de>
832 0 string SVN-fs-dump-format-version: Subversion dumpfile
833 >28 string >\0 (version: %s)
835 +# Type: Bazaar revision bundles and merge requests
836 +# URL: http://www.bazaar-vcs.org/
837 +# From: Jelmer Vernooij <jelmer@samba.org>
838 +0 string #\ Bazaar\ revision\ bundle\ v Bazaar Bundle
839 +0 string #\ Bazaar\ merge\ directive\ format Bazaar merge directive