2 changed files with 90 additions and 0 deletions
@ -0,0 +1,11 @@
|
||||
Index: dbutils.c
|
||||
--- dbutils.c.orig 2016-12-27 06:49:50.000000000 +0100
|
||||
+++ dbutils.c 2017-02-18 18:21:10.899885000 +0100
|
||||
@@ -21,6 +21,7 @@
|
||||
#include <unistd.h>
|
||||
#include <time.h>
|
||||
#include <sys/time.h>
|
||||
+#include <netinet/in.h>
|
||||
|
||||
#include "repmgr.h"
|
||||
#include "config.h"
|
||||
@ -0,0 +1,79 @@
|
||||
## |
||||
## postgresql-repmgr.spec -- OpenPKG RPM Package Specification |
||||
## Copyright (c) 2000-2017 OpenPKG Foundation e.V. <http://openpkg.net/> |
||||
## |
||||
## Permission to use, copy, modify, and distribute this software for |
||||
## any purpose with or without fee is hereby granted, provided that |
||||
## the above copyright notice and this permission notice appear in all |
||||
## copies. |
||||
## |
||||
## THIS SOFTWARE IS PROVIDED ``AS IS'' AND ANY EXPRESSED OR IMPLIED |
||||
## WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF |
||||
## MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. |
||||
## IN NO EVENT SHALL THE AUTHORS AND COPYRIGHT HOLDERS AND THEIR |
||||
## CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, |
||||
## SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT |
||||
## LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF |
||||
## USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND |
||||
## ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, |
||||
## OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT |
||||
## OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF |
||||
## SUCH DAMAGE. |
||||
## |
||||
|
||||
# package information |
||||
Name: postgresql-repmgr |
||||
Summary: PostgreSQL Replication Manager |
||||
URL: http://repmgr.org/ |
||||
Vendor: 2ndQuadrant |
||||
Packager: OpenPKG Foundation e.V. |
||||
Distribution: OpenPKG Community |
||||
Class: EVAL |
||||
Group: RDBMS |
||||
License: GPL |
||||
Version: 3.3 |
||||
Release: 20170218 |
||||
|
||||
# list of sources |
||||
Source0: http://repmgr.org/download/repmgr-%{version}.tar.gz |
||||
Patch0: postgresql-repmgr.patch |
||||
|
||||
# build information |
||||
BuildPreReq: OpenPKG, openpkg >= 20160101 |
||||
PreReq: OpenPKG, openpkg >= 20160101 |
||||
|
||||
%description |
||||
repmgr helps DBAs and System Administrators manage a cluster of |
||||
PostgreSQL databases. By taking advantage of the Hot Standby |
||||
capability introduced in PostgreSQL 9, repmgr greatly simplifies the |
||||
process of setting up and managing databases with high availability |
||||
and scalability requirements. |
||||
|
||||
%track |
||||
prog postgresql-repmgr = { |
||||
version = %{version} |
||||
url = http://repmgr.org/ |
||||
regex = repmgr-(__VER__)\.tar\.gz |
||||
} |
||||
|
||||
%prep |
||||
%setup -q -n repmgr-%{version} |
||||
%patch -p0 |
||||
|
||||
%build |
||||
%{l_make} %{l_mflags} \ |
||||
USE_PGXS=1 \ |
||||
CC="%{l_cc}" \ |
||||
CFLAGS="%{l_cflags -O}" \ |
||||
CPPFLAGS="%{l_cppflags}" \ |
||||
LDFLAGS="%{l_ldflags}" |
||||
|
||||
%install |
||||
%{l_make} %{l_mflags} install USE_PGXS=1 DESTDIR=$RPM_BUILD_ROOT |
||||
strip $RPM_BUILD_ROOT%{l_prefix}/bin/* >/dev/null 2>&1 || true |
||||
%{l_rpmtool} files -v -ofiles -r$RPM_BUILD_ROOT %{l_files_std} |
||||
|
||||
%files -f files |
||||
|
||||
%clean |
||||
|
||||
Loading…
Reference in new issue