gzip-inst.xml 1.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748
  1. <sect2><title>&nbsp;</title><para>&nbsp;</para></sect2>
  2. <sect2>
  3. <title>Installation of Gzip</title>
  4. <para>Prepare Gzip to be compiled:</para>
  5. <para><screen><userinput>
  6. patch -Np1 -i ../gzip-&gzip-patch-version;.patch &amp;&amp;
  7. ./configure --prefix=/usr &amp;&amp;
  8. cp gzexe.in{,.backup} &amp;&amp;
  9. sed 's%"BINDIR"%/bin%' gzexe.in.backup &gt; gzexe.in
  10. </userinput></screen></para>
  11. <para>Continue with compiling the package:</para>
  12. <para><screen><userinput>make</userinput></screen></para>
  13. <para>And finish off installing the package:</para>
  14. <para><screen><userinput>make install</userinput></screen></para>
  15. <para>Move the Gzip binaries to the root partition:</para>
  16. <para><screen><userinput>
  17. mv /usr/bin/gzip /bin &amp;&amp;
  18. rm /usr/bin/{gunzip,zcat} &amp;&amp;
  19. ln -s gzip /bin/gunzip &amp;&amp;
  20. ln -s gzip /bin/zcat &amp;&amp;
  21. ln -s gunzip /bin/uncompress</userinput></screen></para>
  22. </sect2>
  23. <sect2>
  24. <title>Command explanations</title>
  25. <para><userinput>patch -Np1 -i ../gzip-1.2.4b.patch:</userinput>
  26. This patch fixes a buffer overflow that occurs when a filename is
  27. longer than 1020 characters.</para>
  28. <para><userinput>
  29. cp gzexe.in{,.backup} &amp;&amp;
  30. sed 's%"BINDIR"%/bin%' gzexe.in.backup &gt; gzexe.in</userinput>
  31. Change the default installation directory for Gzip so it will be
  32. installed on the root partition.</para>
  33. </sect2>