2 # --------------------------------------------------------------------
3 # Copyright (C) 2005 Georgia Public Library Service
4 # Bill Erickson <highfalutin@gmail.com>
6 # This program is free software; you can redistribute it and/or
7 # modify it under the terms of the GNU General Public License
8 # as published by the Free Software Foundation; either version 2
9 # of the License, or (at your option) any later version.
11 # This program is distributed in the hope that it will be useful,
12 # but WITHOUT ANY WARRANTY; without even the implied warranty of
13 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
14 # GNU General Public License for more details.
15 # --------------------------------------------------------------------
19 # --------------------------------------------------------------------
20 # Build targets. Options include:
22 # opensrf_all - builds all OpenSRF compenents
23 # opensrf_jserver - custom 'single-domain' jabber server which may be used in place of jabberd2
24 # opensrf_router - jabber router.
25 # opensrf_gateway - mod_ils_gateway, Apache module for proxying API calls
26 # opensrf_srfsh - diagnostic shell interface to OpenSRF
27 # opensrf_core - install the OpenSRF perl modules and core files for running opensrf
29 # openils_all - builds all OpenILS compenents
30 # openils_core - install the Open-ILS perl modules, and core files for running and openils server
31 # openils_web - copies over the javascript and html templates to the web root directory for running the OPAC
32 # openils_marcdumper - utility code for converting MARC to MARCXML
33 # openils_db - installs the database schemas
34 # openils_reporter - installs the base of OpenILS Reporter
36 # evergreen_cor - builds core Evergreen components (does not build evergreen_xul_client!)
37 # evergreen_xul_client - client XUL application
39 # When running the server components of OpenSRF/OpenILS, the simplest
40 # thing is to build 'opensrf' even if you
41 # don't use all of the components.
42 # Build marcdumper only if you need to convert MARC binary files to MARCXML.
43 # If you only want to build the client app, then just build evergreen_xul_client.
44 # --------------------------------------------------------------------
46 TARGETS=("opensrf_all" "openils_all" "evergreen_core");
49 # --------------------------------------------------------------------
50 # Global install prefix. Binaries will be installed into PREFIX/bin,
51 # libraries will be installed into PERFIX/lib, etc. The user
52 # running 'install.sh install' must have write permissions to PREFIX
53 # --------------------------------------------------------------------
55 BINDIR="$PREFIX/bin/";
56 LIBDIR="$PREFIX/lib/";
57 PERLDIR="$LIBDIR/perl5/";
58 INCLUDEDIR="$PREFIX/include/";
59 ETCDIR="$PREFIX/etc/";
60 WEBDIR="$PREFIX/web/";
61 CGIDIR="$PREFIX/cgi-bin/";
62 TEMPLATEDIR="$PREFIX/templates";
65 # --------------------------------------------------------------------
66 # Temporary build files go here. The User running 'install.sh build'
67 # must have write permissions to TMP
68 # --------------------------------------------------------------------
72 # --------------------------------------------------------------------
73 # Location of the apxs binary for Apache2. This must be set when
74 # building the mod_ils_gateway C plugin for allowing web access
75 # to the published API.
76 # --------------------------------------------------------------------
78 APXS2="/opt/bin/apxs";
81 # --------------------------------------------------------------------
82 # Directories where the Apache2 header files are located. These must
83 # be set when building the mod_ils_gateway C plugin for allowing web
84 # access to the published API.
85 # --------------------------------------------------------------------
86 APACHE2_HEADERS="/opt/include/";
87 APR_HEADERS="/opt/include/";
90 # --------------------------------------------------------------------
91 # Directory where the libxml2 headers are located. Libxml2 is used
92 # by various components
93 # --------------------------------------------------------------------
94 LIBXML2_HEADERS="/usr/include/libxml2/";
98 # --------------------------------------------------------------------
99 # These point to the top level makefiles for each of the sub
100 # projects. Only change these if you have relocated the directories.
101 # --------------------------------------------------------------------
102 OPENSRFDIR="OpenSRF/src/";
103 OPENILSDIR="Open-ILS/src/";
104 EVERGREENDIR="Evergreen/";
109 # --------------------------------------------------------------------
110 # These are used to create the perl DBI DSN for the bootstrapping
112 # --------------------------------------------------------------------