LibTar is a unit in the 2.1.1 FCL that creates and extracts .TAR archives, kindly relicensed by Stefan Heymann ([http://www.destructor.de http://www.destructor.de\]\])
There are two demoes in the fcl/tests directory: tarmakercons.pas and tarmakerconsgzip.pas. The latter demonstrates making .tar.gz files.