mirror of
https://github.com/webmin/webmin.git
synced 2025-07-20 16:48:46 +00:00
FreeBSD ports install support
This commit is contained in:
@ -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
|
||||
|
@ -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'}, });
|
||||
|
Reference in New Issue
Block a user