]> git.evergreen-ils.org Git - working/Evergreen.git/blob - Open-ILS/src/extras/Makefile.install
3aabf24c75ceef6d6fc0ab85e31d35003f075f70
[working/Evergreen.git] / Open-ILS / src / extras / Makefile.install
1 # ---------------------------------------------------------------------
2 # Author: Bill Erickson <erickson@esilibrary.com>
3 # Author: Dan Scott <dscott@laurentian.ca>
4 #
5 # Makefile to install prerequisites for OpenSRF and Evergreen
6 #
7 # Currently supports Debian (wheezy, squeeze), Ubuntu (12.04), Ubuntu (14.04) and
8 # Fedora (16 and 17).
9 #
10 # Installs Perl prereqs, libjs with Perl wrapper, libdbi, libdbi-drivers, and libyaz
11 #
12 # usage:
13 #       make -f Makefile.install debian-wheezy
14 #       - or -
15 #       make -f Makefile.install debian-squeeze
16 #       - or -
17 #       make -f Makefile.install ubuntu-precise
18 #       - or -
19 #       make -f Makefile.install ubuntu-trusty
20 #       - or -
21 #       make -f Makefile.install fedora
22 #
23 # ---------------------------------------------------------------------
24
25 # variables shared by all installers
26
27 # Make any assumptions about the shell being used explicit
28 export SHELL=/bin/bash 
29
30 export LIBJS=js-1.7.0
31 export LIBJS_PERL=JavaScript-SpiderMonkey-0.21
32 export LIBJS_URL=http://ftp.mozilla.org/pub/mozilla.org/js/$(LIBJS).tar.gz
33 export LIBJS_PERL_URL=http://mirror.datapipe.net/pub/CPAN/authors/id/T/TB/TBUSCH/$(LIBJS_PERL).tar.gz
34
35 # used for installing libjs lib and header files
36 export JS_INSTALL_PREFIX=/usr/
37
38 export LIBNET_Z3950_SIMPLESERVER=Net-Z3950-SimpleServer-1.15
39 export LIBNET_Z3950_SIMPLESERVER_URL=http://ftp.indexdata.dk/pub/simpleserver/$(LIBNET_Z3950_SIMPLESERVER)
40
41 # The libdbi sources can be fetched from sourceforge.net.  They are stored on
42 # the open-ils.org site now for ease of direct linking
43 export LIBDBI=libdbi-0.8.3
44 export LIBDBI_DRIVERS=libdbi-drivers-0.8.3
45 export LIBDBI_HOST=http://open-ils.org/~denials/evergreen
46
47 # As this Makefile is designed to be used by a make process running as
48 # root, this will avoid problems on some systems when tar extracts
49 # files and tries to give them the same UID/GID as they have in their
50 # archives, but those accounts don't exist on the local system.
51 #
52 # e.g, libdbi has files set 1000/1000. On most systems, there's a user
53 # and a group with these IDs, but there can be systems where nothing
54 # uses those IDs, and where tar fails with e.g. 'tar: libdbi-0.8.3:
55 # Cannot change ownership to uid 1000, gid 1000: Invalid argument'
56 #
57 export TAR_OPTIONS=--no-same-owner --no-same-permissions
58
59 # ----------------------------------------------------------------------------
60
61 # avoid hard-coding the path to related makefiles
62 DIR = $(dir $(lastword $(MAKEFILE_LIST)))/install
63
64 all:
65         @echo "please specify an OS" && exit 0
66 debian-wheezy:
67         @make -f $(DIR)/Makefile.debian-wheezy
68 debian-squeeze: 
69         @make -f $(DIR)/Makefile.debian-squeeze
70 ubuntu-trusty:
71         @make -f $(DIR)/Makefile.ubuntu-trusty
72 ubuntu-precise:
73         @make -f $(DIR)/Makefile.ubuntu-precise
74 fedora:
75         @make -f $(DIR)/Makefile.fedora
76
77 postgres-server-debian-wheezy:
78         @make -f $(DIR)/Makefile.debian-wheezy install_postgres_server
79 postgres-server-debian-squeeze: 
80         @make -f $(DIR)/Makefile.debian-squeeze install_postgres_server
81 postgres-server-ubuntu-trusty:
82         @make -f $(DIR)/Makefile.ubuntu-trusty install_postgres_server
83 postgres-server-ubuntu-precise:
84         @make -f $(DIR)/Makefile.ubuntu-precise install_postgres_server
85 postgres-server-fedora:
86         @make -f $(DIR)/Makefile.fedora install_postgres_server
87
88 # vim:noet:sw=4:ts=4: