Commit graph

187 commits

Author SHA1 Message Date
Chris Nighswonger
f159b75cb7 Fix for MSWin32
A tweak to restore MSWin32 installation capability.

NOTE: Native MSWin32 support in Koha is for Strawberry Perl 5.10.1.0 or later.
There are some issues with GDBM_File.pm which prevent Koha from running without a bit of
a workaround. This will be resolved in the January 2010 release of Strawberry Perl. More
can be read concerning this in the INSTALL.MSWin32 file which will be forth-coming.

NOTE: There will be several other minor changes to other portions of the Koha code base
in order to fix misc issues when Koha is installed on MSWin32.
2009-12-20 14:27:03 +01:00
Paul Poulain
e418db57f9 Adding dependencies, :
* Number::Format, to format $ values
* PDF::API2::Simple, that will be used for order printing
* PDF::Table, used to manage tables in order printing
2009-09-30 11:30:14 +02:00
Marc Chantreux
6406ae9eea honor the DESTDIR environement variable when set
for exemple: when you use
install_misc/environment_Makefile.PL DESTDIR=$HOME by default but koha
is installed in $HOME/koha-dev that is not expected!

Signed-off-by: Galen Charlton <gmcharlt@gmail.com>
2009-09-30 11:30:07 +02:00
Henri-Damien LAURENT
feeafa8168 Adding Opac-SearchHistory feature
Enables ppl to store their search history and delete the whole history

Adding Storable required by Opac-Search-History

Signed-off-by: Galen Charlton <gmcharlt@gmail.com>
2009-09-30 11:22:21 +02:00
2d87fbeabc bumped up required version of Test::More
Now requiring at least 0.80, the oldest version available
from CPAN, because use_ok tests were not being properly
accounted for in the test plan before 0.73.  This led
to a situation where a test script containing a use_ok test
that passes running under an earlier version of Test::More
would fail under a more recent one.

Signed-off-by: Galen Charlton <gmcharlt@gmail.com>
2009-09-15 08:25:34 -04:00
e16e9205d7 Updating the Makefile so memcached configuration can be added to the koha-conf.xml file
Signed-off-by: Galen Charlton <gmcharlt@gmail.com>
2009-08-24 07:33:11 -04:00
Henri-Damien LAURENT
54f7ca4d3b bug 3204: implement request signing for Amazon Web Services
After 2009-08-15, Amazon Web Services will expect that
all requests to the Product Advertising API, which is what
Koha uses for retrieving reviews and other enhanced content
from Amazon, include signatures.  This patch and
subsequenct patches implement this functionality.

What this means in practice (assuming the user has elected
to use any enhanced content from Amazon) is that

[1] The user must get a Amazon Secret Access Key.  This can
    be done by logging in to the user's AWS account
    at (e.g.) http://aws.amazon.com/, going to the 'Access Identifiers'
    page, and from there retrieving and/or creating a new Secret
    Access Key.

[2] The contents of the Secret Access Key should then be
    entered into the new AWSPrivateKey system preference.

Once that is done, grabbing reviews and table of contents from Amazon
should work as normal.  If the user doesn't do this before 2009-08-15,
reviews and TOCs will no longer be supplied from Amazon, although there
should be no crashes - the content will simply not show up.

Note that the requirement to sign requests does *NOT* appear to apply
to simply displaying book covers from Amazon.

Signed-off-by: Galen Charlton <gmcharlt@gmail.com>
2009-08-13 09:29:56 -04:00
5cd357e76c bug 3465: enhance DB update reporting by web installer
This enhances the web installer so that messages from updatedatabase.pl will
be displayed to the user running a database update.  Messages printed to STDOUT
will be displayed as the update report, while messages printed to STDERR will
be displayed as update errors.

This patch introduces  a new module dependency, IPC::Cmd.
IPC::Cmd lets one run an external program such as updatedatabase.pl and easily
capture STDERR and STDOUT for further munging.  IPC::Cmd is core in Perl 5.10
and stable in Perl 5.8.

Signed-off-by: Galen Charlton <gmcharlt@gmail.com>
2009-08-04 06:15:40 -04:00
Michael Hafen
6c0dbfb86d offline_circ must use SQLite v2 - because Kyles PHP does
The Offline Circ tool by Kyle Hall uses PHP's SQLite, which is SQLite
v2.  Gnope, which Kyle links, ships with libSQLite v2.

