Lines 101-106
Makefile.PL - Koha packager and installer
Link Here
|
101 |
--font_dir Location of fonts (e.g. /usr/share/fonts/truetype/ttf-dejavu) |
101 |
--font_dir Location of fonts (e.g. /usr/share/fonts/truetype/ttf-dejavu) |
102 |
--run_database_tests Run database dependent tests (yes, no) |
102 |
--run_database_tests Run database dependent tests (yes, no) |
103 |
--install_base Base directory of installation (e.g. /usr/share/koha) |
103 |
--install_base Base directory of installation (e.g. /usr/share/koha) |
|
|
104 |
--template-cache-dir Specify a template cache directory (e.g. /var/cache/koha) |
104 |
--help Display this help message |
105 |
--help Display this help message |
105 |
|
106 |
|
106 |
=head1 DESCRIPTION |
107 |
=head1 DESCRIPTION |
Lines 483-488
my %config_defaults = (
Link Here
|
483 |
'USE_MEMCACHED' => 'no', |
484 |
'USE_MEMCACHED' => 'no', |
484 |
'MEMCACHED_SERVERS' => '127.0.0.1:11211', |
485 |
'MEMCACHED_SERVERS' => '127.0.0.1:11211', |
485 |
'MEMCACHED_NAMESPACE' => 'KOHA', |
486 |
'MEMCACHED_NAMESPACE' => 'KOHA', |
|
|
487 |
'TEMPLATE_CACHE_DIR' => '/tmp/koha', |
486 |
'FONT_DIR' => '/usr/share/fonts/truetype/ttf-dejavu' |
488 |
'FONT_DIR' => '/usr/share/fonts/truetype/ttf-dejavu' |
487 |
); |
489 |
); |
488 |
|
490 |
|
Lines 544-549
my $cli_koha_use_memcached = "";
Link Here
|
544 |
my $cli_koha_font_dir = ""; |
546 |
my $cli_koha_font_dir = ""; |
545 |
my $cli_koha_run_database_tests = ""; |
547 |
my $cli_koha_run_database_tests = ""; |
546 |
my $cli_koha_install_base = ""; |
548 |
my $cli_koha_install_base = ""; |
|
|
549 |
my $cli_koha_template_cache_dir = ""; |
547 |
Getopt::Long::Configure('pass_through'); |
550 |
Getopt::Long::Configure('pass_through'); |
548 |
my $results = GetOptions( |
551 |
my $results = GetOptions( |
549 |
"prev-install-log=s" => \$koha_install_log, |
552 |
"prev-install-log=s" => \$koha_install_log, |
Lines 572-577
my $results = GetOptions(
Link Here
|
572 |
"font_dir=s" => \$cli_koha_font_dir, |
575 |
"font_dir=s" => \$cli_koha_font_dir, |
573 |
"run_database_tests=s" => \$cli_koha_run_database_tests, |
576 |
"run_database_tests=s" => \$cli_koha_run_database_tests, |
574 |
"install_base=s" => \$cli_koha_install_base, |
577 |
"install_base=s" => \$cli_koha_install_base, |
|
|
578 |
"template-cache-dir=s" => \$cli_koha_template_cache_dir, |
575 |
"help" => sub { HelpMessage(0) }, |
579 |
"help" => sub { HelpMessage(0) }, |
576 |
) or HelpMessage(1); |
580 |
) or HelpMessage(1); |
577 |
|
581 |
|
Lines 859-865
sub get_cli_values {
Link Here
|
859 |
USE_MEMCACHED => $cli_koha_use_memcached, |
863 |
USE_MEMCACHED => $cli_koha_use_memcached, |
860 |
FONT_DIR => $cli_koha_font_dir, |
864 |
FONT_DIR => $cli_koha_font_dir, |
861 |
RUN_DATABASE_TESTS => $cli_koha_run_database_tests, |
865 |
RUN_DATABASE_TESTS => $cli_koha_run_database_tests, |
862 |
INSTALL_BASE => $cli_koha_install_base |
866 |
INSTALL_BASE => $cli_koha_install_base, |
|
|
867 |
TEMPLATE_CACHE_DIR => $cli_koha_template_cache_dir |
863 |
}; |
868 |
}; |
864 |
foreach my $key (keys %{$map}) { |
869 |
foreach my $key (keys %{$map}) { |
865 |
$values->{$key} = $map->{$key} if ($map->{$key}); |
870 |
$values->{$key} = $map->{$key} if ($map->{$key}); |
Lines 1240-1245
Memcached namespace?);
Link Here
|
1240 |
} |
1245 |
} |
1241 |
|
1246 |
|
1242 |
$msg = q( |
1247 |
$msg = q( |
|
|
1248 |
Template cache directory?); |
1249 |
$config{'TEMPLATE_CACHE_DIR'} = _get_value('TEMPLATE_CACHE_DIR', $msg, $defaults->{'TEMPLATE_CACHE_DIR'}, $valid_values, $install_log_values); |
1250 |
|
1251 |
$msg = q( |
1243 |
Path to DejaVu fonts?); |
1252 |
Path to DejaVu fonts?); |
1244 |
$config{'FONT_DIR'} = _get_value('FONT_DIR', $msg, $defaults->{'FONT_DIR'}, $valid_values, $install_log_values); |
1253 |
$config{'FONT_DIR'} = _get_value('FONT_DIR', $msg, $defaults->{'FONT_DIR'}, $valid_values, $install_log_values); |
1245 |
|
1254 |
|