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
24         # Create an index of RPMs, structured by module, for all
25         # configured modules
26         my $stage = Test::AutoBuild::Stage::Apt->new(name => "apt",
27                                                      label => "Create apt index",
28                                                      options => {
29                                                        directory => "/var/lib/builder/public_html/dist",
30                                                        format => "rpm",
31                                                        type => "modules",
32                                                      });
33
34         # Create an index of RPMs, structured by group, for all
35         # configured groups
36         my $stage = Test::AutoBuild::Stage::Apt->new(name => "apt",
37                                                      label => "Create apt index",
38                                                      options => {
39                                                        directory => "/var/lib/builder/public_html/dist",
40                                                        format => "rpm",
41                                                        type => "groups",
42                                                      });
43
44
45         $stage->run($runtime);
46

DESCRIPTION

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

CONFIGURATION

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

METHODS

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

AUTHORS

85       Daniel Berrange <dan@berrange.com>
86
88       Copyright (C) 2005 Daniel Berrange <dan@berrange.com>
89

SEE ALSO

91       perl(1), Test::AutoBuild::Stage, "apt-get(8)"
92
93
94
95perl v5.12.1                      2007-12-08    Test::AutoBuild::Stage::Apt(3)
Impressum