Skip to content
This repository has been archived by the owner on Oct 11, 2024. It is now read-only.

Commit

Permalink
Add customizations for Telia
Browse files Browse the repository at this point in the history
  • Loading branch information
ants committed Sep 7, 2017
1 parent 76a04e7 commit f33dee8
Show file tree
Hide file tree
Showing 3 changed files with 688 additions and 3 deletions.
3 changes: 2 additions & 1 deletion build.sh
Original file line number Diff line number Diff line change
@@ -1,7 +1,8 @@
#!/bin/sh
mkdir -p /root/rpmbuild/SOURCES
tar -czf /root/rpmbuild/SOURCES/patroni-customizations.tar.gz patroni.2.service patroni-watchdog.service postgres-telia.yml
tar -czf /root/rpmbuild/SOURCES/patroni-customizations.tar.gz patroni.2.service patroni-watchdog.service postgres-telia.yml
curl -L https://github.com/zalando/patroni/archive/v1.3.3.tar.gz -o /root/rpmbuild/SOURCES/patroni-1.3.3.tar.gz
cp telia-patch.diff /root/rpmbuild/SOURCES/
rpmbuild -bb patroni.spec
mkdir -p rpms
cp /root/rpmbuild/RPMS/x86_64/patroni-*.rpm rpms/
6 changes: 4 additions & 2 deletions patroni.spec
Original file line number Diff line number Diff line change
Expand Up @@ -3,11 +3,12 @@
%define debug_package %{nil}
Name: patroni
Version: 1.3.3
Release: 1.rhel7
Release: 2.rhel7
License: MIT
Summary: PostgreSQL high-availability manager
Source: patroni-1.3.3.tar.gz
Source1: patroni-customizations.tar.gz
Patch0: telia-patch.diff
BuildRoot: %{_tmppath}/%{buildprefix}-buildroot
Requires: /usr/bin/python2.7, python-psycopg2 >= 2.6.1, postgresql-server, libyaml
BuildRequires: prelink libyaml-devel gcc
Expand All @@ -19,7 +20,8 @@ Packaged version of Patroni HA manager.

%prep
%setup
%setup -D -T -a 1
%setup -D -T -a 1
%patch0 -p1

%build
# remove some things
Expand Down
Loading

0 comments on commit f33dee8

Please sign in to comment.