
Software::Packager::Svr4 - The Software::Packager extension for System VR4 packages

use Software::Packager;
my $packager = new Software::Packager('svr4');

This module is used to create software packages in a format suitable for installation with pkgadd.

This method creates and returns a new Software::Packager::SVR4 object.
$packager->add_item(%object_data);
Adds a new object (file, link, etc) to the package.
$packager->package();
Create the package.
This method returns a hash that is filled with the necessary information for a pkginfo file that conforms to the SYSV format.
Define the package name.
This is used to specify the full package name.
The program name must be less that 256 charaters.
For more details see the pkginfo(4) man page.
The architecture must be a comma seperated list of alphanumeric tokens that indicate the architecture associated with the package.
The maximum length of a token is 16 charaters.
A token should be in the format "instruction set"."platform group" where:
If the architecture is not set then the current instruction set is used.
For more details see the pkginfo(4) man page.
This method is used to check the format of the version and return it in the format required for SVR4.
The recommended format is an arbitrary string of numbers in Dewey-decimal format. For more datails see the pkginfo(4) man page.
$packager->install_dir('/usr/local');
my $base_dir = $packager->install_dir;
This method sets the base directory for the software to be installed. The installation directory must start with a "/".
$packager->compatible_version('/some/path/file');
or
$packager->compatible_version($compver_stored_in_string); my $compatible_version = $packager->compatible_version();
This method sets the compatible versions file for the software to be installed.
$packager->space('/some/path/file');
or
$packager->space($space_data_stored_in_string); my $space = $packager->space();
This method sets the space file for the software to be installed.
$packager->request_script('/some/path/file');
or
$packager->request_script($request_script_stored_in_string); my $request_script = $packager->request_script();
This method sets the space file for the software to be installed.

Software::Packager Software::Packager::Object::SVR4
The Software::Packager homepage: http://bernard.gondwana.com.au

Mark A. Hershberger <mah@everybody.org> Based on work by R Bernard Davison <rbdavison@cpan.org>

Copyright (c) 2003 Mark A. Hershberger. All rights reserved. This program is free software; you can redistribute it and/or modify it under the same terms as Perl itself.