OpenPKG CVS Repository
  http://cvs.openpkg.org/
  ____________________________________________________________________________

  Server: cvs.openpkg.org                  Name:   Ralf S. Engelschall
  Root:   /v/openpkg/cvs                   Email:  [EMAIL PROTECTED]
  Module: openpkg-src                      Date:   25-Feb-2005 08:28:39
  Branch: HEAD                             Handle: 2005022507283900

  Modified files:
    openpkg-src/postgresql  postgresql.spec

  Log:
    add new synchronous multi-master replication solution pgcluster

  Summary:
    Revision    Changes     Path
    1.140       +36 -12     openpkg-src/postgresql/postgresql.spec
  ____________________________________________________________________________

  patch -p0 <<'@@ .'
  Index: openpkg-src/postgresql/postgresql.spec
  ============================================================================
  $ cvs diff -u -r1.139 -r1.140 postgresql.spec
  --- openpkg-src/postgresql/postgresql.spec    24 Feb 2005 21:15:49 -0000      
1.139
  +++ openpkg-src/postgresql/postgresql.spec    25 Feb 2005 07:28:39 -0000      
1.140
  @@ -31,6 +31,7 @@
   %define       V_psqlodbc        07.03.0200
   %define       V_slony1          1.0.5
   %define       V_pgpool          2.5.1
  +%define       V_pgcluster       1.3.0b
   
   #   package information
   Name:         postgresql
  @@ -43,17 +44,18 @@
   Group:        Database
   License:      GPL
   Version:      %{V_postgresql}
  -Release:      20050224
  +Release:      20050225
   
   #   package options
  -%option       with_server   yes
  -%option       with_cxx      no
  -%option       with_perl     no
  -%option       with_odbc     no
  -%option       with_compat   no
  -%option       with_tcl      no
  -%option       with_slony1   no
  -%option       with_pgpool   no
  +%option       with_server    yes
  +%option       with_cxx       no
  +%option       with_perl      no
  +%option       with_odbc      no
  +%option       with_compat    no
  +%option       with_tcl       no
  +%option       with_slony1    no
  +%option       with_pgpool    no
  +%option       with_pgcluster no
   
   #   list of sources
   Source0:      
ftp://ftp.postgresql.org/pub/source/v%{V_postgresql}/postgresql-%{V_postgresql}.tar.gz
  @@ -63,8 +65,9 @@
   Source4:      
ftp://ftp.us.postgresql.org/odbc/versions/src/psqlodbc-%{V_psqlodbc}.tar.gz
   Source5:      
http://developer.postgresql.org/~wieck/slony1/download/slony1-%{V_slony1}.tar.gz
   Source6:      
http://www2b.biglobe.ne.jp/~caco/pgpool/pgpool-%{V_pgpool}.tar.gz
  -Source7:      rc.postgresql
  -Source8:      pg_migrate
  +Source7:      
http://pgfoundry.org/frs/download.php/180/pgcluster-%{V_pgcluster}-patch.tar.gz
  +Source8:      rc.postgresql
  +Source9:      pg_migrate
   Patch0:       postgresql.patch
   Patch1:       postgresql.patch.slony1
   
  @@ -134,6 +137,11 @@
           url       = http://www2b.biglobe.ne.jp/~caco/pgpool/
           regex     = pgpool-(__VER__)\.tar\.gz
       }
  +    prog postgresql:pgcluster = {
  +        version   = %{V_pgcluster}
  +        url       = http://pgfoundry.org/frs/?group_id=1000072&release_id=168
  +        regex     = pgcluster-(__VER__)-patch\.tar\.gz
  +    }
   
   %prep
       %setup -q
  @@ -155,6 +163,11 @@
   %if "%{with_pgpool}" == "yes"
       %setup -q -T -D -a 6
   %endif
  +%if "%{with_pgcluster}" == "yes"
  +    %setup -q -T -D -a 7
  +    sed -e 's;\($.exec_prefix./etc\);\1/postgresql;' \
  +        <pgcluster-%{V_pgcluster}-patch | %{l_patch} -p1
  +%endif
   
       #   adjust source tree
       %{l_shtool} subst \
  @@ -192,6 +205,7 @@
       ./configure \
           --cache-file=./config.cache \
           --prefix=%{l_prefix} \
  +        --sysconfdir=%{l_prefix}/etc/postgresql \
           --includedir=%{l_prefix}/include/postgresql \
           --with-openssl \
           --with-readline \
  @@ -359,7 +373,9 @@
   
       #   create additional directories
       %{l_shtool} mkdir -f -p -m 755 \
  +%if "%{with_slony1}" == "yes" || "%{with_pgpool}" == "yes" || 
"%{with_pgcluster}" == "yes"
           $RPM_BUILD_ROOT%{l_prefix}/etc/postgresql \
  +%endif
           $RPM_BUILD_ROOT%{l_prefix}/var/postgresql/db \
           $RPM_BUILD_ROOT%{l_prefix}/var/postgresql/run
   
  @@ -456,6 +472,14 @@
       ) || exit $?
   %endif
   
  +%if "%{with_pgcluster}" == "yes"
  +    #   post-adjust pgcluster configuration filenames
  +    mv $RPM_BUILD_ROOT%{l_prefix}/etc/postgresql/pglb.conf.sample \
  +       $RPM_BUILD_ROOT%{l_prefix}/etc/postgresql/pglb.conf
  +    mv $RPM_BUILD_ROOT%{l_prefix}/etc/postgresql/pgreplicate.conf.sample \
  +       $RPM_BUILD_ROOT%{l_prefix}/etc/postgresql/pgreplicate.conf
  +%endif
  +
       #   install run-command script
       %{l_shtool} mkdir -f -p -m 755 \
           $RPM_BUILD_ROOT%{l_prefix}/etc/rc.d
  @@ -484,7 +508,7 @@
       %{l_rpmtool} files -v -ofiles -r$RPM_BUILD_ROOT \
   %if "%{with_server}" == "yes"
           %{l_files_std} `cat perl-openpkg-files` \
  -%if "%{with_slony1}" == "yes" || "%{with_pgpool}" == "yes"
  +%if "%{with_slony1}" == "yes" || "%{with_pgpool}" == "yes" || 
"%{with_pgcluster}" == "yes"
           '%config %{l_prefix}/etc/postgresql/*' \
   %endif
           '%attr(700,%{l_rusr},%{l_rgrp}) %dir %{l_prefix}/var/postgresql/db' \
  @@ .
______________________________________________________________________
The OpenPKG Project                                    www.openpkg.org
CVS Repository Commit List                     openpkg-cvs@openpkg.org

Reply via email to