From 12364ddc04685660fab3f1462910d38cfd94beb7 Mon Sep 17 00:00:00 2001
From: Thomas Berezansky <tsbere@mvlc.org>
Date: Wed, 12 Oct 2011 09:06:31 -0400
Subject: [PATCH] Add instructions/targets for Ubuntu/Debian PG9.1

No Fedora/RHEL/CentOS changes due to my lack of test environment.

Signed-off-by: Thomas Berezansky <tsbere@mvlc.org>
Signed-off-by: Dan Scott <dscott@laurentian.ca>
---
 Open-ILS/src/extras/Makefile.install | 9 +++++++++
 README                               | 8 +++++++-
 2 files changed, 16 insertions(+), 1 deletion(-)

diff --git a/Open-ILS/src/extras/Makefile.install b/Open-ILS/src/extras/Makefile.install
index c5e0a0eb00..ae74df957c 100644
--- a/Open-ILS/src/extras/Makefile.install
+++ b/Open-ILS/src/extras/Makefile.install
@@ -217,6 +217,12 @@ PGSQL_SERVER_DEBS_90 = \
 	postgresql-plperl-9.0 \
 	postgresql-server-dev-9.0
 
+PGSQL_SERVER_DEBS_91 = \
+	postgresql-9.1 \
+	postgresql-contrib-9.1 \
+	postgresql-plperl-9.1 \
+	postgresql-server-dev-9.1
+
 DEB_APACHE_MODS = \
     expires\
     include\
@@ -424,6 +430,9 @@ install_pgsql_client_debs_90:
 install_pgsql_server_debs_90:
 	$(APT_BACKPORT_TOOL) install $(PGSQL_SERVER_DEBS_90)
 
+install_pgsql_server_debs_91:
+	$(APT_BACKPORT_TOOL) install $(PGSQL_SERVER_DEBS_91)
+
 # Install the debian-specific dependencies for more modern distros
 install_extra_debs_squeeze: install_extra_debs
 	$(APT_TOOL) install $(EXTRA_DEBS_SQUEEZE)
diff --git a/README b/README
index f3c96c6074..e455547e2a 100644
--- a/README
+++ b/README
@@ -294,7 +294,7 @@ Creating the Evergreen database:
 --------------------------------
 
 By default, the `Makefile.install` prerequisite installer does not install
-the PostgreSQL 9.0 database server required by every Evergreen system;
+the PostgreSQL 9.0/9.1 database server required by every Evergreen system;
 for production use, most libraries install the PostgreSQL database server on a
 dedicated machine. You can install the packages required by Debian, Ubuntu, or
 Fedora on the machine of your choice using the following commands as the *root*
@@ -306,6 +306,12 @@ Linux account:
 make -f Open-ILS/src/extras/Makefile.install install_pgsql_server_debs_90
 ------------------------------------------------------------------------------
 
+.(Debian / Ubuntu) Installing PostgreSQL 9.1 server packages
+[source, bash]
+------------------------------------------------------------------------------
+make -f Open-ILS/src/extras/Makefile.install install_pgsql_server_debs_91
+------------------------------------------------------------------------------
+
 .(Fedora 15) Installing PostgreSQL 9.0 server packages
 [source, bash]
 ------------------------------------------------------------------------------
-- 
2.11.0