mirror of
https://github.com/webmin/webmin.git
synced 2025-07-23 00:30:33 +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
|
save_partial=Keep downloaded module if install fails?,1,1-Yes,0-No
|
||||||
def_args=Default arguments to Makefile.PL,0
|
def_args=Default arguments to Makefile.PL,0
|
||||||
incpackages=Include Perl modules from software packages?,1,1-Yes,0-No
|
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
|
line2=System configuration,11
|
||||||
packages=CPAN perl modules list,0
|
packages=CPAN perl modules list,0
|
||||||
cpan=CPAN modules base URL,0
|
cpan=CPAN modules base URL,0
|
||||||
|
@ -346,13 +346,18 @@ else {
|
|||||||
local @rv;
|
local @rv;
|
||||||
foreach my $a (@avail) {
|
foreach my $a (@avail) {
|
||||||
if ($a->{'name'} =~ /^lib(\S+)-perl$/ || # Debian
|
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;
|
local $mod = $1;
|
||||||
$mod =~ s/-/::/g;
|
$mod =~ s/-/::/g;
|
||||||
if ($mod eq "LDAP") {
|
if ($mod eq "LDAP") {
|
||||||
# Special case for redhat-ish systems
|
# Special case for redhat-ish systems
|
||||||
$mod = "Net::LDAP";
|
$mod = "Net::LDAP";
|
||||||
}
|
}
|
||||||
|
elsif ($mod eq "perl::ldap") {
|
||||||
|
# Special case for FreeBSD
|
||||||
|
$mod = "Net::LDAP";
|
||||||
|
}
|
||||||
push(@rv, { 'mod' => $mod,
|
push(@rv, { 'mod' => $mod,
|
||||||
'package' => $a->{'name'},
|
'package' => $a->{'name'},
|
||||||
'version' => $a->{'version'}, });
|
'version' => $a->{'version'}, });
|
||||||
|
Reference in New Issue
Block a user