]> git.evergreen-ils.org Git - working/Evergreen.git/blob - Open-ILS/src/extras/Makefile.install
Lp1940145: Remove Installation Support for Debian Jessie
[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 (buster, stretch),
8 # Ubuntu (16.04), Ubuntu (18.04).
9 #
10 # Installs Perl prereqs, libdbi, libdbi-drivers, and libyaz
11 #
12 # usage:
13 #       make -f Makefile.install debian-buster
14 #       - or -
15 #       make -f Makefile.install debian-stretch
16 #       - or -
17 #       make -f Makefile.install ubuntu-bionic
18 #       - or -
19 #       make -f Makefile.install ubuntu-focal
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 LIBNET_Z3950_SIMPLESERVER=Net-Z3950-SimpleServer-1.15
31 export LIBNET_Z3950_SIMPLESERVER_URL=http://ftp.indexdata.dk/pub/simpleserver/$(LIBNET_Z3950_SIMPLESERVER)
32
33 # The libdbi sources can be fetched from sourceforge.net.  They are stored on
34 # the open-ils.org site now for ease of direct linking
35 export LIBDBI=libdbi-0.8.3
36 export LIBDBI_DRIVERS=libdbi-drivers-0.8.3
37 export LIBDBI_HOST=http://open-ils.org/~denials/evergreen
38
39 # some OSes require a newer version of NodeJS
40 # NOTE: Using the LTS binaries for NodeJS
41 export NODEJS_VERSION=v12.13.0
42 export NODEJS_BINDIR=node-$(NODEJS_VERSION)-linux-x64
43 export NODEJS_TARBIN=$(NODEJS_BINDIR).tar.xz
44 export NODEJS_BINARY="https://nodejs.org/dist/$(NODEJS_VERSION)/$(NODEJS_TARBIN)"
45
46 # As this Makefile is designed to be used by a make process running as
47 # root, this will avoid problems on some systems when tar extracts
48 # files and tries to give them the same UID/GID as they have in their
49 # archives, but those accounts don't exist on the local system.
50 #
51 # e.g, libdbi has files set 1000/1000. On most systems, there's a user
52 # and a group with these IDs, but there can be systems where nothing
53 # uses those IDs, and where tar fails with e.g. 'tar: libdbi-0.8.3:
54 # Cannot change ownership to uid 1000, gid 1000: Invalid argument'
55 #
56 export TAR_OPTIONS=--no-same-owner --no-same-permissions
57
58 # ----------------------------------------------------------------------------
59
60 # avoid hard-coding the path to related makefiles
61 DIR = $(dir $(lastword $(MAKEFILE_LIST)))/install
62
63 all:
64         @echo "please specify an OS" && exit 0
65 debian-buster:
66         @make -f $(DIR)/Makefile.debian-buster
67 debian-stretch:
68         @make -f $(DIR)/Makefile.debian-stretch
69 ubuntu-bionic:
70         @make -f $(DIR)/Makefile.ubuntu-bionic
71 ubuntu-focal:
72         @make -f $(DIR)/Makefile.ubuntu-focal
73 fedora:
74         @make -f $(DIR)/Makefile.fedora
75
76 postgres-server-debian-buster:
77         @make -f $(DIR)/Makefile.debian-buster install_postgres_server
78 postgres-server-debian-buster-10:
79         @make -f $(DIR)/Makefile.debian-buster install_postgres_server_10
80 postgres-server-debian-stretch:
81         @make -f $(DIR)/Makefile.debian-stretch install_postgres_server
82 postgres-server-debian-stretch-10:
83         @make -f $(DIR)/Makefile.debian-stretch install_postgres_server_10
84 postgres-server-ubuntu-bionic:
85         @make -f $(DIR)/Makefile.ubuntu-bionic install_postgres_server
86 postgres-server-ubuntu-bionic-10:
87         @make -f $(DIR)/Makefile.ubuntu-bionic install_postgres_server_10
88 postgres-server-ubuntu-focal:
89         @make -f $(DIR)/Makefile.ubuntu-focal install_postgres_server
90 postgres-server-ubuntu-focal-10:
91         @make -f $(DIR)/Makefile.ubuntu-focal install_postgres_server_10
92 postgres-server-fedora:
93         @make -f $(DIR)/Makefile.fedora install_postgres_server
94
95 ubuntu-bionic-developer:
96         @make -f $(DIR)/Makefile.ubuntu-bionic install_developer
97 ubuntu-focal-developer:
98         @make -f $(DIR)/Makefile.ubuntu-focal install_developer
99 debian-buster-developer:
100         @make -f $(DIR)/Makefile.debian-buster install_developer
101 debian-stretch-developer:
102         @make -f $(DIR)/Makefile.debian-stretch install_developer
103
104 ubuntu-bionic-translator:
105         @make -f $(DIR)/Makefile.ubuntu-bionic install_translator
106 ubuntu-focal-translator:
107         @make -f $(DIR)/Makefile.ubuntu-focal install_translator
108 debian-buster-translator:
109         @make -f $(DIR)/Makefile.debian-buster install_translator
110 debian-stretch-translator:
111         @make -f $(DIR)/Makefile.debian-stretch install_translator
112
113 ubuntu-bionic-packager:
114         @make -f $(DIR)/Makefile.ubuntu-bionic install_packager
115 ubuntu-focal-packager:
116         @make -f $(DIR)/Makefile.ubuntu-focal install_packager
117 debian-buster-packager:
118         @make -f $(DIR)/Makefile.debian-buster install_packager
119 debian-stretch-packager:
120         @make -f $(DIR)/Makefile.debian-stretch install_packager
121
122 # vim:noet:sw=4:ts=4: