Estimated build time: 0.1 SBU Estimated required disk space: 2 MB |
(Last checked against version 1.2.4a.)
The gzip package contains programs to compress and decompress files using the Lempel-Ziv coding (LZ77).
Gzip installs the following:
gunzip (link to gzip), gzexe, gzip, uncompress (link to gunzip), zcat (link to gzip), zcmp, zdiff, zforce, zgrep, zmore and znew
(Last checked against version 1.2.4a.)
Bash: sh
Binutils: as, ld, nm
Coreutils: cat, chmod, cp, hostname, install, ln, mv, rm, tr
GCC: cc1, collect2, cpp, cpp0, gcc
Grep: egrep, grep
Make: make
Sed: sed
Prepare Gzip for compilation:
./configure --prefix=/usr |
The gzexe program has the location of the gzip binary hardcoded into it. Because we later change the location of this binary, the following command will place the new location into the gzexe binary.
cp gzexe.in{,.backup} sed 's%"BINDIR"%/bin%' gzexe.in.backup > gzexe.in |
Compile the package:
make |
Install the package:
make install |
And move the programs to the /bin directory:
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 |