]> git.evergreen-ils.org Git - Evergreen.git/blob - Open-ILS/src/extras/install/Makefile.ubuntu-bionic
35c42fde10df28556422ca0e1be2e79c45f8287a
[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         libexcel-writer-xlsx-perl\
41         libgd-graph3d-perl\
42         liblocale-maketext-lexicon-perl\
43         liblog-log4perl-perl\
44         libncurses5-dev\
45         libnet-ip-perl\
46         libnet-ldap-perl \
47         libnet-server-perl\
48         libnet-ssh2-perl\
49         libnet-z3950-simpleserver-perl\
50         libnet-z3950-zoom-perl \
51         libnspr4-dev\
52         libole-storage-lite-perl\
53         libparent-perl\
54         libpq5\
55         libpq-dev\
56         libpcre3-dev\
57         librpc-xml-perl\
58         libsru-perl\
59         libssh2-1-dev\
60         libtemplate-plugin-posix-perl\
61         libtest-warn-perl\
62         libtest-output-perl\
63         libtext-aspell-perl\
64         libtext-csv-perl\
65         libuniversal-require-perl\
66         libunix-syslog-perl\
67         libyaz-dev\
68         postgresql-client-9.6\
69         libsoap-lite-perl\
70         libbz2-dev\
71         libparse-recdescent-perl\
72         libhtml-defang-perl\
73         yaz
74
75 export DEB_APACHE_MODS = \
76     expires\
77     include\
78     proxy\
79     proxy_http\
80     rewrite\
81     cgi\
82     perl
83
84 export DEB_APACHE_DISMODS = \
85     deflate
86
87 export DEB_APACHE_DISCONF = \
88     serve-cgi-bin
89
90 export CPAN_MODULES = \
91         Business::OnlinePayment::PayPal \
92         Email::Send \
93         MARC::Charset \
94         Net::Z3950::Simple2ZOOM
95
96 export CPAN_MODULES_FORCE = \
97         Business::Stripe \
98         Class::DBI::Frozen::301
99
100 export CPAN_MODULES_PGSQL = \
101         MARC::File::XML
102
103 PGSQL_APT_REPO_DEBS = \
104         wget \
105         ca-certificates
106
107 PGSQL_SERVER_DEBS_96 = \
108         $(DEB_PGSQL_COMMON_MODS) \
109         postgresql-9.6 \
110         postgresql-contrib-9.6 \
111         postgresql-plperl-9.6 \
112         postgresql-server-dev-9.6
113
114 PGSQL_SERVER_DEBS_10 = \
115         $(DEB_PGSQL_COMMON_MODS) \
116         postgresql-10 \
117         postgresql-contrib-10 \
118         postgresql-plperl-10 \
119         postgresql-server-dev-10
120
121 # note: some prereqs are repeated in the developer/packager 
122 # sections to support building Evergreen packages on servers
123 # where Evergreen and its prereqs are not installed.
124
125 DEVELOPER_DEBS = \
126         automake \
127         autoconf \
128         libtool \
129         chromium-browser \
130         firefox
131
132 PACKAGER_DEBS = \
133         asciidoc \
134         source-highlight \
135         zip \
136         unzip \
137         nsis
138
139 TRANSLATOR_DEBS = \
140         libtemplate-perl \
141         liblocale-maketext-lexicon-perl \
142         translate-toolkit \
143         python-dev \
144         python-levenshtein \
145         python-polib \
146         python-setuptools \
147         python-simplejson \
148         python-lxml \
149         bzr
150
151 all:
152         make -f $(DIR)/Makefile.debian DEBS="$(PGSQL_APT_REPO_DEBS)"
153         make -f $(DIR)/Makefile.debian debian_postgresql_repo
154         make -f $(DIR)/Makefile.debian install_debs
155         make -f $(DIR)/Makefile.common install_cpan
156         make -f $(DIR)/Makefile.common install_cpan_force
157         make -f $(DIR)/Makefile.common install_cpan_pgsql
158         make -f $(DIR)/Makefile.debian debian_sys_config
159
160 install_postgres_server:
161         make -f $(DIR)/Makefile.debian DEBS="$(PGSQL_APT_REPO_DEBS)"
162         make -f $(DIR)/Makefile.debian debian_postgresql_repo
163         make -f $(DIR)/Makefile.debian DEBS="$(PGSQL_SERVER_DEBS_96)"
164         make -f $(DIR)/Makefile.common install_cpan_pgsql
165
166 install_postgres_server_10:
167         make -f $(DIR)/Makefile.debian DEBS="$(PGSQL_APT_REPO_DEBS)"
168         make -f $(DIR)/Makefile.debian debian_postgresql_repo
169         make -f $(DIR)/Makefile.debian DEBS="$(PGSQL_SERVER_DEBS_10)"
170         make -f $(DIR)/Makefile.common install_cpan_pgsql
171
172 # note: if/when grunt-cli is available as a
173 # package, use the packaged version instead.
174 install_developer:
175         make -f $(DIR)/Makefile.debian DEBS="$(DEVELOPER_DEBS)"
176         make -f $(DIR)/Makefile.common install_nodejs_from_source
177
178 install_translator: install_developer
179         make -f $(DIR)/Makefile.debian DEBS="$(TRANSLATOR_DEBS)"
180
181 install_packager: install_developer install_translator
182         make -f $(DIR)/Makefile.debian DEBS="$(PACKAGER_DEBS)"
183
184 clean:
185         make -f $(DIR)/Makefile.common clean
186         make -f $(DIR)/Makefile.debian clean
187
188 # vim:noet:sw=4:ts=4: