source: clfs-sysroot/BOOK/final-system/common/file.xml

Last change on this file was 42910b8, checked in by Joe Ciccone <jciccone@…>, 15 years ago

Updated Less to 429.
Updated File to 5.03.

  • Property mode set to 100644
File size: 2.9 KB
Line 
1<?xml version="1.0" encoding="ISO-8859-1"?>
2<!DOCTYPE sect1 PUBLIC "-//OASIS//DTD DocBook XML V4.5//EN"
3 "http://www.oasis-open.org/docbook/xml/4.5/docbookx.dtd" [
4 <!ENTITY % general-entities SYSTEM "../../general.ent">
5 %general-entities;
6]>
7
8<sect1 id="ch-system-file" role="wrap">
9 <?dbhtml filename="file.html"?>
10
11 <title>File-&file-version;</title>
12
13 <indexterm zone="ch-system-file">
14 <primary sortas="a-File">File</primary>
15 </indexterm>
16
17 <sect2 role="package">
18 <title/>
19
20 <para>The File package contains a utility for determining the type of
21 a given file or files.</para>
22
23 </sect2>
24
25 &env-target;
26
27 <sect2 role="installation">
28 <title>Installation of File</title>
29
30 <para os="ap1">The following patch will fix a compile issue that would prevent
31 a proper creation of the <filename>magic.mgc</filename> file. This would
32 show up as an error messsage.
33 <computeroutput>ERROR: file: File &file-version; supports only 6 version
34 magic files. `/tools/share/file/magic.mgc' is version 2</computeroutput>:</para>
35
36<screen os="ap2"><userinput>patch -Np1 -i ../&file-cross_compile-patch;</userinput></screen>
37
38 <para os="a">Prepare File for compilation:</para>
39
40<screen os="b"><userinput>./configure --build=${CLFS_HOST} --host=${CLFS_TARGET} \
41 --prefix=/usr</userinput></screen>
42
43 <para os="c">Compile the package:</para>
44
45<screen os="d"><userinput>make</userinput></screen>
46
47 <para os="e">Install the package:</para>
48
49<screen os="f"><userinput>make DESTDIR=${CLFS} install</userinput></screen>
50
51 </sect2>
52
53 <sect2 id="contents-file" role="content">
54 <title>Contents of File</title>
55
56 <segmentedlist>
57 <segtitle>Installed programs</segtitle>
58 <segtitle>Installed library</segtitle>
59
60 <seglistitem>
61 <seg>file</seg>
62 <seg>libmagic.[a,so]</seg>
63 </seglistitem>
64 </segmentedlist>
65
66 <variablelist>
67 <bridgehead renderas="sect3">Short Descriptions</bridgehead>
68 <?dbfo list-presentation="list"?>
69 <?dbhtml list-presentation="table"?>
70
71 <varlistentry id="file">
72 <term><command>file</command></term>
73 <listitem>
74 <para>Tries to classify each given file; it does this by performing
75 several tests&mdash;file system tests, magic number tests, and
76 language tests</para>
77 <indexterm zone="ch-system-file file">
78 <primary sortas="b-file">file</primary>
79 </indexterm>
80 </listitem>
81 </varlistentry>
82
83 <varlistentry id="libmagic">
84 <term><filename class="libraryfile">libmagic</filename></term>
85 <listitem>
86 <para>Contains routines for magic number recognition, used by the
87 <command>file</command> program</para>
88 <indexterm zone="ch-system-file libmagic">
89 <primary sortas="c-libmagic">libmagic</primary>
90 </indexterm>
91 </listitem>
92 </varlistentry>
93
94 </variablelist>
95
96 </sect2>
97
98</sect1>
Note: See TracBrowser for help on using the repository browser.