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
35 # evergreen_cor - builds core Evergreen components (does not build evergreen_xul_client!)
36 # evergreen_xul_client - client XUL application
38 # When running the server components of OpenSRF/OpenILS, the simplest
39 # thing is to build 'opensrf' even if you
40 # don't use all of the components.
41 # Build marcdumper only if you need to convert MARC binary files to MARCXML.
42 # If you only want to build the client app, then just build evergreen_xul_client.
43 # --------------------------------------------------------------------
45 TARGETS=("opensrf_all" "openils_all" "evergreen_core");
48 # --------------------------------------------------------------------
49 # Global install prefix. Binaries will be installed into PREFIX/bin,
50 # libraries will be installed into PERFIX/lib, etc. The user
51 # running 'install.sh install' must have write permissions to PREFIX
52 # --------------------------------------------------------------------
54 BINDIR="$PREFIX/bin/";
55 LIBDIR="$PREFIX/lib/";
56 PERLDIR="$LIBDIR/perl5/";
57 INCLUDEDIR="$PREFIX/include/";
58 ETCDIR="$PREFIX/etc/";
59 WEBDIR="$PREFIX/web/";
60 CGIDIR="$PREFIX/cgi-bin/";
61 TEMPLATEDIR="$PREFIX/templates";
64 # --------------------------------------------------------------------
65 # Temporary build files go here. The User running 'install.sh build'
66 # must have write permissions to TMP
67 # --------------------------------------------------------------------
71 # --------------------------------------------------------------------
72 # Location of the apxs binary for Apache2. This must be set when
73 # building the mod_ils_gateway C plugin for allowing web access
74 # to the published API.
75 # --------------------------------------------------------------------
78 if [ -z "$APXS2" ]; then APXS2="/opt/bin/apxs"; fi
81 # --------------------------------------------------------------------
82 # Directory where the Apache2 header files are located. This 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/";
89 # --------------------------------------------------------------------
90 # Directory where the libxml2 headers are located. Libxml2 is used
91 # by various components
92 # --------------------------------------------------------------------
93 LIBXML2_HEADERS="/usr/include/libxml2/";
97 # --------------------------------------------------------------------
98 # These point to the top level makefiles for each of the sub
99 # projects. Only change these if you have relocated the directories.
100 # --------------------------------------------------------------------
101 OPENSRFDIR="OpenSRF/src/";
102 OPENILSDIR="Open-ILS/src/";
103 EVERGREENDIR="Evergreen/";
108 # --------------------------------------------------------------------
109 # These are used to create the perl DBI DSN for the bootstrapping
111 # --------------------------------------------------------------------