- Add pgpool.pam file for pam authentication
authorDevrim GÜNDÜZ <devrim at gunduz.org>
Tue, 13 Feb 2007 07:11:36 +0000 (07:11 +0000)
committerDevrim GÜNDÜZ <devrim at gunduz.org>
Tue, 13 Feb 2007 07:11:36 +0000 (07:11 +0000)
- configure with pam support. This is a bugfix for new hba auth.
- Removed vendor tag, per rh bugzilla #222797
- Update to latest release

pgpool.spec

index 585d7b06639773760563f2c0d69e91fb5910785d..9e14b01e2da76a8d04aeeb3168bfa65dec733f5e 100644 (file)
@@ -2,14 +2,15 @@
 
 Summary:       Pgpool is a connection pooling/replication server for PostgreSQL
 Name:          postgresql-%{short_name}
-Version:       3.1.2
-Release:       1%{?dist}
+Version:       3.2
+Release:       2%{?dist}
 License:       BSD
-Vendor:                PgPool Global Development Group
 Group:         Applications/Databases
 URL:           http://pgpool.projects.PostgreSQL.org
-Source0:       http://pgfoundry.org/frs/download.php/980/%{short_name}-%{version}.tar.gz
+Source0:       http://pgfoundry.org/frs/download.php/1254/%{short_name}-%{version}.tar.gz
+Source2:       pgpool.pam
 BuildRoot:     %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
+BuildRequires: pam-devel
 
 %description
 pgpool is a connection pooling/replication server for PostgreSQL.
@@ -23,7 +24,7 @@ were a standard PostgreSQL server.
 CFLAGS="${CFLAGS:-%optflags}" ; export CFLAGS
 CXXFLAGS="${CXXFLAGS:-%optflags}" ; export CXXFLAGS
 
-%configure
+%configure --with-pam 
 
 make %{?smp_flags}
 
@@ -34,18 +35,36 @@ install -m 755 %{short_name} %{buildroot}%{_bindir}
 install -m 644 %{short_name}.8 %{buildroot}%{_mandir}/man8/
 install -d %{buildroot}/%{_docdir}/%{name}-%{version}
 mv %{buildroot}%{_sysconfdir}/pgpool.conf.sample %{buildroot}/%{_docdir}/%{name}-%{version}
+mv %{buildroot}%{_sysconfdir}/pool_hba.conf.sample %{buildroot}/%{_docdir}/%{name}-%{version}
+
+if [ -d /etc/pam.d ]
+then
+install -d %{buildroot}/%{_sysconfdir}/pam.d
+install -m 644 %{SOURCE2} %{buildroot}/%{_sysconfdir}/pam.d/pgpool
+fi
 
 %clean
 rm -rf %{buildroot}
 
 %files
 %defattr(-,root,root,-)
-%doc README README.euc_jp TODO COPYING INSTALL AUTHORS ChangeLog NEWS pgpool.conf.sample
+%doc README README.euc_jp TODO COPYING INSTALL AUTHORS ChangeLog NEWS pgpool.conf.sample pool_hba.conf.sample
+%config(noreplace) /etc/pam.d/pgpool
 %{_bindir}/pgpool
 %{_mandir}/man8/*
 
 %changelog
-* Tue Dec 5 2006 - Devrim GUNDUZ <devrim@commandprompt.com> 3.1.2-1
+* Tue Feb 13 2007 - Devrim GUNDUZ <devrim@commandprompt.com> 3.2-2
+- Add pgpool.pam file for pam authentication
+- configure with pam support. This is a bugfix for new hba auth.
+
+* Mon Feb 12 2007 - Devrim GUNDUZ <devrim@commandprompt.com> 3.2-1
+- Update to 3.2
+
+* Tue Jan 16 2007 - Devrim GUNDUZ <devrim@commandprompt.com> 3.1.2-2
+- Removed vendor tag, per rh bugzilla #222797
+
+* Tue Dec 12 2006 - Devrim GUNDUZ <devrim@commandprompt.com> 3.1.2-1
 - Update to 3.1.2-1
 
 * Tue Dec 5 2006 - Devrim GUNDUZ <devrim@commandprompt.com> 3.1.1-7