The Tar package contains an archiving program.
Apply a patch to fix some issues with the test suite when using GCC-4.0.3:
patch -Np1 -i ../tar-1.15.1-gcc4_fix_tests-1.patch
Tar has a bug when the -S option is used with files larger than 4 GB. The following patch properly fixes this issue:
patch -Np1 -i ../tar-1.15.1-sparse_fix-1.patch
Recent versions of Tar are vulnerable to a buffer overflow from specially crafted archives. The following patch addresses this:
patch -Np1 -i ../tar-1.15.1-security_fixes-1.patch
Prepare Tar for compilation:
./configure --prefix=/usr --bindir=/bin --libexecdir=/usr/sbin
Compile the package:
make
To test the results, issue: make check.
Install the package:
make install