Changeset 2798


Ignore:
Timestamp:
Dec 27, 2009, 8:37:47 PM (15 years ago)
Author:
andersk
Message:

Generate postgresql.conf with LC_ALL=en_US.UTF-8 pg_createcluster.

Generate a new /etc/postgresql/8.3/main/postgresql.conf with
pg_createcluster instead of taking it from the build host. Ensure
that it is generated with the en_US.UTF-8 locale.

Location:
trunk/packages/invirt-database/debian
Files:
4 edited

Legend:

Unmodified
Added
Removed
  • trunk/packages/invirt-database/debian/changelog

    r2781 r2798  
     1invirt-database (0.2.4) unstable; urgency=low
     2
     3  * Generate a new /etc/postgresql/8.3/main/postgresql.conf with
     4    pg_createcluster instead of taking it from the build host.  Ensure
     5    that it is generated with the en_US.UTF-8 locale.
     6
     7 -- Anders Kaseorg <andersk@mit.edu>  Sun, 27 Dec 2009 20:32:21 -0500
     8
    19invirt-database (0.2.3) unstable; urgency=low
    210
  • trunk/packages/invirt-database/debian/invirt-database-server.install

    r2218 r2798  
    11postgresql-8.3.invirt etc/init.d
     2debian/postgresql.conf.invirt etc/postgresql/8.3/main
    23pg_hba.conf.mako etc/postgresql/8.3/main
    34invirt-database-tables usr/bin
  • trunk/packages/invirt-database/debian/rules

    r2218 r2798  
    55DEB_DIVERT_EXTENSION = .invirt
    66
    7 DEB_TRANSFORM_FILES_invirt-database-server += \
    8         /etc/postgresql/8.3/main/postgresql.conf.invirt
    9 
    107DEB_DIVERT_FILES_invirt-database-server += \
     8        /etc/postgresql/8.3/main/postgresql.conf.invirt \
    119        /etc/init.d/postgresql-8.3.invirt
    1210
     
    1513include /usr/share/cdbs/1/rules/config-package.mk
    1614
     15common-build-indep:: debian/postgresql.conf.invirt
     16
     17debian/postgresql.conf.invirt: debian/transform_postgresql.conf.invirt
     18        set -e; \
     19        export invirt_tmp="$$(mktemp -dt invirt-database.XXXXXX)"; \
     20        PG_CLUSTER_CONF_ROOT="$$invirt_tmp/etc/postgresql" \
     21            LC_ALL=en_US.UTF-8 \
     22            pg_createcluster 8.3 main \
     23            --datadir="$$invirt_tmp/var/lib/postgresql/8.3/main" \
     24            --socketdir=/var/run/postgresql \
     25            --port=5432; \
     26        chmod +x $<; \
     27        $< < "$$invirt_tmp/etc/postgresql/8.3/main/postgresql.conf" > $@; \
     28        rm -rf "$$invirt_tmp"
     29
    1730clean::
    1831        rm -rf invirt.database.egg-info
     32        rm -f debian/postgresql.conf.invirt
  • trunk/packages/invirt-database/debian/transform_postgresql.conf.invirt

    r2218 r2798  
    11#!/usr/bin/perl -0p
    22
    3 s/^#?listen_addresses = '[^']*'(.*)$/listen_addresses = '*'$1/m or die;
    4 s/^#?port = [0-9]*(.*)$/port = 5432$1/m or die;
     3s#\Q$ENV{invirt_tmp}\E##g;
     4s/^#ssl = off/ssl = true/m or die;
     5s/^#?listen_addresses = '[^']*'/listen_addresses = '*'/m or die;
Note: See TracChangeset for help on using the changeset viewer.