Let's not count on libsqlite3 not being installed for perl.  If it is
installed DBD::SQLite will use it, where DBD::SQLite2 will not.

Signed-off-by: Galen Charlton <galen.charlton@liblime.com>
2009-05-21 15:26:21 -05:00
Michael Hafen
e5120778c7 Tweak offline_circ - honor itemBarcodeInputFilter and add to Makefile.PL
Add the ofline_circ directory to Makefile.PL as needing to be installed.
Add calls to barcodedecode() on issueing and returning.

Signed-off-by: Galen Charlton <galen.charlton@liblime.com>
2009-05-08 09:09:53 -05:00
Galen Charlton
9c4a717dd5 added dependencies for new OAI-PMH server
Signed-off-by: Galen Charlton <galen.charlton@liblime.com>
2009-04-01 11:50:18 -05:00
deba21330c Bug #3036 Avoid command-line installer blocking on opensolaris plateform
Koha installation/upgrade on OpenSolaris 'seems' to work.

Signed-off-by: Galen Charlton <galen.charlton@liblime.com>
2009-03-27 18:37:08 -05:00
Andrew Elwell
50533a1ad5 Consistency check between Makefile.pl and about.pl We weren't picking up JSOM so admin/item_circulation_alerts.pl gave a 500 internal server error if JOSM not installed.
Also sorted packages.debian alphabetically so that we can maintain
 easier.

