1CPANPLUS::Config(3pm)  Perl Programmers Reference Guide  CPANPLUS::Config(3pm)
2
3
4

NAME

6       CPANPLUS::Config
7

SYNOPSIS

9           ### conf object via CPANPLUS::Backend;
10           $cb   = CPANPLUS::Backend->new;
11           $conf = $cb->configure_object;
12
13           ### or as a standalone object
14           $conf = CPANPLUS::Configure->new;
15
16           ### values in 'conf' section
17           $verbose = $conf->get_conf( 'verbose' );
18           $conf->set_conf( verbose => 1 );
19
20           ### values in 'program' section
21           $editor = $conf->get_program( 'editor' );
22           $conf->set_program( editor => '/bin/vi' );
23

DESCRIPTION

25       This module contains defaults and heuristics for configuration
26       information for CPANPLUS. To change any of these values, please see the
27       documentation in "CPANPLUS::Configure".
28
29       Below you'll find a list of configuration types and keys, and their
30       meaning.
31

CONFIGURATION

33   Section 'conf'
34       hosts
35           An array ref containing hosts entries to be queried for packages.
36
37           An example entry would like this:
38
39               {   'scheme' => 'ftp',
40                   'path' => '/pub/CPAN/',
41                   'host' => 'ftp.cpan.org'
42               },
43
44       allow_build_interactivity
45           Boolean flag to indicate whether 'perl Makefile.PL' and similar are
46           run interactively or not. Defaults to 'true'.
47
48       base
49           The directory CPANPLUS keeps all its build and state information
50           in.  Defaults to ~/.cpanplus.
51
52       buildflags
53           Any flags to be passed to 'perl Build.PL'. See "perldoc
54           Module::Build" for details. Defaults to an empty string.
55
56       cpantest
57           Boolean flag to indicate whether or not to mail test results of
58           module installations to "http://testers.cpan.org". Defaults to
59           'false'.
60
61       cpantest_mx
62           String holding an explicit mailserver to use when sending out
63           emails for "http://testers.cpan.org". An empty string will use your
64           system settings. Defaults to an empty string.
65
66       debug
67           Boolean flag to enable or disable extensive debuggging information.
68           Defaults to 'false'.
69
70       dist_type
71           Default distribution type to use when building packages. See
72           "cpan2dist" or "CPANPLUS::Dist" for details. An empty string will
73           not use any package building software. Defaults to an empty string.
74
75       email
76           Email address to use for anonymous ftp access and as "from" address
77           when sending emails. Defaults to an "example.com" address.
78
79       enable_custom_sources
80           Boolean flag indicating whether custom sources should be enabled or
81           not. See the "CUSTOM MODULE SOURCES" in "CPANPLUS::Backend" for
82           details on how to use them.
83
84           Defaults to "true"
85
86       extractdir
87           String containing the directory where fetched archives should be
88           extracted. An empty string will use a directory under your "base"
89           directory. Defaults to an empty string.
90
91       fetchdir
92           String containing the directory where fetched archives should be
93           stored. An empty string will use a directory under your "base"
94           directory. Defaults to an empty string.
95
96       flush
97           Boolean indicating whether build failures, cache dirs etc should be
98           flushed after every operation or not. Defaults to 'true'.
99
100       force
101           Boolean indicating whether files should be forcefully overwritten
102           if they exist, modules should be installed when they fail tests,
103           etc. Defaults to 'false'.
104
105       lib An array ref holding directories to be added to @INC when CPANPLUS
106           starts up. Defaults to an empty array reference.
107
108       makeflags
109           A string holding flags that will be passed to the "make" program
110           when invoked. Defaults to an empty string.
111
112       makemakerflags
113           A string holding flags that will be passed to "perl Makefile.PL"
114           when invoked. Defaults to an empty string.
115
116       md5 A boolean indicating whether or not md5 checks should be done when
117           an archive is fetched. Defaults to 'true' if you have "Digest::MD5"
118           installed, 'false' otherwise.
119
120       no_update
121           A boolean indicating whether or not "CPANPLUS"' source files should
122           be updated or not. Defaults to 'false'.
123
124       passive
125           A boolean indicating whether or not to use passive ftp connections.
126           Defaults to 'true'.
127
128       prefer_bin
129           A boolean indicating whether or not to prefer command line programs
130           over perl modules. Defaults to 'false' unless you do not have
131           "Compress::Zlib" installed (as that would mean we could not extract
132           ".tar.gz" files)
133
134       prefer_makefile
135           A boolean indicating whether or not prefer a "Makefile.PL" over a
136           "Build.PL" file if both are present. Defaults to 'true'.
137
138       prereqs
139           A digit indicating what to do when a package you are installing has
140           a prerequisite. Options are:
141
142               0   Do not install
143               1   Install
144               2   Ask
145               3   Ignore  (dangerous, install will probably fail!)
146
147           The default is to ask.
148
149       shell
150           A string holding the shell class you wish to start up when starting
151           "CPANPLUS" in interactive mode.
152
153           Defaults to "CPANPLUS::Shell::Default", the default CPANPLUS shell.
154
155       show_startup_tip
156           A boolean indicating whether or not to show start up tips in the
157           interactive shell. Defaults to 'true'.
158
159       signature
160           A boolean indicating whether or not check signatures if packages
161           are signed. Defaults to 'true' if you have "gpg" or
162           "Crypt::OpenPGP" installed, 'false' otherwise.
163
164       skiptest
165           A boolean indicating whether or not to skip tests when installing
166           modules.  Defaults to 'false'.
167
168       storable
169           A boolean indicating whether or not to use "Storable" to write
170           compiled source file information to disk. This makes for faster
171           startup and look up times, but takes extra diskspace. Defaults to
172           'true' if you have "Storable" installed and 'false' if you don't.
173
174       timeout
175           Digit indicating the time before a fetch request times out (in
176           seconds).  Defaults to 300.
177
178       verbose
179           A boolean indicating whether or not "CPANPLUS" runs in verbose
180           mode.  Defaults to 'true' if you have the environment variable
181           "PERL5_CPANPLUS_VERBOSE" set to true, 'false' otherwise.
182
183           It is recommended you run with verbose enabled, but it is disabled
184           for historical reasons.
185
186       write_install_log
187           A boolean indicating whether or not to write install logs after
188           installing a module using the interactive shell. Defaults to
189           'true'.
190
191       source_engine
192           Class to use as the source engine, which is generally a subclass of
193           "CPANPLUS::Internals::Source". Default to
194           "CPANPLUS::Internals::Source::Memory".
195
196       cpantest_reporter_args
197           A hashref of key => value pairs that are passed to the constructor
198           of "Test::Reporter". If you'd want to enable TLS for example, you'd
199           set it to:
200
201             { transport       => 'Net::SMTP::TLS',
202               transport_args  => [ User => 'Joe', Password => '123' ],
203             }
204
205   Section 'program'
206       editor
207           A string holding the path to your editor of choice. Defaults to
208           your $ENV{EDITOR}, $ENV{VISUAL}, 'vi' or 'pico' programs, in that
209           order.
210
211       make
212           A string holding the path to your "make" binary. Looks for the
213           "make" program used to build perl or failing that, a "make" in your
214           path.
215
216       pager
217           A string holding the path to your pager of choice. Defaults to your
218           $ENV{PAGER}, 'less' or 'more' programs, in that order.
219
220       shell
221           A string holding the path to your login shell of choice. Defaults
222           to your $ENV{SHELL} setting, or $ENV{COMSPEC} on Windows.
223
224       sudo
225           A string holding the path to your "sudo" binary if your install
226           path requires super user permissions. Looks for "sudo" in your
227           path, or remains empty if you do not require super user permissiosn
228           to install.
229
230       perlwrapper
231           A string holding the path to the "cpanp-run-perl" utility bundled
232           with CPANPLUS, which is used to enable autoflushing in spawned
233           processes.
234

BUG REPORTS

236       Please report bugs or other issues to <bug-cpanplus@rt.cpan.org<gt>.
237

AUTHOR

239       This module by Jos Boumans <kane@cpan.org>.
240
242       The CPAN++ interface (of which this module is a part of) is copyright
243       (c) 2001 - 2007, Jos Boumans <kane@cpan.org>. All rights reserved.
244
245       This library is free software; you may redistribute and/or modify it
246       under the same terms as Perl itself.
247

SEE ALSO

249       CPANPLUS::Backend, CPANPLUS::Configure::Setup, CPANPLUS::Configure
250
251
252
253perl v5.10.1                      2009-07-06             CPANPLUS::Config(3pm)
Impressum