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