The Bzip2 package contains programs for compressing and decompressing files. Compressing text files with bzip2 yields a much better compression percentage than with the traditional gzip.
Download HTTP: https://www.sourceware.org/pub/bzip2/bzip2-1.0.8.tar.gz
Download SHA256 Sum: ab5a03176ee106d3f0fa90e381da478ddae405918153cca248e682cd0c4a2269
Download Size: 791 KB
Estimated Disk Space: 4.7M
Estimated Build Time: less than 0.5 SBU
Prepare Bzip2 for compilation:
Patch a vulnerability, issue:
patch -Np1 -i ../bzip2-1.0.8-install_docs-1.patch
Now Configure the Package, issue:
sed -i 's@\(ln -s -f \)$(PREFIX)/bin/@\1@' Makefile sed -i "s@(PREFIX)/man@(PREFIX)/share/man@g" Makefile
To Compile the Package, issue:
make -f Makefile-libbz2_so make clean make
Now Install the Package, issue:
make PREFIX=/usr install
cp -av libbz2.so.* /usr/lib
ln -sv libbz2.so.1.0.8 /usr/lib/libbz2.so
cp -v bzip2-shared /usr/bin/bzip2
for i in /usr/bin/{bzcat,bunzip2}; do
ln -sfv bzip2 $i
done
rm -fv /usr/lib/libbz2.a