Signed-off-by: Galen Charlton <galen.charlton@liblime.com>
2009-02-26 14:48:53 -06:00
Andrew Elwell
e64f395d43 Minor documentation typos
Signed-off-by: Galen Charlton <galen.charlton@liblime.com>
2009-02-26 14:45:46 -06:00
Galen Charlton
f74d63a1e5 bug 2864 [2/2]: move rss/* to misc/cronjobs/rss/*
As rss.pl is not a CGI script, moved it to join the
other cronjobs.  Full documentation of the script
is in misc/cronjobs/rss/rss.pl, but to summarize:

[1] rss.pl is run on the command line to produce
    an RSS XML document.  The output should be
    placed in a directory accessible to the OPAC
    (or staff) web interface so that users can download
    the RSS feed.  An example of usage:

    misc/cronjobs/rss.pl lastAcquired.conf

    Normally rss.pl should be run periodically (e.g., daily)
    to keep the feed up-to-date.

[2] The configuration file (e.g., lastAcquired.conf) lists

    * name of the template file to use
    * path of output file
    * SQL query

    rss.pl runs the SQL query, then feeds the output of the
    query through the template to produce the output file.

[3] The template file (e.g., lastAcquired.tmpl) uses
    HTML::Template syntax like any of the HTML
    templates for the web interface.

Signed-off-by: Galen Charlton <galen.charlton@liblime.com>
2008-12-17 08:02:34 -06:00
Nahuel Angelinetti
c76687b090 Add a dependance to CGI::Session::serialize::yaml 4.20
Signed-off-by: Galen Charlton <galen.charlton@liblime.com>
2008-11-06 15:37:41 -06:00
Andrew Moore
4d0b03eabe bug 2628: fixing test script to deal with DESTDIR in Makefile.PL
Recently, there were changes to the Makefile.PL to make it install in a
DESTDIR that the OS (debian) may choose. This broke the test suite.
Since we're not installing the stuff in the t/ directory, we need to
ignore the DESTDIR specifiation before we write the test-config.txt.
So, this patch adds a call to the _strip_destdir function for all
directories written to the t/test-config.txt file.

Signed-off-by: Galen Charlton <galen.charlton@liblime.com>
2008-09-26 09:08:35 -05:00
Vincent Danjean
908724984a Add support for DESTDIR
Distributions (such as Debian) needs a staging area when building the package

Signed-off-by: Galen Charlton <galen.charlton@liblime.com>
2008-08-20 20:23:53 -05:00
Andrew Moore
556d9cc43d bug 2503: refactoring and bugfixing on create_koc_db.pl
This is the script that generates the patron and holdings database for the offline circ module. I
touched up a few parts of it:

* fixed the database syntax to squash a bug or two
* extracted some methods for readability and reuse
* added some documentation
* added a --file and --force command line argument
* made it die if DBD::SQLite is not present. That module is required for this feature.

Here's an example crontab line that will generate the borrowers.db file each midnight.

0 0 * * * create_koc_db.pl --file /tmp/borrowers.db

Signed-off-by: Galen Charlton <galen.charlton@liblime.com>
2008-08-20 17:05:25 -05:00
Paul POULAIN
f896384ceb Adding Email::Date dependancy, requested by MIME::Lite
(no bugzilla entry)

Signed-off-by: Joshua Ferraro <jmf@liblime.com>
2008-08-06 07:13:59 -05:00
Chris Nighswonger
639a3cf88d kohabug 2457 Minor patch to correct GD
version number

Signed-off-by: Galen Charlton <galen.charlton@liblime.com>
Signed-off-by: Joshua Ferraro <jmf@liblime.com>
2008-08-04 15:26:53 -05:00
Chris Nighswonger
1baf6348cc kohabug 2404 This patch removes Image::Magick and adds GD
This patch removes Image::Magick as a dependency and replaces it with
the (much) lighter GD. Functionality of patronimage code has not changed with
this conversion.

Adding errorhandling for corrupted image file and link to return to moremember.pl when called from there

Added notes about supported image mime types.

Signed-off-by: Galen Charlton <galen.charlton@liblime.com>
Signed-off-by: Joshua Ferraro <jmf@liblime.com>
2008-07-30 03:38:18 -05:00
Andrew Moore
d0c0df94fb Bug 2274: reducing MIME::Lite requirement to 3.0
There has been a report of difficulties installing MIME::Lite 3.01. Only 3.0 is really necessary, so I'm relaxing the requirements.

Signed-off-by: Joshua Ferraro <jmf@liblime.com>
2008-07-10 16:08:40 -05:00
Andrew Moore
6fce5692ba Bug 2274 [2/5]: adding MIME::Lite to list of required modules
formerly, the overdues cronjobs were crafting their own MIME message attachments (poorly). This
patch adds a dependency on MIME::Lite, the de facto standard perl module for forming usable
emails with MIME attachments. MIME::Lite is pure perl and well supported on numerous platforms:
http://testers.cpan.org/show/MIME-Lite.html

Signed-off-by: Joshua Ferraro <jmf@liblime.com>
2008-07-10 09:10:44 -05:00
Galen Charlton
3efe32efc7 bug 2305: install tags/* to intranet CGI directory
Signed-off-by: Joshua Ferraro <jmf@liblime.com>
2008-07-04 09:22:14 -05:00
MJ Ray
4bc2303598 Note optional modules, for later reference.
Signed-off-by: Joshua Ferraro <jmf@liblime.com>
2008-06-25 11:33:37 -05:00
Joshua Ferraro
5623574b86 slef's patch for 'Algorithm::CheckDigits' => 0.50, 2008-06-23 10:35:55 -05:00
Andrew Moore
11aed99ced Bug 2176: adding SMS::Send to list of dependencies
SMS::Send is used by the new enhanced messaging stuff. It's a pure-perl module that
provides a consistent interface to SMS sending gateways. There are alredy
a handful of driver modules for gateways on CPAN, and adding one for a new gateway
is possible.

Signed-off-by: Joshua Ferraro <jmf@liblime.com>
2008-06-20 13:04:57 -05:00
Joe Atzberger
0905b6b747 Add HTML::Scrubber dependency to Makefile.PL
Signed-off-by: Joshua Ferraro <jmf@liblime.com>
2008-05-16 08:10:58 -05:00
Andrew Moore
05b334d82b bug 2083: requiring that the test database have a different name from the production database
This patch requires that the test database name be different from the production database name.
The object here is to prevent people from specifying the same database for both, and then
losing all of their data in the production database.

This may cause problems for people who want to do that, though I consider that bad practice.
It may also cause problems for people if they have two different servers, each with identically
named database, and they want to use one for testing and the other for production. If we ever
find that someone like that exists, we can deal with that case.

I don't think there are any necessary documentation changes here yet since we're recommending
that users answer "no" to the question about setting up a test database.

Signed-off-by: Joshua Ferraro <jmf@liblime.com>
2008-05-11 06:43:39 -05:00
Galen Charlton
2fafa1424b kohabug 1776 - try to locate Zebra during install
If running Zebra, try to locate zebrasrv and zebraidx
so that koha-zebra-ctl.sh can point to a functioning
zebrasrv.

Signed-off-by: Joshua Ferraro <jmf@liblime.com>
2008-04-22 17:59:00 -05:00
Andrew Moore
1a6d84c4a6 testing framework: adding more warnings about possible data loss
I'm adding some more warnings in Makefile.PL to indicate that you WILL lose the data
in your testing database.

I've also relaxed the requirement that the teting database have "test" in its name.

Signed-off-by: Joshua Ferraro <jmf@liblime.com>
2008-04-22 09:09:05 -05:00
Galen Charlton
f20a58181b kohabug 1776 - enable daemon controls scripts for 'dev' mode
The daemon control scripts (koha-zebra-ctl.sh, koha-zebraqueue-ctl.sh,
and koha-pazpar2-ctl.sh) are now copied and installed in a
runnable fashion for a 'dev'-mode install.  By default
they are installed in the bin subdirectory of the runtime
directory.

Also:

* the control scripts now work if the EUID is other
  than root (as would be expected for a 'dev' or 'single'
  install).
* Split the SCRIPT_DIR installation target into
  SCRIPT_DIR (scripts to copy regardless of install mode)
  and SCRIPT_NONDEV_DIR (scripts to copy to SCRIPT_DIR
  unless the install mode is 'dev').

Signed-off-by: Joshua Ferraro <jmf@liblime.com>
2008-04-21 18:17:32 -05:00
Galen Charlton
33036c4ae4 test suite - various changes
* All configuration and run-time files created during
  a test suite run now live under t/run
* made sure scripts copied to t/run/bin are executable
* added t/run and t/test-config.txt to .gitignore

Signed-off-by: Andrew Moore <andrew.moore@liblime.com>
Signed-off-by: Joshua Ferraro <jmf@liblime.com>
2008-04-21 11:26:30 -05:00
Andrew Moore
80568463ea improvements to automated tests, including a testing database
I'm adding a bunch of additions to the test suite. There is now a test
database that is created, and a test instance of the zebra server and
daemon that are run before the tests in t/database-dependent.pl are
run. This means that you can test things that insert (or destroy)
things in the database.

To use these tests, after you 'make' your koha installation, you can
change to the 't' directory and 'make test' there.

There is now an additional question asked during installation. It asks
whether you would like to run the data-dependent tests. If so, It asks
you for some login information to a test database. I recommend that
you do not not use your production database here. It will delete all
of the data in it.

Things that need improvement:
* I suspect that there are large parts that are not very platform
  independent, so they will need to be improved.
* There are some parts of the installer that will probably be
  refactored to let this work a little bit better, including being run
  directly from a main-level 'make' target at some point.
* Lots more tests to add. Be bold! (see the t/lib directory)
* other tests in t/*.t can possibly benefit from being included in here.

There are two required perl modules for this part of the test suite. I
use:
'Test::Class' => 0.028,
'Test::Class::Load' => 0.02,
They are not listed as requirements in the top-level Makefile.PL
because they're not actually required to install or use Koha, but if
you want to run the test suite, you can install them from CPAN.

Signed-off-by: Galen Charlton <galen.charlton@liblime.com>
Signed-off-by: Joshua Ferraro <jmf@liblime.com>
2008-04-21 11:26:27 -05:00
Galen Charlton
8d8eb29e59 dep change: Data::Dumper 2.121_08 => 2.121
Signed-off-by: Joshua Ferraro <jmf@liblime.com>
2008-04-21 11:18:03 -05:00
Chris Nighswonger
9a55637760 NOTE: REQUIRES INSTALLATION OF Image::Magick; Adding image scaling/resizing capability to picture-upload.pl
Signed-off-by: Joshua Ferraro <jmf@liblime.com>
2008-04-08 17:00:05 -05:00
Chris Nighswonger
710afb6251 Bumping HTML::Template::Pro version to the latest 0.69 release which includes <!-- TMPL_ELSIF --> tag
Signed-off-by: Chris Cormack <chris@bigballofwax.co.nz>
Signed-off-by: Joshua Ferraro <jmf@liblime.com>
2008-03-05 08:13:52 -06:00
Chris Nighswonger
981a345d22 Clairifying pod for upgrade and correcting dmake message for Win32
Signed-off-by: Chris Cormack <chris@bigballofwax.co.nz>
Signed-off-by: Joshua Ferraro <jmf@liblime.com>
2008-02-20 20:15:26 -06:00
Galen Charlton
f53d084c00 bug 1803 - fix error page handling
Signed-off-by: Chris Cormack <chris@bigballofwax.co.nz>
Signed-off-by: Joshua Ferraro <jmf@liblime.com>
2008-02-18 19:32:07 -06:00
Galen Charlton
1cd1a5abd3 install: tweaked 'make update'
Signed-off-by: Chris Cormack <chris@bigballofwax.co.nz>
Signed-off-by: Joshua Ferraro <jmf@liblime.com>
2008-02-15 08:30:53 -06:00
Galen Charlton
25e1b9e49c installer: added 'make upgrade' target
INTRANET_TMPL_DIR
INTRANET_WWW_DIR
OPAC_TMPL_DIR
OPAC_WWW_DIR
KOHA_CONF_DIR
OPAC_TMPL_DIR
OPAC_WWW_DIR
PAZPAR2_CONF_DIR
ZEBRA_CONF_DIR

For each directory on the list, if an existing file
installed file is different from the version
coming from the new package, it is copied to a backup file
whose name will have the suffix "_koha_<old_version_number>"
or "_upgrade_backup", depending on whether
the --prev-install-log option was used or not
during 'perl Makefile.PL'.

The directories whose files were backed up were
chosen because they contain configuration and
HTML files that a non-programmer Koha user
is likely to change.  Consequently, the backup
files produced by 'make upgrade' are not a substitute
for doing a complete backup of one's Koha
installation before upgrading.

Signed-off-by: Chris Cormack <chris@bigballofwax.co.nz>
Signed-off-by: Joshua Ferraro <jmf@liblime.com>
2008-02-15 08:30:53 -06:00
Galen Charlton
20f1c41ca7 install: added --prev-install-log option to Makefile.PL
Signed-off-by: Chris Cormack <chris@bigballofwax.co.nz>
Signed-off-by: Joshua Ferraro <jmf@liblime.com>
2008-02-15 08:30:51 -06:00
Galen Charlton
82daf0a5bc installer: added install log
Signed-off-by: Chris Cormack <chris@bigballofwax.co.nz>
Signed-off-by: Joshua Ferraro <jmf@liblime.com>
2008-02-15 08:30:49 -06:00
Galen Charlton
70dccacee5 FRBR: configure PazPar2 during installation
Also added koha-pazpar2-ctl.sh to start and stop
PazPar2.

Signed-off-by: Joshua Ferraro <jmf@liblime.com>
2008-02-11 16:35:18 -06:00
Galen Charlton
1c0401e867 authorities - enabled DOM indexing
All new authority features will be based on the DOM indexing.

To update an existing installation, do the following:

[1] run perl Makefile.PL
[2] make
[3] make update_zebra_conf
[4] copy the new koha-conf.xml to $KOHA_CONF

Signed-off-by: Chris Cormack <crc@liblime.com>
Signed-off-by: Joshua Ferraro <jmf@liblime.com>
2008-02-08 05:48:51 -06:00
Joe Atzberger
5d6cc9c3a3 Makefile.PL - trivial perldoc correction
Signed-off-by: Chris Cormack <crc@liblime.com>
Signed-off-by: Joshua Ferraro <jmf@liblime.com>
2008-02-06 23:19:28 -06:00
8d7c8419a3 Fix for bug #1806
Signed-off-by: Chris Cormack <crc@liblime.com>
Signed-off-by: Joshua Ferraro <jmf@liblime.com>
2008-01-30 07:51:42 -06:00
Paul POULAIN
521776bde0 hdl has added a Text::Iconv dependancy yesterday, checking it in installer
Signed-off-by: Chris Cormack <crc@liblime.com>
Signed-off-by: Joshua Ferraro <jmf@liblime.com>
2008-01-14 16:41:21 -06:00
Galen Charlton
6530b683f8 Makefile.PL - set KOHA_CONF for make test
KOHA_CONF now set to blib/KOHA_CONF_DIR/koha-conf.xml
for the purpose of running the test suite.

Signed-off-by: Chris Cormack <crc@liblime.com>
Signed-off-by: Joshua Ferraro <jmf@liblime.com>
2008-01-08 14:07:55 -06:00
Galen Charlton
1b603d058e installer: added update_zebra_conf target
This target is meant to allow the easy updating
of the Zebra configuration files from an installation
package.

This has been tested for a 'dev' mode install, not
for the other types.

Signed-off-by: Joshua Ferraro <jmf@liblime.com>
2008-01-04 18:40:33 -06:00
Joshua Ferraro
bbd043f155 adding three new variables for installation:
'ZEBRA_SRU_HOST'    => 'localhost',
  'ZEBRA_SRU_BIBLIOS_PORT'    => '9998',
  'ZEBRA_SRU_AUTHORITIES_PORT'    => '9999',

Signed-off-by: Joshua Ferraro <jmf@liblime.com>
2008-01-03 21:28:27 -06:00
Galen Charlton
8f82439e61 important: DBD::mysql 4.004 or later required
This version of DBD::mysql is required in order to have
proper handling of UTF8 strings.

Also bumped version of YAML::Syck down to 0.71 to
match Debian stable package.

Signed-off-by: Chris Cormack <crc@liblime.com>
Signed-off-by: Joshua Ferraro <jmf@liblime.com>
2007-12-28 08:18:53 -06:00
Galen Charlton
a858e8a8b8 session management: use YAML::Syck for serialization
When using mysql and a sufficiently recent version
of DBD::mysql that actually respects the mysql_enable_utf8
option, setting the current branch to a name that
includes a diacritic causes the session to fail
and forces the user to the login screen upon
clicking another link.

This turned out to be due to the default (Data::Dumper)
serialization used by CGI::Session, which truncated the
session object at the diacritic.  By enabling
that module's YAML serialization option, the problem
was resolved.

This patch introduces a dependency on the YAML::Syck
module.

Signed-off-by: Chris Cormack <crc@liblime.com>
Signed-off-by: Joshua Ferraro <jmf@liblime.com>
2007-12-27 17:24:02 -06:00
Galen Charlton
e6ee69b4a3 various installer changes
[1] Map new directory misc/bin to SCRIPT_DIR
    instead of SCRIPT_DIR/bin.
[2] rewrite-config.PL no longer removes execute mode
[3] Add new Zebra startup script to rewrite-config.PL
    list.
[4] Added KOHA_USER and KOHA_GROUP to rewrite-config.PL

Signed-off-by: Joshua Ferraro <jmf@liblime.com>
2007-12-22 18:59:04 -06:00
Joshua Ferraro
09cdd82832 updating versions for debian etch packages
Signed-off-by: Joshua Ferraro <jmf@liblime.com>
2007-12-22 15:10:17 -06:00
Joshua Ferraro
5e5930b517 fixing version numbers in Makefile.PL, adding a
Signed-off-by: Chris Cormack <crc@liblime.com>
Signed-off-by: Joshua Ferraro <jmf@liblime.com>
2007-12-21 19:48:17 -06:00
Joshua Ferraro
167c355263 updating perl mod version 2007-12-20 22:03:32 -06:00
Galen Charlton
6d2da8857d bug 1664: added specific dep on Algorithm::CheckDigits::M43_001
Signed-off-by: Chris Cormack <crc@liblime.com>
Signed-off-by: Joshua Ferraro <jmf@liblime.com>
2007-12-20 19:20:00 -06:00
Daniel Bünzli
1c9088363b Fix new installer on macosx.
Signed-off-by: Chris Cormack <crc@liblime.com>
Signed-off-by: Galen Charlton <galen.charlton@liblime.com>
Signed-off-by: Joshua Ferraro <jmf@liblime.com>
2007-12-20 17:41:03 -06:00
Galen Charlton
1dbc30ee4e bug 1676: fixed location of OPAC_CGI_DIR for 'dev' install 2007-12-19 14:43:23 -06:00
Galen Charlton
8342748377 installer: munge ZEBRA_PASS only when INSTALL_ZEBRA=yes 2007-12-19 14:29:38 -06:00
Galen Charlton
d18a80820a installer: adjusted conditional for setting exported variables
Now checks for win32, and assumes (for now) a default
for all other platforms.
2007-12-18 14:53:47 -06:00
Chris Nighswonger
4c991a42e9 Win32 support: Moved shebang sub to separate script to be called in pl_files
Signed-off-by: Galen Charlton <galen.charlton@liblime.com>
2007-12-18 14:31:26 -06:00
Chris Nighswonger
118283b71f Initial work on adding Win32 support to installer.
Signed-off-by: Galen Charlton <galen.charlton@liblime.com>
2007-12-18 14:31:21 -06:00
Galen Charlton
32c72c495e installer: bug 1640: deal with '$' in passwords 2007-12-18 11:31:11 -06:00
Galen Charlton
2305d2d768 installer: added (in some cases back) module deps 2007-12-18 11:11:36 -06:00
Galen Charlton
3f5c71daa5 installer: always accept default value as valid 2007-12-17 09:13:54 -06:00
Galen Charlton
b8a58c4934 installer: command-line scripts improve finding C4 modules
Command-line scripts now use a new SCRIPT_DIR/kohalib.pl
to put installed location of Koha's Perl modules
into @INC.
2007-12-17 09:13:54 -06:00
Galen Charlton
c1004a7b48 installer: fix MARC::Crosswalk::DublinCore version 2007-12-17 09:13:54 -06:00
Galen Charlton
d6eba77869 installer: now can use env vars to set installation variables
* Set default value for named parameters, e.g., DB_USER
* Override directory targets, e.g., KOHA_CONF_DIR
2007-12-17 09:13:54 -06:00
Galen Charlton
dd7b1da0cf installer: made kohaversion.pl source for package version number
Version now taken from kohaversion.pl instead of
C4/Context.pm, aligning installer with the rest
of Koha's internal version checks.
2007-12-17 09:13:53 -06:00
Galen Charlton
f5903fbbb5 installer: location of koha-conf.xml
* rewrite-config.PL now puts in installed location
  of koha-conf.xml in C4/Context.pm so that
  correct config can be found even when
  KOHA_CONF is not set.  Note that setting KOHA_CONF
  will still override path set by installer.
* changed references from koha.xml to koha-conf.xml
2007-12-17 09:13:53 -06:00
Galen Charlton
b3b36095a4 installer: fixed *_WWW_DIR for 'dev' install mode 2007-12-17 09:13:53 -06:00
Galen Charlton
223f9493df installer: reverted to VERSION_FROM => 'C4/Context.pm' 2007-12-17 09:13:53 -06:00
Galen Charlton
1b71360c5c installer: various changes
* renamed EXAMPLE_DIR to MISC_DIR
* assigned installation targets for a couple more files
* changed ZOOM module dependency back to Net::Z3950::ZOOM
  (installing that module from CPAN will also install ZOOM,
   and ZOOM.pm does not export $VERSION for the dependency
   check).
* more work to make 'single' and 'dev' install modes function
* set permissions of installed files -- all files now
  writeable by the Koha user
2007-12-17 09:13:53 -06:00
Galen Charlton
ca8f75ee8b installer: KOHA_LOG_DIR => LOG_DIR 2007-12-17 09:13:53 -06:00
Galen Charlton
5044c06592 installer: fixed chown invocation; added skel for KOHA_LOG_DIR 2007-12-17 09:13:53 -06:00
Galen Charlton
be79314aea installer: start support for non-root file owner
Option to specify a non-root user and group to own
Koha's files applies only to INSTALL_MODE=standard; the
other two installation modes are not meant to have
'make install' run as root.
2007-12-17 09:13:53 -06:00
Galen Charlton
d7a09ca020 installer: modified wording of some questions 2007-12-17 09:13:53 -06:00
Galen Charlton
3b58e09b3c installer: now respects INSTALL_ZEBRA = no 2007-12-17 09:13:53 -06:00
Galen Charlton
190a7f404a installer: created skel directory
skel directory is for the installer only; contains
a directory structure and dummy READMEs used for
setting up the Zebra runtime and data directories.

Moved non-config files from etc/zebradb/* to
appropriate places under skel.
2007-12-17 09:13:52 -06:00
Galen Charlton
f3a868fbae installer: started on Zebra paths 2007-12-17 09:13:52 -06:00
Galen Charlton
bd0877f77c installer: prompt for more configuration parameters
Also now allows individual target directories to be
overridden from the command line.
2007-12-17 09:13:52 -06:00
Galen Charlton
c31b5c2481 installer: moved web template dirs; got rid of multi-targets
In target map, cannot specify that a file or directory
can be installed in more than one target directory,
as EU::MM does not support this.
2007-12-17 09:13:52 -06:00
Galen Charlton
61ca8a3e2d installer: use htdocs instead of www; handle .htaccess 2007-12-17 09:13:52 -06:00
Galen Charlton
742ff2f477 installer: removed disused unhashdir sub 2007-12-17 09:13:52 -06:00
Galen Charlton
eebd56b07f install: handle spaces in file names
As noted in the FIXME comment, it is probably better
all around to simply remove spaces from file names.
2007-12-17 09:13:52 -06:00
Galen Charlton
7f01995446 installer (part 3): enabled 'make test' 2007-12-17 09:13:52 -06:00
Galen Charlton
5befdd2cd3 installer (part 2): more work
* plain 'make' now stages everything to blib, leaving
  actual installation to 'make install'
* adjusted rewrite-config.PL and config files
  for new subtitution variables
* added default SetEnv Perl5Lib to
  koha-httpd.conf
2007-12-17 09:13:52 -06:00
Galen Charlton
44efd0fd78 installer (part 1): started major changes
* Started defining more destination directory
  targets.
* Added configuration options prompted for the user
  during perl Makefile.PL
2007-12-17 09:13:52 -06:00
Chris Nighswonger
faaf13a6b3 Cleaned up recursion routine a bit
Signed-off-by: Galen Charlton <galen.charlton@liblime.com>
2007-12-17 09:13:52 -06:00
Chris Cormack
5baba50aed Shifted the opac out of koha so its now /usr/lib/cgi-bin/opac and /usr/lib/cgi-bin/koha by default, rewrite-config.PL and koha-httpd.conf updated
Signed-off-by: Galen Charlton <galen.charlton@liblime.com>
2007-12-17 09:13:52 -06:00
Chris Cormack
dd4b8ce400 Continuing work on the installer
Signed-off-by: Galen Charlton <galen.charlton@liblime.com>
2007-12-17 09:13:52 -06:00
Chris Cormack
b17840b95c Fix for if instead of while in the installer
Signed-off-by: Galen Charlton <galen.charlton@liblime.com>
2007-12-17 09:13:52 -06:00
Chris Cormack
4b1d1329f0 More work on the installer, just have to fix make now
[Galen's note: adjusted prompting for MARC flavor and language]

Signed-off-by: Galen Charlton <galen.charlton@liblime.com>
2007-12-17 09:13:52 -06:00
Chris Cormack
d1f9665665 Now using install_base instead of prefix
[Galen's note: during patch merge, ended up setting default
 INSTALL_BASE back to /usr instead of /usr/local.  This
 needs to be examined again to see if C4 perl modules
 should go under /usr/local/lib instead of /usr/lib
 in Debian.]

Signed-off-by: Galen Charlton <galen.charlton@liblime.com>
2007-12-17 09:13:51 -06:00
Chris Cormack
677f10b597 Working on the installer setting up the right zebra config
Revision of Chris Cormack's original patch to deal with
previous moves of config files.

Signed-off-by: Galen Charlton <galen.charlton@liblime.com>
2007-12-17 09:13:51 -06:00
Paul POULAIN
b6421adda7 Adding Text::CSV_XS dependancy
Signed-off-by: Joshua Ferraro <jmf@liblime.com>
2007-12-14 09:09:16 -06:00
Galen Charlton
45d570e378 bumped up MARC Perl module requirements
MARC::File::XML => 0.88 as part of fixing bug 1504
in turn MARC::Charset => 0.98 and MARC::Record => 2.00.

Previous required version of MARC::Record was 1.38, but
since that is three years old, assuming that most Koha
3.0 dev and testing has been done with version 2.0.0.

Signed-off-by: Chris Cormack <crc@liblime.com>
Signed-off-by: Joshua Ferraro <jmf@liblime.com>
2007-12-02 15:06:21 -06:00