head	1.10;
access;
symbols
	file-4_20:1.9
	rpm-4_4_8-release:1.3.2.3
	rpm-4_4_7-release:1.3.2.3
	rpm-4_4_6-release:1.3.2.3
	rpm-4_4_5-release:1.3.2.3
	rpm-4_4_4-release:1.3.2.3
	rpm-4_4_3-release:1.3.2.3
	file-4_16:1.8
	jbj_before_tklcpatches:1.3.2.1
	rpm-4_4_2-release:1.3.2.1
	file-4_14:1.6
	pjones-sparse-experiment:1.5.0.2
	rpm-4_4_1-release:1.3.2.1
	file-4_12:1.4
	rpm-4_4-release:1.3
	rpm-4_4:1.3.0.2
	file-4_10:1.2
	file-4_09:1.2
	rpm-file-before:1.1
	rpm42-file-before:1.1
	rpm43-file-before:1.1
	rpm-4_3_1-start:1.1
	rpm-4_3:1.1.0.4
	rpm-4_2:1.1.0.2;
locks; strict;
comment	@# @;
expand	@o@;


1.10
date	2007.05.09.20.00.32;	author jbj;	state Exp;
branches;
next	1.9;

1.9
date	2007.05.09.19.38.33;	author jbj;	state Exp;
branches;
next	1.8;

1.8
date	2005.10.31.19.48.57;	author jbj;	state Exp;
branches;
next	1.7;

1.7
date	2005.07.16.21.39.19;	author jbj;	state Exp;
branches;
next	1.6;

1.6
date	2005.07.16.21.06.32;	author jbj;	state Exp;
branches;
next	1.5;

1.5
date	2005.01.02.21.34.41;	author jbj;	state Exp;
branches;
next	1.4;

1.4
date	2005.01.02.21.27.19;	author jbj;	state Exp;
branches;
next	1.3;

1.3
date	2004.10.21.21.18.35;	author jbj;	state Exp;
branches
	1.3.2.1;
next	1.2;

1.2
date	2004.08.03.20.16.18;	author jbj;	state Exp;
branches;
next	1.1;

1.1
date	2003.04.15.17.01.30;	author jbj;	state Exp;
branches
	1.1.2.1
	1.1.4.1;
next	;

1.3.2.1
date	2005.01.03.02.02.55;	author jbj;	state Exp;
branches;
next	1.3.2.2;

1.3.2.2
date	2005.11.01.00.58.40;	author jbj;	state Exp;
branches;
next	1.3.2.3;

1.3.2.3
date	2005.11.02.15.58.50;	author jbj;	state Exp;
branches;
next	1.3.2.4;

1.3.2.4
date	2007.05.10.17.39.22;	author jbj;	state Exp;
branches;
next	;

1.1.2.1
date	2003.12.01.21.20.02;	author jbj;	state Exp;
branches;
next	;

1.1.4.1
date	2004.12.07.00.57.38;	author jbj;	state Exp;
branches;
next	;


desc
@@


1.10
log
@Patches from FC7 file-4.20-1.
@
text
@
#------------------------------------------------------------------------------
# Localstuff:  file(1) magic for locally observed files
#
# $File: Localstuff,v 1.4 2003/03/23 04:17:27 christos Exp $
# Add any locally observed files here.  Remember:
# text if readable, executable if runnable binary, data if unreadable.

