port to postgresql 8.3 sipb-xen-database/10.23
authorGreg Price <price@mit.edu>
Wed, 1 Oct 2008 06:10:33 +0000 (02:10 -0400)
committerGreg Price <price@mit.edu>
Wed, 1 Oct 2008 06:10:33 +0000 (02:10 -0400)
svn path=/trunk/packages/sipb-xen-database/; revision=974

debian/changelog
debian/control
debian/rules
debian/sipb-xen-database-server.init
debian/sipb-xen-database-server.postinst
server/etc/postgresql/8.3/main/pg_hba.conf.mako [moved from server/etc/postgresql/8.1/main/pg_hba.conf.mako with 100% similarity]
server/etc/postgresql/8.3/main/postgresql.conf.invirt [moved from server/etc/postgresql/8.1/main/postgresql.conf.invirt with 98% similarity]

index ffceb5c..24d4405 100644 (file)
@@ -1,3 +1,9 @@
+sipb-xen-database (10.23) unstable; urgency=low
+
+  * switch to postgresql 8.3, as 8.1 isn't in hardy
+
+ -- Greg Price <price@mit.edu>  Wed, 01 Oct 2008 02:09:43 -0400
+
 sipb-xen-database (10.22) unstable; urgency=low
 
   * depend on postgresql without specifying old version 8.1
index 5a94d1e..cbd3229 100644 (file)
@@ -14,13 +14,13 @@ Description: Installs the SIPB Xen database schema files
 
 Package: sipb-xen-database-server
 Architecture: all
-Depends: ${misc:Depends}, ${python:Depends}, postgresql, python-sqlalchemy, python-psycopg2, sipb-xen-database-common, adduser
+Depends: ${misc:Depends}, ${python:Depends}, postgresql-8.3, python-sqlalchemy, python-psycopg2, sipb-xen-database-common, adduser
 Description: Installs the SIPB Xen database server
  This tracks all the user VMs and is accessed from the VM host
 
 Package: sipb-xen-database-client
 Architecture: all
-Depends: ${misc:Depends}, postgresql-client, python-sqlalchemy, python-psycopg2, sipb-xen-database-common, python
+Depends: ${misc:Depends}, postgresql-client-8.3, python-sqlalchemy, python-psycopg2, sipb-xen-database-common, python
 Description: Installs the SIPB Xen database configuration file
  This is a python xen configuration script that talks to the database
  to dynamically load xen domU configuration information
index 5a27b33..c797897 100755 (executable)
@@ -3,7 +3,7 @@
 
 DEB_DIVERT_EXTENSION = .invirt
 DEB_DIVERT_FILES_sipb-xen-database-server += \
-/etc/postgresql/8.1/main/postgresql.conf.invirt
+/etc/postgresql/8.3/main/postgresql.conf.invirt
 
 
 include /usr/share/cdbs/1/rules/debhelper.mk
index b4f805e..be4831b 100644 (file)
@@ -37,7 +37,7 @@ SCRIPTNAME=/etc/init.d/$NAME
 
 gen_config()
 {
-    for i in /etc/postgresql/8.1/main/pg_hba.conf
+    for i in /etc/postgresql/8.3/main/pg_hba.conf
              ; do
         mako-render $i.mako > $i
     done
index faae517..cbc1061 100644 (file)
@@ -35,8 +35,8 @@ case "$1" in
             su postgres -c 'createdb sipb_xen -O sipb-xen'   || true
             adduser --system sipb-xen
         fi
-       mako-render /etc/postgresql/8.1/main/pg_hba.conf.mako >/etc/postgresql/8.1/main/pg_hba.conf
-       /etc/init.d/postgresql-8.1 restart
+       mako-render /etc/postgresql/8.3/main/pg_hba.conf.mako >/etc/postgresql/8.3/main/pg_hba.conf
+       /etc/init.d/postgresql-8.3 restart
         su sipb-xen -s /bin/sh -c 'sipb-xen-database-tables create'
     ;;
 
 # switch or PGDATA environment variable, represented here as ConfigDir.
 
 #data_directory = 'ConfigDir'          # use data in another directory
-hba_file = '/etc/postgresql/8.1/main/pg_hba.conf'      # host-based authentication file
-ident_file = '/etc/postgresql/8.1/main/pg_ident.conf'  # IDENT configuration file
+hba_file = '/etc/postgresql/8.3/main/pg_hba.conf'      # host-based authentication file
+ident_file = '/etc/postgresql/8.3/main/pg_ident.conf'  # IDENT configuration file
 
 # If external_pid_file is not explicitly set, no extra pid file is written.
-external_pid_file = '/var/run/postgresql/8.1-main.pid'         # write an extra pid file
+external_pid_file = '/var/run/postgresql/8.3-main.pid'         # write an extra pid file
 
 
 #---------------------------------------------------------------------------