From 1fb8191790c301700059a0295c3a22dc64890802 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/26] 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..8a9da42 --- /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-9/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 89362e82c3e87b9a3c173c5811e7a6ce09c0552e 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/26] - 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 af449534202c10e1452965cf2e5b727b027aec73 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/26] 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 5e3f3b14af4a447bb410f5dd78064a31a53ce35a 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/26] - 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 4bd934db13b03f12d0c8fa3bee15693ca9ca06c2 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/26] 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 d50b58fec074df695783e688edce63dd9b34bc14 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/26] 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 8a9da42..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-9/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 a4b33c1351094efc538c22f29e5c0e198219c575 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/26] 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 40cc65d1c5b0c0915868a8423250f8114e2337c4 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/26] 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 8c0576ee57374fd269b1851457253b4c0824fb40 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/26] 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..e70093e --- /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-9/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-9/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 f31a475d7fdf916df20e06f6b16ae902d3002336 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/26] 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 9d0361507a277c88645a756dd9471f57c0944b71 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/26] - 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 f1baa5de3a29df19daef79b394b81346ccf7bede Mon Sep 17 00:00:00 2001 From: Jesse Keating Date: Tue, 19 Feb 2008 01:27:41 +0000 Subject: [PATCH 12/26] - 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 c4f9f72b991c828493b8c826448685502c135712 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/26] 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 e70093e..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-9/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-9/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 ddb35e6b790d616df5d37970283ed078f38f4cc5 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/26] 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 bc3e16458ab561b9d372f694323762fedae4750a 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/26] 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 61c7e326b8525158d4d45ec5e0a1bce27c0230a1 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/26] 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 7d950729693254c3199cece122e0fed74b4c431c 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/26] - 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 456b6478e62216e5e0bd1863114613cb79210720 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/26] - 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 a71a044f442ef404aa898b9861ee17d2633cc493 Mon Sep 17 00:00:00 2001 From: Jesse Keating Date: Mon, 21 Apr 2008 15:15:56 +0000 Subject: [PATCH 19/26] Initialize branch F-9 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..1c26f78 --- /dev/null +++ b/branch @@ -0,0 +1 @@ +F-9 From 2aa87bd532f51d29814d1357ea56fcca287ccf1e 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 20/26] - 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 4d1831cdb5d6bce252e519a10a3892c0a925cdb7 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 21/26] - 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 | 1 + 2 files changed, 5 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..64fafc4 100644 --- a/postgresql-pgpool-II.spec +++ b/postgresql-pgpool-II.spec @@ -105,6 +105,7 @@ 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 * Fri Apr 11 2008 Devrim Gunduz 2.1-0.2.beta2 - Fix Requires: issue, per #442021 (Alex Lancaster) From aa7b138e963ad1bb53d593626429f4ebd1c43559 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Devrim=20G=C3=9CND=C3=9CZ?= Date: Sun, 1 Mar 2009 14:57:56 +0000 Subject: [PATCH 22/26] Update to 2.2 --- .cvsignore | 2 +- postgresql-pgpool-II.spec | 10 +++++++--- sources | 2 +- 3 files changed, 9 insertions(+), 5 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 64fafc4..cbef6ca 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 +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 @@ -102,6 +102,10 @@ chkconfig --add pgpool %{_libdir}/libpcp.so %changelog +* Sun Mar 1 2009 Devrim Gunduz 2.2-1 +- Update to 2.2 +- Fix URL + * 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. 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 91aad2fbe43d2f36f1e6d21fd5cc70bce2e89bfa Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Devrim=20G=C3=9CND=C3=9CZ?= Date: Mon, 23 Mar 2009 01:01:26 +0000 Subject: [PATCH 23/26] - 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 | 91 ++++++++++++++++++++++++--------------- postgresql-pgpool-II.spec | 31 ++++++++++--- 3 files changed, 106 insertions(+), 53 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..ee791c7 100755 --- a/pgpool.init +++ b/pgpool.init @@ -8,12 +8,14 @@ # # 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 . - +# +# v2.2 Devrim GUNDUZ +# - New and improved version which has some fixes. + +if [ -r /etc/sysconfig/pgpool ]; then + . /etc/sysconfig/pgpool +fi + # Source function library. INITD=/etc/rc.d/init.d . $INITD/functions @@ -29,30 +31,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 +55,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 +95,7 @@ start(){ touch /var/lock/subsys/${NAME} echo else - failure "$PSQL_START" + failure "$PGPOQL_START" echo script_result=1 fi @@ -88,7 +107,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 +118,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 +136,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 cbef6ca..b5dcc44 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 @@ -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}/%{short_name}/ make %{?_smp_flags} @@ -55,7 +55,10 @@ 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} +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 @@ -88,11 +91,12 @@ 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 %{_datadir}/%{short_name}/pgpool.pam %{_initrddir}/pgpool +%attr(764,root,apache) %config(noreplace) %{_sysconfdir}/%{short_name}/*.conf %config(noreplace) %{_sysconfdir}/sysconfig/pgpool %files devel @@ -102,14 +106,29 @@ chkconfig --add pgpool %{_libdir}/libpcp.so %changelog +* 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. +- 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. + * Sun Mar 1 2009 Devrim Gunduz 2.2-1 - Update to 2.2 -- Fix URL +- Update URL + +* 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. * 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 +- 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 303d4a08a52c671c71916a05e4cdc3a30f4393f2 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 24/26] 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 1aaac6db76580aa98ac50d4b1eb976a0e2e1f40b Mon Sep 17 00:00:00 2001 From: Bill Nottingham Date: Thu, 26 Nov 2009 01:43:48 +0000 Subject: [PATCH 25/26] 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 6413f00e6cb45bef086f15d2cf0534e9e675b6a6 Mon Sep 17 00:00:00 2001 From: Fedora Release Engineering Date: Thu, 29 Jul 2010 09:40:02 +0000 Subject: [PATCH 26/26] 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 1c26f78..0000000 --- a/branch +++ /dev/null @@ -1 +0,0 @@ -F-9