]> git.evergreen-ils.org Git - Evergreen.git/blob - Open-ILS/src/extras/Makefile.install
LP1937294: Update Prerequisite Installation for PostgreSQL Server
[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 (bullseye, buster, stretch),
8 # Ubuntu (18.04), Ubuntu (20.04).
9 #
10 # Installs Perl prereqs, libdbi, libdbi-drivers, and libyaz
11 #
12 # usage:
13 #       make -f Makefile.install debian-bullseye
14 #       - or -
15 #       make -f Makefile.install debian-buster
16 #       - or -
17 #       make -f Makefile.install debian-stretch
18 #       - or -
19 #       make -f Makefile.install ubuntu-bionic
20 #       - or -
21 #       make -f Makefile.install ubuntu-focal
22 #       - or -
23 #       make -f Makefile.install fedora
24 #
25 # ---------------------------------------------------------------------
26
27 # variables shared by all installers
28
29 # Make any assumptions about the shell being used explicit
30 export SHELL=/bin/bash 
31
32 export LIBNET_Z3950_SIMPLESERVER=Net-Z3950-SimpleServer-1.15
33 export LIBNET_Z3950_SIMPLESERVER_URL=http://ftp.indexdata.dk/pub/simpleserver/$(LIBNET_Z3950_SIMPLESERVER)
34
35 # The libdbi sources can be fetched from sourceforge.net.  They are stored on
36 # the open-ils.org site now for ease of direct linking
37 export LIBDBI=libdbi-0.8.3
38 export LIBDBI_DRIVERS=libdbi-drivers-0.8.3
39 export LIBDBI_HOST=http://open-ils.org/~denials/evergreen
40
41 # some OSes require a newer version of NodeJS
42 # NOTE: Using the LTS binaries for NodeJS
43 export NODEJS_VERSION=v14.18.1
44 export NODEJS_BINDIR=node-$(NODEJS_VERSION)-linux-x64
45 export NODEJS_TARBIN=$(NODEJS_BINDIR).tar.xz
46 export NODEJS_BINARY="https://nodejs.org/dist/$(NODEJS_VERSION)/$(NODEJS_TARBIN)"
47
48 # As this Makefile is designed to be used by a make process running as
49 # root, this will avoid problems on some systems when tar extracts
50 # files and tries to give them the same UID/GID as they have in their
51 # archives, but those accounts don't exist on the local system.
52 #
53 # e.g, libdbi has files set 1000/1000. On most systems, there's a user
54 # and a group with these IDs, but there can be systems where nothing
55 # uses those IDs, and where tar fails with e.g. 'tar: libdbi-0.8.3:
56 # Cannot change ownership to uid 1000, gid 1000: Invalid argument'
57 #
58 export TAR_OPTIONS=--no-same-owner --no-same-permissions
59
60 # ----------------------------------------------------------------------------
61
62 # avoid hard-coding the path to related makefiles
63 DIR = $(dir $(lastword $(MAKEFILE_LIST)))/install
64
65 all:
66         @echo "please specify an OS" && exit 0
67 debian-bullseye:
68         @make -f $(DIR)/Makefile.debian-bullseye
69 debian-buster:
70         @make -f $(DIR)/Makefile.debian-buster
71 debian-stretch:
72         @make -f $(DIR)/Makefile.debian-stretch
73 ubuntu-bionic:
74         @make -f $(DIR)/Makefile.ubuntu-bionic
75 ubuntu-focal:
76         @make -f $(DIR)/Makefile.ubuntu-focal
77 fedora:
78         @make -f $(DIR)/Makefile.fedora
79
80 postgres-server-debian-bullseye-10:
81         @make -f $(DIR)/Makefile.debian-bullseye install_postgres_server_10
82 postgres-server-debian-bullseye-11:
83         @make -f $(DIR)/Makefile.debian-bullseye install_postgres_server_11
84 postgres-server-debian-bullseye-12:
85         @make -f $(DIR)/Makefile.debian-bullseye install_postgres_server_12
86 postgres-server-debian-bullseye-13:
87         @make -f $(DIR)/Makefile.debian-bullseye install_postgres_server_13
88 postgres-server-debian-bullseye-14:
89         @make -f $(DIR)/Makefile.debian-bullseye install_postgres_server_14
90 postgres-server-debian-buster-10:
91         @make -f $(DIR)/Makefile.debian-buster install_postgres_server_10
92 postgres-server-debian-buster-11:
93         @make -f $(DIR)/Makefile.debian-buster install_postgres_server_11
94 postgres-server-debian-buster-12:
95         @make -f $(DIR)/Makefile.debian-buster install_postgres_server_12
96 postgres-server-debian-buster-13:
97         @make -f $(DIR)/Makefile.debian-buster install_postgres_server_13
98 postgres-server-debian-buster-14:
99         @make -f $(DIR)/Makefile.debian-buster install_postgres_server_14
100 postgres-server-debian-stretch-10:
101         @make -f $(DIR)/Makefile.debian-stretch install_postgres_server_10
102 postgres-server-debian-stretch-11:
103         @make -f $(DIR)/Makefile.debian-stretch install_postgres_server_11
104 postgres-server-debian-stretch-12:
105         @make -f $(DIR)/Makefile.debian-stretch install_postgres_server_12
106 postgres-server-debian-stretch-13:
107         @make -f $(DIR)/Makefile.debian-stretch install_postgres_server_13
108 postgres-server-debian-stretch-14:
109         @make -f $(DIR)/Makefile.debian-stretch install_postgres_server_14
110 postgres-server-ubuntu-bionic-10:
111         @make -f $(DIR)/Makefile.ubuntu-bionic install_postgres_server_10
112 postgres-server-ubuntu-bionic-11:
113         @make -f $(DIR)/Makefile.ubuntu-bionic install_postgres_server_11
114 postgres-server-ubuntu-bionic-12:
115         @make -f $(DIR)/Makefile.ubuntu-bionic install_postgres_server_12
116 postgres-server-ubuntu-bionic-13:
117         @make -f $(DIR)/Makefile.ubuntu-bionic install_postgres_server_13
118 postgres-server-ubuntu-bionic-14:
119         @make -f $(DIR)/Makefile.ubuntu-bionic install_postgres_server_14
120 postgres-server-ubuntu-focal-10:
121         @make -f $(DIR)/Makefile.ubuntu-focal install_postgres_server_10
122 postgres-server-ubuntu-focal-11:
123         @make -f $(DIR)/Makefile.ubuntu-focal install_postgres_server_11
124 postgres-server-ubuntu-focal-12:
125         @make -f $(DIR)/Makefile.ubuntu-focal install_postgres_server_12
126 postgres-server-ubuntu-focal-13:
127         @make -f $(DIR)/Makefile.ubuntu-focal install_postgres_server_13
128 postgres-server-ubuntu-focal-14:
129         @make -f $(DIR)/Makefile.ubuntu-focal install_postgres_server_14
130 postgres-server-fedora:
131         @make -f $(DIR)/Makefile.fedora install_postgres_server
132
133 ubuntu-bionic-developer:
134         @make -f $(DIR)/Makefile.ubuntu-bionic install_developer
135 ubuntu-focal-developer:
136         @make -f $(DIR)/Makefile.ubuntu-focal install_developer
137 debian-bullseye-developer:
138         @make -f $(DIR)/Makefile.debian-bullseye install_developer
139 debian-buster-developer:
140         @make -f $(DIR)/Makefile.debian-buster install_developer
141 debian-stretch-developer:
142         @make -f $(DIR)/Makefile.debian-stretch install_developer
143
144 ubuntu-bionic-translator:
145         @make -f $(DIR)/Makefile.ubuntu-bionic install_translator
146 ubuntu-focal-translator:
147         @make -f $(DIR)/Makefile.ubuntu-focal install_translator
148 debian-bullseye-translator:
149         @make -f $(DIR)/Makefile.debian-bullseye install_translator
150 debian-buster-translator:
151         @make -f $(DIR)/Makefile.debian-buster install_translator
152 debian-stretch-translator:
153         @make -f $(DIR)/Makefile.debian-stretch install_translator
154
155 ubuntu-bionic-packager:
156         @make -f $(DIR)/Makefile.ubuntu-bionic install_packager
157 ubuntu-focal-packager:
158         @make -f $(DIR)/Makefile.ubuntu-focal install_packager
159 debian-bullseye-packager:
160         @make -f $(DIR)/Makefile.debian-bullseye install_packager
161 debian-buster-packager:
162         @make -f $(DIR)/Makefile.debian-buster install_packager
163 debian-stretch-packager:
164         @make -f $(DIR)/Makefile.debian-stretch install_packager
165
166 # vim:noet:sw=4:ts=4: