1 # ---------------------------------------------------------------------
2 # Author: Bill Erickson <erickson@esilibrary.com>
3 # Author: Dan Scott <dscott@laurentian.ca>
5 # Makefile to install prerequisites for OpenSRF and Evergreen
7 # Currently supports Debian (jessie, wheezy), Ubuntu (12.04),
8 # Ubuntu (14.04), Ubuntu (16.04), and Fedora (16 and 17).
10 # Installs Perl prereqs, libdbi, libdbi-drivers, and libyaz
13 # make -f Makefile.install debian-jessie
15 # make -f Makefile.install debian-wheezy
17 # make -f Makefile.install ubuntu-precise
19 # make -f Makefile.install ubuntu-trusty
21 # make -f Makefile.install ubuntu-xenial
23 # make -f Makefile.install fedora
25 # ---------------------------------------------------------------------
27 # variables shared by all installers
29 # Make any assumptions about the shell being used explicit
30 export SHELL=/bin/bash
32 export LIBNET_Z3950_SIMPLESERVER=Net-Z3950-SimpleServer-1.15
33 export LIBNET_Z3950_SIMPLESERVER_URL=http://ftp.indexdata.dk/pub/simpleserver/$(LIBNET_Z3950_SIMPLESERVER)
35 # The libdbi sources can be fetched from sourceforge.net. They are stored on
36 # the open-ils.org site now for ease of direct linking
37 export LIBDBI=libdbi-0.8.3
38 export LIBDBI_DRIVERS=libdbi-drivers-0.8.3
39 export LIBDBI_HOST=http://open-ils.org/~denials/evergreen
41 # some OSes require a source install of NodeJS.
42 # NOTE: Deprecate me with wheezy / precise
43 export NODEJS_SOURCE_VERSION=v0.10.28
45 # As this Makefile is designed to be used by a make process running as
46 # root, this will avoid problems on some systems when tar extracts
47 # files and tries to give them the same UID/GID as they have in their
48 # archives, but those accounts don't exist on the local system.
50 # e.g, libdbi has files set 1000/1000. On most systems, there's a user
51 # and a group with these IDs, but there can be systems where nothing
52 # uses those IDs, and where tar fails with e.g. 'tar: libdbi-0.8.3:
53 # Cannot change ownership to uid 1000, gid 1000: Invalid argument'
55 export TAR_OPTIONS=--no-same-owner --no-same-permissions
57 # ----------------------------------------------------------------------------
59 # avoid hard-coding the path to related makefiles
60 DIR = $(dir $(lastword $(MAKEFILE_LIST)))/install
63 @echo "please specify an OS" && exit 0
65 @make -f $(DIR)/Makefile.debian-jessie
67 @make -f $(DIR)/Makefile.debian-wheezy
69 @make -f $(DIR)/Makefile.ubuntu-xenial
71 @make -f $(DIR)/Makefile.ubuntu-trusty
73 @make -f $(DIR)/Makefile.ubuntu-precise
75 @make -f $(DIR)/Makefile.fedora
77 postgres-server-debian-jessie:
78 @make -f $(DIR)/Makefile.debian-jessie install_postgres_server
79 postgres-server-debian-wheezy:
80 @make -f $(DIR)/Makefile.debian-wheezy install_postgres_server
81 postgres-server-ubuntu-xenial:
82 @make -f $(DIR)/Makefile.ubuntu-xenial install_postgres_server
83 postgres-server-ubuntu-trusty:
84 @make -f $(DIR)/Makefile.ubuntu-trusty install_postgres_server
85 postgres-server-ubuntu-precise:
86 @make -f $(DIR)/Makefile.ubuntu-precise install_postgres_server
87 postgres-server-fedora:
88 @make -f $(DIR)/Makefile.fedora install_postgres_server
90 ubuntu-xenial-developer:
91 @make -f $(DIR)/Makefile.xenial-trusty install_developer
92 ubuntu-trusty-developer:
93 @make -f $(DIR)/Makefile.ubuntu-trusty install_developer
94 debian-jessie-developer:
95 @make -f $(DIR)/Makefile.debian-jessie install_developer
96 ubuntu-precise-developer:
97 @make -f $(DIR)/Makefile.ubuntu-precise install_developer
98 debian-wheezy-developer:
99 @make -f $(DIR)/Makefile.debian-wheezy install_developer
101 ubuntu-xenial-packager:
102 @make -f $(DIR)/Makefile.ubuntu-xenial install_packager
103 ubuntu-trusty-packager:
104 @make -f $(DIR)/Makefile.ubuntu-trusty install_packager
105 debian-jessie-packager:
106 @make -f $(DIR)/Makefile.debian-jessie install_packager
107 ubuntu-precise-packager:
108 @make -f $(DIR)/Makefile.ubuntu-precise install_packager
109 debian-wheezy-packager:
110 @make -f $(DIR)/Makefile.debian-wheezy install_packager
112 # vim:noet:sw=4:ts=4: