aboutsummaryrefslogtreecommitdiffstats
path: root/chapter06/gzip-inst.xml
diff options
context:
space:
mode:
authorTimothy Bauscher <timothy@linuxfromscratch.org>2003-01-19 15:36:47 +0000
committerTimothy Bauscher <timothy@linuxfromscratch.org>2003-01-19 15:36:47 +0000
commit99302877e2420aec4721c0be2416c2749361896f (patch)
tree539fbe19c4c1ece43d94bccda5411d229f764677 /chapter06/gzip-inst.xml
parent25ef3c3d776fa5f899311075c462d4333cc7f179 (diff)
Chapter 6 cleanup after conversions.
git-svn-id: http://svn.linuxfromscratch.org/LFS/trunk/BOOK@2392 4aa44e1e-78dd-0310-a6d2-fbcd4c07a689
Diffstat (limited to 'chapter06/gzip-inst.xml')
-rw-r--r--chapter06/gzip-inst.xml44
1 files changed, 18 insertions, 26 deletions
diff --git a/chapter06/gzip-inst.xml b/chapter06/gzip-inst.xml
index 06b9441f9..28d387f77 100644
--- a/chapter06/gzip-inst.xml
+++ b/chapter06/gzip-inst.xml
@@ -3,46 +3,38 @@
<sect2>
<title>Installation of Gzip</title>
+<para>A buffer overflow may occur if <userinput>gzip</userinput>
+encounters a filename over 1020 characters in length. Apply the
+patch to fix this problem:</para>
+
+<para><screen><userinput>patch -Np1 -i ../gzip-&gzip-patch-version;.patch</userinput></screen></para>
+
<para>Prepare Gzip to be compiled:</para>
-<para><screen><userinput>
-patch -Np1 -i ../gzip-&gzip-patch-version;.patch &amp;&amp;
-./configure --prefix=/usr &amp;&amp;
-cp gzexe.in{,.backup} &amp;&amp;
-sed 's%"BINDIR"%/bin%' gzexe.in.backup &gt; gzexe.in
-</userinput></screen></para>
+<para><screen><userinput>./configure --prefix=/usr</userinput></screen></para>
+
+<para>Change the default installation directory for Gzip so it will
+be installed in the <filename class="directory">/bin</filename>
+directory:</para>
+
+<para><screen><userinput>cp gzexe.in{,.backup} &amp;&amp;
+sed 's%"BINDIR"%/bin%' gzexe.in.backup &gt; gzexe.in</userinput></screen></para>
<para>Continue with compiling the package:</para>
<para><screen><userinput>make</userinput></screen></para>
-<para>And finish off installing the package:</para>
+<para>Install the package:</para>
<para><screen><userinput>make install</userinput></screen></para>
-<para>Move the Gzip binaries to the root partition:</para>
+<para>Move the Gzip binaries to the <filename
+class="directory">/bin</filename> directory:</para>
-<para><screen><userinput>
-mv /usr/bin/gzip /bin &amp;&amp;
+<para><screen><userinput>mv /usr/bin/gzip /bin &amp;&amp;
rm /usr/bin/{gunzip,zcat} &amp;&amp;
ln -s gzip /bin/gunzip &amp;&amp;
ln -s gzip /bin/zcat &amp;&amp;
ln -s gunzip /bin/uncompress</userinput></screen></para>
</sect2>
-
-<sect2>
-<title>Command explanations</title>
-
-<para><userinput>patch -Np1 -i ../gzip-1.2.4b.patch:</userinput>
-This patch fixes a buffer overflow that occurs when a filename is
-longer than 1020 characters.</para>
-
-<para><userinput>
-cp gzexe.in{,.backup} &amp;&amp;
-sed 's%"BINDIR"%/bin%' gzexe.in.backup &gt; gzexe.in</userinput>
-Change the default installation directory for Gzip so it will be
-installed on the root partition.</para>
-
-
-</sect2>