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 (stretch/bullseye) and Ubuntu
10 # Installs Perl prereqs, libjs with Perl wrapper
13 # make -f Makefile.install debian-bullseye
15 # make -f Makefile.install debian-buster
17 # make -f Makefile.install debian-stretch
19 # make -f Makefile.install ubuntu-bionic
21 # make -f Makefile.install ubuntu-focal
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-iso8601-perl \
51 libdatetime-format-mail-perl\
53 libdatetime-timezone-perl\
56 libfile-find-rule-perl\
73 libuniversal-require-perl\
106 libxml-libxslt-perl \
112 perl-Cache-Memcached \
114 perl-Class-DBI-AbstractSearch \
115 perl-Class-DBI-SQLite \
116 perl-DateTime-Format-Builder \
117 perl-DateTime-Format-ISO8601 \
118 perl-DateTime-Format-Mail \
122 perl-File-Find-Rule \
129 perl-SQL-Abstract-Limit \
130 perl-Template-Toolkit \
132 perl-Test-Exception \
135 perl-UNIVERSAL-require \
147 # ----------------------------------------------------------------------------
150 @echo "please specify an OS" && exit 0
153 debian-bullseye: generic_debian
154 debian-buster: generic_debian
155 debian-stretch: generic_debian
157 generic_debian: install_debs debian_sys_config apache_mpm_prefork_mods apache_perl_mod
159 ubuntu-bionic: generic_ubuntu
160 ubuntu-focal: generic_ubuntu
162 generic_ubuntu: install_debs debian_sys_config apache_mpm_prefork_mods apache_perl_mod
164 fedora: install_fedora_rpms
166 # ------------------------------------------------------------------
168 # - DEBIAN ---------------------------------------------------------
171 # link the apache modules in
172 for m in $(DEB_APACHE_MODS); do a2enmod $$m; done;
174 # Install the debian-specific dependencies
176 $(APT_TOOL) install $(DEBS)
178 # Some OSes activate the Apache mpm_event module by default.
179 # OpenSRF requires prefork.
180 apache_mpm_prefork_mods:
184 # Need to activate mod_perl on some O/S.
188 # - FEDORA ---------------------------------------------------------
191 yum -y install $(FEDORAS)
193 # vim:noet:sw=4:ts=4: