Skip to content

Instantly share code, notes, and snippets.

@sirhc
Created August 17, 2010 17:43
Show Gist options
  • Save sirhc/531062 to your computer and use it in GitHub Desktop.
Save sirhc/531062 to your computer and use it in GitHub Desktop.
~/.cpan/CPAN/MyConfig.pm
use strict;
use Config;
my $home = ( getpwuid $< )[7];
my $cpan = "$home/.cpan";
# The .packlist and perllocal.pod files aren't useful, so remove them along
# with any directories left empty along the way.
#END {
# use File::Find;
#
# print 'Removing .packlist/perllocal.pod files...', "\n";
#
# finddepth(
# sub {
# unlink $_ if /\A (?: [.]packlist | perllocal[.]pod ) \z/xms;
# rmdir $_ if -d $_;
# },
# #$privlib,
# "$home/local/lib/perl5",
# );
#}
#
# TODO: gzip .1 man files
# TODO: remove .3 man files
$CPAN::Config = {
'auto_commit' => 1,
'build_cache' => 10,
'build_dir' => "$cpan/build",
'cache_metadata' => 1,
'commandnumber_in_prompt' => 1,
'cpan_home' => $cpan,
'dontload_hash' => {},
'ftp' => 'ftp',
'ftp_passive' => 1,
'ftp_proxy' => '',
'getcwd' => 'cwd',
'gpg' => 'gpg',
'gzip' => 'gzip',
'histfile' => "$cpan/histfile",
'histsize' => 100,
'http_proxy' => '',
'inactivity_timeout' => 0,
'index_expire' => 1,
'inhibit_startup_message' => 1,
'keep_source_where' => "$cpan/sources",
'load_module_verbosity' => 0,
'lynx' => '',
'make' => 'make',
'make_arg' => '',
'make_install_arg' => '',
'make_install_make_command' => 'make',
'makepl_arg' => '', # see $ENV{'PERL_MM_OPT'}
'mbuild_arg' => '', # see $ENV{'PERL_MB_OPT'}
'mbuild_install_arg' => '',
'mbuild_install_build_command' => './Build',
'mbuildpl_arg' => '',
'ncftp' => 'ncftp',
'ncftpget' => '',
'no_proxy' => '',
'pager' => 'less',
'perl5lib_verbosity' => 0,
'prefer_installer' => 'MB',
'prerequisites_policy' => 'ask',
'scan_cache' => 'atstart',
'shell' => 'bash',
'show_unparsable_versions' => 0,
'show_upload_date' => 0,
'show_zero_versions' => 1,
'tar' => 'tar',
'tar_verbosity' => undef,
'term_is_latin' => 1,
'term_ornaments' => 1,
'test_report' => 0,
'unzip' => 'unzip',
'urllist' => [
'http://cpan.yahoo.com/',
'ftp://cpan.mirrors.redwire.net/pub/CPAN/',
],
'use_sqlite' => 0,
'wget' => 'wget',
};
1;
__END__
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment