Installation of Gzip
Prepare Gzip to be compiled:
patch -Np1 -i ../gzip-&gzip-patch-version;.patch &&
./configure --prefix=/usr &&
cp gzexe.in{,.backup} &&
sed 's%"BINDIR"%/bin%' gzexe.in.backup > gzexe.in
Continue with compiling the package:
make
And finish off installing the package:
make install
Move the Gzip binaries to the root partition:
mv /usr/bin/gzip /bin &&
rm /usr/bin/{gunzip,zcat} &&
ln -s gzip /bin/gunzip &&
ln -s gzip /bin/zcat &&
ln -s gunzip /bin/uncompress
Command explanations
patch -Np1 -i ../gzip-1.2.4b.patch:
This patch fixes a buffer overflow that occurs when a filename is
longer than 1020 characters.
cp gzexe.in{,.backup} &&
sed 's%"BINDIR"%/bin%' gzexe.in.backup > gzexe.in
Change the default installation directory for Gzip so it will be
installed on the root partition.