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\
103 perl-Cache-Memcached \
105 perl-Class-DBI-AbstractSearch \
106 perl-Class-DBI-SQLite \
107 perl-DateTime-Format-Builder \
108 perl-DateTime-Format-ISO8601 \
109 perl-DateTime-Format-Mail \
113 perl-File-Find-Rule \
122 perl-SQL-Abstract-Limit \
123 perl-Template-Toolkit \
125 perl-Test-Exception \
128 perl-UNIVERSAL-require \
145 libdatetime-format-iso8601-perl \
149 EXTRA_DEBS_SQUEEZE = \
155 EXTRA_DEBS_UBUNTU_LUCID = \
160 EXTRA_DEBS_UBUNTU_PRECISE = \
163 libxml-libxslt-perl \
167 # ----------------------------------------------------------------------------
170 @echo "please specify an OS" && exit 0
173 debian-squeeze: generic_debian squeeze
174 squeeze: install_extra_debs_squeeze
175 generic_debian: install_debs debian_sys_config
177 fedora: install_fedora_rpms
179 ubuntu-lucid: generic_ubuntu lucid
180 ubuntu-precise: generic_ubuntu precise
181 lucid: install_extra_debs install_extra_debs_lucid
182 precise: install_extra_debs install_extra_debs_precise
183 generic_ubuntu: install_debs debian_sys_config
185 # ------------------------------------------------------------------
186 # - DEBIAN ---------------------------------------------------------
189 # link the apache modules in
190 for m in $(DEB_APACHE_MODS); do a2enmod $$m; done;
192 # adds a placeholder module so apxs will be happy
193 if [ ! "$$(grep mod_placeholder /etc/apache2/httpd.conf)" ]; then \
194 echo -e "#\n#LoadModule mod_placeholder /usr/lib/apache2/modules/mod_placeholder.so" \
195 >> /etc/apache2/httpd.conf; \
198 # Install the debian-specific dependencies
200 $(APT_TOOL) install $(DEBS)
202 # Install the debian-specific dependencies for more modern distros
204 $(APT_TOOL) install $(EXTRA_DEBS)
206 install_extra_debs_squeeze: install_extra_debs
207 $(APT_TOOL) install $(EXTRA_DEBS_SQUEEZE)
209 # Install even more packaged dependencies on modern distros
210 install_extra_debs_lucid:
211 $(APT_TOOL) install $(EXTRA_DEBS_UBUNTU_LUCID)
213 install_extra_debs_precise:
214 $(APT_TOOL) install $(EXTRA_DEBS_UBUNTU_PRECISE)
218 yum -y install $(FEDORAS)
220 # vim:noet:sw=4:ts=4: