]> git.evergreen-ils.org Git - Evergreen.git/blob - Open-ILS/src/extras/install/Makefile.ubuntu-bionic
LP1937294: Update Prerequisite Installation for PostgreSQL Server
[Evergreen.git] / Open-ILS / src / extras / install / Makefile.ubuntu-bionic
1 # install files for Ubuntu Bionic
2
3 DIR = $(dir $(lastword $(MAKEFILE_LIST)))
4
5 export DEB_PGSQL_COMMON_MODS = \
6         gcc \
7         libbusiness-isbn-perl \
8         libjson-xs-perl \
9         liblibrary-callnumber-lc-perl \
10         libmarc-record-perl \
11         librose-uri-perl \
12         libuuid-tiny-perl \
13         libxml-libxml-perl \
14         libxml-libxslt-perl
15
16 export DEBS = \
17         $(DEB_PGSQL_COMMON_MODS) \
18         apache2-dev\
19         aspell\
20         aspell-en\
21         libapache2-mod-perl2\
22         libbusiness-creditcard-perl\
23         libbusiness-isbn-data-perl\
24         libbusiness-issn-perl\
25         libbusiness-onlinepayment-authorizenet-perl\
26         libbusiness-onlinepayment-payflowpro-perl\
27         libbusiness-onlinepayment-perl\
28         libdate-manip-perl\
29         libdatetime-format-builder-perl\
30         libdatetime-format-iso8601-perl\
31         libdatetime-format-mail-perl\
32         libdatetime-perl\
33         libdatetime-set-perl\
34         libdatetime-timezone-perl\
35         libdbd-pg-perl\
36         libdbd-pgsql\
37         libdbi-dev\
38         libdbi1\
39         libemail-simple-perl\
40         libemail-mime-perl\
41         libexcel-writer-xlsx-perl\
42         libgd-graph3d-perl\
43         libgeo-coder-osm-perl\
44         liblocale-maketext-lexicon-perl\
45         liblog-log4perl-perl\
46         libncurses5-dev\
47         libnet-ip-perl\
48         libnet-ldap-perl \
49         libnet-server-perl\
50         libnet-ssh2-perl\
51         libnet-z3950-simpleserver-perl\
52         libnet-z3950-zoom-perl \
53         libnspr4-dev\
54         libole-storage-lite-perl\
55         libparent-perl\
56         libpq5\
57         libpq-dev\
58         libpcre3-dev\
59         librpc-xml-perl\
60         libsru-perl\
61         libssh2-1-dev\
62         libtemplate-plugin-posix-perl\
63         libtest-warn-perl\
64         libtest-output-perl\
65         libtext-aspell-perl\
66         libtext-csv-perl\
67         libuniversal-require-perl\
68         libunix-syslog-perl\
69         libyaz-dev\
70         postgresql-client-14\
71         libsoap-lite-perl\
72         libbz2-dev\
73         libparse-recdescent-perl\
74         libhtml-defang-perl\
75         libconfig-general-perl\
76         yaz
77
78 export DEB_APACHE_MODS = \
79     expires\
80     headers\
81     include\
82     proxy\
83     proxy_http\
84     rewrite\
85     cgi\
86     perl
87
88 export DEB_APACHE_DISMODS = \
89     deflate
90
91 export DEB_APACHE_DISCONF = \
92     serve-cgi-bin
93
94 export CPAN_MODULES = \
95         Geo::Coder::Google \
96         Business::OnlinePayment::PayPal \
97         Email::Send \
98         MARC::Charset \
99         String::KeyboardDistance \
100         Text::Levenshtein::Damerau::XS \
101         Net::Z3950::Simple2ZOOM
102
103 export CPAN_MODULES_FORCE = \
104         Business::Stripe \
105         Class::DBI::Frozen::301
106
107 export CPAN_MODULES_PGSQL = \
108         MARC::File::XML \
109         String::KeyboardDistance \
110         Text::Levenshtein::Damerau::XS
111
112 PGSQL_APT_REPO_DEBS = \
113         wget \
114         ca-certificates
115
116 PGSQL_SERVER_DEBS_10 = \
117         $(DEB_PGSQL_COMMON_MODS) \
118         postgresql-10 \
119         postgresql-plperl-10 \
120         postgresql-server-dev-10
121
122 PGSQL_SERVER_DEBS_11 = \
123         $(DEB_PGSQL_COMMON_MODS) \
124         postgresql-11 \
125         postgresql-plperl-11 \
126         postgresql-server-dev-11
127
128 PGSQL_SERVER_DEBS_12 = \
129         $(DEB_PGSQL_COMMON_MODS) \
130         postgresql-12 \
131         postgresql-plperl-12 \
132         postgresql-server-dev-12
133
134 PGSQL_SERVER_DEBS_13 = \
135         $(DEB_PGSQL_COMMON_MODS) \
136         postgresql-13 \
137         postgresql-plperl-13 \
138         postgresql-server-dev-13
139
140 PGSQL_SERVER_DEBS_14 = \
141         $(DEB_PGSQL_COMMON_MODS) \
142         postgresql-14 \
143         postgresql-plperl-14 \
144         postgresql-server-dev-14
145
146 # note: some prereqs are repeated in the developer/packager 
147 # sections to support building Evergreen packages on servers
148 # where Evergreen and its prereqs are not installed.
149
150 DEVELOPER_DEBS = \
151         automake \
152         autoconf \
153         libtool
154
155 PACKAGER_DEBS = \
156         asciidoc \
157         source-highlight \
158         zip \
159         unzip \
160         nsis
161
162 TRANSLATOR_DEBS = \
163         libtemplate-perl \
164         liblocale-maketext-lexicon-perl \
165         translate-toolkit \
166         python3-dev \
167         python3-levenshtein \
168         python3-polib \
169         python3-setuptools \
170         python3-simplejson \
171         python3-lxml \
172         bzr
173
174 all:
175         make -f $(DIR)/Makefile.debian DEBS="$(PGSQL_APT_REPO_DEBS)"
176         make -f $(DIR)/Makefile.debian debian_postgresql_repo
177         make -f $(DIR)/Makefile.debian install_debs
178         make -f $(DIR)/Makefile.common install_cpan
179         make -f $(DIR)/Makefile.common install_cpan_force
180         make -f $(DIR)/Makefile.common install_cpan_pgsql
181         make -f $(DIR)/Makefile.debian debian_sys_config
182
183 install_postgres_server_10:
184         make -f $(DIR)/Makefile.debian DEBS="$(PGSQL_APT_REPO_DEBS)"
185         make -f $(DIR)/Makefile.debian debian_postgresql_repo
186         make -f $(DIR)/Makefile.debian DEBS="$(PGSQL_SERVER_DEBS_10)"
187         make -f $(DIR)/Makefile.common install_cpan_pgsql
188
189 install_postgres_server_11:
190         make -f $(DIR)/Makefile.debian DEBS="$(PGSQL_APT_REPO_DEBS)"
191         make -f $(DIR)/Makefile.debian debian_postgresql_repo
192         make -f $(DIR)/Makefile.debian DEBS="$(PGSQL_SERVER_DEBS_11)"
193         make -f $(DIR)/Makefile.common install_cpan_pgsql
194
195 install_postgres_server_12:
196         make -f $(DIR)/Makefile.debian DEBS="$(PGSQL_APT_REPO_DEBS)"
197         make -f $(DIR)/Makefile.debian debian_postgresql_repo
198         make -f $(DIR)/Makefile.debian DEBS="$(PGSQL_SERVER_DEBS_12)"
199         make -f $(DIR)/Makefile.common install_cpan_pgsql
200
201 install_postgres_server_13:
202         make -f $(DIR)/Makefile.debian DEBS="$(PGSQL_APT_REPO_DEBS)"
203         make -f $(DIR)/Makefile.debian debian_postgresql_repo
204         make -f $(DIR)/Makefile.debian DEBS="$(PGSQL_SERVER_DEBS_13)"
205         make -f $(DIR)/Makefile.common install_cpan_pgsql
206
207 install_postgres_server_14:
208         make -f $(DIR)/Makefile.debian DEBS="$(PGSQL_APT_REPO_DEBS)"
209         make -f $(DIR)/Makefile.debian debian_postgresql_repo
210         make -f $(DIR)/Makefile.debian DEBS="$(PGSQL_SERVER_DEBS_14)"
211         make -f $(DIR)/Makefile.common install_cpan_pgsql
212
213 # note: if/when grunt-cli is available as a
214 # package, use the packaged version instead.
215 install_developer:
216         make -f $(DIR)/Makefile.debian DEBS="$(DEVELOPER_DEBS)"
217         make -f $(DIR)/Makefile.common install_nodejs_from_source
218
219 install_translator: install_developer
220         make -f $(DIR)/Makefile.debian DEBS="$(TRANSLATOR_DEBS)"
221
222 install_packager: install_developer install_translator
223         make -f $(DIR)/Makefile.debian DEBS="$(PACKAGER_DEBS)"
224
225 clean:
226         make -f $(DIR)/Makefile.common clean
227         make -f $(DIR)/Makefile.debian clean
228
229 # vim:noet:sw=4:ts=4: