From 8734e776f4e1e455e1de55b9a86afd4b96120f6d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Devrim=20G=C3=9CND=C3=9CZ?= Date: Sun, 5 Aug 2007 02:52:20 +0000 Subject: [PATCH 01/43] Patch for sample conf file --- pgpool.conf.sample.patch | 40 ++++++++++++++++++++++++++++++++++++++++ 1 file changed, 40 insertions(+) create mode 100644 pgpool.conf.sample.patch diff --git a/pgpool.conf.sample.patch b/pgpool.conf.sample.patch new file mode 100644 index 0000000..a460365 --- /dev/null +++ b/pgpool.conf.sample.patch @@ -0,0 +1,40 @@ +--- pgpool.conf.sample.old 2007-08-05 05:27:53.000000000 +0300 ++++ pgpool.conf.sample 2007-08-05 05:29:01.000000000 +0300 +@@ -1,6 +1,5 @@ + # + # pgpool-II configuration file sample +-# $Header: /home/fedora/jkeating/pkgs/rpms/postgresql-pgpool-II/F-13/pgpool.conf.sample.patch,v 1.1 2007/08/05 02:52:20 devrim Exp $ + + # Host name or IP address to listen on: '*' for all, '' for no TCP/IP + # connections +@@ -12,16 +11,14 @@ + # Port number for pgpool communication manager + pcp_port = 9898 + +-# Unix domain socket path. (The Debian package defaults to +-# /var/run/postgresql.) +-socket_dir = '/tmp' ++# Unix domain socket path. ++socket_dir = '/var/run' + + # Unix domain socket path for pgpool communication manager. +-# (Debian package defaults to /var/run/postgresql) +-pcp_socket_dir = '/tmp' ++pcp_socket_dir = '/var/run' + +-# Unix domain socket path for the backend. Debian package defaults to /var/run/postgresql! +-backend_socket_dir = '/tmp' ++# Unix domain socket path for the backend. ++backend_socket_dir = '/var/run' + + # pgpool communication manager timeout. 0 means no timeout, but strongly not recommended! + pcp_timeout = 10 +@@ -44,7 +41,7 @@ + child_max_connections = 0 + + # Logging directory +-logdir = '/tmp' ++logdir = '/var/run' + + # Replication mode + replication_mode = false From 79a5fe0350ffaafc59cac2567265642764058f84 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Devrim=20G=C3=9CND=C3=9CZ?= Date: Sun, 5 Aug 2007 02:58:47 +0000 Subject: [PATCH 02/43] - Added a patch for sample conf file to use Fedora defaults --- postgresql-pgpool-II.spec | 3 +++ 1 file changed, 3 insertions(+) diff --git a/postgresql-pgpool-II.spec b/postgresql-pgpool-II.spec index 81a10a4..5f657bd 100644 --- a/postgresql-pgpool-II.spec +++ b/postgresql-pgpool-II.spec @@ -10,6 +10,7 @@ URL: http://pgpool.projects.PostgreSQL.org/pgpool-II/en Source0: http://pgfoundry.org/frs/download.php/1419/%{short_name}-%{version}.tar.gz Source1: pgpool.init Source2: pgpool.sysconfig +Patch1: pgpool.conf.sample.patch BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n) BuildRequires: postgresql-devel pam-devel @@ -43,6 +44,7 @@ Development headers and libraries for pgpool-II. %prep %setup -q -n %{short_name}-%{version} +%patch1 -p0 %build %configure --with-pgsql-includedir=%{_includedir}/pgsql --with-pgsql-lib=%{_libdir}/pgsql --disable-static --with-pam --disable-rpath @@ -98,6 +100,7 @@ rm -rf %{buildroot} * Sun Aug 5 2007 Devrim Gunduz 1.2-2 - Added an init script for pgpool - Added /etc/sysconfig/pgpool +- Added a patch for sample conf file to use Fedora defaults * Wed Aug 1 2007 Devrim Gunduz 1.2-1 - Update to 1.2 From 6abb2da682f30b820f8ac4729c4c2b5d27e03ebf Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Devrim=20G=C3=9CND=C3=9CZ?= Date: Sun, 5 Aug 2007 03:03:11 +0000 Subject: [PATCH 03/43] Bump up version --- postgresql-pgpool-II.spec | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/postgresql-pgpool-II.spec b/postgresql-pgpool-II.spec index 5f657bd..c440570 100644 --- a/postgresql-pgpool-II.spec +++ b/postgresql-pgpool-II.spec @@ -3,7 +3,7 @@ Summary: Pgpool is a connection pooling/replication server for PostgreSQL Name: postgresql-%{short_name} Version: 1.2 -Release: 2%{?dist} +Release: 3%{?dist} License: BSD Group: Applications/Databases URL: http://pgpool.projects.PostgreSQL.org/pgpool-II/en @@ -97,10 +97,12 @@ rm -rf %{buildroot} %{_libdir}/libpcp.so %changelog +* Sun Aug 5 2007 Devrim Gunduz 1.2-3 +- Added a patch for sample conf file to use Fedora defaults + * Sun Aug 5 2007 Devrim Gunduz 1.2-2 - Added an init script for pgpool - Added /etc/sysconfig/pgpool -- Added a patch for sample conf file to use Fedora defaults * Wed Aug 1 2007 Devrim Gunduz 1.2-1 - Update to 1.2 From 826f9f00914fb651f3c0b49ae27ba051c539a9b9 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Devrim=20G=C3=9CND=C3=9CZ?= Date: Thu, 16 Aug 2007 08:41:21 +0000 Subject: [PATCH 04/43] - Fixed the directory name where sample conf files and sql files are installed. --- postgresql-pgpool-II.spec | 14 +++++++++----- 1 file changed, 9 insertions(+), 5 deletions(-) diff --git a/postgresql-pgpool-II.spec b/postgresql-pgpool-II.spec index c440570..bdd5221 100644 --- a/postgresql-pgpool-II.spec +++ b/postgresql-pgpool-II.spec @@ -3,7 +3,7 @@ Summary: Pgpool is a connection pooling/replication server for PostgreSQL Name: postgresql-%{short_name} Version: 1.2 -Release: 3%{?dist} +Release: 4%{?dist} License: BSD Group: Applications/Databases URL: http://pgpool.projects.PostgreSQL.org/pgpool-II/en @@ -54,7 +54,7 @@ make %{?_smp_flags} %install rm -rf %{buildroot} make %{?_smp_flags} DESTDIR=%{buildroot} install -mv %{buildroot}/%{_sysconfdir}/*.conf.sample %{buildroot}%{_datadir}/%{short_name} +mv %{buildroot}/%{_sysconfdir}/*.conf.sample %{buildroot}%{_datadir}/%{name} install -d %{buildroot}%{_initrddir} install -m 755 %{SOURCE1} %{buildroot}%{_initrddir}/pgpool install -d %{buildroot}%{_sysconfdir}/sysconfig @@ -83,10 +83,10 @@ rm -rf %{buildroot} %{_bindir}/pcp_systemdb_info %{_bindir}/pg_md5 %{_mandir}/man8/pgpool* -%{_datadir}/%{short_name}/system_db.sql +%{_datadir}/%{name}/system_db.sql %{_libdir}/libpcp.so.* -%attr(764,root,apache) %{_datadir}/%{short_name}/*.conf.sample -%{_datadir}/%{short_name}/pgpool.pam +%attr(764,root,apache) %{_datadir}/%{name}/*.conf.sample +%{_datadir}/%{name}/pgpool.pam %{_initrddir}/pgpool %config(noreplace) %{_sysconfdir}/sysconfig/pgpool @@ -97,6 +97,10 @@ rm -rf %{buildroot} %{_libdir}/libpcp.so %changelog +* Thu Aug 16 2007 Devrim Gunduz 1.2-4 +- Fixed the directory name where sample conf files and sql files + are installed. + * Sun Aug 5 2007 Devrim Gunduz 1.2-3 - Added a patch for sample conf file to use Fedora defaults From 16aad6c2e6e8ac22b5964d1ab07b18f03f2696a3 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Devrim=20G=C3=9CND=C3=9CZ?= Date: Thu, 16 Aug 2007 09:44:57 +0000 Subject: [PATCH 05/43] Update spec file per latest changes. --- postgresql-pgpool-II.spec | 3 +++ 1 file changed, 3 insertions(+) diff --git a/postgresql-pgpool-II.spec b/postgresql-pgpool-II.spec index bdd5221..f0bb1ec 100644 --- a/postgresql-pgpool-II.spec +++ b/postgresql-pgpool-II.spec @@ -54,7 +54,10 @@ make %{?_smp_flags} %install rm -rf %{buildroot} make %{?_smp_flags} DESTDIR=%{buildroot} install +install -d %{buildroot}%{_datadir}/%{name} mv %{buildroot}/%{_sysconfdir}/*.conf.sample %{buildroot}%{_datadir}/%{name} +mv %{buildroot}%{_datadir}/%{short_name}/system_db.sql %{buildroot}%{_datadir}/%{name} +mv %{buildroot}%{_datadir}/%{short_name}/pgpool.pam %{buildroot}%{_datadir}/%{name} install -d %{buildroot}%{_initrddir} install -m 755 %{SOURCE1} %{buildroot}%{_initrddir}/pgpool install -d %{buildroot}%{_sysconfdir}/sysconfig From ac0dff0eaca29cc3947b2e43547336be6d28dca7 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Devrim=20G=C3=9CND=C3=9CZ?= Date: Sat, 6 Oct 2007 00:25:06 +0000 Subject: [PATCH 06/43] Update pgpool-II to 1.2.1 --- .cvsignore | 2 +- pgpool.conf.sample.patch | 19 ++++++------------- postgresql-pgpool-II.spec | 20 +++++++++++++++----- sources | 2 +- 4 files changed, 23 insertions(+), 20 deletions(-) diff --git a/.cvsignore b/.cvsignore index 9dda70d..dd5bf08 100644 --- a/.cvsignore +++ b/.cvsignore @@ -1 +1 @@ -pgpool-II-1.2.tar.gz +pgpool-II-1.2.1.tar.gz diff --git a/pgpool.conf.sample.patch b/pgpool.conf.sample.patch index a460365..275dda3 100644 --- a/pgpool.conf.sample.patch +++ b/pgpool.conf.sample.patch @@ -1,20 +1,13 @@ ---- pgpool.conf.sample.old 2007-08-05 05:27:53.000000000 +0300 -+++ pgpool.conf.sample 2007-08-05 05:29:01.000000000 +0300 -@@ -1,6 +1,5 @@ - # - # pgpool-II configuration file sample --# $Header: /home/fedora/jkeating/pkgs/rpms/postgresql-pgpool-II/F-13/pgpool.conf.sample.patch,v 1.1 2007/08/05 02:52:20 devrim Exp $ - - # Host name or IP address to listen on: '*' for all, '' for no TCP/IP - # connections -@@ -12,16 +11,14 @@ +--- pgpool.conf.sample.old 2007-10-05 17:16:23.000000000 -0700 ++++ pgpool.conf.sample 2007-10-05 17:18:11.000000000 -0700 +@@ -12,16 +12,14 @@ # Port number for pgpool communication manager pcp_port = 9898 -# Unix domain socket path. (The Debian package defaults to -# /var/run/postgresql.) -socket_dir = '/tmp' -+# Unix domain socket path. ++# Unix domain socket path. +socket_dir = '/var/run' # Unix domain socket path for pgpool communication manager. @@ -24,12 +17,12 @@ -# Unix domain socket path for the backend. Debian package defaults to /var/run/postgresql! -backend_socket_dir = '/tmp' -+# Unix domain socket path for the backend. ++# Unix domain socket path for the backend. +backend_socket_dir = '/var/run' # pgpool communication manager timeout. 0 means no timeout, but strongly not recommended! pcp_timeout = 10 -@@ -44,7 +41,7 @@ +@@ -44,7 +42,7 @@ child_max_connections = 0 # Logging directory diff --git a/postgresql-pgpool-II.spec b/postgresql-pgpool-II.spec index f0bb1ec..2784526 100644 --- a/postgresql-pgpool-II.spec +++ b/postgresql-pgpool-II.spec @@ -2,12 +2,12 @@ Summary: Pgpool is a connection pooling/replication server for PostgreSQL Name: postgresql-%{short_name} -Version: 1.2 -Release: 4%{?dist} +Version: 1.2.1 +Release: 1%{?dist} License: BSD Group: Applications/Databases URL: http://pgpool.projects.PostgreSQL.org/pgpool-II/en -Source0: http://pgfoundry.org/frs/download.php/1419/%{short_name}-%{version}.tar.gz +Source0: http://pgfoundry.org/frs/download.php/1472/%{short_name}-%{version}.tar.gz Source1: pgpool.init Source2: pgpool.sysconfig Patch1: pgpool.conf.sample.patch @@ -61,7 +61,7 @@ mv %{buildroot}%{_datadir}/%{short_name}/pgpool.pam %{buildroot}%{_datadir}/%{na install -d %{buildroot}%{_initrddir} install -m 755 %{SOURCE1} %{buildroot}%{_initrddir}/pgpool install -d %{buildroot}%{_sysconfdir}/sysconfig -install -m 755 %{SOURCE2} %{buildroot}%{_sysconfdir}/sysconfig/pgpool +install -m 644 %{SOURCE2} %{buildroot}%{_sysconfdir}/sysconfig/pgpool # nuke libtool archive and static lib rm -f %{buildroot}%{_libdir}/libpcp.{a,la} @@ -69,7 +69,10 @@ rm -f %{buildroot}%{_libdir}/libpcp.{a,la} %clean rm -rf %{buildroot} -%post -p /sbin/ldconfig +%post +/sbin/ldconfig +chkconfig --add pgpool + %postun -p /sbin/ldconfig %files @@ -100,6 +103,13 @@ rm -rf %{buildroot} %{_libdir}/libpcp.so %changelog +* Fri Oct 5 2007 Devrim Gunduz 1.2.1-1 +- Update to 1.2.1 + +* Wed Aug 29 2007 Devrim Gunduz 1.2-5 +- Chmod sysconfig/pgpool to 644, not 755. Per BZ review. +- Run chkconfig --add pgpool during %%post. + * Thu Aug 16 2007 Devrim Gunduz 1.2-4 - Fixed the directory name where sample conf files and sql files are installed. diff --git a/sources b/sources index f0d00ef..73d2d85 100644 --- a/sources +++ b/sources @@ -1 +1 @@ -8fed94ed12769dacbbf8758b2154e5a7 pgpool-II-1.2.tar.gz +af2d2024ef1b8776d3145fb9f363d9ba pgpool-II-1.2.1.tar.gz From e0b2bfb2e81ddbcb5ac18a2fe462dbf2171a16ed Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Devrim=20G=C3=9CND=C3=9CZ?= Date: Tue, 23 Oct 2007 06:47:13 +0000 Subject: [PATCH 07/43] Update pgpool-II to 1.3 --- .cvsignore | 2 +- postgresql-pgpool-II.spec | 7 +++++-- sources | 2 +- 3 files changed, 7 insertions(+), 4 deletions(-) diff --git a/.cvsignore b/.cvsignore index dd5bf08..fe50d07 100644 --- a/.cvsignore +++ b/.cvsignore @@ -1 +1 @@ -pgpool-II-1.2.1.tar.gz +pgpool-II-1.3.tar.gz diff --git a/postgresql-pgpool-II.spec b/postgresql-pgpool-II.spec index 2784526..f5f9c61 100644 --- a/postgresql-pgpool-II.spec +++ b/postgresql-pgpool-II.spec @@ -2,12 +2,12 @@ Summary: Pgpool is a connection pooling/replication server for PostgreSQL Name: postgresql-%{short_name} -Version: 1.2.1 +Version: 1.3 Release: 1%{?dist} License: BSD Group: Applications/Databases URL: http://pgpool.projects.PostgreSQL.org/pgpool-II/en -Source0: http://pgfoundry.org/frs/download.php/1472/%{short_name}-%{version}.tar.gz +Source0: http://pgfoundry.org/frs/download.php/1488/%{short_name}-%{version}.tar.gz Source1: pgpool.init Source2: pgpool.sysconfig Patch1: pgpool.conf.sample.patch @@ -103,6 +103,9 @@ chkconfig --add pgpool %{_libdir}/libpcp.so %changelog +* Tue Oct 23 2007 Devrim Gunduz 1.3-1 +- Update to 1.3 + * Fri Oct 5 2007 Devrim Gunduz 1.2.1-1 - Update to 1.2.1 diff --git a/sources b/sources index 73d2d85..b2c5487 100644 --- a/sources +++ b/sources @@ -1 +1 @@ -af2d2024ef1b8776d3145fb9f363d9ba pgpool-II-1.2.1.tar.gz +1276c4b98a9de6f85f3179380a370144 pgpool-II-1.3.tar.gz From 8f2c5854d2630d31c96dd2c4f20b59fb472a2727 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Devrim=20G=C3=9CND=C3=9CZ?= Date: Sat, 5 Jan 2008 20:59:45 +0000 Subject: [PATCH 08/43] Update to 2.0.1 release --- .cvsignore | 2 +- postgresql-pgpool-II.spec | 8 ++++++-- sources | 2 +- 3 files changed, 8 insertions(+), 4 deletions(-) diff --git a/.cvsignore b/.cvsignore index fe50d07..797f93b 100644 --- a/.cvsignore +++ b/.cvsignore @@ -1 +1 @@ -pgpool-II-1.3.tar.gz +pgpool-II-2.0.1.tar.gz diff --git a/postgresql-pgpool-II.spec b/postgresql-pgpool-II.spec index f5f9c61..c2ea3e9 100644 --- a/postgresql-pgpool-II.spec +++ b/postgresql-pgpool-II.spec @@ -2,12 +2,12 @@ Summary: Pgpool is a connection pooling/replication server for PostgreSQL Name: postgresql-%{short_name} -Version: 1.3 +Version: 2.0.1 Release: 1%{?dist} License: BSD Group: Applications/Databases URL: http://pgpool.projects.PostgreSQL.org/pgpool-II/en -Source0: http://pgfoundry.org/frs/download.php/1488/%{short_name}-%{version}.tar.gz +Source0: http://pgfoundry.org/frs/download.php/1521/%{short_name}-%{version}.tar.gz Source1: pgpool.init Source2: pgpool.sysconfig Patch1: pgpool.conf.sample.patch @@ -85,6 +85,7 @@ chkconfig --add pgpool %{_bindir}/pcp_node_info %{_bindir}/pcp_proc_count %{_bindir}/pcp_proc_info +%{_bindir}/pcp_recovery_node %{_bindir}/pcp_stop_pgpool %{_bindir}/pcp_systemdb_info %{_bindir}/pg_md5 @@ -103,6 +104,9 @@ chkconfig --add pgpool %{_libdir}/libpcp.so %changelog +* Sat Jan 5 2008 Devrim Gunduz 2.0.1-1 +- Update to 2.0.1 + * Tue Oct 23 2007 Devrim Gunduz 1.3-1 - Update to 1.3 diff --git a/sources b/sources index b2c5487..84948dd 100644 --- a/sources +++ b/sources @@ -1 +1 @@ -1276c4b98a9de6f85f3179380a370144 pgpool-II-1.3.tar.gz +fdfd023b1400ae85455e8274bf0cb502 pgpool-II-2.0.1.tar.gz From 33e0eb3517657cefb2720d47d043d35f7c5abd3b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Devrim=20G=C3=9CND=C3=9CZ?= Date: Mon, 14 Jan 2008 08:24:24 +0000 Subject: [PATCH 09/43] Update to 2.0.1 Add a temp patch that will disappear in 2.0.2 --- pool_process_query-2.0.1.patch | 27 +++++++++++++++++++++++++++ postgresql-pgpool-II.spec | 21 +++++++++++---------- 2 files changed, 38 insertions(+), 10 deletions(-) create mode 100644 pool_process_query-2.0.1.patch diff --git a/pool_process_query-2.0.1.patch b/pool_process_query-2.0.1.patch new file mode 100644 index 0000000..9315e4b --- /dev/null +++ b/pool_process_query-2.0.1.patch @@ -0,0 +1,27 @@ +*** pool_process_query.c 2007/11/21 09:37:39 1.79 +--- pool_process_query.c.old 2007/12/01 13:26:36 1.80 +*************** +*** 1,6 **** + /* -*-pgsql-c-*- */ + /* +! * $Header: /home/fedora/jkeating/pkgs/rpms/postgresql-pgpool-II/F-13/Attic/pool_process_query-2.0.1.patch,v 1.1 2008/01/14 08:24:24 devrim Exp $ + * + * pgpool: a language independent connection pool server for PostgreSQL + * written by Tatsuo Ishii +--- 1,6 ---- + /* -*-pgsql-c-*- */ + /* +! * $Header: /home/fedora/jkeating/pkgs/rpms/postgresql-pgpool-II/F-13/Attic/pool_process_query-2.0.1.patch,v 1.1 2008/01/14 08:24:24 devrim Exp $ + * + * pgpool: a language independent connection pool server for PostgreSQL + * written by Tatsuo Ishii +*************** POOL_STATUS SimpleForwardToBackend(char +*** 3895,3901 **** + + if (kind == 'S') /* Sync message? */ + { +- pool_log("YYYYY"); + receive_sync = 1; + } + +--- 3895,3900 ---- diff --git a/postgresql-pgpool-II.spec b/postgresql-pgpool-II.spec index c2ea3e9..09af754 100644 --- a/postgresql-pgpool-II.spec +++ b/postgresql-pgpool-II.spec @@ -11,6 +11,7 @@ Source0: http://pgfoundry.org/frs/download.php/1521/%{short_name}-%{version}.tar Source1: pgpool.init Source2: pgpool.sysconfig Patch1: pgpool.conf.sample.patch +Patch4: pool_process_query-%{version}.patch BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n) BuildRequires: postgresql-devel pam-devel @@ -37,7 +38,7 @@ DB nodes to be connected, which was not possible in pgpool-I. %package devel Summary: The development files for pgpool-II Group: Development/Libraries -Requires: %{name} = %{version} +Requires: %{short_name} = %{version} %description devel Development headers and libraries for pgpool-II. @@ -45,6 +46,7 @@ Development headers and libraries for pgpool-II. %prep %setup -q -n %{short_name}-%{version} %patch1 -p0 +%patch4 -p0 %build %configure --with-pgsql-includedir=%{_includedir}/pgsql --with-pgsql-lib=%{_libdir}/pgsql --disable-static --with-pam --disable-rpath @@ -54,10 +56,8 @@ make %{?_smp_flags} %install rm -rf %{buildroot} make %{?_smp_flags} DESTDIR=%{buildroot} install -install -d %{buildroot}%{_datadir}/%{name} -mv %{buildroot}/%{_sysconfdir}/*.conf.sample %{buildroot}%{_datadir}/%{name} -mv %{buildroot}%{_datadir}/%{short_name}/system_db.sql %{buildroot}%{_datadir}/%{name} -mv %{buildroot}%{_datadir}/%{short_name}/pgpool.pam %{buildroot}%{_datadir}/%{name} +install -d %{buildroot}%{_datadir}/%{short_name} +mv %{buildroot}/%{_sysconfdir}/*.conf.sample %{buildroot}%{_datadir}/%{short_name} install -d %{buildroot}%{_initrddir} install -m 755 %{SOURCE1} %{buildroot}%{_initrddir}/pgpool install -d %{buildroot}%{_sysconfdir}/sysconfig @@ -85,15 +85,15 @@ chkconfig --add pgpool %{_bindir}/pcp_node_info %{_bindir}/pcp_proc_count %{_bindir}/pcp_proc_info -%{_bindir}/pcp_recovery_node %{_bindir}/pcp_stop_pgpool +%{_bindir}/pcp_recovery_node %{_bindir}/pcp_systemdb_info %{_bindir}/pg_md5 %{_mandir}/man8/pgpool* -%{_datadir}/%{name}/system_db.sql +%{_datadir}/%{short_name}/system_db.sql %{_libdir}/libpcp.so.* -%attr(764,root,apache) %{_datadir}/%{name}/*.conf.sample -%{_datadir}/%{name}/pgpool.pam +%attr(764,root,apache) %{_datadir}/%{short_name}/*.conf.sample +%{_datadir}/%{short_name}/pgpool.pam %{_initrddir}/pgpool %config(noreplace) %{_sysconfdir}/sysconfig/pgpool @@ -104,8 +104,9 @@ chkconfig --add pgpool %{_libdir}/libpcp.so %changelog -* Sat Jan 5 2008 Devrim Gunduz 2.0.1-1 +* Sun Jan 13 2008 Devrim Gunduz 2.0.1-1 - Update to 2.0.1 +- Add a temp patch that will disappear in 2.0.2 * Tue Oct 23 2007 Devrim Gunduz 1.3-1 - Update to 1.3 From 1cc2f3f6332bbb59599bb6752503e31089f78b80 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Devrim=20G=C3=9CND=C3=9CZ?= Date: Sun, 20 Jan 2008 00:56:54 +0000 Subject: [PATCH 10/43] Fix Requires of -devel package, per bz#429436 --- postgresql-pgpool-II.spec | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/postgresql-pgpool-II.spec b/postgresql-pgpool-II.spec index 09af754..2b10f83 100644 --- a/postgresql-pgpool-II.spec +++ b/postgresql-pgpool-II.spec @@ -3,7 +3,7 @@ Summary: Pgpool is a connection pooling/replication server for PostgreSQL Name: postgresql-%{short_name} Version: 2.0.1 -Release: 1%{?dist} +Release: 2%{?dist} License: BSD Group: Applications/Databases URL: http://pgpool.projects.PostgreSQL.org/pgpool-II/en @@ -38,7 +38,7 @@ DB nodes to be connected, which was not possible in pgpool-I. %package devel Summary: The development files for pgpool-II Group: Development/Libraries -Requires: %{short_name} = %{version} +Requires: %{name} = %{version} %description devel Development headers and libraries for pgpool-II. @@ -104,6 +104,9 @@ chkconfig --add pgpool %{_libdir}/libpcp.so %changelog +* Sat Jan 19 2008 Devrim Gunduz 2.0.1-2 +- Fix Requires of -devel package, per bz#429436 + * Sun Jan 13 2008 Devrim Gunduz 2.0.1-1 - Update to 2.0.1 - Add a temp patch that will disappear in 2.0.2 From cc51b3bd9ca40fc61e2f47f24ab38adb1b9ff0c7 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Devrim=20G=C3=9CND=C3=9CZ?= Date: Tue, 22 Jan 2008 03:59:48 +0000 Subject: [PATCH 11/43] - Rebuilt against PostgreSQL 8.3 --- postgresql-pgpool-II.spec | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/postgresql-pgpool-II.spec b/postgresql-pgpool-II.spec index 2b10f83..14588fc 100644 --- a/postgresql-pgpool-II.spec +++ b/postgresql-pgpool-II.spec @@ -3,7 +3,7 @@ Summary: Pgpool is a connection pooling/replication server for PostgreSQL Name: postgresql-%{short_name} Version: 2.0.1 -Release: 2%{?dist} +Release: 2%{?dist}.1 License: BSD Group: Applications/Databases URL: http://pgpool.projects.PostgreSQL.org/pgpool-II/en @@ -104,6 +104,9 @@ chkconfig --add pgpool %{_libdir}/libpcp.so %changelog +* Mon Jan 21 2008 Devrim GUNDUZ 2.0.1-2.1 +- Rebuilt against PostgreSQL 8.3 + * Sat Jan 19 2008 Devrim Gunduz 2.0.1-2 - Fix Requires of -devel package, per bz#429436 From a26756e7eb85ad8a6a1438ba0670ef25b9b429dc Mon Sep 17 00:00:00 2001 From: Jesse Keating Date: Tue, 19 Feb 2008 01:27:41 +0000 Subject: [PATCH 12/43] - Autorebuild for GCC 4.3 --- postgresql-pgpool-II.spec | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/postgresql-pgpool-II.spec b/postgresql-pgpool-II.spec index 14588fc..a599e93 100644 --- a/postgresql-pgpool-II.spec +++ b/postgresql-pgpool-II.spec @@ -3,7 +3,7 @@ Summary: Pgpool is a connection pooling/replication server for PostgreSQL Name: postgresql-%{short_name} Version: 2.0.1 -Release: 2%{?dist}.1 +Release: 3%{?dist}.1 License: BSD Group: Applications/Databases URL: http://pgpool.projects.PostgreSQL.org/pgpool-II/en @@ -104,6 +104,9 @@ chkconfig --add pgpool %{_libdir}/libpcp.so %changelog +* Mon Feb 18 2008 Fedora Release Engineering - 2.0.1-3.1 +- Autorebuild for GCC 4.3 + * Mon Jan 21 2008 Devrim GUNDUZ 2.0.1-2.1 - Rebuilt against PostgreSQL 8.3 From 629aeed855d021c4f08426a62f81a42fa1f17a5d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Devrim=20G=C3=9CND=C3=9CZ?= Date: Sun, 6 Apr 2008 16:37:31 +0000 Subject: [PATCH 13/43] Update to 2.1 beta2 Remove unneeded patch. --- pool_process_query-2.0.1.patch | 27 --------------------------- postgresql-pgpool-II.spec | 19 +++++++++++-------- 2 files changed, 11 insertions(+), 35 deletions(-) delete mode 100644 pool_process_query-2.0.1.patch diff --git a/pool_process_query-2.0.1.patch b/pool_process_query-2.0.1.patch deleted file mode 100644 index 9315e4b..0000000 --- a/pool_process_query-2.0.1.patch +++ /dev/null @@ -1,27 +0,0 @@ -*** pool_process_query.c 2007/11/21 09:37:39 1.79 ---- pool_process_query.c.old 2007/12/01 13:26:36 1.80 -*************** -*** 1,6 **** - /* -*-pgsql-c-*- */ - /* -! * $Header: /home/fedora/jkeating/pkgs/rpms/postgresql-pgpool-II/F-13/Attic/pool_process_query-2.0.1.patch,v 1.1 2008/01/14 08:24:24 devrim Exp $ - * - * pgpool: a language independent connection pool server for PostgreSQL - * written by Tatsuo Ishii ---- 1,6 ---- - /* -*-pgsql-c-*- */ - /* -! * $Header: /home/fedora/jkeating/pkgs/rpms/postgresql-pgpool-II/F-13/Attic/pool_process_query-2.0.1.patch,v 1.1 2008/01/14 08:24:24 devrim Exp $ - * - * pgpool: a language independent connection pool server for PostgreSQL - * written by Tatsuo Ishii -*************** POOL_STATUS SimpleForwardToBackend(char -*** 3895,3901 **** - - if (kind == 'S') /* Sync message? */ - { -- pool_log("YYYYY"); - receive_sync = 1; - } - ---- 3895,3900 ---- diff --git a/postgresql-pgpool-II.spec b/postgresql-pgpool-II.spec index a599e93..a831769 100644 --- a/postgresql-pgpool-II.spec +++ b/postgresql-pgpool-II.spec @@ -2,16 +2,15 @@ Summary: Pgpool is a connection pooling/replication server for PostgreSQL Name: postgresql-%{short_name} -Version: 2.0.1 -Release: 3%{?dist}.1 +Version: 2.1 +Release: beta2%{?dist}.1 License: BSD Group: Applications/Databases URL: http://pgpool.projects.PostgreSQL.org/pgpool-II/en -Source0: http://pgfoundry.org/frs/download.php/1521/%{short_name}-%{version}.tar.gz +Source0: http://pgfoundry.org/frs/download.php/1726/%{short_name}-%{version}.tar.gz Source1: pgpool.init Source2: pgpool.sysconfig Patch1: pgpool.conf.sample.patch -Patch4: pool_process_query-%{version}.patch BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n) BuildRequires: postgresql-devel pam-devel @@ -38,15 +37,14 @@ DB nodes to be connected, which was not possible in pgpool-I. %package devel Summary: The development files for pgpool-II Group: Development/Libraries -Requires: %{name} = %{version} +Requires: %{name} = %{version}-beta2 %description devel Development headers and libraries for pgpool-II. %prep -%setup -q -n %{short_name}-%{version} +%setup -q -n %{short_name}-%{version}-beta2 %patch1 -p0 -%patch4 -p0 %build %configure --with-pgsql-includedir=%{_includedir}/pgsql --with-pgsql-lib=%{_libdir}/pgsql --disable-static --with-pam --disable-rpath @@ -58,6 +56,8 @@ rm -rf %{buildroot} make %{?_smp_flags} DESTDIR=%{buildroot} install install -d %{buildroot}%{_datadir}/%{short_name} mv %{buildroot}/%{_sysconfdir}/*.conf.sample %{buildroot}%{_datadir}/%{short_name} +mv %{buildroot}%{_datadir}/%{short_name}/system_db.sql %{buildroot}%{_datadir}/%{name} +mv %{buildroot}%{_datadir}/%{short_name}/pgpool.pam %{buildroot}%{_datadir}/%{name} install -d %{buildroot}%{_initrddir} install -m 755 %{SOURCE1} %{buildroot}%{_initrddir}/pgpool install -d %{buildroot}%{_sysconfdir}/sysconfig @@ -85,8 +85,8 @@ chkconfig --add pgpool %{_bindir}/pcp_node_info %{_bindir}/pcp_proc_count %{_bindir}/pcp_proc_info -%{_bindir}/pcp_stop_pgpool %{_bindir}/pcp_recovery_node +%{_bindir}/pcp_stop_pgpool %{_bindir}/pcp_systemdb_info %{_bindir}/pg_md5 %{_mandir}/man8/pgpool* @@ -104,6 +104,9 @@ chkconfig --add pgpool %{_libdir}/libpcp.so %changelog +* Sun Apr 6 2008 Devrim Gunduz 2.1-beta2 +- Update to 2.1 beta2 + * Mon Feb 18 2008 Fedora Release Engineering - 2.0.1-3.1 - Autorebuild for GCC 4.3 From 7cd743de100a541ef9f5932282a3bfe3eaf2d95d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Devrim=20G=C3=9CND=C3=9CZ?= Date: Sun, 6 Apr 2008 16:53:04 +0000 Subject: [PATCH 14/43] Update sources --- .cvsignore | 2 +- sources | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/.cvsignore b/.cvsignore index 797f93b..4ca0bb8 100644 --- a/.cvsignore +++ b/.cvsignore @@ -1 +1 @@ -pgpool-II-2.0.1.tar.gz +pgpool-II-2.1-beta2.tar.gz diff --git a/sources b/sources index 84948dd..61b5efb 100644 --- a/sources +++ b/sources @@ -1 +1 @@ -fdfd023b1400ae85455e8274bf0cb502 pgpool-II-2.0.1.tar.gz +cb0cc6cc44695224c74d5835cef345b0 pgpool-II-2.1-beta2.tar.gz From a7071f7aa6d3b91eb10ca6fc99e0b6e4bcbcabc1 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Devrim=20G=C3=9CND=C3=9CZ?= Date: Sun, 6 Apr 2008 16:54:53 +0000 Subject: [PATCH 15/43] Fix spec --- postgresql-pgpool-II.spec | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/postgresql-pgpool-II.spec b/postgresql-pgpool-II.spec index a831769..717906e 100644 --- a/postgresql-pgpool-II.spec +++ b/postgresql-pgpool-II.spec @@ -7,7 +7,7 @@ Release: beta2%{?dist}.1 License: BSD Group: Applications/Databases URL: http://pgpool.projects.PostgreSQL.org/pgpool-II/en -Source0: http://pgfoundry.org/frs/download.php/1726/%{short_name}-%{version}.tar.gz +Source0: http://pgfoundry.org/frs/download.php/1726/%{short_name}-%{version}-beta2.tar.gz Source1: pgpool.init Source2: pgpool.sysconfig Patch1: pgpool.conf.sample.patch From 9872e293593074913051c97cbacd70837beba0c6 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Devrim=20G=C3=9CND=C3=9CZ?= Date: Sun, 6 Apr 2008 17:11:29 +0000 Subject: [PATCH 16/43] Copy-paste is evil. --- postgresql-pgpool-II.spec | 2 -- 1 file changed, 2 deletions(-) diff --git a/postgresql-pgpool-II.spec b/postgresql-pgpool-II.spec index 717906e..8f5ae43 100644 --- a/postgresql-pgpool-II.spec +++ b/postgresql-pgpool-II.spec @@ -56,8 +56,6 @@ rm -rf %{buildroot} make %{?_smp_flags} DESTDIR=%{buildroot} install install -d %{buildroot}%{_datadir}/%{short_name} mv %{buildroot}/%{_sysconfdir}/*.conf.sample %{buildroot}%{_datadir}/%{short_name} -mv %{buildroot}%{_datadir}/%{short_name}/system_db.sql %{buildroot}%{_datadir}/%{name} -mv %{buildroot}%{_datadir}/%{short_name}/pgpool.pam %{buildroot}%{_datadir}/%{name} install -d %{buildroot}%{_initrddir} install -m 755 %{SOURCE1} %{buildroot}%{_initrddir}/pgpool install -d %{buildroot}%{_sysconfdir}/sysconfig From 2033604e7a81415e06c90e8780f48c18205c72fd Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Devrim=20G=C3=9CND=C3=9CZ?= Date: Wed, 9 Apr 2008 06:36:47 +0000 Subject: [PATCH 17/43] - Honor /etc/sysconfig/pgpool settings. Previously we could never customize PGPOOLPID=/var/run/pgpool.pid et al. - Remaining hardcoded paths replaced by customizable variables such as $PGPOOLCONF . --- pgpool.init | 24 +++++++++++++++--------- 1 file changed, 15 insertions(+), 9 deletions(-) diff --git a/pgpool.init b/pgpool.init index 8c96220..89aa399 100755 --- a/pgpool.init +++ b/pgpool.init @@ -8,11 +8,12 @@ # # v1.0.0 Devrim GUNDUZ # - Initial version of Red Hat / Fedora init script - -if [ -r /etc/sysconfig/pgpool ]; then - . /etc/sysconfig/pgpool -fi - +# v1.0.1 Devrim GUNDUZ +# - - Honor /etc/sysconfig/pgpool settings. Previously we could never +# customize PGPOOLPID=/var/run/pgpool.pid et al. +# - Remaining hardcoded paths replaced by customizable variables +# such as $PGPOOLCONF . + # Source function library. INITD=/etc/rc.d/init.d . $INITD/functions @@ -37,16 +38,21 @@ PGPOOLCONF=/etc/pgpool.conf PGPOOLPID=/var/run/pgpool.pid PGPOOLLOG=/var/log/pgpool.log +# read in the site custom setup +if [ -r /etc/sysconfig/pgpool ]; then + . /etc/sysconfig/pgpool +fi + test -x $PGPOOLDAEMON || exit 5 -# Create the log file if it does not exist +# Create the pgpool.log log file if it does not exist if [ ! -r $PGPOOLLOG ] then touch $PGPOOLLOG fi -# Check whether the config file exists or not -if [ ! -r /etc/pgpool.conf ] +# Check whether the pgpool.conf config file exists or not +if [ ! -r "$PGPOOLCONF" ] then echo "$PGPOOLCONF not found" RETVAL=1 @@ -82,7 +88,7 @@ stop(){ RETVAL=1 failure else - killproc /usr/bin/pgpool + killproc $PGPOOLDAEMON RETVAL=$? [ $RETVAL -eq 0 ] && rm -f /var/lock/subsys/${NAME} fi; From ff06687970e8017fa3299564972b6c90ad859394 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Devrim=20G=C3=9CND=C3=9CZ?= Date: Fri, 11 Apr 2008 18:25:54 +0000 Subject: [PATCH 18/43] - Fix Requires: issue, per #442021 (Alex Lancaster) --- postgresql-pgpool-II.spec | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/postgresql-pgpool-II.spec b/postgresql-pgpool-II.spec index 8f5ae43..f59ec96 100644 --- a/postgresql-pgpool-II.spec +++ b/postgresql-pgpool-II.spec @@ -3,7 +3,7 @@ Summary: Pgpool is a connection pooling/replication server for PostgreSQL Name: postgresql-%{short_name} Version: 2.1 -Release: beta2%{?dist}.1 +Release: 0.2.beta2%{?dist} License: BSD Group: Applications/Databases URL: http://pgpool.projects.PostgreSQL.org/pgpool-II/en @@ -37,7 +37,7 @@ DB nodes to be connected, which was not possible in pgpool-I. %package devel Summary: The development files for pgpool-II Group: Development/Libraries -Requires: %{name} = %{version}-beta2 +Requires: %{name} = %{version}-%{release} %description devel Development headers and libraries for pgpool-II. @@ -102,6 +102,9 @@ chkconfig --add pgpool %{_libdir}/libpcp.so %changelog +* Fri Apr 11 2008 Devrim Gunduz 2.1-0.2.beta2 +- Fix Requires: issue, per #442021 (Alex Lancaster) + * Sun Apr 6 2008 Devrim Gunduz 2.1-beta2 - Update to 2.1 beta2 From 3f9ed8f611118008623dbbedb2f75c68e3516017 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Devrim=20G=C3=9CND=C3=9CZ?= Date: Tue, 12 Aug 2008 05:06:59 +0000 Subject: [PATCH 19/43] - Update to 2.1 Gold - Set group of sample config files to root, not apache. Fixes RH #442372. --- .cvsignore | 2 +- postgresql-pgpool-II.spec | 12 ++++++++---- sources | 2 +- 3 files changed, 10 insertions(+), 6 deletions(-) diff --git a/.cvsignore b/.cvsignore index 4ca0bb8..4f063bc 100644 --- a/.cvsignore +++ b/.cvsignore @@ -1 +1 @@ -pgpool-II-2.1-beta2.tar.gz +pgpool-II-2.1.tar.gz diff --git a/postgresql-pgpool-II.spec b/postgresql-pgpool-II.spec index f59ec96..795cd45 100644 --- a/postgresql-pgpool-II.spec +++ b/postgresql-pgpool-II.spec @@ -3,11 +3,11 @@ Summary: Pgpool is a connection pooling/replication server for PostgreSQL Name: postgresql-%{short_name} Version: 2.1 -Release: 0.2.beta2%{?dist} +Release: 1%{?dist} License: BSD Group: Applications/Databases URL: http://pgpool.projects.PostgreSQL.org/pgpool-II/en -Source0: http://pgfoundry.org/frs/download.php/1726/%{short_name}-%{version}-beta2.tar.gz +Source0: http://pgfoundry.org/frs/download.php/1843/%{short_name}-%{version}.tar.gz Source1: pgpool.init Source2: pgpool.sysconfig Patch1: pgpool.conf.sample.patch @@ -43,7 +43,7 @@ Requires: %{name} = %{version}-%{release} Development headers and libraries for pgpool-II. %prep -%setup -q -n %{short_name}-%{version}-beta2 +%setup -q -n %{short_name}-%{version} %patch1 -p0 %build @@ -90,7 +90,7 @@ chkconfig --add pgpool %{_mandir}/man8/pgpool* %{_datadir}/%{short_name}/system_db.sql %{_libdir}/libpcp.so.* -%attr(764,root,apache) %{_datadir}/%{short_name}/*.conf.sample +%attr(764,root,root) %{_datadir}/%{short_name}/*.conf.sample %{_datadir}/%{short_name}/pgpool.pam %{_initrddir}/pgpool %config(noreplace) %{_sysconfdir}/sysconfig/pgpool @@ -102,6 +102,10 @@ chkconfig --add pgpool %{_libdir}/libpcp.so %changelog +* Tue Aug 12 2008 Devrim Gunduz 2.1-1 +- Update to 2.1 Gold +- Set group of sample config files to root, not apache. Fixes RH #442372. + * Fri Apr 11 2008 Devrim Gunduz 2.1-0.2.beta2 - Fix Requires: issue, per #442021 (Alex Lancaster) diff --git a/sources b/sources index 61b5efb..64b0bb8 100644 --- a/sources +++ b/sources @@ -1 +1 @@ -cb0cc6cc44695224c74d5835cef345b0 pgpool-II-2.1-beta2.tar.gz +cf02f9358f46849bd526798868e13162 pgpool-II-2.1.tar.gz From f0eacf81eea86ed422c156841c2aa9a9be48aa78 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Devrim=20G=C3=9CND=C3=9CZ?= Date: Tue, 12 Aug 2008 05:34:21 +0000 Subject: [PATCH 20/43] - Update patch #1: Fix build failure caused by new default patch fuzz = 0 policy in rawhide --- pgpool.conf.sample.patch | 8 ++++---- postgresql-pgpool-II.spec | 2 ++ 2 files changed, 6 insertions(+), 4 deletions(-) diff --git a/pgpool.conf.sample.patch b/pgpool.conf.sample.patch index 275dda3..adc6dee 100644 --- a/pgpool.conf.sample.patch +++ b/pgpool.conf.sample.patch @@ -1,5 +1,5 @@ ---- pgpool.conf.sample.old 2007-10-05 17:16:23.000000000 -0700 -+++ pgpool.conf.sample 2007-10-05 17:18:11.000000000 -0700 +--- pgpool.conf.sample.old 2008-08-12 08:26:07.000000000 +0300 ++++ pgpool.conf.sample 2008-08-12 08:27:31.000000000 +0300 @@ -12,16 +12,14 @@ # Port number for pgpool communication manager pcp_port = 9898 @@ -22,8 +22,8 @@ # pgpool communication manager timeout. 0 means no timeout, but strongly not recommended! pcp_timeout = 10 -@@ -44,7 +42,7 @@ - child_max_connections = 0 +@@ -54,7 +52,7 @@ + authentication_timeout = 60 # Logging directory -logdir = '/tmp' diff --git a/postgresql-pgpool-II.spec b/postgresql-pgpool-II.spec index 795cd45..bd849ea 100644 --- a/postgresql-pgpool-II.spec +++ b/postgresql-pgpool-II.spec @@ -105,6 +105,8 @@ chkconfig --add pgpool * Tue Aug 12 2008 Devrim Gunduz 2.1-1 - Update to 2.1 Gold - Set group of sample config files to root, not apache. Fixes RH #442372. +- Update patch #1: Fix build failure caused by new default patch +fuzz = 0 policy in rawhide * Fri Apr 11 2008 Devrim Gunduz 2.1-0.2.beta2 - Fix Requires: issue, per #442021 (Alex Lancaster) From 11995c729cbf815d16378cd9a89d0877cdb0e240 Mon Sep 17 00:00:00 2001 From: Michael Schwendt Date: Thu, 4 Dec 2008 21:01:13 +0000 Subject: [PATCH 21/43] - Include /usr/share/pgpool-II directory. --- postgresql-pgpool-II.spec | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/postgresql-pgpool-II.spec b/postgresql-pgpool-II.spec index bd849ea..ce829ad 100644 --- a/postgresql-pgpool-II.spec +++ b/postgresql-pgpool-II.spec @@ -3,7 +3,7 @@ Summary: Pgpool is a connection pooling/replication server for PostgreSQL Name: postgresql-%{short_name} Version: 2.1 -Release: 1%{?dist} +Release: 2%{?dist} License: BSD Group: Applications/Databases URL: http://pgpool.projects.PostgreSQL.org/pgpool-II/en @@ -88,6 +88,7 @@ chkconfig --add pgpool %{_bindir}/pcp_systemdb_info %{_bindir}/pg_md5 %{_mandir}/man8/pgpool* +%dir %{_datadir}/%{short_name} %{_datadir}/%{short_name}/system_db.sql %{_libdir}/libpcp.so.* %attr(764,root,root) %{_datadir}/%{short_name}/*.conf.sample @@ -102,6 +103,9 @@ chkconfig --add pgpool %{_libdir}/libpcp.so %changelog +* Thu Dec 4 2008 Michael Schwendt 2.1-2 +- Include /usr/share/pgpool-II directory. + * Tue Aug 12 2008 Devrim Gunduz 2.1-1 - Update to 2.1 Gold - Set group of sample config files to root, not apache. Fixes RH #442372. From 765b8cd5a5c47711e812091cd6dab89c2b9efb89 Mon Sep 17 00:00:00 2001 From: Jesse Keating Date: Fri, 27 Feb 2009 01:50:05 +0000 Subject: [PATCH 22/43] - Rebuilt for https://fedoraproject.org/wiki/Fedora_11_Mass_Rebuild --- postgresql-pgpool-II.spec | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/postgresql-pgpool-II.spec b/postgresql-pgpool-II.spec index ce829ad..5f5ebb2 100644 --- a/postgresql-pgpool-II.spec +++ b/postgresql-pgpool-II.spec @@ -3,7 +3,7 @@ Summary: Pgpool is a connection pooling/replication server for PostgreSQL Name: postgresql-%{short_name} Version: 2.1 -Release: 2%{?dist} +Release: 3%{?dist} License: BSD Group: Applications/Databases URL: http://pgpool.projects.PostgreSQL.org/pgpool-II/en @@ -103,6 +103,9 @@ chkconfig --add pgpool %{_libdir}/libpcp.so %changelog +* Thu Feb 26 2009 Fedora Release Engineering - 2.1-3 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_11_Mass_Rebuild + * Thu Dec 4 2008 Michael Schwendt 2.1-2 - Include /usr/share/pgpool-II directory. From 4c5483db4f6c35c43baad312d6ed8b4bc97fb589 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Devrim=20G=C3=9CND=C3=9CZ?= Date: Sun, 1 Mar 2009 14:57:57 +0000 Subject: [PATCH 23/43] Update to 2.2 --- .cvsignore | 2 +- postgresql-pgpool-II.spec | 12 ++++++++---- sources | 2 +- 3 files changed, 10 insertions(+), 6 deletions(-) diff --git a/.cvsignore b/.cvsignore index 4f063bc..5ee1445 100644 --- a/.cvsignore +++ b/.cvsignore @@ -1 +1 @@ -pgpool-II-2.1.tar.gz +pgpool-II-2.2.tar.gz diff --git a/postgresql-pgpool-II.spec b/postgresql-pgpool-II.spec index 5f5ebb2..d33c4cf 100644 --- a/postgresql-pgpool-II.spec +++ b/postgresql-pgpool-II.spec @@ -2,12 +2,12 @@ Summary: Pgpool is a connection pooling/replication server for PostgreSQL Name: postgresql-%{short_name} -Version: 2.1 -Release: 3%{?dist} +Version: 2.2 +Release: 1%{?dist} License: BSD Group: Applications/Databases -URL: http://pgpool.projects.PostgreSQL.org/pgpool-II/en -Source0: http://pgfoundry.org/frs/download.php/1843/%{short_name}-%{version}.tar.gz +URL: http://pgpool.projects.PostgreSQL.org +Source0: http://pgfoundry.org/frs/download.php/2108/%{short_name}-%{version}.tar.gz Source1: pgpool.init Source2: pgpool.sysconfig Patch1: pgpool.conf.sample.patch @@ -103,6 +103,10 @@ chkconfig --add pgpool %{_libdir}/libpcp.so %changelog +* Sun Mar 1 2009 Devrim Gunduz 2.2-1 +- Update to 2.2 +- Update URL + * Thu Feb 26 2009 Fedora Release Engineering - 2.1-3 - Rebuilt for https://fedoraproject.org/wiki/Fedora_11_Mass_Rebuild diff --git a/sources b/sources index 64b0bb8..f978d1a 100644 --- a/sources +++ b/sources @@ -1 +1 @@ -cf02f9358f46849bd526798868e13162 pgpool-II-2.1.tar.gz +3dc286e2217478acbc05f127e74bd300 pgpool-II-2.2.tar.gz From dc9987bad5cdfa00b582ebe954df000804ec362e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Devrim=20G=C3=9CND=C3=9CZ?= Date: Sun, 22 Mar 2009 23:56:40 +0000 Subject: [PATCH 24/43] - Fix pid file path in init script. - Fix spec file -- we don't use short_name macro in pgcore spec file. - Create pgpool pid file directory. - Fix stop/start routines, also improve init script a bit. - Install conf files to a new directory (/etc/pgpool-II), and get rid of sample conf files. --- pgpool.conf.sample.patch | 37 ++++++++++------ pgpool.init | 88 +++++++++++++++++++++++---------------- postgresql-pgpool-II.spec | 12 +++++- 3 files changed, 88 insertions(+), 49 deletions(-) diff --git a/pgpool.conf.sample.patch b/pgpool.conf.sample.patch index adc6dee..81d10ca 100644 --- a/pgpool.conf.sample.patch +++ b/pgpool.conf.sample.patch @@ -1,24 +1,22 @@ ---- pgpool.conf.sample.old 2008-08-12 08:26:07.000000000 +0300 -+++ pgpool.conf.sample 2008-08-12 08:27:31.000000000 +0300 +--- pgpool.conf.sample.old 2009-03-22 22:18:52.000000000 +0200 ++++ pgpool.conf.sample 2009-03-22 22:46:20.000000000 +0200 @@ -12,16 +12,14 @@ # Port number for pgpool communication manager pcp_port = 9898 -# Unix domain socket path. (The Debian package defaults to -# /var/run/postgresql.) --socket_dir = '/tmp' -+# Unix domain socket path. -+socket_dir = '/var/run' ++# Unix domain socket path. + socket_dir = '/tmp' # Unix domain socket path for pgpool communication manager. -# (Debian package defaults to /var/run/postgresql) --pcp_socket_dir = '/tmp' -+pcp_socket_dir = '/var/run' + pcp_socket_dir = '/tmp' -# Unix domain socket path for the backend. Debian package defaults to /var/run/postgresql! -backend_socket_dir = '/tmp' -+# Unix domain socket path for the backend. -+backend_socket_dir = '/var/run' ++# Unix domain socket path for the backend. ++backend_socket_dir = '/var/run/pgpool' # pgpool communication manager timeout. 0 means no timeout, but strongly not recommended! pcp_timeout = 10 @@ -27,7 +25,22 @@ # Logging directory -logdir = '/tmp' -+logdir = '/var/run' ++logdir = '/var/log/pgpool' - # Replication mode - replication_mode = false + # pid file name + pid_file_name = '/var/run/pgpool/pgpool.pid' +@@ -166,10 +164,10 @@ + + # backend_hostname, backend_port, backend_weight + # here are examples +-#backend_hostname0 = 'host1' +-#backend_port0 = 5432 +-#backend_weight0 = 1 +-#backend_data_directory0 = '/data' ++backend_hostname0 = 'localhost' ++backend_port0 = 5432 ++backend_weight0 = 1 ++backend_data_directory0 = '/var/lib/pgsql/data' + #backend_hostname1 = 'host2' + #backend_port1 = 5433 + #backend_weight1 = 1 diff --git a/pgpool.init b/pgpool.init index 89aa399..aaf23de 100755 --- a/pgpool.init +++ b/pgpool.init @@ -8,12 +8,11 @@ # # v1.0.0 Devrim GUNDUZ # - Initial version of Red Hat / Fedora init script -# v1.0.1 Devrim GUNDUZ -# - - Honor /etc/sysconfig/pgpool settings. Previously we could never -# customize PGPOOLPID=/var/run/pgpool.pid et al. -# - Remaining hardcoded paths replaced by customizable variables -# such as $PGPOOLCONF . - + +if [ -r /etc/sysconfig/pgpool ]; then + . /etc/sysconfig/pgpool +fi + # Source function library. INITD=/etc/rc.d/init.d . $INITD/functions @@ -29,30 +28,23 @@ TYPESET=`typeset -f|grep "declare"` [ "${NETWORKING}" = "no" ] && exit 0 # Find the name of the script -NAME=pgpool +NAME=`basename $0` +if [ ${NAME:0:1} = "S" -o ${NAME:0:1} = "K" ] +then + NAME=${NAME:3} +fi # Set defaults for configuration variables PGPOOLENGINE=/usr/bin PGPOOLDAEMON=$PGPOOLENGINE/pgpool -PGPOOLCONF=/etc/pgpool.conf -PGPOOLPID=/var/run/pgpool.pid +PGPOOLCONF=/etc/pgpool-II/pgpool.conf +PGPOOLPIDDIR=/var/run/pgpool PGPOOLLOG=/var/log/pgpool.log -# read in the site custom setup -if [ -r /etc/sysconfig/pgpool ]; then - . /etc/sysconfig/pgpool -fi - test -x $PGPOOLDAEMON || exit 5 -# Create the pgpool.log log file if it does not exist -if [ ! -r $PGPOOLLOG ] -then - touch $PGPOOLLOG -fi - -# Check whether the pgpool.conf config file exists or not -if [ ! -r "$PGPOOLCONF" ] +# Check whether the config file exists or not +if [ ! -r $PGPOOLCONF ] then echo "$PGPOOLCONF not found" RETVAL=1 @@ -60,12 +52,36 @@ then exit fi +# Create the log file if it does not exist +if [ ! -x $PGPOOLLOG ] +then + touch $PGPOOLLOG + chown postgres: $PGPOOLLOG +fi + +if [ ! -d $PGPOOLPIDDIR ] +then + mkdir $PGPOOLPIDDIR + chown postgres: $PGPOOLPIDDIR +fi + script_result=0 start(){ + pid=`pidof -s "$PGPOOLDAEMON"` + if [ $pid ] + then + echo "pgpool is already running with pid $pid" + failure "$PGPOQL_START" + echo + script_result=1 + exit 1 + fi + PGPOOL_START=$"Starting ${NAME} service: " echo -n "$PGPOOL_START" + $PGPOOLDAEMON -f $PGPOOLCONF $OPTS & >> "$PGPOOLLOG" 2>&1 < /dev/null sleep 2 @@ -76,7 +92,7 @@ start(){ touch /var/lock/subsys/${NAME} echo else - failure "$PSQL_START" + failure "$PGPOQL_START" echo script_result=1 fi @@ -88,7 +104,8 @@ stop(){ RETVAL=1 failure else - killproc $PGPOOLDAEMON + killproc /usr/bin/pgpool +# $PGPOOLDAEMON stop & >> "$PGPOOLLOG" 2>&1 < /dev/null RETVAL=$? [ $RETVAL -eq 0 ] && rm -f /var/lock/subsys/${NAME} fi; @@ -98,7 +115,7 @@ stop(){ switch() { echo -n $"Sending switchover request to $NAME " - $PGPOOLDAEMON switch >> "$PGPOOLLOG" 2>&1 < /dev/null + $PGPOOLDAEMON -f $PGPOOLCONF switch >> "$PGPOOLLOG" 2>&1 < /dev/null RETVAL=$? echo if [ $RETVAL -eq 0 ] @@ -116,22 +133,23 @@ restart(){ } reload(){ -echo -n $"Reloading ${NAME}: " - if [ -n "`pidfileofproc $PGPOOLDAEMON`" ] ; then - killproc $PGPOOLDAEMON -HUP - else - failure $"Reloading ${NAME}" - fi - RETVAL=$? - echo + echo -n $"Reloading ${NAME}: " + + if [ -n "`pidfileofproc $PGPOOLDAEMON`" ] ; then + killproc $PGPOOLDAEMON -HUP + else + failure $"Reloading ${NAME}" + fi + RETVAL=$? + echo } condrestart(){ - [ -e /var/lock/subsys/${NAME} ] && restart + [ -e /var/lock/subsys/${NAME} ] && restart } condstop(){ - [ -e /var/lock/subsys/${NAME} ] && stop + [ -e /var/lock/subsys/${NAME} ] && stop } # See how we were called. diff --git a/postgresql-pgpool-II.spec b/postgresql-pgpool-II.spec index d33c4cf..574d09f 100644 --- a/postgresql-pgpool-II.spec +++ b/postgresql-pgpool-II.spec @@ -55,7 +55,9 @@ make %{?_smp_flags} rm -rf %{buildroot} make %{?_smp_flags} DESTDIR=%{buildroot} install install -d %{buildroot}%{_datadir}/%{short_name} -mv %{buildroot}/%{_sysconfdir}/*.conf.sample %{buildroot}%{_datadir}/%{short_name} +mv %{buildroot}/%{_sysconfdir}/%{name}/pcp.conf.sample %{buildroot}%{_sysconfdir}/%{short_name}/pcp.conf +mv %{buildroot}/%{_sysconfdir}/%{name}/pgpool.conf.sample %{buildroot}%{_sysconfdir}/%{short_name}/pgpool.conf +mv %{buildroot}/%{_sysconfdir}/%{name}/pool_hba.conf.sample %{buildroot}%{_sysconfdir}/%{short_name}/pool_hba.conf install -d %{buildroot}%{_initrddir} install -m 755 %{SOURCE1} %{buildroot}%{_initrddir}/pgpool install -d %{buildroot}%{_sysconfdir}/sysconfig @@ -91,9 +93,9 @@ chkconfig --add pgpool %dir %{_datadir}/%{short_name} %{_datadir}/%{short_name}/system_db.sql %{_libdir}/libpcp.so.* -%attr(764,root,root) %{_datadir}/%{short_name}/*.conf.sample %{_datadir}/%{short_name}/pgpool.pam %{_initrddir}/pgpool +%attr(764,root,apache) %config(noreplace) %{_sysconfdir}/%{name}/*.conf %config(noreplace) %{_sysconfdir}/sysconfig/pgpool %files devel @@ -106,6 +108,12 @@ chkconfig --add pgpool * Sun Mar 1 2009 Devrim Gunduz 2.2-1 - Update to 2.2 - Update URL +- Fix pid file path in init script. +- Fix spec file -- we don't use short_name macro in pgcore spec file. +- Create pgpool pid file directory. +- Fix stop/start routines, also improve init script a bit. +- Install conf files to a new directory (/etc/pgpool-II), and get rid + of sample conf files. * Thu Feb 26 2009 Fedora Release Engineering - 2.1-3 - Rebuilt for https://fedoraproject.org/wiki/Fedora_11_Mass_Rebuild From 21d7bb7e4f76509b6dd2faa1bc30d967a7d7bdd0 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Devrim=20G=C3=9CND=C3=9CZ?= Date: Mon, 23 Mar 2009 00:05:40 +0000 Subject: [PATCH 25/43] Fix dir name. --- postgresql-pgpool-II.spec | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/postgresql-pgpool-II.spec b/postgresql-pgpool-II.spec index 574d09f..5eb0783 100644 --- a/postgresql-pgpool-II.spec +++ b/postgresql-pgpool-II.spec @@ -95,7 +95,7 @@ chkconfig --add pgpool %{_libdir}/libpcp.so.* %{_datadir}/%{short_name}/pgpool.pam %{_initrddir}/pgpool -%attr(764,root,apache) %config(noreplace) %{_sysconfdir}/%{name}/*.conf +%attr(764,root,apache) %config(noreplace) %{_sysconfdir}/%{short_name}/*.conf %config(noreplace) %{_sysconfdir}/sysconfig/pgpool %files devel From 200ce06b2741a840e20b878b23e0c2a34b0657da Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Devrim=20G=C3=9CND=C3=9CZ?= Date: Mon, 23 Mar 2009 00:08:17 +0000 Subject: [PATCH 26/43] Bump up release number, and also fix changelog. --- postgresql-pgpool-II.spec | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/postgresql-pgpool-II.spec b/postgresql-pgpool-II.spec index 5eb0783..423de22 100644 --- a/postgresql-pgpool-II.spec +++ b/postgresql-pgpool-II.spec @@ -3,7 +3,7 @@ Summary: Pgpool is a connection pooling/replication server for PostgreSQL Name: postgresql-%{short_name} Version: 2.2 -Release: 1%{?dist} +Release: 1%{?dist}.1 License: BSD Group: Applications/Databases URL: http://pgpool.projects.PostgreSQL.org @@ -105,9 +105,7 @@ chkconfig --add pgpool %{_libdir}/libpcp.so %changelog -* Sun Mar 1 2009 Devrim Gunduz 2.2-1 -- Update to 2.2 -- Update URL +* Mon Mar 23 2009 Devrim Gunduz 2.2-1.1 - Fix pid file path in init script. - Fix spec file -- we don't use short_name macro in pgcore spec file. - Create pgpool pid file directory. @@ -115,6 +113,10 @@ chkconfig --add pgpool - Install conf files to a new directory (/etc/pgpool-II), and get rid of sample conf files. +* Sun Mar 1 2009 Devrim Gunduz 2.2-1 +- Update to 2.2 +- Update URL + * Thu Feb 26 2009 Fedora Release Engineering - 2.1-3 - Rebuilt for https://fedoraproject.org/wiki/Fedora_11_Mass_Rebuild From d8c74bd7854f5b85b707f293afba741de21d70c4 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Devrim=20G=C3=9CND=C3=9CZ?= Date: Mon, 23 Mar 2009 00:20:18 +0000 Subject: [PATCH 27/43] Fix configure line. --- postgresql-pgpool-II.spec | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/postgresql-pgpool-II.spec b/postgresql-pgpool-II.spec index 423de22..8dbf735 100644 --- a/postgresql-pgpool-II.spec +++ b/postgresql-pgpool-II.spec @@ -47,7 +47,7 @@ Development headers and libraries for pgpool-II. %patch1 -p0 %build -%configure --with-pgsql-includedir=%{_includedir}/pgsql --with-pgsql-lib=%{_libdir}/pgsql --disable-static --with-pam --disable-rpath +%configure --with-pgsql-includedir=%{_includedir}/pgsql --with-pgsql-lib=%{_libdir}/pgsql --disable-static --with-pam --disable-rpath --sysconfdir=%{_sysconfdir}/%{name}/ make %{?_smp_flags} From f12d116d6f56d5ea7efa064ca5dbf10479a0b22a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Devrim=20G=C3=9CND=C3=9CZ?= Date: Mon, 23 Mar 2009 00:26:27 +0000 Subject: [PATCH 28/43] Use correct macro. --- postgresql-pgpool-II.spec | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/postgresql-pgpool-II.spec b/postgresql-pgpool-II.spec index 8dbf735..d1455d6 100644 --- a/postgresql-pgpool-II.spec +++ b/postgresql-pgpool-II.spec @@ -47,7 +47,7 @@ Development headers and libraries for pgpool-II. %patch1 -p0 %build -%configure --with-pgsql-includedir=%{_includedir}/pgsql --with-pgsql-lib=%{_libdir}/pgsql --disable-static --with-pam --disable-rpath --sysconfdir=%{_sysconfdir}/%{name}/ +%configure --with-pgsql-includedir=%{_includedir}/pgsql --with-pgsql-lib=%{_libdir}/pgsql --disable-static --with-pam --disable-rpath --sysconfdir=%{_sysconfdir}/%{short_name}/ make %{?_smp_flags} From 68f4fa91e718f361cfd7228a39cfbe5e0c52bccb Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Devrim=20G=C3=9CND=C3=9CZ?= Date: Mon, 23 Mar 2009 00:50:17 +0000 Subject: [PATCH 29/43] bump up init script version --- pgpool.init | 3 +++ 1 file changed, 3 insertions(+) diff --git a/pgpool.init b/pgpool.init index aaf23de..ee791c7 100755 --- a/pgpool.init +++ b/pgpool.init @@ -8,6 +8,9 @@ # # v1.0.0 Devrim GUNDUZ # - Initial version of Red Hat / Fedora init script +# +# v2.2 Devrim GUNDUZ +# - New and improved version which has some fixes. if [ -r /etc/sysconfig/pgpool ]; then . /etc/sysconfig/pgpool From b6a18dd71ceb6287e6e84ea7cbbf86018e356c5a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Devrim=20G=C3=9CND=C3=9CZ?= Date: Mon, 23 Mar 2009 00:58:03 +0000 Subject: [PATCH 30/43] Install new conf directory. --- postgresql-pgpool-II.spec | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/postgresql-pgpool-II.spec b/postgresql-pgpool-II.spec index d1455d6..b5dcc44 100644 --- a/postgresql-pgpool-II.spec +++ b/postgresql-pgpool-II.spec @@ -55,9 +55,10 @@ make %{?_smp_flags} rm -rf %{buildroot} make %{?_smp_flags} DESTDIR=%{buildroot} install install -d %{buildroot}%{_datadir}/%{short_name} -mv %{buildroot}/%{_sysconfdir}/%{name}/pcp.conf.sample %{buildroot}%{_sysconfdir}/%{short_name}/pcp.conf -mv %{buildroot}/%{_sysconfdir}/%{name}/pgpool.conf.sample %{buildroot}%{_sysconfdir}/%{short_name}/pgpool.conf -mv %{buildroot}/%{_sysconfdir}/%{name}/pool_hba.conf.sample %{buildroot}%{_sysconfdir}/%{short_name}/pool_hba.conf +install -d %{buildroot}%{_sysconfdir}/%{short_name} +mv %{buildroot}/%{_sysconfdir}/%{short_name}/pcp.conf.sample %{buildroot}%{_sysconfdir}/%{short_name}/pcp.conf +mv %{buildroot}/%{_sysconfdir}/%{short_name}/pgpool.conf.sample %{buildroot}%{_sysconfdir}/%{short_name}/pgpool.conf +mv %{buildroot}/%{_sysconfdir}/%{short_name}/pool_hba.conf.sample %{buildroot}%{_sysconfdir}/%{short_name}/pool_hba.conf install -d %{buildroot}%{_initrddir} install -m 755 %{SOURCE1} %{buildroot}%{_initrddir}/pgpool install -d %{buildroot}%{_sysconfdir}/sysconfig From f45851cbf1d9f6347784ad263d0ad7ca98dd3426 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Devrim=20G=C3=9CND=C3=9CZ?= Date: Thu, 7 May 2009 10:42:03 +0000 Subject: [PATCH 31/43] Update to 2.2.2 --- .cvsignore | 1 + postgresql-pgpool-II.spec | 9 ++++++--- sources | 1 + 3 files changed, 8 insertions(+), 3 deletions(-) diff --git a/.cvsignore b/.cvsignore index 5ee1445..9ccf1e0 100644 --- a/.cvsignore +++ b/.cvsignore @@ -1 +1,2 @@ pgpool-II-2.2.tar.gz +pgpool-II-2.2.2.tar.gz diff --git a/postgresql-pgpool-II.spec b/postgresql-pgpool-II.spec index b5dcc44..eea564d 100644 --- a/postgresql-pgpool-II.spec +++ b/postgresql-pgpool-II.spec @@ -2,12 +2,12 @@ Summary: Pgpool is a connection pooling/replication server for PostgreSQL Name: postgresql-%{short_name} -Version: 2.2 -Release: 1%{?dist}.1 +Version: 2.2.2 +Release: 1%{?dist} License: BSD Group: Applications/Databases URL: http://pgpool.projects.PostgreSQL.org -Source0: http://pgfoundry.org/frs/download.php/2108/%{short_name}-%{version}.tar.gz +Source0: http://pgfoundry.org/frs/download.php/2191/%{short_name}-%{version}.tar.gz Source1: pgpool.init Source2: pgpool.sysconfig Patch1: pgpool.conf.sample.patch @@ -106,6 +106,9 @@ chkconfig --add pgpool %{_libdir}/libpcp.so %changelog +* Thu May 7 2009 Devrim Gunduz 2.2.2-1 +- Update to 2.2.2 + * Mon Mar 23 2009 Devrim Gunduz 2.2-1.1 - Fix pid file path in init script. - Fix spec file -- we don't use short_name macro in pgcore spec file. diff --git a/sources b/sources index f978d1a..4c543f0 100644 --- a/sources +++ b/sources @@ -1 +1,2 @@ 3dc286e2217478acbc05f127e74bd300 pgpool-II-2.2.tar.gz +6f14514ed4ed5368ad3ab7e2d4c5136b pgpool-II-2.2.2.tar.gz From 3f49a6ac81d82fb3f2244c311a8437a00687a9d0 Mon Sep 17 00:00:00 2001 From: Jesse Keating Date: Sun, 26 Jul 2009 19:16:22 +0000 Subject: [PATCH 32/43] - Rebuilt for https://fedoraproject.org/wiki/Fedora_12_Mass_Rebuild --- postgresql-pgpool-II.spec | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/postgresql-pgpool-II.spec b/postgresql-pgpool-II.spec index eea564d..ef70119 100644 --- a/postgresql-pgpool-II.spec +++ b/postgresql-pgpool-II.spec @@ -3,7 +3,7 @@ Summary: Pgpool is a connection pooling/replication server for PostgreSQL Name: postgresql-%{short_name} Version: 2.2.2 -Release: 1%{?dist} +Release: 2%{?dist} License: BSD Group: Applications/Databases URL: http://pgpool.projects.PostgreSQL.org @@ -106,6 +106,9 @@ chkconfig --add pgpool %{_libdir}/libpcp.so %changelog +* Sun Jul 26 2009 Fedora Release Engineering - 2.2.2-2 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_12_Mass_Rebuild + * Thu May 7 2009 Devrim Gunduz 2.2.2-1 - Update to 2.2.2 From 136f71cfd6a707119d47b0f86c3cc6e94462e126 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Devrim=20G=C3=9CND=C3=9CZ?= Date: Fri, 2 Oct 2009 23:18:09 +0000 Subject: [PATCH 33/43] - Update to 2.2.4 - Re-apply a fix for #442372 --- postgresql-pgpool-II.spec | 12 ++++++++---- 1 file changed, 8 insertions(+), 4 deletions(-) diff --git a/postgresql-pgpool-II.spec b/postgresql-pgpool-II.spec index ef70119..196c60e 100644 --- a/postgresql-pgpool-II.spec +++ b/postgresql-pgpool-II.spec @@ -2,12 +2,12 @@ Summary: Pgpool is a connection pooling/replication server for PostgreSQL Name: postgresql-%{short_name} -Version: 2.2.2 -Release: 2%{?dist} +Version: 2.2.4 +Release: 1%{?dist} License: BSD Group: Applications/Databases URL: http://pgpool.projects.PostgreSQL.org -Source0: http://pgfoundry.org/frs/download.php/2191/%{short_name}-%{version}.tar.gz +Source0: http://pgfoundry.org/frs/download.php/2362/%{short_name}-%{version}.tar.gz Source1: pgpool.init Source2: pgpool.sysconfig Patch1: pgpool.conf.sample.patch @@ -96,7 +96,7 @@ chkconfig --add pgpool %{_libdir}/libpcp.so.* %{_datadir}/%{short_name}/pgpool.pam %{_initrddir}/pgpool -%attr(764,root,apache) %config(noreplace) %{_sysconfdir}/%{short_name}/*.conf +%attr(764,root,root) %config(noreplace) %{_sysconfdir}/%{short_name}/*.conf %config(noreplace) %{_sysconfdir}/sysconfig/pgpool %files devel @@ -106,6 +106,10 @@ chkconfig --add pgpool %{_libdir}/libpcp.so %changelog +* Sat Oct 3 2009 Devrim Gunduz 2.2.4-1 +- Update to 2.2.4 +- Re-apply a fix for #442372 + * Sun Jul 26 2009 Fedora Release Engineering - 2.2.2-2 - Rebuilt for https://fedoraproject.org/wiki/Fedora_12_Mass_Rebuild From 9b7d98877ab70bcd13c195f89a5d3ca80fb95a51 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Devrim=20G=C3=9CND=C3=9CZ?= Date: Fri, 2 Oct 2009 23:20:55 +0000 Subject: [PATCH 34/43] Update sources and .cvsignore . --- .cvsignore | 3 +-- sources | 3 +-- 2 files changed, 2 insertions(+), 4 deletions(-) diff --git a/.cvsignore b/.cvsignore index 9ccf1e0..c246731 100644 --- a/.cvsignore +++ b/.cvsignore @@ -1,2 +1 @@ -pgpool-II-2.2.tar.gz -pgpool-II-2.2.2.tar.gz +pgpool-II-2.2.4.tar.gz diff --git a/sources b/sources index 4c543f0..c2d5885 100644 --- a/sources +++ b/sources @@ -1,2 +1 @@ -3dc286e2217478acbc05f127e74bd300 pgpool-II-2.2.tar.gz -6f14514ed4ed5368ad3ab7e2d4c5136b pgpool-II-2.2.2.tar.gz +2c9edd0512c5dc1dabab474b563a7a6c pgpool-II-2.2.4.tar.gz From 720d30e8b677183a6f97d4dc34cf4642671b4004 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Devrim=20G=C3=9CND=C3=9CZ?= Date: Sun, 4 Oct 2009 10:39:40 +0000 Subject: [PATCH 35/43] - Update to 2.2.5, for various fixes described at http://lists.pgfoundry.org/pipermail/pgpool-general/2009-October/002188 .html --- .cvsignore | 2 +- postgresql-pgpool-II.spec | 8 ++++++-- sources | 2 +- 3 files changed, 8 insertions(+), 4 deletions(-) diff --git a/.cvsignore b/.cvsignore index c246731..020f125 100644 --- a/.cvsignore +++ b/.cvsignore @@ -1 +1 @@ -pgpool-II-2.2.4.tar.gz +pgpool-II-2.2.5.tar.gz diff --git a/postgresql-pgpool-II.spec b/postgresql-pgpool-II.spec index 196c60e..b0ca045 100644 --- a/postgresql-pgpool-II.spec +++ b/postgresql-pgpool-II.spec @@ -2,12 +2,12 @@ Summary: Pgpool is a connection pooling/replication server for PostgreSQL Name: postgresql-%{short_name} -Version: 2.2.4 +Version: 2.2.5 Release: 1%{?dist} License: BSD Group: Applications/Databases URL: http://pgpool.projects.PostgreSQL.org -Source0: http://pgfoundry.org/frs/download.php/2362/%{short_name}-%{version}.tar.gz +Source0: http://pgfoundry.org/frs/download.php/2423/%{short_name}-%{version}.tar.gz Source1: pgpool.init Source2: pgpool.sysconfig Patch1: pgpool.conf.sample.patch @@ -106,6 +106,10 @@ chkconfig --add pgpool %{_libdir}/libpcp.so %changelog +* Sun Oct 4 2009 Devrim Gunduz 2.2.5-1 +- Update to 2.2.5, for various fixes described at + http://lists.pgfoundry.org/pipermail/pgpool-general/2009-October/002188.html + * Sat Oct 3 2009 Devrim Gunduz 2.2.4-1 - Update to 2.2.4 - Re-apply a fix for #442372 diff --git a/sources b/sources index c2d5885..a04ffe8 100644 --- a/sources +++ b/sources @@ -1 +1 @@ -2c9edd0512c5dc1dabab474b563a7a6c pgpool-II-2.2.4.tar.gz +410fc3e226842eda25e5cd18e9c3e703 pgpool-II-2.2.5.tar.gz From 233b3f9372e0045add3de99912e1010a6ccec49b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Devrim=20G=C3=9CND=C3=9CZ?= Date: Thu, 22 Oct 2009 11:59:35 +0000 Subject: [PATCH 36/43] Fix logging, per report from Toshihiro Kitagawa. --- pgpool.init | 13 ++++++++++++- pgpool.sysconfig | 1 + 2 files changed, 13 insertions(+), 1 deletion(-) diff --git a/pgpool.init b/pgpool.init index ee791c7..f09b982 100755 --- a/pgpool.init +++ b/pgpool.init @@ -11,6 +11,9 @@ # # v2.2 Devrim GUNDUZ # - New and improved version which has some fixes. +# +# v2.2.5 Devrim GUNDUZ +# - Fix logging. if [ -r /etc/sysconfig/pgpool ]; then . /etc/sysconfig/pgpool @@ -37,6 +40,14 @@ then NAME=${NAME:3} fi +# For SELinux we need to use 'runuser' not 'su' +if [ -x /sbin/runuser ] +then + SU=runuser +else + SU=su +fi + # Set defaults for configuration variables PGPOOLENGINE=/usr/bin PGPOOLDAEMON=$PGPOOLENGINE/pgpool @@ -85,7 +96,7 @@ start(){ echo -n "$PGPOOL_START" - $PGPOOLDAEMON -f $PGPOOLCONF $OPTS & >> "$PGPOOLLOG" 2>&1 < /dev/null + $SU -l postgres -c "$PGPOOLDAEMON -f $PGPOOLCONF $OPTS & " >> "$PGPOOLLOG" 2>&1 < /dev/null sleep 2 pid=`pidof -s "$PGPOOLDAEMON"` diff --git a/pgpool.sysconfig b/pgpool.sysconfig index ef8e2e1..221869e 100644 --- a/pgpool.sysconfig +++ b/pgpool.sysconfig @@ -4,3 +4,4 @@ # -d: debug mode. lots of debug information will be printed #OPTS=" -d -n" +OPTS=" -n" From c4bc2b3016cd978ca48acedf932a7bb913297006 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Devrim=20G=C3=9CND=C3=9CZ?= Date: Sun, 1 Nov 2009 21:44:47 +0000 Subject: [PATCH 37/43] Remove init script from all runlevels before uninstall. Per RH Bugzilla #532177 --- postgresql-pgpool-II.spec | 12 +++++++++++- 1 file changed, 11 insertions(+), 1 deletion(-) diff --git a/postgresql-pgpool-II.spec b/postgresql-pgpool-II.spec index b0ca045..cb82322 100644 --- a/postgresql-pgpool-II.spec +++ b/postgresql-pgpool-II.spec @@ -3,7 +3,7 @@ Summary: Pgpool is a connection pooling/replication server for PostgreSQL Name: postgresql-%{short_name} Version: 2.2.5 -Release: 1%{?dist} +Release: 2%{?dist} License: BSD Group: Applications/Databases URL: http://pgpool.projects.PostgreSQL.org @@ -74,6 +74,12 @@ rm -rf %{buildroot} /sbin/ldconfig chkconfig --add pgpool +%preun +if [ $1 = 0 ] ; then + /sbin/service pgpool condstop >/dev/null 2>&1 + chkconfig --del pgpool +fi + %postun -p /sbin/ldconfig %files @@ -106,6 +112,10 @@ chkconfig --add pgpool %{_libdir}/libpcp.so %changelog +* Sun Nov 01 2009 Devrim GUNDUZ - 2.2.5-2 +- Remove init script from all runlevels before uninstall. Per RH Bugzilla + #532177 + * Sun Oct 4 2009 Devrim Gunduz 2.2.5-1 - Update to 2.2.5, for various fixes described at http://lists.pgfoundry.org/pipermail/pgpool-general/2009-October/002188.html From 9d6bfa7b70e2f012ddba0bdb3075e7b7ef8083b7 Mon Sep 17 00:00:00 2001 From: Bill Nottingham Date: Wed, 25 Nov 2009 23:31:45 +0000 Subject: [PATCH 38/43] Fix typo that causes a failure to update the common directory. (releng #2781) --- Makefile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Makefile b/Makefile index 8d78723..02b9831 100644 --- a/Makefile +++ b/Makefile @@ -4,7 +4,7 @@ NAME := postgresql-pgpool-II SPECFILE = $(firstword $(wildcard *.spec)) define find-makefile-common -for d in common ../common ../../common ; do if [ -f $$d/Makefile.common ] ; then if [ -f $$d/CVS/Root -a -w $$/Makefile.common ] ; then cd $$d ; cvs -Q update ; fi ; echo "$$d/Makefile.common" ; break ; fi ; done +for d in common ../common ../../common ; do if [ -f $$d/Makefile.common ] ; then if [ -f $$d/CVS/Root -a -w $$d/Makefile.common ] ; then cd $$d ; cvs -Q update ; fi ; echo "$$d/Makefile.common" ; break ; fi ; done endef MAKEFILE_COMMON := $(shell $(find-makefile-common)) From dfe72e481fc8c03d20791845e17431231c3eb3be Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Devrim=20G=C3=9CND=C3=9CZ?= Date: Tue, 1 Dec 2009 21:46:24 +0000 Subject: [PATCH 39/43] - Update to 2.2.6 --- .cvsignore | 2 +- postgresql-pgpool-II.spec | 9 ++++++--- sources | 2 +- 3 files changed, 8 insertions(+), 5 deletions(-) diff --git a/.cvsignore b/.cvsignore index 020f125..718c248 100644 --- a/.cvsignore +++ b/.cvsignore @@ -1 +1 @@ -pgpool-II-2.2.5.tar.gz +pgpool-II-2.2.6.tar.gz diff --git a/postgresql-pgpool-II.spec b/postgresql-pgpool-II.spec index cb82322..5651b23 100644 --- a/postgresql-pgpool-II.spec +++ b/postgresql-pgpool-II.spec @@ -2,12 +2,12 @@ Summary: Pgpool is a connection pooling/replication server for PostgreSQL Name: postgresql-%{short_name} -Version: 2.2.5 -Release: 2%{?dist} +Version: 2.2.6 +Release: 1%{?dist} License: BSD Group: Applications/Databases URL: http://pgpool.projects.PostgreSQL.org -Source0: http://pgfoundry.org/frs/download.php/2423/%{short_name}-%{version}.tar.gz +Source0: http://pgfoundry.org/frs/download.php/2478/%{short_name}-%{version}.tar.gz Source1: pgpool.init Source2: pgpool.sysconfig Patch1: pgpool.conf.sample.patch @@ -112,6 +112,9 @@ fi %{_libdir}/libpcp.so %changelog +* Tue Dec 1 2009 Devrim GUNDUZ - 2.2.6-1 +- Update to 2.2.6 + * Sun Nov 01 2009 Devrim GUNDUZ - 2.2.5-2 - Remove init script from all runlevels before uninstall. Per RH Bugzilla #532177 diff --git a/sources b/sources index a04ffe8..f5b16c8 100644 --- a/sources +++ b/sources @@ -1 +1 @@ -410fc3e226842eda25e5cd18e9c3e703 pgpool-II-2.2.5.tar.gz +711115ba7a00a9b557c7780a7ec41c3c pgpool-II-2.2.6.tar.gz From 555d57fc9c6cfda7178e36a083a2da074c587310 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Devrim=20G=C3=9CND=C3=9CZ?= Date: Wed, 9 Dec 2009 22:17:06 +0000 Subject: [PATCH 40/43] Adjust order of startup and kill, per RH bugzilla #545739. --- pgpool.init | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/pgpool.init b/pgpool.init index f09b982..e0a4119 100755 --- a/pgpool.init +++ b/pgpool.init @@ -1,7 +1,7 @@ #!/bin/sh # pgpool This is the init script for starting up pgpool-II # -# chkconfig: - 64 36 +# chkconfig: - 235 74 33 # description: Starts and stops the pgpool daemon # processname: pgpool # pidfile: /var/run/pgpool.pid @@ -14,6 +14,9 @@ # # v2.2.5 Devrim GUNDUZ # - Fix logging. +# +# v2.3 Devrim GUNDUZ +# - Adjust order of startup and kill, per RH bugzilla #545739. if [ -r /etc/sysconfig/pgpool ]; then . /etc/sysconfig/pgpool From 00c73b96b701079650748824ed71f83e1000f7fa Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Devrim=20G=C3=9CND=C3=9CZ?= Date: Fri, 25 Dec 2009 16:06:23 +0000 Subject: [PATCH 41/43] - Update to 2.3.1 - Adjust order of startup and kill, per RH bugzilla #545739. --- .cvsignore | 2 +- postgresql-pgpool-II.spec | 13 +++++++++++-- sources | 2 +- 3 files changed, 13 insertions(+), 4 deletions(-) diff --git a/.cvsignore b/.cvsignore index 718c248..9ae6c1e 100644 --- a/.cvsignore +++ b/.cvsignore @@ -1 +1 @@ -pgpool-II-2.2.6.tar.gz +pgpool-II-2.3.1.tar.gz diff --git a/postgresql-pgpool-II.spec b/postgresql-pgpool-II.spec index 5651b23..cfbc299 100644 --- a/postgresql-pgpool-II.spec +++ b/postgresql-pgpool-II.spec @@ -2,12 +2,12 @@ Summary: Pgpool is a connection pooling/replication server for PostgreSQL Name: postgresql-%{short_name} -Version: 2.2.6 +Version: 2.3.1 Release: 1%{?dist} License: BSD Group: Applications/Databases URL: http://pgpool.projects.PostgreSQL.org -Source0: http://pgfoundry.org/frs/download.php/2478/%{short_name}-%{version}.tar.gz +Source0: http://pgfoundry.org/frs/download.php/2506/%{short_name}-%{version}.tar.gz Source1: pgpool.init Source2: pgpool.sysconfig Patch1: pgpool.conf.sample.patch @@ -59,6 +59,9 @@ install -d %{buildroot}%{_sysconfdir}/%{short_name} mv %{buildroot}/%{_sysconfdir}/%{short_name}/pcp.conf.sample %{buildroot}%{_sysconfdir}/%{short_name}/pcp.conf mv %{buildroot}/%{_sysconfdir}/%{short_name}/pgpool.conf.sample %{buildroot}%{_sysconfdir}/%{short_name}/pgpool.conf mv %{buildroot}/%{_sysconfdir}/%{short_name}/pool_hba.conf.sample %{buildroot}%{_sysconfdir}/%{short_name}/pool_hba.conf +mv %{buildroot}/%{_sysconfdir}/%{short_name}/pgpool.conf.sample-master-slave %{buildroot}%{_datadir}/%{short_name}/ +mv %{buildroot}/%{_sysconfdir}/%{short_name}/pgpool.conf.sample-replication %{buildroot}%{_datadir}/%{short_name}/ + install -d %{buildroot}%{_initrddir} install -m 755 %{SOURCE1} %{buildroot}%{_initrddir}/pgpool install -d %{buildroot}%{_sysconfdir}/sysconfig @@ -99,6 +102,8 @@ fi %{_mandir}/man8/pgpool* %dir %{_datadir}/%{short_name} %{_datadir}/%{short_name}/system_db.sql +%{_datadir}/%{short_name}/pgpool.conf.sample-master-slave +%{_datadir}/%{short_name}/pgpool.conf.sample-replication %{_libdir}/libpcp.so.* %{_datadir}/%{short_name}/pgpool.pam %{_initrddir}/pgpool @@ -112,6 +117,10 @@ fi %{_libdir}/libpcp.so %changelog +* Fri Dec 25 2009 Devrim GUNDUZ - 2.3.1-1 +- Update to 2.3.1 +- Adjust order of startup and kill, per RH bugzilla #545739. + * Tue Dec 1 2009 Devrim GUNDUZ - 2.2.6-1 - Update to 2.2.6 diff --git a/sources b/sources index f5b16c8..59dbedc 100644 --- a/sources +++ b/sources @@ -1 +1 @@ -711115ba7a00a9b557c7780a7ec41c3c pgpool-II-2.2.6.tar.gz +032fc94eaa71ed99276234b7a110cdf5 pgpool-II-2.3.1.tar.gz From b728bbb5a81bee2b66156be36bec47e300b65962 Mon Sep 17 00:00:00 2001 From: Jesse Keating Date: Wed, 17 Feb 2010 02:51:05 +0000 Subject: [PATCH 42/43] Initialize branch F-13 for postgresql-pgpool-II --- branch | 1 + 1 file changed, 1 insertion(+) create mode 100644 branch diff --git a/branch b/branch new file mode 100644 index 0000000..baa94ef --- /dev/null +++ b/branch @@ -0,0 +1 @@ +F-13 From 860f9397872cdc13a9ea1b8892a866d17da4f906 Mon Sep 17 00:00:00 2001 From: Fedora Release Engineering Date: Thu, 29 Jul 2010 09:39:53 +0000 Subject: [PATCH 43/43] dist-git conversion --- .cvsignore => .gitignore | 0 Makefile | 21 --------------------- branch | 1 - 3 files changed, 22 deletions(-) rename .cvsignore => .gitignore (100%) delete mode 100644 Makefile delete mode 100644 branch diff --git a/.cvsignore b/.gitignore similarity index 100% rename from .cvsignore rename to .gitignore diff --git a/Makefile b/Makefile deleted file mode 100644 index 02b9831..0000000 --- a/Makefile +++ /dev/null @@ -1,21 +0,0 @@ -# Makefile for source rpm: postgresql-pgpool-II -# $Id$ -NAME := postgresql-pgpool-II -SPECFILE = $(firstword $(wildcard *.spec)) - -define find-makefile-common -for d in common ../common ../../common ; do if [ -f $$d/Makefile.common ] ; then if [ -f $$d/CVS/Root -a -w $$d/Makefile.common ] ; then cd $$d ; cvs -Q update ; fi ; echo "$$d/Makefile.common" ; break ; fi ; done -endef - -MAKEFILE_COMMON := $(shell $(find-makefile-common)) - -ifeq ($(MAKEFILE_COMMON),) -# attept a checkout -define checkout-makefile-common -test -f CVS/Root && { cvs -Q -d $$(cat CVS/Root) checkout common && echo "common/Makefile.common" ; } || { echo "ERROR: I can't figure out how to checkout the 'common' module." ; exit -1 ; } >&2 -endef - -MAKEFILE_COMMON := $(shell $(checkout-makefile-common)) -endif - -include $(MAKEFILE_COMMON) diff --git a/branch b/branch deleted file mode 100644 index baa94ef..0000000 --- a/branch +++ /dev/null @@ -1 +0,0 @@ -F-13