CBAIS::Actions::Pkg - tar archive and graft based package versioning
The CBAIS::Actions::Pkg class impements a CBAIS Action which installs tar archive contents, and optionally supports the graft package versioning system.
The constructor supports the following keys
=item B<UNPACK_DIR>
The directory to unpack the tar archive in.
{ file => 'apache-1.3.14.tgz', unpack_dir => '/usr/local/pkgs', graft => 'yes', graft_options => '-t /usr/local/mail', },
{ file => 'mytar.tgz', unpack_dir => '/home/mydir', },
The current version relies on the contents of a tarball being in a directory tree with a top level directory which is the same name as the tar file without the tar/gzip extension. This limitation will be rmeoved in future releases which will use the Archive::Tar library to do some intelligent parsing of the tar archive to provide a more robust implementation of the undo and verify methods.