# File magic for Xen, the virtual machine monitor for x86
0	string		LinuxGuestRecord	Xen saved domain
#>2	regex		\(name\ [^)]*\)		%s
>20	search/256	(name			(name
>>&1	string		x			%s...)
@


1.9
log
@Virgin file-4.20.
@
text
@d8 6
@


1.8
log
@Update to virgin file-4.16.
@
text
@d5 1
a5 1
# $Id: Localstuff,v 1.4 2003/03/23 04:17:27 christos Exp $
@


1.7
log
@Re-apply FC5 patches.
@
text
@a7 9

# XXX promoted from tex so that *.tfm is not mis-identified as mc68k file.
# 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	TeX font metric data
>33	string		>\0		(%s)
2	string		\000\022	TeX font metric data
>33	string		>\0		(%s)
@


1.6
log
@Update to virgin file-4.14.
@
text
@d8 9
@


1.5
log
@Add RH patches.
@
text
@a7 9

# XXX promoted from tex so that *.tfm is not mis-identified as mc68k file.
# 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	TeX font metric data
>33	string		>\0		(%s)
2	string		\000\022	TeX font metric data
>33	string		>\0		(%s)
@


1.4
log
@Upgrade to file-4.12.
@
text
@d8 9
@


1.3
log
@Compile in the correct path to /usr/lib/rpm/magic.
Add magic for rpm packages and headers.
Add MAGIC_COMPRESS and MAGIC_CHECK to extract types from compressed files.
Permit info and man pages into RPMTAG_FILECLASS.
Package all the Berkeley DB utilities with rpm.
@
text
@a7 31

#
# RPM: file(1) magic for RPM packages and headers
#
0	beshort		0xedab    	
>2	beshort		0xeedb		RPM
>>4	byte		x		v%d package
>>6	beshort		0		bin
>>6	beshort		1		src
>>8	beshort		1		i386
>>8	beshort		2		Alpha
>>8	beshort		3		Sparc
>>8	beshort		4		MIPS
>>8	beshort		5		PPC
>>8	beshort		6		68000
>>8	beshort		7		SGI
>>8	beshort		8		RS6000
>>8	beshort		10		Sparc64
>>8	beshort		11		MIPSEL
>>8	beshort		12		ARM
>>8	beshort		13		m68kmint
>>8	beshort		14		s390
>>8	beshort		15		s390x
>>8	beshort		16		PPC64
>>8	beshort		17		SH
>>8	beshort		18		Xtensa
>>10	string		x		%s

0	beshort		0x8ead
>2	beshort		0xe801		RPM header

@


1.3.2.1
log
@Upgrade to file-4.12 (with RH patches).
@
text
@d9 30
a38 8
# XXX promoted from tex so that *.tfm is not mis-identified as mc68k file.
# 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	TeX font metric data
>33	string		>\0		(%s)
2	string		\000\022	TeX font metric data
>33	string		>\0		(%s)
@


1.3.2.2
log
@- update to file-4.16 internal.
@
text
@d8 9
@


1.3.2.3
log
@Add CLI options to set a trust metric.
@
text
@a7 40

# Decode armored OpenPGP items.
0	string	\055\055\055\055\055BEGIN\040PGP\040	armored OpenPGP
>15	string		MESSAGE\055\055\055\055\055		message
>15	string		PUBLIC\040KEY\040BLOCK\055\055\055\055\055	public key
>15	string		SIGNATURE\055\055\055\055\055	signature
>15	string		SIGNED\040MESSAGE\055\055\055\055\055	signed message
>15	string		ARMORED\040FILE\055\055\055\055\055	file
>15	string		PRIVATE\040KEY\040BLOCK\055\055\055\055\055	private key
>15	string		SECRET\040KEY\040BLOCK\055\055\055\055\055	secret key

# magic for *.la files
0	search/80	.la\ -\ a\ libtool\ library\ file	libtool library file

#------------------------------------------------------------------------------
# RPM: magic for *.rpm packages
#
0	belong		0xedabeedb	RPM
>4	byte		x		v%d
>6	beshort		0		bin
>6	beshort		1		src
>8	beshort		1		i386
>8	beshort		2		alpha
>8	beshort		3		sparc
>8	beshort		4		mips (big endian)
>8	beshort		5		ppc
>8	beshort		6		m68k
>8	beshort		7		sgi
>8	beshort		8		rs6000
>8	beshort		9		ia64
>8	beshort		10		sparc64
>8	beshort		11		mips (little endian)
>8	beshort		12		arm
>8	beshort		13		m68kmint
>8	beshort		14		s390
>8	beshort		15		s390x
>8	beshort		16		ppc64
>8	beshort		17		sh
>8	beshort		18		xtensa
>10	string		x		%s
@


1.3.2.4
log
@Upgrade to file-4.20 internal.
@
text
@d5 1
a5 1
# $File: Localstuff,v 1.4 2003/03/23 04:17:27 christos Exp $
d9 39
a47 5
# File magic for Xen, the virtual machine monitor for x86
0	string		LinuxGuestRecord	Xen saved domain
#>2	regex		\(name\ [^)]*\)		%s
>20	search/256	(name			(name
>>&1	string		x			%s...)
@


1.2
log
@Upgrade to file-4.09.
@
text
@d8 31
@


1.1
log
@Move magic generation to sub-directory.
@
text
@d5 1
a5 1
# Id: Localstuff,v 1.3 1995/01/21 21:09:00 christos Exp 
a7 9

# XXX promoted from tex so that *.tfm is not mis-identified as mc68k file.
# 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	TeX font metric data
>33	string		>\0		(%s)
2	string		\000\022	TeX font metric data
>33	string		>\0		(%s)
@


1.1.4.1
log
@- port to internal file-4.10 libmagic rather than libfmagic.
@
text
@d5 1
a5 1
# $Id: Localstuff,v 1.4 2003/03/23 04:17:27 christos Exp $
d9 8
a16 30
#
# RPM: file(1) magic for RPM packages and headers
#
0	beshort		0xedab    	
>2	beshort		0xeedb		RPM
>>4	byte		x		v%d package
>>6	beshort		0		bin
>>6	beshort		1		src
>>8	beshort		1		i386
>>8	beshort		2		Alpha
>>8	beshort		3		Sparc
>>8	beshort		4		MIPS
>>8	beshort		5		PPC
>>8	beshort		6		68000
>>8	beshort		7		SGI
>>8	beshort		8		RS6000
>>8	beshort		10		Sparc64
>>8	beshort		11		MIPSEL
>>8	beshort		12		ARM
>>8	beshort		13		m68kmint
>>8	beshort		14		s390
>>8	beshort		15		s390x
>>8	beshort		16		PPC64
>>8	beshort		17		SH
>>8	beshort		18		Xtensa
>>10	string		x		%s

0	beshort		0x8ead
>2	beshort		0xe801		RPM header

@


1.1.2.1
log
@Merge from top-of-stack.
@
text
@@

