Skip to content

Commit

Permalink
cook-20, cpan_module using cpan_install works with perl 5.8.8
Browse files Browse the repository at this point in the history
  • Loading branch information
jtimberman committed Apr 7, 2009
1 parent ea923bd commit e6db699
Show file tree
Hide file tree
Showing 2 changed files with 23 additions and 17 deletions.
12 changes: 6 additions & 6 deletions perl/definitions/cpan_module.rb
Expand Up @@ -18,14 +18,14 @@
#

define :cpan_module, :force => nil do
if params[:force]
force = "force"
end

execute "install-#{params[:name]}" do
command "echo #{force} install #{params[:name]} | /usr/bin/cpan"
if params[:force]
command "echo force install #{params[:name]} | /usr/bin/cpan"
else
command "/usr/local/bin/cpan_install #{params[:name]}"
end
cwd "/root"
path [ "/usr/local/bin", "/usr/bin", "/bin" ]
not_if "perl -m#{params[:name]} ''"
not_if "perl -m#{params[:name]} -e ''"
end
end
28 changes: 17 additions & 11 deletions perl/files/default/Config-5.8.8.pm
@@ -1,37 +1,43 @@
# This is CPAN.pm's systemwide configuration file. This file provides
# defaults for users, and the values can be changed in a per-user
# configuration file. The user-config file is being looked for as
# ~/.cpan/CPAN/MyConfig.pm.

$CPAN::Config = {
'build_cache' => q[10],
'build_dir' => q[/Users/jtimberman/.cpan/build],
'build_dir' => q[/root/.cpan/build],
'cache_metadata' => q[1],
'cpan_home' => q[/Users/jtimberman/.cpan],
'cpan_home' => q[/root/.cpan],
'cpan_version_check' => q[1],
'dontload_hash' => { },
'ftp' => q[/usr/bin/ftp],
'ftp_proxy' => q[],
'getcwd' => q[cwd],
'gpg' => q[/opt/local/bin/gpg],
'gzip' => q[/usr/bin/gzip],
'histfile' => q[/Users/jtimberman/.cpan/histfile],
'gpg' => q[/usr/bin/gpg],
'gzip' => q[/bin/gzip],
'histfile' => q[/root/.cpan/histfile],
'histsize' => q[100],
'http_proxy' => q[],
'inactivity_timeout' => q[0],
'index_expire' => q[1],
'inhibit_startup_message' => q[0],
'keep_source_where' => q[/Users/jtimberman/.cpan/sources],
'keep_source_where' => q[/root/.cpan/sources],
'lynx' => q[],
'make' => q[/usr/bin/make],
'make_arg' => q[],
'make_install_arg' => q[],
'makepl_arg' => q[],
'makepl_arg' => q[INSTALLDIRS=site],
'ncftp' => q[],
'ncftpget' => q[],
'no_proxy' => q[],
'pager' => q[/usr/bin/less],
'prerequisites_policy' => q[ask],
'scan_cache' => q[atstart],
'shell' => q[/bin/bash],
'tar' => q[/usr/bin/tar],
'tar' => q[/bin/tar],
'term_is_latin' => q[1],
'unzip' => q[/usr/bin/unzip],
'urllist' => [],
'wget' => q[/opt/local/bin/wget],
'urllist' => [q[http://ftp.osuosl.org/pub/CPAN/]],
'wget' => q[/usr/bin/wget],
};
1;
__END__

0 comments on commit e6db699

Please sign in to comment.