FreeBSD ports install support

This commit is contained in:
Jamie Cameron
2013-03-16 17:46:54 -07:00
parent c4090afca2
commit dab35b0c69
2 changed files with 7 additions and 2 deletions

View File

@ -3,7 +3,7 @@ refresh_days=Days before refreshing CPAN module list,0,5
save_partial=Keep downloaded module if install fails?,1,1-Yes,0-No
def_args=Default arguments to Makefile.PL,0
incpackages=Include Perl modules from software packages?,1,1-Yes,0-No
incyum=Install Perl modules from YUM or APT where available?,1,1-Yes,0-No
incyum=Install Perl modules from software packages where available?,1,1-Yes,0-No
line2=System configuration,11
packages=CPAN perl modules list,0
cpan=CPAN modules base URL,0

View File

@ -346,13 +346,18 @@ else {
local @rv;
foreach my $a (@avail) {
if ($a->{'name'} =~ /^lib(\S+)-perl$/ || # Debian
$a->{'name'} =~ /^perl-(\S+)$/) { # Redhat
$a->{'name'} =~ /^perl-(\S+)$/ || # Redhat
$a->{'name'} =~ /^p5-(\S+)$/) { # FreeBSD
local $mod = $1;
$mod =~ s/-/::/g;
if ($mod eq "LDAP") {
# Special case for redhat-ish systems
$mod = "Net::LDAP";
}
elsif ($mod eq "perl::ldap") {
# Special case for FreeBSD
$mod = "Net::LDAP";
}
push(@rv, { 'mod' => $mod,
'package' => $a->{'name'},
'version' => $a->{'version'}, });