]> git.evergreen-ils.org Git - Evergreen.git/blob - Open-ILS/src/extras/install/Makefile.ubuntu-bionic
LP2061136 - Stamping 1405 DB upgrade script
[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         libhttp-oai-perl\
44         libgeo-coder-osm-perl\
45         liblocale-maketext-lexicon-perl\
46         liblog-log4perl-perl\
47         libncurses5-dev\
48         libnet-ip-perl\
49         libnet-ldap-perl \
50         libnet-server-perl\
51         libnet-ssh2-perl\
52         libnet-z3950-simpleserver-perl\
53         libnet-z3950-zoom-perl \
54         libnspr4-dev\
55         libole-storage-lite-perl\
56         libparent-perl\
57         libpq5\
58         libpq-dev\
59         libpcre3-dev\
60         librpc-xml-perl\
61         libsru-perl\
62         libssh2-1-dev\
63         libtemplate-plugin-posix-perl\
64         libtest-warn-perl\
65         libtest-output-perl\
66         libtext-aspell-perl\
67         libtext-csv-perl\
68         libuniversal-require-perl\
69         libunix-syslog-perl\
70         libyaz-dev\
71         postgresql-client-14\
72         libsoap-lite-perl\
73         libbz2-dev\
74         libparse-recdescent-perl\
75         libhtml-defang-perl\
76         libconfig-general-perl\
77         yaz
78
79 export DEB_APACHE_MODS = \
80     expires\
81     headers\
82     include\
83     proxy\
84     proxy_http\
85     rewrite\
86     cgi\
87     perl
88
89 export DEB_APACHE_DISMODS = \
90     deflate
91
92 export DEB_APACHE_DISCONF = \
93     serve-cgi-bin
94
95 export CPAN_MODULES = \
96         Geo::Coder::Google \
97         Business::OnlinePayment::PayPal \
98         Email::Send \
99         MARC::Charset \
100         String::KeyboardDistance \
101         Text::Levenshtein::Damerau::XS \
102         Net::Z3950::Simple2ZOOM
103
104 export CPAN_MODULES_FORCE = \
105         Business::Stripe \
106         Class::DBI::Frozen::301
107
108 export CPAN_MODULES_PGSQL = \
109         MARC::File::XML \
110         String::KeyboardDistance \
111         Text::Levenshtein::Damerau::XS
112
113 PGSQL_APT_REPO_DEBS = \
114         wget \
115         ca-certificates
116
117 PGSQL_SERVER_DEBS_10 = \
118         $(DEB_PGSQL_COMMON_MODS) \
119         postgresql-10 \
120         postgresql-plperl-10 \
121         postgresql-server-dev-10
122
123 PGSQL_SERVER_DEBS_11 = \
124         $(DEB_PGSQL_COMMON_MODS) \
125         postgresql-11 \
126         postgresql-plperl-11 \
127         postgresql-server-dev-11
128
129 PGSQL_SERVER_DEBS_12 = \
130         $(DEB_PGSQL_COMMON_MODS) \
131         postgresql-12 \
132         postgresql-plperl-12 \
133         postgresql-server-dev-12
134
135 PGSQL_SERVER_DEBS_13 = \
136         $(DEB_PGSQL_COMMON_MODS) \
137         postgresql-13 \
138         postgresql-plperl-13 \
139         postgresql-server-dev-13
140
141 PGSQL_SERVER_DEBS_14 = \
142         $(DEB_PGSQL_COMMON_MODS) \
143         postgresql-14 \
144         postgresql-plperl-14 \
145         postgresql-server-dev-14
146
147 # note: some prereqs are repeated in the developer/packager 
148 # sections to support building Evergreen packages on servers
149 # where Evergreen and its prereqs are not installed.
150
151 DEVELOPER_DEBS = \
152         automake \
153         autoconf \
154         libtool
155
156 PACKAGER_DEBS = \
157         asciidoc \
158         source-highlight \
159         zip \
160         unzip \
161         nsis
162
163 TRANSLATOR_DEBS = \
164         libtemplate-perl \
165         liblocale-maketext-lexicon-perl \
166         translate-toolkit \
167         python3-dev \
168         python3-levenshtein \
169         python3-polib \
170         python3-setuptools \
171         python3-simplejson \
172         python3-lxml \
173         bzr
174
175 all:
176         make -f $(DIR)/Makefile.debian DEBS="$(PGSQL_APT_REPO_DEBS)"
177         make -f $(DIR)/Makefile.debian debian_postgresql_repo
178         make -f $(DIR)/Makefile.debian install_debs
179         make -f $(DIR)/Makefile.common install_cpan
180         make -f $(DIR)/Makefile.common install_cpan_force
181         make -f $(DIR)/Makefile.common install_cpan_pgsql
182         make -f $(DIR)/Makefile.debian debian_sys_config
183
184 install_postgres_server_10:
185         make -f $(DIR)/Makefile.debian DEBS="$(PGSQL_APT_REPO_DEBS)"
186         make -f $(DIR)/Makefile.debian debian_postgresql_repo
187         make -f $(DIR)/Makefile.debian DEBS="$(PGSQL_SERVER_DEBS_10)"
188         make -f $(DIR)/Makefile.common install_cpan_pgsql
189
190 install_postgres_server_11:
191         make -f $(DIR)/Makefile.debian DEBS="$(PGSQL_APT_REPO_DEBS)"
192         make -f $(DIR)/Makefile.debian debian_postgresql_repo
193         make -f $(DIR)/Makefile.debian DEBS="$(PGSQL_SERVER_DEBS_11)"
194         make -f $(DIR)/Makefile.common install_cpan_pgsql
195
196 install_postgres_server_12:
197         make -f $(DIR)/Makefile.debian DEBS="$(PGSQL_APT_REPO_DEBS)"
198         make -f $(DIR)/Makefile.debian debian_postgresql_repo
199         make -f $(DIR)/Makefile.debian DEBS="$(PGSQL_SERVER_DEBS_12)"
200         make -f $(DIR)/Makefile.common install_cpan_pgsql
201
202 install_postgres_server_13:
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_13)"
206         make -f $(DIR)/Makefile.common install_cpan_pgsql
207
208 install_postgres_server_14:
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_14)"
212         make -f $(DIR)/Makefile.common install_cpan_pgsql
213
214 # note: if/when grunt-cli is available as a
215 # package, use the packaged version instead.
216 install_developer:
217         make -f $(DIR)/Makefile.debian DEBS="$(DEVELOPER_DEBS)"
218         make -f $(DIR)/Makefile.common install_nodejs_from_source
219
220 install_translator: install_developer
221         make -f $(DIR)/Makefile.debian DEBS="$(TRANSLATOR_DEBS)"
222
223 install_packager: install_developer install_translator
224         make -f $(DIR)/Makefile.debian DEBS="$(PACKAGER_DEBS)"
225
226 clean:
227         make -f $(DIR)/Makefile.common clean
228         make -f $(DIR)/Makefile.debian clean
229
230 # vim:noet:sw=4:ts=4: