From 908f098aa88acae5a89876e922ba06a2f2a9925e Mon Sep 17 00:00:00 2001
From: Jehan-Guillaume de Rorthais <jgdr@dalibo.com>
Date: Tue, 22 Jan 2019 22:00:27 +0100
Subject: [PATCH] Release v2.2.1_rc1

---
 Build.PL                  | 4 ++--
 CHANGELOG.md              | 4 ++--
 debian/changelog          | 6 ++++++
 lib/OCF_Directories.pm.PL | 2 +-
 lib/OCF_Functions.pm      | 2 +-
 lib/OCF_ReturnCodes.pm    | 2 +-
 resource-agents-paf.spec  | 7 +++++--
 script/pgsqlms            | 2 +-
 8 files changed, 19 insertions(+), 10 deletions(-)

diff --git a/Build.PL b/Build.PL
index 135ae7c..59351e1 100755
--- a/Build.PL
+++ b/Build.PL
@@ -24,8 +24,8 @@ my $build = Module::Build->new(
     create_packlist    => 1,
     #create_readme      => 1,
     create_makefile_pl => 'traditional',
-    dist_version       => '2.2.0',
-    release_status     => 'stable', # stable or testing
+    dist_version       => '2.2.1_rc1',
+    release_status     => 'testing', # stable or testing
     dist_abstract      => 'PostgreSQL multistate OCF resource agent for Pacemaker',
     dist_author        => [
         'Mael Rimbault <mael.rimbault@dalibo.com>',
diff --git a/CHANGELOG.md b/CHANGELOG.md
index b0f1121..76c126a 100644
--- a/CHANGELOG.md
+++ b/CHANGELOG.md
@@ -1,6 +1,6 @@
-# PAF v2.2.1
+# PAF v2.2.1 rc1
 
-Release date: 2019-0x-yy
+Release date: 2019-01-22
 
 __WARNING__: This version is only compatible with at least Pacemaker 1.1.13 using
 a corosync 2.x stack.
diff --git a/debian/changelog b/debian/changelog
index 72be8e7..c74706f 100644
--- a/debian/changelog
+++ b/debian/changelog
@@ -1,3 +1,9 @@
+resource-agents-paf (2.2.1~rc1-1) unstable; urgency=low
+
+  * 2.2.1_rc1 release candidate
+
+ -- Jehan-Guillaume (ioguix) de Rorthais <jgdr@dalibo.com>  Tue, 22 Jan 2019 22:00:00 +0200
+
 resource-agents-paf (2.2.0-2) unstable; urgency=low
 
   * add CHANGELOG.md to the package
diff --git a/lib/OCF_Directories.pm.PL b/lib/OCF_Directories.pm.PL
index 2563aa5..ab26e1b 100755
--- a/lib/OCF_Directories.pm.PL
+++ b/lib/OCF_Directories.pm.PL
@@ -7,7 +7,7 @@ use Config;
 use File::Spec;
 use Storable;
 
-my $VERSION = 'v2.2.0';
+my $VERSION = 'v2.2.1_rc1';
 
 my $_ocf_dirs = File::Spec->tmpdir."/ocf_dirs.bin";
 
diff --git a/lib/OCF_Functions.pm b/lib/OCF_Functions.pm
index 2242996..c45e219 100755
--- a/lib/OCF_Functions.pm
+++ b/lib/OCF_Functions.pm
@@ -96,7 +96,7 @@ use OCF_Directories;
 BEGIN {
     use Exporter;
 
-    our $VERSION   = 'v2.2.0';
+    our $VERSION   = 'v2.2.1_rc1';
     our @ISA       = ('Exporter');
     our @EXPORT    = qw(
         $__OCF_ACTION
diff --git a/lib/OCF_ReturnCodes.pm b/lib/OCF_ReturnCodes.pm
index 0838fd6..84cc33f 100755
--- a/lib/OCF_ReturnCodes.pm
+++ b/lib/OCF_ReturnCodes.pm
@@ -60,7 +60,7 @@ use 5.008;
 BEGIN {
     use Exporter;
 
-    our $VERSION   = 'v2.2.0';
+    our $VERSION   = 'v2.2.1_rc1';
     our @ISA       = ('Exporter');
     our @EXPORT    = qw(
         $OCF_SUCCESS
diff --git a/resource-agents-paf.spec b/resource-agents-paf.spec
index cbd7586..fd5fefa 100644
--- a/resource-agents-paf.spec
+++ b/resource-agents-paf.spec
@@ -1,7 +1,7 @@
-%global _tag 2.2.0
+%global _tag 2.2.1_rc1
 %global _ocfroot /usr/lib/ocf
 Name: resource-agents-paf
-Version: 2.2.0
+Version: 2.2.1~rc1
 Release: 1
 Summary: PostgreSQL resource agent for Pacemaker
 License: PostgreSQL
@@ -42,6 +42,9 @@ find "%{buildroot}" -type f -name .packlist -delete
 %{_datadir}/resource-agents/ocft/configs/pgsqlms
 
 %changelog
+* Tue Jan 22 2019 Jehan-Guillaume de Rorthais <jgdr@dalibo.com> - 2.2.1rc1-1
+- 2.2.1_rc1 release candidate
+
 * Tue Sep 12 2017 Jehan-Guillaume de Rorthais <jgdr@dalibo.com> - 2.2.0-1
 - 2.2.0 major release
 
diff --git a/script/pgsqlms b/script/pgsqlms
index b40990d..08a567a 100755
--- a/script/pgsqlms
+++ b/script/pgsqlms
@@ -36,7 +36,7 @@ use OCF_ReturnCodes;
 use OCF_Directories;
 use OCF_Functions;
 
-our $VERSION = 'v2.2.0';
+our $VERSION = 'v2.2.1_rc1';
 our $PROGRAM = 'pgsqlms';
 
 # OCF environment