LP 1190279 Ubuntu install targets
authorChris Sharp <csharp@georgialibraries.org>
Thu, 13 Jun 2013 11:56:45 +0000 (07:56 -0400)
committerBill Erickson <berick@esilibrary.com>
Tue, 20 Aug 2013 18:51:15 +0000 (14:51 -0400)
Ubuntu 10.04 comes with Yaz 3.0.52.

This installs version 4.2.32 from source.

Adding per-distro makefiles for Ubuntu 10.04 and 12.04.

Correcting minor typo

SimpleServer installation expects yaz to already be installed

Ubuntu 12.04 does not like libparent-perl

Removing librose-uri-perl from the debs list since it is not in the 12.04 repo

Adding libbz2-dev to the deb list

Signed-off-by: Chris Sharp <csharp@georgialibraries.org>
Signed-off-by: Bill Erickson <berick@esilibrary.com>
Signed-off-by: Chris Sharp <csharp@georgialibraries.org>
Signed-off-by: Dan Scott <dscott@laurentian.ca>
Open-ILS/src/extras/install/Makefile.common
Open-ILS/src/extras/install/Makefile.ubuntu-lucid [new file with mode: 0644]
Open-ILS/src/extras/install/Makefile.ubuntu-precise [new file with mode: 0644]

index efd52d3..5db0e63 100644 (file)
@@ -1,5 +1,10 @@
 # Functions used by all installers
 
+# We need a recent version of Yaz
+# Ubuntu 10.04 comes with 3.0.52
+YAZ=yaz-4.2.32
+YAZ_HOST=http://ftp.indexdata.dk/pub/yaz
+
 # Install the CPAN modules
 install_cpan:
        for m in $(CPAN_MODULES); do perl -MCPAN -e "install \"$$m\";"; done
@@ -32,4 +37,10 @@ clean:
        make -C $(LIBDBI_DRIVERS) clean
        make -C $(LIBJS_PERL) clean
 
+# Install a known working version of YAZ
+install_yaz:    
+       if [ ! -d $(YAZ) ]; then wget $(YAZ_HOST)/$(YAZ).tar.gz; fi;
+       tar xzf $(YAZ).tar.gz
+       cd $(YAZ) && ./configure && make && make install && ldconfig
+
 # vim:noet:sw=4:ts=4:
