The Perl Toolchain Summit needs more sponsors. If your company depends on Perl, please support this very important event.

NAME

packdrake - Simple Archive Extractor/Builder

This module is a compatibility wrapper around the new MDV::Packdrakeng module.

SYNOPSIS

    require packdrake;

    packdrake::cat_archive("/export/media/media_info/hdlist.cz",
                           "/export/media/media_info/hdlist2.cz");
    packdrake::list_archive("/tmp/modules.cz2");

    my $packer = new packdrake("/tmp/modules.cz2");
    $packer->extract_archive("/tmp", "file1.o", "file2.o");

    my $packer = packdrake::build_archive
        (\*STDIN, "/lib/modules", "/tmp/modules.cz2",
         400000, "bzip2", "bzip2 -d");
    my $packer = packdrake::build_archive
        (\*STDIN, "/export/media/media_info/hdlist.cz",
         400000, "gzip -9", "gzip -d");

DESCRIPTION

packdrake is a very simple archive extractor and builder used by Mandrakesoft.

FUNCTIONS

new($file, %options)

Open the packdrake archive $file and return a packdrake object. Return undef on failure.

packdrake->extract_archive($dir, @files)

Extract files list into the specified directory.

packdrake->extract_all_archive($dir)

Extract all files into the specified directory.

packdrake::list_archive(@list)

List files packed into achives given.

packdrake::build_archive($input,$dir,$archive,$blocksize,$compress,$uncompress)

Build a new archive: - $input is a file handle to find file list to pack - $dir is the directory based where file are located - $archive is the archive filename to create - $blocksize is the size of compressed block - $compress is the program to use to compress data - $uncompress is the program to use to uncompress data

packdrake::cat_archive(@files)

Dump data to STDOUT of files given as parameters, or all files if no files are specified

SEE ALSO

MDV::Packdrakeng.

COPYRIGHT

Copyright (C) 2000-2004 Mandrakesoft <nanardon@mandriva.org>

This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation; either version 2, or (at your option) any later version.

This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details.

You should have received a copy of the GNU General Public License along with this program; if not, write to the Free Software Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.