The Gzip package contains programs for compressing and decompressing files.
Gzip has 2 known security vulnerabilities. The following patch addresses both of them:
patch -Np1 -i ../gzip-1.3.5-security_fixes-1.patch
Prepare Gzip for compilation:
./configure --prefix=/usr
The gzexe script has the location of the gzip binary hard-wired into it. Because the location of the binary is changed later, the following command ensures that the new location gets placed into the script:
sed -i 's@"BINDIR"@/bin@g' gzexe.in
Compile the package:
make
Install the package:
make install
Move the gzip program to the /bin directory and create some commonly used symlinks to it:
mv /usr/bin/gzip /bin rm /usr/bin/{gunzip,zcat} ln -s gzip /bin/gunzip ln -s gzip /bin/zcat ln -s gzip /bin/compress ln -s gunzip /bin/uncompress