From e3b8a8fc3a39bb1f0535952c4f116686e7dbc450 Mon Sep 17 00:00:00 2001 From: Ian Barwick Date: Tue, 10 Mar 2015 14:09:05 +0900 Subject: [PATCH] Initial spec file for 3.x/9.3 --- RHEL/repmgr-2.x/repmgr.spec | 7 ++- RHEL/repmgr-3.x/REL9_3/repmgr.spec | 58 ++++++++++++++++++++++++ RHEL/repmgr-3.x/REL9_3/repmgrd.init | 1 + RHEL/repmgr-3.x/REL9_3/repmgrd.sysconfig | 1 + 4 files changed, 63 insertions(+), 4 deletions(-) create mode 100644 RHEL/repmgr-3.x/REL9_3/repmgr.spec create mode 120000 RHEL/repmgr-3.x/REL9_3/repmgrd.init create mode 120000 RHEL/repmgr-3.x/REL9_3/repmgrd.sysconfig diff --git a/RHEL/repmgr-2.x/repmgr.spec b/RHEL/repmgr-2.x/repmgr.spec index 418c073a..73ebafb4 100644 --- a/RHEL/repmgr-2.x/repmgr.spec +++ b/RHEL/repmgr-2.x/repmgr.spec @@ -4,7 +4,7 @@ Version: 2.0 Release: 2 License: GPLv3 Group: System Environment/Daemons -URL: http://repmgr.org +URL: http://repmgr.org Packager: Nathan Van Overloop Vendor: 2ndQuadrant Limited Distribution: centos @@ -32,7 +32,7 @@ export PATH=$PATH:/usr/pgsql-9.3/bin/ %clean [ "%{buildroot}" != "/" ] && %{__rm} -rf %{buildroot} - + %files %defattr(-,root,root) @@ -45,7 +45,7 @@ export PATH=$PATH:/usr/pgsql-9.3/bin/ /usr/pgsql-9.3/share/contrib/repmgr_funcs.sql /usr/pgsql-9.3/share/contrib/uninstall_repmgr.sql /usr/pgsql-9.3/share/contrib/uninstall_repmgr_funcs.sql -%attr(0755,root,root)/etc/init.d/repmgrd +%attr(0755,root,root)/etc/init.d/repmgrd %attr(0644,root,root)/etc/sysconfig/repmgrd %attr(0644,root,root)/etc/repmgr/repmgr.conf.sample @@ -54,4 +54,3 @@ export PATH=$PATH:/usr/pgsql-9.3/bin/ - fix witness creation to create db and user if needed * Fri Apr 04 2014 Nathan Van Overloop 2.0.1 - initial build for RHEL6 - diff --git a/RHEL/repmgr-3.x/REL9_3/repmgr.spec b/RHEL/repmgr-3.x/REL9_3/repmgr.spec new file mode 100644 index 00000000..4a34f4eb --- /dev/null +++ b/RHEL/repmgr-3.x/REL9_3/repmgr.spec @@ -0,0 +1,58 @@ +Summary: repmgr +Name: repmgr +Version: 3.0rc +Release: 3 +License: GPLv3 +Group: System Environment/Daemons +URL: http://repmgr.org +Packager: Ian Barwick +Vendor: 2ndQuadrant Limited +Distribution: centos +Source0: %{name}-%{version}.tar.gz +BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root + +%description +repmgr for centos6 + +%prep +%setup + +%build +export PATH=$PATH:/usr/pgsql-9.3/bin/ +%{__make} USE_PGXS=1 + +%install +[ "%{buildroot}" != "/" ] && %{__rm} -rf %{buildroot} + +export PATH=$PATH:/usr/pgsql-9.3/bin/ +%{__make} USE_PGXS=1 install DESTDIR=%{buildroot} INSTALL="install -p" +%{__make} USE_PGXS=1 install_prog DESTDIR=%{buildroot} INSTALL="install -p" +%{__make} USE_PGXS=1 install_rhel DESTDIR=%{buildroot} INSTALL="install -p" + + +%clean +[ "%{buildroot}" != "/" ] && %{__rm} -rf %{buildroot} + + +%files +%defattr(-,root,root) +/usr/bin/repmgr +/usr/bin/repmgrd +/usr/pgsql-9.3/bin/repmgr +/usr/pgsql-9.3/bin/repmgrd +/usr/pgsql-9.3/lib/repmgr_funcs.so +/usr/pgsql-9.3/share/contrib/repmgr.sql +/usr/pgsql-9.3/share/contrib/repmgr_funcs.sql +/usr/pgsql-9.3/share/contrib/uninstall_repmgr.sql +/usr/pgsql-9.3/share/contrib/uninstall_repmgr_funcs.sql +%attr(0755,root,root)/etc/init.d/repmgrd +%attr(0644,root,root)/etc/sysconfig/repmgrd +%attr(0644,root,root)/etc/repmgr/repmgr.conf.sample + +%changelog +* Tue Mar 10 2015 Ian Barwick ian@2ndquadrant.com> +- build for repmgr 3.0 +* Thu Jun 05 2014 Nathan Van Overloop 2.0.2 +- fix witness creation to create db and user if needed +* Fri Apr 04 2014 Nathan Van Overloop 2.0.1 +- initial build for RHEL6 diff --git a/RHEL/repmgr-3.x/REL9_3/repmgrd.init b/RHEL/repmgr-3.x/REL9_3/repmgrd.init new file mode 120000 index 00000000..d2475971 --- /dev/null +++ b/RHEL/repmgr-3.x/REL9_3/repmgrd.init @@ -0,0 +1 @@ +../../repmgr-2.x/repmgrd.init \ No newline at end of file diff --git a/RHEL/repmgr-3.x/REL9_3/repmgrd.sysconfig b/RHEL/repmgr-3.x/REL9_3/repmgrd.sysconfig new file mode 120000 index 00000000..16285cec --- /dev/null +++ b/RHEL/repmgr-3.x/REL9_3/repmgrd.sysconfig @@ -0,0 +1 @@ +../../repmgr-2.x/repmgrd.sysconfig \ No newline at end of file