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 (lucid/precise)
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-lucid
21 # make -f Makefile.install ubuntu-precise
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_LUCID = \
181 EXTRA_DEBS_UBUNTU_PRECISE = \
184 libxml-libxslt-perl \
187 # ----------------------------------------------------------------------------
190 @echo "please specify an OS" && exit 0
193 debian-jessie: generic_debian jessie
194 debian-wheezy: generic_debian wheezy
195 debian-squeeze: generic_debian squeeze
196 jessie: install_extra_debs_jessie
197 wheezy: install_extra_debs_wheezy
198 squeeze: install_extra_debs_squeeze
199 generic_debian: install_debs debian_sys_config
201 fedora: install_fedora_rpms
203 ubuntu-lucid: generic_ubuntu lucid
204 ubuntu-precise: generic_ubuntu precise
205 lucid: install_extra_debs install_extra_debs_lucid
206 precise: install_extra_debs install_extra_debs_precise
207 generic_ubuntu: install_debs debian_sys_config
209 # ------------------------------------------------------------------
210 # - DEBIAN ---------------------------------------------------------
213 # link the apache modules in
214 for m in $(DEB_APACHE_MODS); do a2enmod $$m; done;
216 # adds a placeholder module so apxs will be happy
217 if [ ! "$$(grep mod_placeholder /etc/apache2/httpd.conf)" ]; then \
218 echo -e "#\n#LoadModule mod_placeholder /usr/lib/apache2/modules/mod_placeholder.so" \
219 >> /etc/apache2/httpd.conf; \
222 # Install the debian-specific dependencies
224 $(APT_TOOL) install $(DEBS)
226 # Install the debian-specific dependencies for more modern distros
228 $(APT_TOOL) install $(EXTRA_DEBS)
230 install_extra_debs_jessie: install_extra_debs
231 $(APT_TOOL) install $(EXTRA_DEBS_JESSIE)
233 install_extra_debs_wheezy: install_extra_debs
234 $(APT_TOOL) install $(EXTRA_DEBS_WHEEZY)
236 install_extra_debs_squeeze: install_extra_debs
237 $(APT_TOOL) install $(EXTRA_DEBS_SQUEEZE)
239 # Install even more packaged dependencies on modern distros
240 install_extra_debs_lucid:
241 $(APT_TOOL) install $(EXTRA_DEBS_UBUNTU_LUCID)
243 install_extra_debs_precise:
244 $(APT_TOOL) install $(EXTRA_DEBS_UBUNTU_PRECISE)
248 yum -y install $(FEDORAS)
250 # vim:noet:sw=4:ts=4: