From 414a0f67e31c5a9729281b79083b3b51a4d0f774 Mon Sep 17 00:00:00 2001 From: Shivansh Gahlot <42472145+ShivanshGahlot@users.noreply.github.com> Date: Thu, 30 Nov 2023 18:30:35 +0530 Subject: [PATCH] Added files for 1.6.0 (#66) --- Formula/debezium.rb | 2 +- Formula/debezium@2.2.0-1.6.0.rb | 15 +++++++++++++++ Formula/yb-voyager.rb | 2 +- Formula/yb-voyager@1.6.0.rb | 31 +++++++++++++++++++++++++++++++ 4 files changed, 48 insertions(+), 2 deletions(-) create mode 100644 Formula/debezium@2.2.0-1.6.0.rb create mode 100644 Formula/yb-voyager@1.6.0.rb diff --git a/Formula/debezium.rb b/Formula/debezium.rb index 138bf6f..bb72c92 120000 --- a/Formula/debezium.rb +++ b/Formula/debezium.rb @@ -1 +1 @@ -debezium@2.2.0-1.6.0-rc2.rb \ No newline at end of file +debezium@2.2.0-1.6.0.rb \ No newline at end of file diff --git a/Formula/debezium@2.2.0-1.6.0.rb b/Formula/debezium@2.2.0-1.6.0.rb new file mode 100644 index 0000000..6cf1787 --- /dev/null +++ b/Formula/debezium@2.2.0-1.6.0.rb @@ -0,0 +1,15 @@ +class DebeziumAT220160 < Formula + desc "Debezium is an open source distributed platform for change data capture" + homepage "https://github.com/yugabyte/debezium/" + url "https://github.com/yugabyte/debezium/releases/download/2.2.0-1.6.0/debezium-server-2.2.0-1.6.0.tar.gz" + version "2.2.0-1.6.0" + sha256 "478350b166e255af1efe812c96322887f6ab8e046a3dada6939c57746b8d0227" + license "Apache-2.0" + depends_on "maven" => :build + depends_on "java11" => :build + def install + ENV.deparallelize + (prefix/"debezium-server").mkdir + cp_r ".", prefix/"debezium-server" + end +end diff --git a/Formula/yb-voyager.rb b/Formula/yb-voyager.rb index 2226226..9831eac 120000 --- a/Formula/yb-voyager.rb +++ b/Formula/yb-voyager.rb @@ -1 +1 @@ -yb-voyager@1.6.0-rc2.rb \ No newline at end of file +yb-voyager@1.6.0.rb \ No newline at end of file diff --git a/Formula/yb-voyager@1.6.0.rb b/Formula/yb-voyager@1.6.0.rb new file mode 100644 index 0000000..2869498 --- /dev/null +++ b/Formula/yb-voyager@1.6.0.rb @@ -0,0 +1,31 @@ +class YbVoyagerAT160 < Formula + desc "YugabyteDB's migration tool" + homepage "https://github.com/yugabyte/yb-voyager/" + url "https://github.com/yugabyte/yb-voyager/archive/refs/tags/yb-voyager/v1.6.0.tar.gz" + sha256 "6006ecae4942bf99c1116f9699818d313dac5ec3bd071711b1a45434f249b2c1" + version "1.6.0" + license "Apache-2.0" + + depends_on "go" => :build + depends_on "libpq" + depends_on "sqlite" + depends_on "yugabyte/tap/debezium@2.2.0-1.6.0" + + def install + ENV.deparallelize + Dir.chdir("yb-voyager") do + system "go", "build" + bin.install "yb-voyager" + end + Dir.chdir("yb-voyager/src/srcdb/data") do + (prefix/"etc/").mkdir + (prefix/"etc/yb-voyager/").mkdir + cp_r "pg_dump-args.ini", prefix/"etc/yb-voyager/pg_dump-args.ini" + end + end + + test do + system "#{bin}/yb-voyager", "version" + end + end +