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 (squeeze), Ubuntu (lucid/precise)
10 # Installs Perl prereqs, libjs with Perl wrapper
13 # make -f Makefile.install debian-squeeze
15 # make -f Makefile.install ubuntu-lucid
17 # make -f Makefile.install ubuntu-precise
19 # make -f Makefile.install fedora
21 # ---------------------------------------------------------------------
23 # Make any assumptions about the shell being used explicit
27 LBITS=$(shell getconf LONG_BIT)
42 libcache-memcached-perl\
43 libclass-dbi-abstractsearch-perl\
44 libclass-dbi-sqlite-perl\
45 libdatetime-format-builder-perl\
46 libdatetime-format-mail-perl\
48 libdatetime-timezone-perl\
51 libfile-find-rule-perl\
65 libuniversal-require-perl\
104 perl-Cache-Memcached \
106 perl-Class-DBI-AbstractSearch \
107 perl-Class-DBI-SQLite \
108 perl-DateTime-Format-Builder \
109 perl-DateTime-Format-ISO8601 \
110 perl-DateTime-Format-Mail \
114 perl-File-Find-Rule \
123 perl-SQL-Abstract-Limit \
124 perl-Template-Toolkit \
126 perl-Test-Exception \
129 perl-UNIVERSAL-require \
147 libdatetime-format-iso8601-perl \
151 EXTRA_DEBS_SQUEEZE = \
157 EXTRA_DEBS_UBUNTU_LUCID = \
162 EXTRA_DEBS_UBUNTU_PRECISE = \
165 libxml-libxslt-perl \
169 # ----------------------------------------------------------------------------
172 @echo "please specify an OS" && exit 0
175 debian-squeeze: generic_debian squeeze
176 squeeze: install_extra_debs_squeeze
177 generic_debian: install_debs debian_sys_config
179 fedora: install_fedora_rpms
181 ubuntu-lucid: generic_ubuntu lucid
182 ubuntu-precise: generic_ubuntu precise
183 lucid: install_extra_debs install_extra_debs_lucid
184 precise: install_extra_debs install_extra_debs_precise
185 generic_ubuntu: install_debs debian_sys_config
187 # ------------------------------------------------------------------
188 # - DEBIAN ---------------------------------------------------------
191 # link the apache modules in
192 for m in $(DEB_APACHE_MODS); do a2enmod $$m; done;
194 # adds a placeholder module so apxs will be happy
195 if [ ! "$$(grep mod_placeholder /etc/apache2/httpd.conf)" ]; then \
196 echo -e "#\n#LoadModule mod_placeholder /usr/lib/apache2/modules/mod_placeholder.so" \
197 >> /etc/apache2/httpd.conf; \
200 # Install the debian-specific dependencies
202 $(APT_TOOL) install $(DEBS)
204 # Install the debian-specific dependencies for more modern distros
206 $(APT_TOOL) install $(EXTRA_DEBS)
208 install_extra_debs_squeeze: install_extra_debs
209 $(APT_TOOL) install $(EXTRA_DEBS_SQUEEZE)
211 # Install even more packaged dependencies on modern distros
212 install_extra_debs_lucid:
213 $(APT_TOOL) install $(EXTRA_DEBS_UBUNTU_LUCID)
215 install_extra_debs_precise:
216 $(APT_TOOL) install $(EXTRA_DEBS_UBUNTU_PRECISE)
220 yum -y install $(FEDORAS)
222 # vim:noet:sw=4:ts=4: