NAME
Software::Packager::Aix - The Software::Packager extension for AIX 3.2 and above
SYNOPSIS
use Software::Packager;
my $packager = new Software::Packager('aix');
DESCRIPTION
This module is used to create software packages in a format suitable for installation with installp. The procedure is baised heaverly on the lppbuild version 2.1 scripts. I believe these scripts to be written by Jim Abbey. Who ever it was thanks for your work. It has proven envaluable. lppbuild is available from http://aixpdslib.seas.ucla.edu/ It creates AIX 4.1 and higher packages only.
FUNCTIONS
add_item()
The method overrides the add_item method of Software::Packager to use
Software::Packager::Object::Aix.
See Software::Packager for more details on this method.
lpp_package_type()
This method sets or returns the lpp package type. The lpp package types are "I" for an install package "ML" for a maintenance level package "S" for a single update package
If the lpp package type is not set, the default of "I" for an install package is set (version minor and fix numbers are 0) and "S" for an update package (version minor and fix numbers are non 0)
component_name()
This method sets or returns the component name for this package.
package()
$packager->package(); This function overrides the base API in Software::Packager. I controls the process of package creation.
_setup()
This method sets up the temporary build structure.
_cleanup()
This method cleans up after us.
_version()
This method overrides Software::Packager::_version
This method is used to format the version and return it in the desired format
for the current packaging system.
_check_version()
This method is used to check the format of the version and returns true, if
there are any problems then it returns undef;
This method overrides Software::Packager::_check_version
Test that the format is digits and periods anything else is a no good.
The first and second numbers must have 1 or 2 digits
The rest can have 1 to 4 digits.
_find_lpp_type()
This method finds the type of LPP we are building.
If all components are under /usr/share then the part is a SHARE package.
If all components are under /usr then the part is a USER package.
If components are under any other directory then the part is a ROOT+USER package.
ROOT only parts are not permitted.
SHARE + ROOT and or USER parts are not permitted.
Returns the LPP code for the part type on success and undef if there are
errors.
a USER part will return U
a ROOT+USER part will return B
a SHARE part will return H
_lppmode()
This method sets or returns the lppmode. The lppmode can be either install (I) or update (U). This is set when the version is set.
_create_lpp_name()
This method creates the file lpp_name for the package.
_find_disk_usage()
This method finds the disk usage for the package directories
_create_package_structure()
This method creates the package structure for the package under the tmp directory.
_create_control_files()
This method creates the lpp control files (liblpp.a).
_control_file_names()
This method the names for the user and root control file (liblpp.a) locations.
_create_apply_lists()
This method creates the apply list to be included in the liblpp.a.
SEE ALSO
Software::Packager
AUTHOR
Bernard Davison <rbdavison@cpan.org>
HOMEPAGE
http://bernard.gondwana.com.au
COPYRIGHT
Copyright (c) 2001 Gondwanatech. All rights reserved.
This program is free software; you can redistribute it and/or modify it under
the same terms as Perl itself.