Lines 94-100
Makefile.PL - Koha packager and installer
Link Here
|
94 |
--koha_user Koha Unix user (e.g. koha) |
94 |
--koha_user Koha Unix user (e.g. koha) |
95 |
--koha_group Koha Unix group (e.g. koha) |
95 |
--koha_group Koha Unix group (e.g. koha) |
96 |
--install_sru Install the SRU server (yes, no) |
96 |
--install_sru Install the SRU server (yes, no) |
97 |
--install_pazpar2 Install PazPar2 (yes, no) |
|
|
98 |
--use_memcached Use Memcached (yes, no) |
97 |
--use_memcached Use Memcached (yes, no) |
99 |
--font_dir Location of fonts (e.g. /usr/share/fonts/truetype/dejavu) |
98 |
--font_dir Location of fonts (e.g. /usr/share/fonts/truetype/dejavu) |
100 |
--run_database_tests Run database dependent tests (yes, no) |
99 |
--run_database_tests Run database dependent tests (yes, no) |
Lines 280-289
Directory for backup files produced by Koha.
Link Here
|
280 |
|
279 |
|
281 |
Directory for external Koha plugins. |
280 |
Directory for external Koha plugins. |
282 |
|
281 |
|
283 |
=item PAZPAR2_CONF_DIR |
|
|
284 |
|
285 |
Directory for PazPar2 configuration files. |
286 |
|
287 |
=item FONT_DIR |
282 |
=item FONT_DIR |
288 |
|
283 |
|
289 |
Directory where DejaVu fonts are installed. |
284 |
Directory where DejaVu fonts are installed. |
Lines 328-334
my $target_map = {
Link Here
|
328 |
'./etc' => { target => 'KOHA_CONF_DIR', trimdir => -1 }, |
323 |
'./etc' => { target => 'KOHA_CONF_DIR', trimdir => -1 }, |
329 |
'./etc/zebradb' => { target => 'ZEBRA_CONF_DIR', trimdir => -1 }, |
324 |
'./etc/zebradb' => { target => 'ZEBRA_CONF_DIR', trimdir => -1 }, |
330 |
'./etc/z3950' => { target => 'Z3950_CONF_DIR', trimdir => -1 }, |
325 |
'./etc/z3950' => { target => 'Z3950_CONF_DIR', trimdir => -1 }, |
331 |
'./etc/pazpar2' => { target => 'PAZPAR2_CONF_DIR', trimdir => -1 }, |
|
|
332 |
'./help.pl' => 'INTRANET_CGI_DIR', |
326 |
'./help.pl' => 'INTRANET_CGI_DIR', |
333 |
'./ill' => 'INTRANET_CGI_DIR', |
327 |
'./ill' => 'INTRANET_CGI_DIR', |
334 |
'./installer-CPAN.pl' => 'NONE', |
328 |
'./installer-CPAN.pl' => 'NONE', |
Lines 517-523
my %config_defaults = (
Link Here
|
517 |
'DB_TLS_CLIENT_CERTIFICATE' => '/etc/mysql-ssl/client-cert.pem', |
511 |
'DB_TLS_CLIENT_CERTIFICATE' => '/etc/mysql-ssl/client-cert.pem', |
518 |
'DB_TLS_CLIENT_KEY' => '/etc/mysql-ssl/client-key.pem', |
512 |
'DB_TLS_CLIENT_KEY' => '/etc/mysql-ssl/client-key.pem', |
519 |
'INSTALL_SRU' => 'yes', |
513 |
'INSTALL_SRU' => 'yes', |
520 |
'INSTALL_PAZPAR2' => 'no', |
|
|
521 |
'ZEBRA_MARC_FORMAT' => 'marc21', |
514 |
'ZEBRA_MARC_FORMAT' => 'marc21', |
522 |
'ZEBRA_LANGUAGE' => 'en', |
515 |
'ZEBRA_LANGUAGE' => 'en', |
523 |
'ZEBRA_TOKENIZER' => 'chr', |
516 |
'ZEBRA_TOKENIZER' => 'chr', |
Lines 530-537
my %config_defaults = (
Link Here
|
530 |
'KOHA_GROUP' => 'koha', |
523 |
'KOHA_GROUP' => 'koha', |
531 |
'MERGE_SERVER_HOST' => 'localhost', |
524 |
'MERGE_SERVER_HOST' => 'localhost', |
532 |
'MERGE_SERVER_PORT' => '11001', |
525 |
'MERGE_SERVER_PORT' => '11001', |
533 |
'PAZPAR2_HOST' => 'localhost', |
|
|
534 |
'PAZPAR2_PORT' => '11002', |
535 |
'RUN_DATABASE_TESTS' => 'no', |
526 |
'RUN_DATABASE_TESTS' => 'no', |
536 |
'PATH_TO_ZEBRA' => '', |
527 |
'PATH_TO_ZEBRA' => '', |
537 |
'USE_MEMCACHED' => 'yes', |
528 |
'USE_MEMCACHED' => 'yes', |
Lines 603-609
my $cli_zebra_sru_auth_port = "";
Link Here
|
603 |
my $cli_koha_user = ""; |
594 |
my $cli_koha_user = ""; |
604 |
my $cli_koha_group = ""; |
595 |
my $cli_koha_group = ""; |
605 |
my $cli_koha_install_sru = ""; |
596 |
my $cli_koha_install_sru = ""; |
606 |
my $cli_koha_install_pazpar2 = ""; |
|
|
607 |
my $cli_koha_use_memcached = ""; |
597 |
my $cli_koha_use_memcached = ""; |
608 |
my $cli_koha_font_dir = ""; |
598 |
my $cli_koha_font_dir = ""; |
609 |
my $cli_koha_run_database_tests = ""; |
599 |
my $cli_koha_run_database_tests = ""; |
Lines 638-644
my $results = GetOptions(
Link Here
|
638 |
"koha_user=s" => \$cli_koha_user, |
628 |
"koha_user=s" => \$cli_koha_user, |
639 |
"koha_group=s" => \$cli_koha_group, |
629 |
"koha_group=s" => \$cli_koha_group, |
640 |
"install_sru=s" => \$cli_koha_install_sru, |
630 |
"install_sru=s" => \$cli_koha_install_sru, |
641 |
"install_pazpar2=s" => \$cli_koha_install_pazpar2, |
|
|
642 |
"use_memcached=s" => \$cli_koha_use_memcached, |
631 |
"use_memcached=s" => \$cli_koha_use_memcached, |
643 |
"font_dir=s" => \$cli_koha_font_dir, |
632 |
"font_dir=s" => \$cli_koha_font_dir, |
644 |
"run_database_tests=s" => \$cli_koha_run_database_tests, |
633 |
"run_database_tests=s" => \$cli_koha_run_database_tests, |
Lines 692-706
push @{ $pl_files->{'rewrite-config.PL'} }, (
Link Here
|
692 |
); |
681 |
); |
693 |
push @{ $pl_files->{'rewrite-config.PL'} }, ( |
682 |
push @{ $pl_files->{'rewrite-config.PL'} }, ( |
694 |
'blib/SCRIPT_DIR/koha-zebra-ctl.sh', |
683 |
'blib/SCRIPT_DIR/koha-zebra-ctl.sh', |
695 |
'blib/SCRIPT_DIR/koha-pazpar2-ctl.sh', |
|
|
696 |
'blib/SCRIPT_DIR/koha-index-daemon-ctl.sh', |
684 |
'blib/SCRIPT_DIR/koha-index-daemon-ctl.sh', |
697 |
); |
685 |
); |
698 |
if ($config{'INSTALL_PAZPAR2'} eq 'yes') { |
|
|
699 |
push @{ $pl_files->{'rewrite-config.PL'} }, ( |
700 |
'blib/PAZPAR2_CONF_DIR/koha-biblios.xml', |
701 |
'blib/PAZPAR2_CONF_DIR/pazpar2.xml' |
702 |
); |
703 |
} |
704 |
$config{'ZEBRA_AUTH_CFG'} = 'zebra-authorities-dom.cfg'; |
686 |
$config{'ZEBRA_AUTH_CFG'} = 'zebra-authorities-dom.cfg'; |
705 |
$config{'ZEBRA_BIB_CFG'} = 'zebra-biblios-dom.cfg'; |
687 |
$config{'ZEBRA_BIB_CFG'} = 'zebra-biblios-dom.cfg'; |
706 |
$config{'AUTH_RETRIEVAL_CFG'} = 'retrieval-info-auth-dom.xml'; |
688 |
$config{'AUTH_RETRIEVAL_CFG'} = 'retrieval-info-auth-dom.xml'; |
Lines 921-927
sub get_cli_values {
Link Here
|
921 |
KOHA_USER => $cli_koha_user, |
903 |
KOHA_USER => $cli_koha_user, |
922 |
KOHA_GROUP => $cli_koha_group, |
904 |
KOHA_GROUP => $cli_koha_group, |
923 |
INSTALL_SRU => $cli_koha_install_sru, |
905 |
INSTALL_SRU => $cli_koha_install_sru, |
924 |
INSTALL_PAZPAR2 => $cli_koha_install_pazpar2, |
|
|
925 |
USE_MEMCACHED => $cli_koha_use_memcached, |
906 |
USE_MEMCACHED => $cli_koha_use_memcached, |
926 |
FONT_DIR => $cli_koha_font_dir, |
907 |
FONT_DIR => $cli_koha_font_dir, |
927 |
RUN_DATABASE_TESTS => $cli_koha_run_database_tests, |
908 |
RUN_DATABASE_TESTS => $cli_koha_run_database_tests, |
Lines 1232-1272
SRU port for authority data?);
Link Here
|
1232 |
|
1213 |
|
1233 |
} |
1214 |
} |
1234 |
|
1215 |
|
1235 |
$msg = q( |
|
|
1236 |
Along with Zebra, you can also choose to install PazPar2, |
1237 |
which is a metasearch tool. With PazPar2, |
1238 |
Koha can perform on-the-fly merging of bibliographic |
1239 |
records during searching, allowing for FRBRization of |
1240 |
the results list. |
1241 |
|
1242 |
Install the PazPar2 configuration files?); |
1243 |
$msg .= _add_valid_values_disp('INSTALL_PAZPAR2', $valid_values); |
1244 |
$config{'INSTALL_PAZPAR2'} = _get_value('INSTALL_PAZPAR2', $msg, $defaults->{'INSTALL_PAZPAR2'}, $valid_values, $install_log_values); |
1245 |
|
1246 |
if ($config{'INSTALL_PAZPAR2'} eq 'yes') { |
1247 |
$msg = q( |
1248 |
Since you've chosen to configure PazPar2, you must |
1249 |
specify the host and port(s) that PazPar2 |
1250 |
uses: |
1251 |
); |
1252 |
$msg = q( |
1253 |
Zebra bibliographic server host?); |
1254 |
$config{'MERGE_SERVER_HOST'} = _get_value('MERGE_SERVER_HOST', $msg, $defaults->{'MERGE_SERVER_HOST'}, $valid_values, $install_log_values); |
1255 |
|
1256 |
$msg = q( |
1257 |
Zebra bibliographic port for PazPar2 to use?); |
1258 |
$config{'MERGE_SERVER_PORT'} = _get_value('MERGE_SERVER_PORT', $msg, $defaults->{'MERGE_SERVER_PORT'}, $valid_values, $install_log_values); |
1259 |
|
1260 |
$msg = q( |
1261 |
PazPar2 host?); |
1262 |
$config{'PAZPAR2_HOST'} = _get_value('PAZPAR2_HOST', $msg, $defaults->{'PAZPAR2_HOST'}, $valid_values, $install_log_values); |
1263 |
|
1264 |
$msg = q( |
1265 |
PazPar2 port?); |
1266 |
$config{'PAZPAR2_PORT'} = _get_value('PAZPAR2_PORT', $msg, $defaults->{'PAZPAR2_PORT'}, $valid_values, $install_log_values); |
1267 |
|
1268 |
} |
1269 |
|
1270 |
$msg = q( |
1216 |
$msg = q( |
1271 |
Use memcached to cache the results of some function calls? |
1217 |
Use memcached to cache the results of some function calls? |
1272 |
This provides a significant performance improvement. |
1218 |
This provides a significant performance improvement. |
Lines 1489-1495
sub get_target_directories {
Link Here
|
1489 |
$dirmap{'KOHA_CONF_DIR'} = File::Spec->catdir(@basedir, $package, 'etc'); |
1435 |
$dirmap{'KOHA_CONF_DIR'} = File::Spec->catdir(@basedir, $package, 'etc'); |
1490 |
$dirmap{'ZEBRA_CONF_DIR'} = File::Spec->catdir(@basedir, $package, 'etc', 'zebradb'); |
1436 |
$dirmap{'ZEBRA_CONF_DIR'} = File::Spec->catdir(@basedir, $package, 'etc', 'zebradb'); |
1491 |
$dirmap{'Z3950_CONF_DIR'} = File::Spec->catdir(@basedir, $package, 'etc', 'z3950'); |
1437 |
$dirmap{'Z3950_CONF_DIR'} = File::Spec->catdir(@basedir, $package, 'etc', 'z3950'); |
1492 |
$dirmap{'PAZPAR2_CONF_DIR'} = File::Spec->catdir(@basedir, $package, 'etc', 'pazpar2'); |
|
|
1493 |
$dirmap{'MISC_DIR'} = File::Spec->catdir(@basedir, $package, 'misc'); |
1438 |
$dirmap{'MISC_DIR'} = File::Spec->catdir(@basedir, $package, 'misc'); |
1494 |
$dirmap{'SCRIPT_DIR'} = File::Spec->catdir(@basedir, $package, 'bin'); |
1439 |
$dirmap{'SCRIPT_DIR'} = File::Spec->catdir(@basedir, $package, 'bin'); |
1495 |
$dirmap{'SCRIPT_NONDEV_DIR'} = $dirmap{'SCRIPT_DIR'}; |
1440 |
$dirmap{'SCRIPT_NONDEV_DIR'} = $dirmap{'SCRIPT_DIR'}; |
Lines 1523-1529
sub get_target_directories {
Link Here
|
1523 |
$dirmap{'KOHA_CONF_DIR'} = File::Spec->catdir(@basedir, $package, 'etc'); |
1468 |
$dirmap{'KOHA_CONF_DIR'} = File::Spec->catdir(@basedir, $package, 'etc'); |
1524 |
$dirmap{'ZEBRA_CONF_DIR'} = File::Spec->catdir(@basedir, $package, 'etc', 'zebradb'); |
1469 |
$dirmap{'ZEBRA_CONF_DIR'} = File::Spec->catdir(@basedir, $package, 'etc', 'zebradb'); |
1525 |
$dirmap{'Z3950_CONF_DIR'} = File::Spec->catdir(@basedir, $package, 'etc', 'z3950'); |
1470 |
$dirmap{'Z3950_CONF_DIR'} = File::Spec->catdir(@basedir, $package, 'etc', 'z3950'); |
1526 |
$dirmap{'PAZPAR2_CONF_DIR'} = File::Spec->catdir(@basedir, $package, 'etc', 'pazpar2'); |
|
|
1527 |
$dirmap{'MISC_DIR'} = File::Spec->catdir(@basedir, $package, 'misc'); |
1471 |
$dirmap{'MISC_DIR'} = File::Spec->catdir(@basedir, $package, 'misc'); |
1528 |
$dirmap{'SCRIPT_DIR'} = File::Spec->catdir(@basedir, $package, 'bin'); |
1472 |
$dirmap{'SCRIPT_DIR'} = File::Spec->catdir(@basedir, $package, 'bin'); |
1529 |
#For dev install, point NONDEV_DIR to misc in current dir (not base) |
1473 |
#For dev install, point NONDEV_DIR to misc in current dir (not base) |
Lines 1552-1558
sub get_target_directories {
Link Here
|
1552 |
$dirmap{'KOHA_CONF_DIR'} = File::Spec->catdir(File::Spec->rootdir(), 'etc', $package); |
1496 |
$dirmap{'KOHA_CONF_DIR'} = File::Spec->catdir(File::Spec->rootdir(), 'etc', $package); |
1553 |
$dirmap{'ZEBRA_CONF_DIR'} = File::Spec->catdir(File::Spec->rootdir(), 'etc', $package, 'zebradb'); |
1497 |
$dirmap{'ZEBRA_CONF_DIR'} = File::Spec->catdir(File::Spec->rootdir(), 'etc', $package, 'zebradb'); |
1554 |
$dirmap{'Z3950_CONF_DIR'} = File::Spec->catdir(File::Spec->rootdir(), 'etc', $package, 'z3950'); |
1498 |
$dirmap{'Z3950_CONF_DIR'} = File::Spec->catdir(File::Spec->rootdir(), 'etc', $package, 'z3950'); |
1555 |
$dirmap{'PAZPAR2_CONF_DIR'} = File::Spec->catdir(File::Spec->rootdir(), 'etc', $package, 'pazpar2'); |
|
|
1556 |
$dirmap{'MISC_DIR'} = File::Spec->catdir(@basedir, $package, 'misc'); |
1499 |
$dirmap{'MISC_DIR'} = File::Spec->catdir(@basedir, $package, 'misc'); |
1557 |
$dirmap{'SCRIPT_DIR'} = File::Spec->catdir(@basedir, $package, 'bin'); |
1500 |
$dirmap{'SCRIPT_DIR'} = File::Spec->catdir(@basedir, $package, 'bin'); |
1558 |
$dirmap{'SCRIPT_NONDEV_DIR'} = $dirmap{'SCRIPT_DIR'}; |
1501 |
$dirmap{'SCRIPT_NONDEV_DIR'} = $dirmap{'SCRIPT_DIR'}; |
Lines 1782-1789
sub _update_zebra_conf_target {
Link Here
|
1782 |
$target .= "\t\t\$(KOHA_INST_ZEBRA_CONF_DIR) \$(KOHA_DEST_ZEBRA_CONF_DIR) \n"; |
1725 |
$target .= "\t\t\$(KOHA_INST_ZEBRA_CONF_DIR) \$(KOHA_DEST_ZEBRA_CONF_DIR) \n"; |
1783 |
$target .= "\t\$(NOECHO) chmod -R u+w \$(KOHA_DEST_ZEBRA_CONF_DIR)\n"; |
1726 |
$target .= "\t\$(NOECHO) chmod -R u+w \$(KOHA_DEST_ZEBRA_CONF_DIR)\n"; |
1784 |
$target .= "\tumask 022; \$(MOD_INSTALL) \\\n"; |
1727 |
$target .= "\tumask 022; \$(MOD_INSTALL) \\\n"; |
1785 |
$target .= "\t\t\$(KOHA_INST_PAZPAR2_CONF_DIR) \$(KOHA_DEST_PAZPAR2_CONF_DIR) \n"; |
|
|
1786 |
$target .= "\t\$(NOECHO) chmod -R u+w \$(KOHA_DEST_PAZPAR2_CONF_DIR)\n"; |
1787 |
|
1728 |
|
1788 |
return $target; |
1729 |
return $target; |
1789 |
} |
1730 |
} |
Lines 1809-1815
make_upgrade_backup ::
Link Here
|
1809 |
\t\$(NOECHO) umask 022; \$(MOD_BACKUP) \\ |
1750 |
\t\$(NOECHO) umask 022; \$(MOD_BACKUP) \\ |
1810 |
/; |
1751 |
/; |
1811 |
foreach my $key (qw/KOHA_CONF_DIR INTRANET_TMPL_DIR INTRANET_WWW_DIR OPAC_TMPL_DIR OPAC_WWW_DIR |
1752 |
foreach my $key (qw/KOHA_CONF_DIR INTRANET_TMPL_DIR INTRANET_WWW_DIR OPAC_TMPL_DIR OPAC_WWW_DIR |
1812 |
PAZPAR2_CONF_DIR ZEBRA_CONF_DIR PLUGINS_DIR/) { |
1753 |
ZEBRA_CONF_DIR PLUGINS_DIR/) { |
1813 |
$upgrade .= "\t\t\$(KOHA_INST_$key) \$(KOHA_DEST_$key) \\\n" |
1754 |
$upgrade .= "\t\t\$(KOHA_INST_$key) \$(KOHA_DEST_$key) \\\n" |
1814 |
unless exists $skip_directories->{$key} or |
1755 |
unless exists $skip_directories->{$key} or |
1815 |
not exists $target_directories->{$key}; |
1756 |
not exists $target_directories->{$key}; |