source: clfs-sysroot/BOOK/final-system/common/gzip.xml @ 12e6567

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

Added a sysroot wrapper.
Updated the build variables section of the book, each package uses its own.

  • Property mode set to 100644
File size: 7.2 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-gzip" role="wrap">
9  <?dbhtml filename="gzip.html"?>
10
11  <title>Gzip-&gzip-version;</title>
12
13  <indexterm zone="ch-system-gzip">
14    <primary sortas="a-Gzip">Gzip</primary>
15  </indexterm>
16
17  <sect2 role="package">
18    <title/>
19
20    <para>The Gzip package contains programs for compressing and decompressing
21    files.</para>
22
23  </sect2>
24
25  &env-target;
26
27  <sect2 role="installation">
28    <title>Installation of Gzip</title>
29
30    <para os="s1">The following command renames the internal implementation of
31    futimens to gl_futimens as newer versions of Glibc provide an incompatible
32    version:</para>
33
34<screen os="s2"><userinput>for file in $(grep -lr futimens *); do
35  cp -v ${file}{,.orig}
36  sed -e "s/futimens/gl_&amp;/" ${file}.orig &gt; ${file}
37done</userinput></screen>
38
39    <para os="a">Prepare Gzip for compilation:</para>
40
41<screen os="b"><userinput>./configure --build=${CLFS_HOST} --host=${CLFS_TARGET} \
42    --prefix=/usr --bindir=/bin</userinput></screen>
43
44    <para os="c">Compile the package:</para>
45
46<screen os="d"><userinput>make</userinput></screen>
47
48    <para os="e">Install the package:</para>
49
50<screen os="f"><userinput>make DESTDIR=${CLFS} install</userinput></screen>
51
52    <para os="g">Now we will move some of utilities to /usr/bin to meet FHS compliance:</para>
53
54<screen os="h"><userinput>mv ${CLFS}/bin/z{egrep,cmp,diff,fgrep,force,grep,less,more,new} \
55    ${CLFS}/usr/bin</userinput></screen>
56
57  </sect2>
58
59  <sect2 id="contents-gzip" role="content">
60    <title>Contents of Gzip</title>
61
62    <segmentedlist>
63      <segtitle>Installed programs</segtitle>
64
65      <seglistitem>
66        <seg>gunzip, gzexe, gzip, uncompress, zcat, zcmp, zdiff,
67        zegrep, zfgrep, zforce, zgrep, zless, zmore, and znew</seg>
68      </seglistitem>
69    </segmentedlist>
70
71    <variablelist>
72      <bridgehead renderas="sect3">Short Descriptions</bridgehead>
73      <?dbfo list-presentation="list"?>
74      <?dbhtml list-presentation="table"?>
75
76      <varlistentry id="gunzip">
77        <term><command>gunzip</command></term>
78        <listitem>
79          <para>Decompresses gzipped files</para>
80          <indexterm zone="ch-system-gzip gunzip">
81            <primary sortas="b-gunzip">gunzip</primary>
82          </indexterm>
83        </listitem>
84      </varlistentry>
85
86      <varlistentry id="gzexe">
87        <term><command>gzexe</command></term>
88        <listitem>
89          <para>Creates self-decompressing executable files</para>
90          <indexterm zone="ch-system-gzip gzexe">
91            <primary sortas="b-gzexe">gzexe</primary>
92          </indexterm>
93        </listitem>
94      </varlistentry>
95
96      <varlistentry id="gzip">
97        <term><command>gzip</command></term>
98        <listitem>
99          <para>Compresses the given files using Lempel-Ziv (LZ77) coding</para>
100          <indexterm zone="ch-system-gzip gzip">
101            <primary sortas="b-gzip">gzip</primary>
102          </indexterm>
103        </listitem>
104      </varlistentry>
105
106      <varlistentry id="uncompress">
107        <term><command>uncompress</command></term>
108        <listitem>
109          <para>Decompresses compressed files</para>
110          <indexterm zone="ch-system-gzip uncompress">
111            <primary sortas="b-uncompress">uncompress</primary>
112          </indexterm>
113        </listitem>
114      </varlistentry>
115
116      <varlistentry id="zcat">
117        <term><command>zcat</command></term>
118        <listitem>
119          <para>Decompresses the given gzipped files to standard output</para>
120          <indexterm zone="ch-system-gzip zcat">
121            <primary sortas="b-zcat">zcat</primary>
122          </indexterm>
123        </listitem>
124      </varlistentry>
125
126      <varlistentry id="zcmp">
127        <term><command>zcmp</command></term>
128        <listitem>
129          <para>Runs <command>cmp</command> on gzipped files</para>
130          <indexterm zone="ch-system-gzip zcmp">
131            <primary sortas="b-zcmp">zcmp</primary>
132          </indexterm>
133        </listitem>
134      </varlistentry>
135
136      <varlistentry id="zdiff">
137        <term><command>zdiff</command></term>
138        <listitem>
139          <para>Runs <command>diff</command> on gzipped files</para>
140          <indexterm zone="ch-system-gzip zdiff">
141            <primary sortas="b-zdiff">zdiff</primary>
142          </indexterm>
143        </listitem>
144      </varlistentry>
145
146      <varlistentry id="zegrep">
147        <term><command>zegrep</command></term>
148        <listitem>
149          <para>Runs <command>egrep</command> on gzipped files</para>
150          <indexterm zone="ch-system-gzip zegrep">
151            <primary sortas="b-zegrep">zegrep</primary>
152          </indexterm>
153        </listitem>
154      </varlistentry>
155
156      <varlistentry id="zfgrep">
157        <term><command>zfgrep</command></term>
158        <listitem>
159          <para>Runs <command>fgrep</command> on gzipped files</para>
160          <indexterm zone="ch-system-gzip zfgrep">
161            <primary sortas="b-zfgrep">zfgrep</primary>
162          </indexterm>
163        </listitem>
164      </varlistentry>
165
166      <varlistentry id="zforce">
167        <term><command>zforce</command></term>
168        <listitem>
169          <para>Forces a <filename class="extension">.gz</filename> extension on
170          all given files that are gzipped files, so that <command>gzip</command>
171          will not compress them again; this can be useful when file names were
172          truncated during a file transfer</para>
173          <indexterm zone="ch-system-gzip zforce">
174            <primary sortas="b-zforce">zforce</primary>
175          </indexterm>
176        </listitem>
177      </varlistentry>
178
179      <varlistentry id="zgrep">
180        <term><command>zgrep</command></term>
181        <listitem>
182          <para>Runs <command>grep</command> on gzipped files</para>
183          <indexterm zone="ch-system-gzip zgrep">
184            <primary sortas="b-zgrep">zgrep</primary>
185          </indexterm>
186        </listitem>
187      </varlistentry>
188
189      <varlistentry id="zless">
190        <term><command>zless</command></term>
191        <listitem>
192          <para>Runs <command>less</command> on gzipped files</para>
193          <indexterm zone="ch-system-gzip zless">
194            <primary sortas="b-zless">zless</primary>
195          </indexterm>
196        </listitem>
197      </varlistentry>
198
199      <varlistentry id="zmore">
200        <term><command>zmore</command></term>
201        <listitem>
202          <para>Runs <command>more</command> on gzipped files</para>
203          <indexterm zone="ch-system-gzip zmore">
204            <primary sortas="b-zmore">zmore</primary>
205          </indexterm>
206        </listitem>
207      </varlistentry>
208
209      <varlistentry id="znew">
210        <term><command>znew</command></term>
211        <listitem>
212          <para>Re-compresses files from <command>compress</command> format to
213          <command>gzip</command> format&mdash;<filename
214          class="extension">.Z</filename> to <filename
215          class="extension">.gz</filename></para>
216          <indexterm zone="ch-system-gzip znew">
217            <primary sortas="b-znew">znew</primary>
218          </indexterm>
219        </listitem>
220      </varlistentry>
221
222    </variablelist>
223
224  </sect2>
225
226</sect1>
Note: See TracBrowser for help on using the repository browser.