diff --git a/Open-ILS/src/extras/install/Makefile.ubuntu-lucid b/Open-ILS/src/extras/install/Makefile.ubuntu-lucid
new file mode 100644 (file)
index 0000000..80d2b3c
--- /dev/null
@@ -0,0 +1,113 @@
+# install files for Ubuntu 10.04 LTS Lucid Lynx
+
+DIR = $(dir $(lastword $(MAKEFILE_LIST)))
+APT_SAFE_TOOL = aptitude -P
+
+export DEBS = \
+       apache2-prefork-dev\
+       aspell\
+       aspell-en\
+       libbusiness-creditcard-perl\
+       libbusiness-isbn-data-perl\
+       libbusiness-isbn-perl\
+       libbusiness-onlinepayment-authorizenet-perl\
+       libbusiness-onlinepayment-perl\
+       libdatetime-format-builder-perl\
+       libdatetime-format-iso8601-perl\
+       libdatetime-format-mail-perl\
+       libdatetime-perl\
+       libdatetime-set-perl\
+       libdatetime-timezone-perl\
+       libdbd-pg-perl\
+       libemail-send-perl\
+       libemail-simple-perl\
+       libgd-graph3d-perl\
+       liblocale-maketext-lexicon-perl\
+       liblog-log4perl-perl\
+       libmarc-charset-perl \
+       libmarc-xml-perl \
+       libncurses5-dev\
+       libnet-ip-perl\
+       libnet-ldap-perl \
+       libnet-server-perl\
+       libnet-ssh2-perl\
+       libnet-z3950-zoom-perl \
+       libnspr4-dev\
+       libole-storage-lite-perl\
+       libparent-perl\
+       libspreadsheet-writeexcel-perl\
+       libssh2-1-dev\
+       libtext-aspell-perl\
+       libtext-csv-perl\
+       libuniversal-require-perl\
+       libunix-syslog-perl\
+    libuuid-tiny-perl\
+       libyaz-dev\
+
+export DEB_APACHE_MODS = \
+    expires\
+    include\
+    proxy\
+    proxy_http\
+    rewrite
+
+export DEB_APACHE_DISMODS = \
+    deflate
+
+export CPAN_MODULES = \
+       Business::OnlinePayment::PayPal \
+       Library::CallNumber::LC \
+       MARC::Record \
+       Net::Z3950::Simple2ZOOM \
+       RPC::XML \
+       Template::Plugin::POSIX \
+       SRU \
+       Rose::URI \
+       Safe
+
+export CPAN_MODULES_FORCE = \
+       Class::DBI::Frozen::301
+
+PGSQL_SERVER_DEBS_91 = \
+       postgresql-9.1 \
+       postgresql-contrib-9.1 \
+       postgresql-plperl-9.1 \
+       postgresql-server-dev-9.1
+
+PGSQL_CLIENT_DEBS_91 = \
+       libpq5 \
+       libpq-dev \
+       postgresql-client-9.1
+
+all:
+       make -f $(DIR)/Makefile.debian install_debs
+       make -f $(DIR)/Makefile.debian test_for_libdbi_pkg
+       make -f $(DIR)/Makefile.common install_yaz
+       make -f $(DIR)/Makefile.common install_net_z3950_simpleserver
+       make -f $(DIR)/Makefile.common install_cpan
+       make -f $(DIR)/Makefile.common install_cpan_force
+       make -f $(DIR)/Makefile.debian install_js_sm
+       make -f $(DIR)/Makefile.debian debian_sys_config
+
+install_pgsql_server_debs_91:
+       $(APT_TOOL) install $(PGSQL_SERVER_DEBS_91)
+
+install_pgsql_client_backport_debs_91:
+       @if [ `$(APT_TOOL) versions libpq5 | grep ^i|sed 's/^i[ \t]*//'|cut -d. -f1` -eq 8 ]; \
+               then \
+               echo -e "libpq5 / libpq-dev are installed as part of OpenSRF (a dependency" \
+               "of apache2-prefork-dev), but these are the 8.4 versions and they" \
+               "conflict with the 9.1 versions - so remove them, install the pinned" \
+               "backports of 9.1, then reinstall the apache2-prefork-dev package.\n\n" \
+               "**WARNING**: Saying 'Yes' to this step will _remove_ any PostgreSQL" \
+               "databases that might currently exist on this machine." && \
+               $(APT_SAFE_TOOL) remove libpq5 libpq-dev ; \
+       fi
+       $(APT_TOOL) install $(PGSQL_CLIENT_DEBS_91)
+       $(APT_TOOL) install apache2-prefork-dev
+
+clean:
+       make -f $(DIR)/Makefile.common clean
+       make -f $(DIR)/Makefile.debian clean
+
+# vim:noet:sw=4:ts=4:
diff --git a/Open-ILS/src/extras/install/Makefile.ubuntu-precise b/Open-ILS/src/extras/install/Makefile.ubuntu-precise
new file mode 100644 (file)
index 0000000..96881a3
--- /dev/null
@@ -0,0 +1,101 @@
+# install files for Ubuntu 12.04 LTS Precise Pangolin
+
+DIR = $(dir $(lastword $(MAKEFILE_LIST)))
+
+export DEBS = \
+       apache2-prefork-dev\
+       aspell\
+       aspell-en\
+       libbusiness-creditcard-perl\
+       libbusiness-edi-perl \
+       libbusiness-isbn-data-perl\
+       libbusiness-isbn-perl\
+       libbusiness-onlinepayment-authorizenet-perl\
+       libbusiness-onlinepayment-perl\
+       libdatetime-format-builder-perl\
+       libdatetime-format-iso8601-perl\
+       libdatetime-format-mail-perl\
+       libdatetime-perl\
+       libdatetime-set-perl\
+       libdatetime-timezone-perl\
+       libdbd-pg-perl\
+       libdbd-pgsql \
+       libdbi-dev \
+       libemail-send-perl\
+       libemail-simple-perl\
+       libgd-graph3d-perl\
+       liblibrary-callnumber-lc-perl \
+       liblocale-maketext-lexicon-perl\
+       liblog-log4perl-perl\
+       libmarc-charset-perl \
+       libmarc-record-perl\
+       libmarc-xml-perl \
+       libncurses5-dev\
+       libnet-https-any-perl \
+       libnet-ip-perl\
+       libnet-ldap-perl \
+       libnet-server-perl\
+       libnet-ssh2-perl\
+       libnet-z3950-simple2zoom-perl\
+       libnet-z3950-zoom-perl \
+       libnspr4-dev\
+       libole-storage-lite-perl\
+       libbz2-dev \
+       libpq5\
+       libpq-dev\
+       librpc-xml-perl\
+       libspreadsheet-writeexcel-perl\
+       libsru-perl\
+       libssh2-1-dev\
+       libtext-aspell-perl\
+       libtext-csv-perl\
+       libuniversal-require-perl\
+       libunix-syslog-perl\
+       libuuid-tiny-perl\
+       libyaz-dev\
+       postgresql-client-9.1\
+       yaz
+
+export DEB_APACHE_MODS = \
+    expires\
+    include\
+    proxy\
+    proxy_http\
+    rewrite
+
+export DEB_APACHE_DISMODS = \
+    deflate
+
+export CPAN_MODULES = \
+       Business::CreditCard::Object \
+       Business::OnlinePayment::PayPal \
+       Template::Plugin::POSIX \
+       Rose::URI \
+       Safe
+
+export CPAN_MODULES_FORCE = \
+       Class::DBI::Frozen::301
+
+PGSQL_SERVER_DEBS_91 = \
+       postgresql-9.1 \
+       postgresql-contrib-9.1 \
+       postgresql-plperl-9.1 \
+       postgresql-server-dev-9.1
+
+all:
+       make -f $(DIR)/Makefile.debian install_debs
+       make -f $(DIR)/Makefile.debian test_for_libdbi_pkg
+       make -f $(DIR)/Makefile.common install_net_z3950_simpleserver
+       make -f $(DIR)/Makefile.common install_cpan
+       make -f $(DIR)/Makefile.common install_cpan_force
+       make -f $(DIR)/Makefile.debian install_js_sm
+       make -f $(DIR)/Makefile.debian debian_sys_config
+
+install_pgsql_server_debs_91:
+       make -f $(DIR)/Makefile.debian DEBS="$(PGSQL_SERVER_DEBS_91)"
+
+clean:
+       make -f $(DIR)/Makefile.common clean
+       make -f $(DIR)/Makefile.debian clean
+
+# vim:noet:sw=4:ts=4: