]> git.evergreen-ils.org Git - working/Evergreen.git/blob - Open-ILS/src/extras/install/Makefile.ubuntu-jammy
LP 2061136 follow-up: ng lint --fix
[working/Evergreen.git] / Open-ILS / src / extras / install / Makefile.ubuntu-jammy
1 # install files for Ubuntu Jammy
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         libmarc-xml-perl \
16         libmarc-charset-perl
17
18 # NOTE: The 4 '*redis*' packages are also installed by OpenSRF+Redis
19 export DEBS = \
20         $(DEB_PGSQL_COMMON_MODS) \
21         redis-server\
22         redis-tools\
23         libredis-perl\
24         libhiredis-dev\
25         apache2-dev\
26         aspell\
27         aspell-en\
28         libapache2-mod-perl2\
29         libbusiness-creditcard-perl\
30         libbusiness-isbn-data-perl\
31         libbusiness-issn-perl\
32         libbusiness-onlinepayment-authorizenet-perl\
33         libbusiness-onlinepayment-payflowpro-perl\
34         libbusiness-onlinepayment-perl\
35         libdate-manip-perl\
36         libdatetime-format-builder-perl\
37         libdatetime-format-iso8601-perl\
38         libdatetime-format-mail-perl\
39         libdatetime-perl\
40         libdatetime-set-perl\
41         libdatetime-timezone-perl\
42         libdbd-pg-perl\
43         libdbd-pgsql\
44         libdbi-dev\
45         libdbi1\
46         libemail-simple-perl\
47         libemail-mime-perl\
48         libexcel-writer-xlsx-perl\
49         libgd-graph3d-perl\
50         libhttp-oai-perl\
51         libgeo-coder-osm-perl\
52     libhttp-async-perl\
53         liblocale-maketext-lexicon-perl\
54         liblog-log4perl-perl\
55         libncurses5-dev\
56     libnet-https-nb-perl\
57         libnet-ip-perl\
58         libnet-ldap-perl \
59         libnet-server-perl\
60         libnet-ssh2-perl\
61         libnet-sftp-foreign-perl\
62         libnet-z3950-simpleserver-perl\
63         libnet-z3950-zoom-perl \
64         libnet-z3950-simple2zoom-perl \
65         libnspr4-dev\
66         libole-storage-lite-perl\
67         libparent-perl\
68         libpq5\
69         libpq-dev\
70         libpcre3-dev\
71         librpc-xml-perl\
72         libsru-perl\
73         libssh2-1-dev\
74         libtemplate-plugin-posix-perl\
75     libtest-mockmodule-perl\
76     libtest-mockobject-perl\
77         libtest-warn-perl\
78         libtest-output-perl\
79         libtext-aspell-perl\
80         libtext-csv-perl\
81         libuniversal-require-perl\
82         libunix-syslog-perl\
83         libyaz-dev\
84         postgresql-client-15\
85         libsoap-lite-perl\
86         libbz2-dev\
87         libparse-recdescent-perl\
88         libhtml-defang-perl\
89         libconfig-general-perl\
90         yaz
91
92 export DEB_APACHE_MODS = \
93     expires\
94     headers\
95     include\
96     proxy\
97     proxy_http\
98     rewrite\
99     cgi\
100     perl
101
102 export DEB_APACHE_DISMODS = \
103     deflate
104
105 export DEB_APACHE_DISCONF = \
106     serve-cgi-bin
107
108 export CPAN_MODULES = \
109         Geo::Coder::Google \
110     Geo::Coder::Bing \
111         Business::OnlinePayment::PayPal \
112         Email::Send \
113         Locale::Country \
114         String::KeyboardDistance \
115         Text::Levenshtein::Damerau::XS
116
117 export CPAN_MODULES_FORCE = \
118         Business::Stripe \
119         Class::DBI::Frozen::301
120
121 export CPAN_MODULES_PGSQL = \
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: