man SystemInstaller::Package::Deb () - Debian packaging for SystemInstaller

NAME

SystemInstaller::Package::Deb - Debian packaging for SystemInstaller

SYNOPSIS

 use SystemInstaller::Package::Deb;

 $Pinfo{PTYPES}{Deb}=   "<list of Debian packages>";
 $Pinfo{root}=          "<image root location>";
 $Pinfo{arch}=          "<image architecture>";

 if ( SystemInstaller::Package::Deb->check_files(\%Pinfo) ) {
        print "files missing\n";
 }
 if ( SystemInstaller::Package::Deb->install(\%Pinfo) ) {
        print "install failed\n";
 }

DESCRIPTION

SystemInstaller::Package::Deb provides the specific functions for SystemInstaller to install debian packages.

It reads the package list from CW$Pinfo{PTYPES}{Deb} and based on the information there, checks and installs the packages.

FUNCTIONS

check_files(\%Pinfo)

       Checks that the .deb files exist, and attempts to clear up any
       ambiguity over the actual full filename.  It references the
       following elements from the %Pinfo structure:

              $Pinfo{arch}              architecture
              $Pinfo{location}  package file location
        $Pinfo{PTYPES}{Deb}     list of .deb packages to check

       It creates the following lists:
              $Pinfo{PFILES}{Deb}       list of full filenames.
              $Pinfo{MISSING}   list of missing .deb packages.

install(\%Pinfo)

     Installs the packages. It references the following elements of
     the %Pinfo structure.

        $Pinfo{location}        package file location
        $Pinfo{root}    The image root to install to
        $Pinfo{PFILES}{Deb}  list of .deb filenames to install

     The install function must be run with the full powers of root,
     since installed files must be given the proper ownerships and
     permissions.  Also, for debian packaging a successful chroot()
     system call must be made in order to properly install packages.

AUTHOR

Vasilios Hoffman <greekboy@users.sourceforge.net>

SEE ALSO

SystemInstaller::Package