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 $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 anyambiguity over the actual full filename. It references thefollowing 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 ofthe %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 andpermissions. Also, for debian packaging a successful chroot()system call must be made in order to properly install packages.
AUTHOR
Vasilios Hoffman <[email protected]>
SEE ALSO
SystemInstaller::Package