summaryrefslogtreecommitdiff
path: root/homebrew/perconaxtrabackup
diff options
context:
space:
mode:
Diffstat (limited to 'homebrew/perconaxtrabackup')
-rw-r--r--homebrew/perconaxtrabackup/.beer81
-rw-r--r--homebrew/perconaxtrabackup/.make.sh-auto19
-rw-r--r--homebrew/perconaxtrabackup/_metadata/description1
-rw-r--r--homebrew/perconaxtrabackup/_metadata/homepage1
-rw-r--r--homebrew/perconaxtrabackup/_metadata/name1
-rw-r--r--homebrew/perconaxtrabackup/_metadata/version1
-rwxr-xr-xhomebrew/perconaxtrabackup/download.sh1
7 files changed, 105 insertions, 0 deletions
diff --git a/homebrew/perconaxtrabackup/.beer b/homebrew/perconaxtrabackup/.beer
new file mode 100644
index 000000000..69ea54688
--- /dev/null
+++ b/homebrew/perconaxtrabackup/.beer
@@ -0,0 +1,81 @@
+{
+ "name": "PerconaXtrabackup",
+ "description": "Open source hot backup tool for InnoDB and XtraDB databases",
+ "url": "https://www.percona.com/downloads/XtraBackup/Percona-XtraBackup-2.4.12/source/tarball/percona-xtrabackup-2.4.12.tar.gz",
+ "mirror": null,
+ "homepage": "https://www.percona.com/software/mysql-database/percona-xtrabackup",
+ "depends": [
+ {
+ "depend": "cmake",
+ "build-depend": true
+ },
+ {
+ "depend": "sphinx-doc",
+ "build-depend": true
+ },
+ {
+ "depend": "libev",
+ "build-depend": false
+ },
+ {
+ "depend": "libgcrypt",
+ "build-depend": false
+ },
+ {
+ "depend": "mysql-client",
+ "build-depend": false
+ },
+ {
+ "depend": "openssl",
+ "build-depend": false
+ }
+ ],
+ "resource": [
+ {
+ "name": "DBI",
+ "url": "https://cpan.metacpan.org/authors/id/T/TI/TIMB/DBI-1.641.tar.gz"
+ },
+ {
+ "name": "DBD::mysql",
+ "url": "https://cpan.metacpan.org/authors/id/C/CA/CAPTTOFU/DBD-mysql-4.046.tar.gz"
+ },
+ {
+ "name": "boost",
+ "url": "https://downloads.sourceforge.net/project/boost/boost/1.59.0/boost_1_59_0.tar.bz2"
+ }
+ ],
+ "conflicts": [
+ {
+ "conflict": "percona-server",
+ "reason": null
+ }
+ ],
+ "patches": [],
+ "install": [
+ "cmake_args = %w[",
+ "-DBUILD_CONFIG=xtrabackup_release",
+ "-DCOMPILATION_COMMENT=Homebrew",
+ "-DINSTALL_MANDIR=share/man",
+ "-DWITH_MAN_PAGES=ON",
+ "]",
+ "ENV[\"LC_ALL\"] = \"en_US.UTF-8\"",
+ "(buildpath/\"boost_1_59_0\").install resource(\"boost\")",
+ "cmake_args << \"-DWITH_BOOST=#{buildpath}/boost_1_59_0\"",
+ "cmake_args.concat std_cmake_args",
+ "system \"cmake\", *cmake_args",
+ "system \"make\"",
+ "system \"make\", \"install\"",
+ "share.install \"share/man\"",
+ "rm_rf prefix/\"xtrabackup-test\" ",
+ "rm lib/\"libmysqlservices.a\"",
+ "rm lib/\"plugin/keyring_file.so\"",
+ "ENV.prepend_create_path \"PERL5LIB\", libexec/\"lib/perl5\"",
+ "if MacOS.version >= :mojave",
+ "resource(\"DBI\").stage do",
+ "system \"perl\", \"Makefile.PL\", \"INSTALL_BASE=#{libexec}\"",
+ "system \"make\", \"install\"",
+ "end"
+ ],
+ "version": "2.4.12",
+ "file": "percona-xtrabackup.rb"
+} \ No newline at end of file
diff --git a/homebrew/perconaxtrabackup/.make.sh-auto b/homebrew/perconaxtrabackup/.make.sh-auto
new file mode 100644
index 000000000..28bc17c96
--- /dev/null
+++ b/homebrew/perconaxtrabackup/.make.sh-auto
@@ -0,0 +1,19 @@
+pkg:setup
+cmake_args = %w[-DBUILD_CONFIG=xtrabackup_release -DCOMPILATION_COMMENT=Homebrew -DINSTALL_MANDIR=share/man -DWITH_MAN_PAGES=ON ]
+ENV["LC_ALL"] = "en_US.UTF-8"
+(buildpath/"boost_1_59_0").install resource("boost")
+cmake_args << "-DWITH_BOOST=#{buildpath}/boost_1_59_0"
+cmake_args.concat std_cmake_args
+cmake *cmake_args
+make
+make DESTDIR=${PKG_DEST} install
+share.install "share/man"
+rm_rf prefix/"xtrabackup-test"
+rm lib/"libmysqlservices.a"
+rm lib/"plugin/keyring_file.so"
+ENV.prepend_create_path "PERL5LIB", libexec/"lib/perl5"
+if MacOS.version >= :mojave
+resource("DBI").stage do
+perl Makefile.PL INSTALL_BASE=#{libexec}
+make DESTDIR=${PKG_DEST} install
+end
diff --git a/homebrew/perconaxtrabackup/_metadata/description b/homebrew/perconaxtrabackup/_metadata/description
new file mode 100644
index 000000000..bfe31a310
--- /dev/null
+++ b/homebrew/perconaxtrabackup/_metadata/description
@@ -0,0 +1 @@
+Open source hot backup tool for InnoDB and XtraDB databases
diff --git a/homebrew/perconaxtrabackup/_metadata/homepage b/homebrew/perconaxtrabackup/_metadata/homepage
new file mode 100644
index 000000000..010ac1f09
--- /dev/null
+++ b/homebrew/perconaxtrabackup/_metadata/homepage
@@ -0,0 +1 @@
+https://www.percona.com/software/mysql-database/percona-xtrabackup
diff --git a/homebrew/perconaxtrabackup/_metadata/name b/homebrew/perconaxtrabackup/_metadata/name
new file mode 100644
index 000000000..6be1e8412
--- /dev/null
+++ b/homebrew/perconaxtrabackup/_metadata/name
@@ -0,0 +1 @@
+PerconaXtrabackup
diff --git a/homebrew/perconaxtrabackup/_metadata/version b/homebrew/perconaxtrabackup/_metadata/version
new file mode 100644
index 000000000..cf95c0186
--- /dev/null
+++ b/homebrew/perconaxtrabackup/_metadata/version
@@ -0,0 +1 @@
+2.4.12
diff --git a/homebrew/perconaxtrabackup/download.sh b/homebrew/perconaxtrabackup/download.sh
new file mode 100755
index 000000000..48a49f36d
--- /dev/null
+++ b/homebrew/perconaxtrabackup/download.sh
@@ -0,0 +1 @@
+wget https://www.percona.com/downloads/XtraBackup/Percona-XtraBackup-2.4.12/source/tarball/percona-xtrabackup-2.4.12.tar.gz \ No newline at end of file