- 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.
This commit is contained in:
parent
aa7b138e96
commit
91aad2fbe4
3 changed files with 106 additions and 53 deletions
|
|
@ -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 <devrim@CommandPrompt.com> 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 <devrim@CommandPrompt.com> 2.2-1
|
||||
- Update to 2.2
|
||||
- Fix URL
|
||||
- Update URL
|
||||
|
||||
* Thu Feb 26 2009 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 2.1-3
|
||||
- Rebuilt for https://fedoraproject.org/wiki/Fedora_11_Mass_Rebuild
|
||||
|
||||
* Thu Dec 4 2008 Michael Schwendt <mschwendt@fedoraproject.org> 2.1-2
|
||||
- Include /usr/share/pgpool-II directory.
|
||||
|
||||
* Tue Aug 12 2008 Devrim Gunduz <devrim@CommandPrompt.com> 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 <devrim@CommandPrompt.com> 2.1-0.2.beta2
|
||||
- Fix Requires: issue, per #442021 (Alex Lancaster)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue