=head1 SYNOPSIS
+=head2 BASIC INSTALLATION
+
perl Makefile.PL
make
sudo make install
+
+=head2 PACKAGING RELEASE TARBALLS
+
make manifest tardist
make manifest zipdist
+=head2 CLEANING UP
+
+ make clean
+
=head1 DESCRIPTION
This is a packager and installer that uses
ExtUtils::MakeMaker, which is fairly common
on perl systems.
As well as building tar or zip files
-and installing,
+and installing with the above commands,
it allows us to check pre-requisites
and generate configuration files.
=head2 CONFIGURE
-Maybe use prompt() here in future to get configuration values at installation time.
+Maybe use prompt() here in future to get configuration values
+interactively at installation time.
=head2 PL_FILES
This is a hash of PL scripts to run after installation and
the files to ask them to generate.
Maybe use the values from CONFIGURE
-to generate initial configuration files.
+to generate initial configuration files in future.
=cut
'DBD::mysql' => 3.0008,
'DBI' => 1.53,
'Data::Dumper' => 2.121_08,
-'Data::Random' => 0.05,
'Date::Calc' => 5.4,
'Date::Manip' => 5.44,
'Digest::MD5' => 2.36,
'Getopt::Std' => 1.05,
'HTML::Template' => 2.8,
'HTML::Template::Pro' => 0.65,
-'HTML::Tree' => 3.1901,
'HTTP::Cookies' => 1.39,
'HTTP::Request::Common' => 1.26,
'LWP::Simple' => 1.41,
PL_FILES => { # generator => target(s)
'rewrite-config.PL' => [
- '$(INST_LIBDIR)/koha/etc/koha-conf.xml',
- '$(INST_LIBDIR)/koha/etc/koha-httpd.conf',
- '$(INST_LIBDIR)/koha/etc/zebra-biblios.cfg',
- '$(INST_LIBDIR)/koha/etc/zebra-authorities.cfg'
+ '$(PREFIX)/share/koha/etc/koha-conf.xml',
+ '$(PREFIX)/share/koha/etc/koha-httpd.conf',
+ '$(PREFIX)/share/koha/etc/zebradb/tab/kohalis',
+ '$(PREFIX)/share/koha/etc/zebradb/zebra-biblios.cfg',
+ '$(PREFIX)/share/koha/etc/zebradb/zebra-authorities.cfg'
]
}
# 'opac/getfromintranet.PL' => ['$(INST_LIBDIR)/opac/cgi-bin/detail.pl','$(INST_LIBDIR)/opac/cgi-bin/moredetail.pl','$(INST_LIBDIR)/opac/cgi-bin/search.pl','$(INST_LIBDIR)/opac/cgi-bin/subjectsearch.pl','$(INST_LIBDIR)/opac/cgi-bin/logout.pl'],
=head2 map_tree
This function lists all files and where to install each one.
-It returns a hash reference suitable for PM.
+It returns a hash reference suitable for the PM variable above.
=cut
=pod
-CGIs are copied to koha/cgi-bin
-and other scripts to koha/examples.
+CGIs are copied to $(PREFIX)/lib/cgi-bin/koha/
+and other scripts to koha/
=cut
- # Misc scripts to koha/examples
- foreach my $src (glob("*.pl"),glob("*/*.pl"),glob("installer/*.pm"),glob("*/*/*.pl"),glob("*/*/*/*.pl")) {
+ foreach my $src ("mainpage.pl","help.pl",glob("*/*.pl"),glob("installer/*.pm"),glob("*/*/*.pl"),glob("*/*/*/*.pl")) {
if ($src =~ /(misc|updater|rss)\//) {
- $result{$src} = '$(INST_LIBDIR)/koha/scripts/'.$src;
+ $result{$src} = '$(INST_LIBDIR)/koha/'.$src;
} else {
- $result{$src} = '$(INST_LIBDIR)/koha/cgi-bin/'.$src;
+ $result{$src} = '$(PREFIX)/lib/cgi-bin/koha/'.$src;
}
}
}
=pod
-etc files are copied to koha/etc
+etc files are copied to /usr/share/koha/etc/
=cut
# Misc etc to koha/etc
foreach my $src (glob("etc/*")) {
- $result{$src} = '$(INST_LIBDIR)/koha/'.$src;
+ $result{$src} = '$(PREFIX)/share/koha/'.$src;
}