/[pdpsoft]/nl.nikhef.pdp.fetchcrl/tags/fetch-crl-3.0.13-0.RC20140305/fetch-crl3.pl.cin
ViewVC logotype

Diff of /nl.nikhef.pdp.fetchcrl/tags/fetch-crl-3.0.13-0.RC20140305/fetch-crl3.pl.cin

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 1767 by davidg, Fri Jun 11 19:44:35 2010 UTC revision 1878 by davidg, Tue Aug 10 07:03:43 2010 UTC
# Line 78  $::cnf->{_}->{"infodir"} and do { Line 78  $::cnf->{_}->{"infodir"} and do {
78    foreach my $fn (    foreach my $fn (
79        map { glob ( $::cnf->{_}->{"infodir"} . "/$_" ); } "*.info", "*.crl_url"        map { glob ( $::cnf->{_}->{"infodir"} . "/$_" ); } "*.info", "*.crl_url"
80      ) {      ) {
81        next if $::cnf->{_}->{nosymlinks} and -l $fn;
82      $fn =~ /.*\/([^\/]+)(\.crl_url|\.info)$/;      $fn =~ /.*\/([^\/]+)(\.crl_url|\.info)$/;
83      push @metafiles, $1 unless grep /$1/,@metafiles or not defined $1;      push @metafiles, $1 unless grep /$1/,@metafiles or not defined $1;
84    }    }
# Line 111  sub init_configuration() { Line 112  sub init_configuration() {
112    my $debuglevel;    my $debuglevel;
113    my $parallelism=0;    my $parallelism=0;
114    my $randomwait;    my $randomwait;
115      my $nosymlinks;
116    
117    $log = FCLog->new("qualified");    $log = FCLog->new("qualified");
118    
# Line 127  sub init_configuration() { Line 129  sub init_configuration() {
129      "q|quiet+" => \$quiet,      "q|quiet+" => \$quiet,
130      "d|debug+" => \$debuglevel,      "d|debug+" => \$debuglevel,
131      "p|parallelism=i" => \$parallelism,      "p|parallelism=i" => \$parallelism,
132        "nosymlinks+" => \$nosymlinks,
133      "a|agingtolerance=i" => \$agingtolerance,      "a|agingtolerance=i" => \$agingtolerance,
134      "r|randomwait=i" => \$randomwait,      "r|randomwait=i" => \$randomwait,
135      ) or &help and exit(1);      ) or &help and exit(1);
136    
137    $help and &help and exit(0);    $help and &help and exit(0);
138    
139      $configfile ||= ( -e "/etc/fetch-crl.conf" and "/etc/fetch-crl.conf" );
140    $configfile ||= ( -e "/etc/fetch-crl.cnf" and "/etc/fetch-crl.cnf" );    $configfile ||= ( -e "/etc/fetch-crl.cnf" and "/etc/fetch-crl.cnf" );
141    ($quiet > 0) and $verbosity = -$quiet;    ($quiet > 0) and $verbosity = -$quiet;
142    
# Line 153  sub init_configuration() { Line 157  sub init_configuration() {
157    $cnf->{_}->{formats}        = join "&",@formats if @formats;    $cnf->{_}->{formats}        = join "&",@formats if @formats;
158    $cnf->{_}->{parallelism}    = $parallelism if $parallelism;    $cnf->{_}->{parallelism}    = $parallelism if $parallelism;
159    $cnf->{_}->{randomwait}     = $randomwait if defined $randomwait;    $cnf->{_}->{randomwait}     = $randomwait if defined $randomwait;
160      $cnf->{_}->{nosymlinks}     = $nosymlinks if defined $nosymlinks;
161    
162    # key default values    # key default values
163    defined $cnf->{_}->{version}  or $cnf->{_}->{version}    = "3+";    defined $cnf->{_}->{version}  or $cnf->{_}->{version}    = "3+";
# Line 176  sub init_configuration() { Line 181  sub init_configuration() {
181    
182    $cnf->{_}->{nonssverify}    ||= 0;    $cnf->{_}->{nonssverify}    ||= 0;
183    $cnf->{_}->{nocache}        ||= 0;    $cnf->{_}->{nocache}        ||= 0;
184      $cnf->{_}->{nosymlinks}     ||= 0;
185    $cnf->{_}->{verbosity}      ||= 0;    $cnf->{_}->{verbosity}      ||= 0;
186    $cnf->{_}->{debuglevel}     ||= 0;    $cnf->{_}->{debuglevel}     ||= 0;
187    
# Line 218  files. It will install these for use wit Line 224  files. It will install these for use wit
224    
225  Usage: $name [-c|--config configfile] [-l|--infodir path]  Usage: $name [-c|--config configfile] [-l|--infodir path]
226    [--cadir path] [-s|--statedir path] [-o|--output path] [--format \@formats]    [--cadir path] [-s|--statedir path] [-o|--output path] [--format \@formats]
227    [-T|--httptimeout seconds] [-p|--parallelism n]    [-T|--httptimeout seconds] [-p|--parallelism n] [--nosymlinks]
228    [-a|--agingtolerance hours] [-r|--randomwait seconds]    [-a|--agingtolerance hours] [-r|--randomwait seconds]
229    [-v|--verbose] [-h|--help] [-q|--quiet] [-d|--debug level]    [-v|--verbose] [-h|--help] [-q|--quiet] [-d|--debug level]
230    
231  Options:  Options:
232   -c | --config path   -c | --config path
233          Read configuration data from path, default: /etc/fetch-crl.cnf          Read configuration data from path, default: /etc/fetch-crl.conf
234   -l | --infodir path   -l | --infodir path
235          Location of the trust anchor meta-data files (crl_url or info),          Location of the trust anchor meta-data files (crl_url or info),
236          default: /etc/grid-security/certificates          default: /etc/grid-security/certificates
# Line 238  Options: Line 244  Options:
244          Location of the CRLs written (global default, defaults to infodir          Location of the CRLs written (global default, defaults to infodir
245   --format \@formats   --format \@formats
246          Format(s) in which the CRLs will be written (openssl, pem, der, nss)          Format(s) in which the CRLs will be written (openssl, pem, der, nss)
247     --nosymlinks
248            Do not include meta-data files that are symlinks
249   -v | --verbose   -v | --verbose
250          Become more talkative          Become more talkative
251   -q | --quiet   -q | --quiet

Legend:
Removed from v.1767  
changed lines
  Added in v.1878

grid.support@nikhef.nl
ViewVC Help
Powered by ViewVC 1.1.28