]> git.evergreen-ils.org Git - Evergreen.git/blob - Open-ILS/src/extras/install/Makefile.ubuntu-trusty
LP#1579219: set up mod_perl as an Evergreen dependency
[Evergreen.git] / Open-ILS / src / extras / install / Makefile.ubuntu-trusty
1 # install files for Ubuntu 14.04 LTS Trusty Tahr
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         libmarc-xml-perl \
12         librose-uri-perl \
13         libuuid-tiny-perl \
14         libxml-libxml-perl \
15         libxml-libxslt-perl
16
17 export DEBS = \
18         $(DEB_PGSQL_COMMON_MODS) \
19         apache2-prefork-dev\
20         aspell\
21         aspell-en\
22         libapache2-mod-perl2\
23         libbusiness-creditcard-perl\
24         libbusiness-edi-perl \
25         libbusiness-isbn-data-perl\
26         libbusiness-issn-perl\
27         libbusiness-onlinepayment-authorizenet-perl\
28         libbusiness-onlinepayment-payflowpro-perl\
29         libbusiness-onlinepayment-perl\
30         libdate-manip-perl\
31         libdatetime-format-builder-perl\
32         libdatetime-format-iso8601-perl\
33         libdatetime-format-mail-perl\
34         libdatetime-perl\
35         libdatetime-set-perl\
36         libdatetime-timezone-perl\
37         libdbd-pg-perl\
38         libdbd-pgsql \
39         libdbi-dev \
40         libemail-send-perl\
41         libemail-simple-perl\
42         libexcel-writer-xlsx-perl\
43         libgd-graph3d-perl\
44         liblocale-maketext-lexicon-perl\
45         liblog-log4perl-perl\
46         libmarc-charset-perl \
47         libncurses5-dev\
48         libnet-https-any-perl \
49         libnet-ip-perl\
50         libnet-ldap-perl \
51         libnet-server-perl\
52         libnet-ssh2-perl\
53         libnet-z3950-simple2zoom-perl\
54         libnet-z3950-simpleserver-perl\
55         libnet-z3950-zoom-perl \
56         libnspr4-dev\
57         libole-storage-lite-perl\
58         libbz2-dev \
59         libpq5\
60         libpq-dev\
61         librpc-xml-perl\
62         libsru-perl\
63         libssh2-1-dev\
64         libtemplate-plugin-posix-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-9.4\
72         libsoap-lite-perl\
73         libtest-warn-perl\
74         libparse-recdescent-perl\
75         yaz
76
77 export DEB_APACHE_MODS = \
78     expires\
79     include\
80     proxy\
81     proxy_http\
82     rewrite\
83     cgi\
84     perl
85
86 export DEB_APACHE_DISMODS = \
87     deflate
88
89 export DEB_APACHE_DISCONF = \
90     serve-cgi-bin
91
92 export CPAN_MODULES = \
93         Business::CreditCard::Object \
94         Business::OnlinePayment::PayPal \
95
96 export CPAN_MODULES_FORCE = \
97         Business::Stripe \
98         Class::DBI::Frozen::301
99
100 PGSQL_APT_REPO_DEBS = \
101         wget \
102         ca-certificates
103
104 PGSQL_SERVER_DEBS_94 = \
105         $(DEB_PGSQL_COMMON_MODS) \
106         postgresql-9.4 \
107         postgresql-contrib-9.4 \
108         postgresql-plperl-9.4 \
109         postgresql-server-dev-9.4
110
111 # note: some prereqs are repeated in the developer/packager 
112 # sections to support building Evergreen packages on servers
113 # where Evergreen and its prereqs are not installed.
114
115 # nodejs-legacy creates a symlink for /usr/bin/node -> /usr/bin/nodejs
116 # which is needed by our npm-installed packages
117 DEVELOPER_DEBS = \
118         automake \
119         autoconf \
120         libtool \
121         nodejs-legacy \
122         npm
123
124 PACKAGER_DEBS = \
125         asciidoc \
126         source-highlight \
127         zip \
128         unzip \
129         nsis
130
131 TRANSLATOR_DEBS = \
132         libtemplate-perl \
133         liblocale-maketext-lexicon-perl \
134         translate-toolkit \
135         python-dev \
136         python-levenshtein \
137         python-polib \
138         python-setuptools \
139         python-simplejson \
140         python-lxml \
141         bzr
142
143 all:
144         make -f $(DIR)/Makefile.debian DEBS="$(PGSQL_APT_REPO_DEBS)"
145         make -f $(DIR)/Makefile.debian debian_postgresql_repo
146         make -f $(DIR)/Makefile.debian install_debs
147         make -f $(DIR)/Makefile.debian test_for_libdbi_pkg
148         make -f $(DIR)/Makefile.common install_cpan
149         make -f $(DIR)/Makefile.common install_cpan_force
150         make -f $(DIR)/Makefile.debian debian_sys_config
151
152 install_postgres_server:
153         make -f $(DIR)/Makefile.debian DEBS="$(PGSQL_SERVER_DEBS_94)"
154
155 # note: if/when grunt-cli and bower are available as 
156 # packages, use the packaged versions instead.
157 install_developer:
158         make -f $(DIR)/Makefile.debian DEBS="$(DEVELOPER_DEBS)"
159         npm update
160         npm install -g grunt-cli
161         npm install -g bower
162
163 install_translator: install_developer
164         make -f $(DIR)/Makefile.debian DEBS="$(TRANSLATOR_DEBS)"
165
166 install_packager: install_developer install_translator
167         make -f $(DIR)/Makefile.debian DEBS="$(PACKAGER_DEBS)"
168
169 clean:
170         make -f $(DIR)/Makefile.common clean
171         make -f $(DIR)/Makefile.debian clean
172
173 # vim:noet:sw=4:ts=4: