1 # ---------------------------------------------------------------------
2 # Author: Bill Erickson <erickson@esilibrary.com>
3 # Author: Dan Scott <dscott@laurentian.ca>
5 # Makefile to install prerequisites for OpenSRF
7 # Currently supports Debian (jessie/wheezy/squeeze), Ubuntu (precise/trusty)
10 # Installs Perl prereqs, libjs with Perl wrapper
13 # make -f Makefile.install debian-jessie
15 # make -f Makefile.install debian-wheezy
17 # make -f Makefile.install debian-squeeze
19 # make -f Makefile.install ubuntu-precise
21 # make -f Makefile.install ubuntu-trusty
23 # make -f Makefile.install fedora
25 # ---------------------------------------------------------------------
27 # Make any assumptions about the shell being used explicit
31 LBITS=$(shell getconf LONG_BIT)
46 libcache-memcached-perl\
47 libclass-dbi-abstractsearch-perl\
48 libclass-dbi-sqlite-perl\
49 libdatetime-format-builder-perl\
50 libdatetime-format-mail-perl\
52 libdatetime-timezone-perl\
55 libfile-find-rule-perl\
67 libuniversal-require-perl\
111 perl-Cache-Memcached \
113 perl-Class-DBI-AbstractSearch \
114 perl-Class-DBI-SQLite \
115 perl-DateTime-Format-Builder \
116 perl-DateTime-Format-ISO8601 \
117 perl-DateTime-Format-Mail \
121 perl-File-Find-Rule \
128 perl-SQL-Abstract-Limit \
129 perl-Template-Toolkit \
131 perl-Test-Exception \
134 perl-UNIVERSAL-require \
152 libdatetime-format-iso8601-perl \
156 EXTRA_DEBS_SQUEEZE = \
162 EXTRA_DEBS_WHEEZY = \
166 libxml-libxslt-perl \
169 EXTRA_DEBS_JESSIE = \
173 libxml-libxslt-perl \
176 EXTRA_DEBS_UBUNTU_PRECISE = \
179 libxml-libxslt-perl \
182 EXTRA_DEBS_UBUNTU_TRUSTY = \
185 libxml-libxslt-perl \
188 # ----------------------------------------------------------------------------
191 @echo "please specify an OS" && exit 0
194 debian-jessie: generic_debian jessie
195 debian-wheezy: generic_debian wheezy
196 debian-squeeze: generic_debian squeeze
197 jessie: install_extra_debs_jessie
198 wheezy: install_extra_debs_wheezy
199 squeeze: install_extra_debs_squeeze
200 generic_debian: install_debs debian_sys_config
202 fedora: install_fedora_rpms
204 ubuntu-precise: generic_ubuntu precise
205 ubuntu-trusty: generic_ubuntu trusty
206 precise: install_extra_debs install_extra_debs_precise
207 trusty: install_extra_debs install_extra_debs_trusty
208 generic_ubuntu: install_debs debian_sys_config
210 # ------------------------------------------------------------------
211 # - DEBIAN ---------------------------------------------------------
214 # link the apache modules in
215 for m in $(DEB_APACHE_MODS); do a2enmod $$m; done;
217 # adds a placeholder module so apxs will be happy
218 if [ ! "$$(grep mod_placeholder /etc/apache2/httpd.conf)" ]; then \
219 echo -e "#\n#LoadModule mod_placeholder /usr/lib/apache2/modules/mod_placeholder.so" \
220 >> /etc/apache2/httpd.conf; \
223 # Install the debian-specific dependencies
225 $(APT_TOOL) install $(DEBS)
227 # Install the debian-specific dependencies for more modern distros
229 $(APT_TOOL) install $(EXTRA_DEBS)
231 install_extra_debs_jessie: install_extra_debs
232 $(APT_TOOL) install $(EXTRA_DEBS_JESSIE)
234 install_extra_debs_wheezy: install_extra_debs
235 $(APT_TOOL) install $(EXTRA_DEBS_WHEEZY)
237 install_extra_debs_squeeze: install_extra_debs
238 $(APT_TOOL) install $(EXTRA_DEBS_SQUEEZE)
240 # Install even more packaged dependencies on modern distros
241 install_extra_debs_precise:
242 $(APT_TOOL) install $(EXTRA_DEBS_UBUNTU_PRECISE)
244 install_extra_debs_trusty:
245 $(APT_TOOL) install $(EXTRA_DEBS_UBUNTU_TRUSTY)
249 yum -y install $(FEDORAS)
251 # vim:noet:sw=4:ts=4: