1Test::AutoBuild::Stage:U:sAeprt(C3o)ntributed Perl DocumTeenstta:t:iAountoBuild::Stage::Apt(3)
2
3
4

NAME

6       Test::AutoBuild::Stage::Apt - Create index for APT package management
7       tool
8

SYNOPSIS

10         use Test::AutoBuild::Stage::Apt
11
12         # Create an index of RPMs, structured by module, restricted
13         # to only include the module 'autobuild-dev'
14         my $stage = Test::AutoBuild::Stage::Apt->new(name => "apt",
15                                                      label => "Create apt index",
16                                                      options => {
17                                                        directory => "/var/lib/builder/public_html/dist",
18                                                        format => "rpm",
19                                                        type => "modules",
20                                                        components => ["autobuild-dev"],
21                                                      });
22
23         # Create an index of RPMs, structured by module, for all
24         # configured modules
25         my $stage = Test::AutoBuild::Stage::Apt->new(name => "apt",
26                                                      label => "Create apt index",
27                                                      options => {
28                                                        directory => "/var/lib/builder/public_html/dist",
29                                                        format => "rpm",
30                                                        type => "modules",
31                                                      });
32
33         # Create an index of RPMs, structured by group, for all
34         # configured groups
35         my $stage = Test::AutoBuild::Stage::Apt->new(name => "apt",
36                                                      label => "Create apt index",
37                                                      options => {
38                                                        directory => "/var/lib/builder/public_html/dist",
39                                                        format => "rpm",
40                                                        type => "groups",
41                                                      });
42
43         $stage->run($runtime);
44

DESCRIPTION

46       This module invokes the "genbasedir" command to generate a package
47       index, enabling the "apt-get(8)" command to install RPMs directly off
48       the build status pages. The components in the index can either be
49       groups or modules. By default this stage will create an index for all
50       groups or modules defined in the runtime object, but this can be
51       restricted to a subset. At a future date this will be tweaked to also
52       support indexing Debian packages. The packages are hard linked into the
53       distribute directories, so no significant additional disk space is con‐
54       sumed over that already used by the builder distribution site.
55

CONFIGURATION

57       In addition to the standard parameters defined by the Test::Auto‐
58       Build::Stage module, this module accepts four entries in the "options"
59       parameter:
60
61       directory
62           The full path to the directory containing RPMs to be indexed.
63
64       format
65           The format of the packages to index, either "rpm" or "debian",
66           although the latter is not yet functional, defaults to "rpm".
67
68       type
69           How to structure the package indexes, either by "group", or by
70           "module", defaults to "module".
71
72       components
73           Optionally restrict the index to a subset of the groups / modules,
74           by specifying an array of group / module names.
75

METHODS

77       $stage->process($runtime);
78           This method will link in the generated packages to directory named
79           in the "directory" option, and then run the "genbasedir" command to
80           index them.
81

AUTHORS

83       Daniel Berrange <dan@berrange.com>
84
86       Copyright (C) 2005 Daniel Berrange <dan@berrange.com>
87

SEE ALSO

89       perl(1), Test::AutoBuild::Stage, "apt-get(8)"
90
91
92
93perl v5.8.8                       2007-12-09    Test::AutoBuild::Stage::Apt(3)
Impressum