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 (buster/bullseye/bookworm) and Ubuntu
10 # Installs Perl prereqs, libjs with Perl wrapper
13 # make -f Makefile.install debian-bookworm
15 # make -f Makefile.install debian-bullseye
17 # make -f Makefile.install debian-buster
19 # make -f Makefile.install ubuntu-focal
21 # make -f Makefile.install ubuntu-jammy
23 # make -f Makefile.install fedora
25 # ---------------------------------------------------------------------
27 # Make any assumptions about the shell being used explicit
31 LBITS=$(shell getconf LONG_BIT)
35 # libssl-dev isn't directly required, but we need to include it until
36 # https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=1038149 is closed.
48 libcache-memcached-perl\
49 libclass-dbi-abstractsearch-perl\
50 libclass-dbi-sqlite-perl\
51 libdatetime-format-builder-perl\
52 libdatetime-format-iso8601-perl \
53 libdatetime-format-mail-perl\
55 libdatetime-timezone-perl\
58 libfile-find-rule-perl\
76 libuniversal-require-perl\
109 libxml-libxslt-perl \
115 perl-Cache-Memcached \
117 perl-Class-DBI-AbstractSearch \
118 perl-Class-DBI-SQLite \
119 perl-DateTime-Format-Builder \
120 perl-DateTime-Format-ISO8601 \
121 perl-DateTime-Format-Mail \
125 perl-File-Find-Rule \
132 perl-SQL-Abstract-Limit \
133 perl-Template-Toolkit \
135 perl-Test-Exception \
138 perl-UNIVERSAL-require \
150 # ----------------------------------------------------------------------------
153 @echo "please specify an OS" && exit 0
155 debian-bookworm: generic_debian
156 debian-bullseye: generic_debian
157 debian-buster: generic_debian
159 generic_debian: install_debs debian_sys_config apache_mpm_prefork_mods apache_perl_mod
161 ubuntu-focal: generic_ubuntu
162 ubuntu-jammy: generic_ubuntu
164 generic_ubuntu: install_debs debian_sys_config apache_mpm_prefork_mods apache_perl_mod
166 fedora: install_fedora_rpms
168 # ------------------------------------------------------------------
170 # - DEBIAN ---------------------------------------------------------
173 # link the apache modules in
174 for m in $(DEB_APACHE_MODS); do a2enmod $$m; done;
176 # Install the debian-specific dependencies
178 $(APT_TOOL) install $(DEBS)
180 # Some OSes activate the Apache mpm_event module by default.
181 # OpenSRF requires prefork.
182 apache_mpm_prefork_mods:
186 # Need to activate mod_perl on some O/S.
190 # - FEDORA ---------------------------------------------------------
193 yum -y install $(FEDORAS)
195 # vim:noet:sw=4:ts=4: