Changeset 1224

Show
Ignore:
Timestamp:
08/16/08 16:37:11 (4 months ago)
Author:
mbr
Message:

added /auto/ heuristic for getting all /usr/lib/fwknop/ perl module import directories

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • fwknop/trunk/fwknop

    r1222 r1224  
    14391439        next unless -d "$lib_dir/$dir"; 
    14401440        push @paths, "$lib_dir/$dir" 
    1441             if $dir =~ m|linux| or $dir =~ m|thread|; 
     1441            if $dir =~ m|linux| or $dir =~ m|thread| 
     1442                or (-d "$lib_dir/$dir/auto"); 
    14421443    } 
    14431444    return \@paths; 
  • fwknop/trunk/fwknopd

    r1222 r1224  
    41384138    &required_vars(); 
    41394139 
     4140    ### import fwknop perl modules 
     4141    &import_perl_modules(); 
     4142 
    41404143    ### validate config 
    41414144    &validate_config(); 
     
    41434146    ### make sure command paths are correct 
    41444147    &check_commands() unless $os_fprint_only; 
    4145  
    4146     ### import fwknop perl modules 
    4147     &import_perl_modules(); 
    41484148 
    41494149    if ($fw_del_ip) { 
     
    49104910        next unless -d "$config{'FWKNOP_MOD_DIR'}/$dir"; 
    49114911        push @paths, "$config{'FWKNOP_MOD_DIR'}/$dir" 
    4912             if $dir =~ m|linux| or $dir =~ m|thread|; 
     4912            if $dir =~ m|linux| or $dir =~ m|thread| 
     4913                or (-d "$config{'FWKNOP_MOD_DIR'}/$dir/auto"); 
    49134914    } 
    49144915    return \@paths; 
  • fwknop/trunk/knoptm

    r1222 r1224  
    900900        next unless -d "$config{'FWKNOP_MOD_DIR'}/$dir"; 
    901901        push @paths, "$config{'FWKNOP_MOD_DIR'}/$dir" 
    902             if $dir =~ m|linux| or $dir =~ m|thread|; 
     902            if $dir =~ m|linux| or $dir =~ m|thread| 
     903                or (-d "$config{'FWKNOP_MOD_DIR'}/$dir/auto"); 
    903904    } 
    904905    return \@paths;