From: Devrim GÜNDÜZ Date: Wed, 11 Oct 2006 07:50:14 +0000 (+0000) Subject: Red Hat / Fedora Core spec file for pgpool-ha, per David Fetter and Devrim Gunduz X-Git-Tag: PGPOOL_HA_1_2~9 X-Git-Url: http://git.postgresql.org/gitweb/delmail?a=commitdiff_plain;h=46600b7edf2fc18b0f089d33d4f45caf0d3e23fc;p=pgpoolha.git Red Hat / Fedora Core spec file for pgpool-ha, per David Fetter and Devrim Gunduz --- diff --git a/pgpool-ha.spec b/pgpool-ha.spec new file mode 100644 index 0000000..a2bf263 --- /dev/null +++ b/pgpool-ha.spec @@ -0,0 +1,49 @@ +Summary: Pgpool-HA uses heartbeat to keep pgpool from being a single point of failure +Name: pgpool-ha +Version: 1.0.0 +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/1124/%{name}-%{version}.tar.bz2 +BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n) +Requires: heartbeat >= 2.0 +BuildArch: noarch + +%description +Pgpool-HA combines pgpool with heartbeat. Pgpool is a replication +server of PostgreSQL and makes reliability, but the pgpool server is +always a single point failure. Pgpool-HA uses heartbeat to eliminate +this. + +%prep +%setup -q -n %{name}-%{version} + +%build +%configure --bindir=%{_bindir} --sysconfdir=%{_sysconfdir} --mandir=%{_mandir} --libdir=%{_libdir} + +%install +rm -rf %{buildroot} +cd src +make %{?smp_flags} install +install -d %{buildroot}%{_bindir} +install -d %{buildroot}%{_sysconfdir}/ha.d/resource.d/heartbeat/ +install -m 755 pgpool.monitor %{buildroot}%{_bindir}/pgpool.monitor +install -m 755 pgpool %{buildroot}%{_sysconfdir}/ha.d/resource.d/heartbeat/pgpool + +%clean +rm -rf %{buildroot} + +%files +%defattr(-,root,root,-) +%{_bindir}/pgpool.monitor +%{_sysconfdir}/ha.d/resource.d/heartbeat/pgpool +%doc AUTHORS COPYING INSTALL README.ja ChangeLog doc README + +%changelog +* Tue Oct 10 2006 Devrim GUNDUZ 1.0.0-2 +- Some fixes to spec file + +* Tue Oct 10 2006 David Fetter 1.0.0-1 +- Initial build pgpool-HA 1.0.0 for PgPool Global Development Group