Ignore:
Timestamp:
Aug 24, 2008, 8:59:27 PM (16 years ago)
Author:
hartmans
Message:

Generate pg_hba.conf and install postgresql.conf
so that installing this package works without manual editing

Location:
trunk/packages/sipb-xen-database
Files:
7 added
1 deleted
5 edited

Legend:

Unmodified
Added
Removed
  • trunk/packages/sipb-xen-database/debian/changelog

    r874 r918  
     1sipb-xen-database (10.19) unstable; urgency=low
     2
     3  * Generate config files for pg_hba.conf
     4  * replace postgresql.conf
     5
     6 --  Sam Hartman <hartmans@xvm.mit.edu>  Mon, 25 Aug 2008 00:38:21 +0000
     7
    18sipb-xen-database (10.18) unstable; urgency=low
    29
  • trunk/packages/sipb-xen-database/debian/control

    r824 r918  
    33Priority: extra
    44Maintainer: SIPB Xen Project <sipb-xen@mit.edu>
    5 Build-Depends: cdbs (>= 0.4.23-1.1), debhelper (>= 4.2.0), python-support (>= 0.5.3)
     5Build-Depends: cdbs (>= 0.4.23-1.1), debhelper (>= 4.2.0), python-support (>= 0.5.3), config-package-dev
    66Standards-Version: 3.7.2
    77
  • trunk/packages/sipb-xen-database/debian/rules

    r824 r918  
    11#!/usr/bin/make -f
    22
    3 DEB_AUTO_UPDATE_DEBIAN_CONTROL = 1
     3
     4DEB_DIVERT_EXTENSION = .invert
     5DEB_DIVERT_FILES_sipb-xen-database-server += \
     6/etc/postgresql/8.1/main/postgresql.conf.invert
     7
    48
    59include /usr/share/cdbs/1/rules/debhelper.mk
     10include /usr/share/cdbs/1/rules/config-package.mk
    611
    712binary-install/sipb-xen-database-common::
  • trunk/packages/sipb-xen-database/debian/sipb-xen-database-server.install

    r77 r918  
     1server/* .
    12sipb-xen-database-tables usr/bin
  • trunk/packages/sipb-xen-database/debian/sipb-xen-database-server.postinst

    r295 r918  
    1818# the debian-policy package
    1919
     20# dh_installdeb will replace this with shell code automatically
     21# generated by other debhelper scripts.
     22# Note that by moving this above our generated code we could run into significant problems
     23# if we happened to start a daemon, and use debconf
     24# We move this up here because we need the diversion of postgresql.conf to happen before we create tables
     25
     26#DEBHELPER#
     27
    2028
    2129case "$1" in
     
    2836            adduser --system sipb-xen
    2937        fi
     38        mako-render /etc/postgresql/8.1/main/pg_hba.conf.mako >/etc/postgresql/8.1/main/pg_hba.conf
     39        /etc/init.d/postgresql-8.1 restart
    3040        su sipb-xen -s /bin/sh -c 'sipb-xen-database-tables create'
    3141    ;;
     
    4050esac
    4151
    42 # dh_installdeb will replace this with shell code automatically
    43 # generated by other debhelper scripts.
    44 
    45 #DEBHELPER#
    46 
    4752exit 0
    4853
Note: See TracChangeset for help on using the changeset viewer.