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 \
168 # ----------------------------------------------------------------------------
171 @echo "please specify an OS" && exit 0
174 debian-squeeze: generic_debian squeeze
175 squeeze: install_extra_debs_squeeze
176 generic_debian: install_debs debian_sys_config
178 fedora: install_fedora_rpms
180 ubuntu-lucid: generic_ubuntu lucid
181 ubuntu-precise: generic_ubuntu precise
182 lucid: install_extra_debs install_extra_debs_lucid
183 precise: install_extra_debs install_extra_debs_precise
184 generic_ubuntu: install_debs debian_sys_config
186 # ------------------------------------------------------------------
187 # - DEBIAN ---------------------------------------------------------
190 # link the apache modules in
191 for m in $(DEB_APACHE_MODS); do a2enmod $$m; done;
193 # adds a placeholder module so apxs will be happy
194 if [ ! "$$(grep mod_placeholder /etc/apache2/httpd.conf)" ]; then \
195 echo -e "#\n#LoadModule mod_placeholder /usr/lib/apache2/modules/mod_placeholder.so" \
196 >> /etc/apache2/httpd.conf; \
199 # Install the debian-specific dependencies
201 $(APT_TOOL) install $(DEBS)
203 # Install the debian-specific dependencies for more modern distros
205 $(APT_TOOL) install $(EXTRA_DEBS)
207 install_extra_debs_squeeze: install_extra_debs
208 $(APT_TOOL) install $(EXTRA_DEBS_SQUEEZE)
210 # Install even more packaged dependencies on modern distros
211 install_extra_debs_lucid:
212 $(APT_TOOL) install $(EXTRA_DEBS_UBUNTU_LUCID)
214 install_extra_debs_precise:
215 $(APT_TOOL) install $(EXTRA_DEBS_UBUNTU_PRECISE)
219 yum -y install $(FEDORAS)
221 # vim:noet:sw=4:ts=4: