summaryrefslogtreecommitdiff
path: root/homebrew/rabbitmq
diff options
context:
space:
mode:
Diffstat (limited to 'homebrew/rabbitmq')
-rw-r--r--homebrew/rabbitmq/.beer29
-rw-r--r--homebrew/rabbitmq/.make.sh-auto10
-rw-r--r--homebrew/rabbitmq/_metadata/description1
-rw-r--r--homebrew/rabbitmq/_metadata/homepage1
-rw-r--r--homebrew/rabbitmq/_metadata/name1
-rw-r--r--homebrew/rabbitmq/_metadata/version1
-rwxr-xr-xhomebrew/rabbitmq/download.sh1
7 files changed, 44 insertions, 0 deletions
diff --git a/homebrew/rabbitmq/.beer b/homebrew/rabbitmq/.beer
new file mode 100644
index 000000000..29bdfe050
--- /dev/null
+++ b/homebrew/rabbitmq/.beer
@@ -0,0 +1,29 @@
+{
+ "name": "Rabbitmq",
+ "description": "Messaging broker",
+ "url": "https://github.com/rabbitmq/rabbitmq-server/releases/download/v3.7.14/rabbitmq-server-generic-unix-3.7.14.tar.xz",
+ "mirror": null,
+ "homepage": "https://www.rabbitmq.com",
+ "depends": [
+ {
+ "depend": "erlang",
+ "build-depend": false
+ }
+ ],
+ "resource": [],
+ "conflicts": [],
+ "patches": [],
+ "install": [
+ "prefix.install Dir[\"*\"]",
+ "(var/\"lib/rabbitmq\").mkpath",
+ "(var/\"log/rabbitmq\").mkpath",
+ "erlang = Formula[\"erlang\"]",
+ "inreplace sbin/\"rabbitmq-defaults\" do |s|",
+ "s.gsub! \"SYS_PREFIX=${RABBITMQ_HOME}\", \"SYS_PREFIX=#{HOMEBREW_PREFIX}\"",
+ "s.gsub! /^ERL_DIR=$/, \"ERL_DIR=#{erlang.opt_bin}/\"",
+ "s.gsub! \"CLEAN_BOOT_FILE=start_clean\", \"CLEAN_BOOT_FILE=#{erlang.opt_lib/\"erlang/bin/start_clean\"}\"",
+ "s.gsub! \"SASL_BOOT_FILE=start_sasl\", \"SASL_BOOT_FILE=#{erlang.opt_lib/\"erlang/bin/start_clean\"}\""
+ ],
+ "version": "3.7.14",
+ "file": "rabbitmq.rb"
+} \ No newline at end of file
diff --git a/homebrew/rabbitmq/.make.sh-auto b/homebrew/rabbitmq/.make.sh-auto
new file mode 100644
index 000000000..70db1684e
--- /dev/null
+++ b/homebrew/rabbitmq/.make.sh-auto
@@ -0,0 +1,10 @@
+pkg:setup
+prefix.install Dir["*"]
+(var/"lib/rabbitmq").mkpath
+(var/"log/rabbitmq").mkpath
+erlang = Formula["erlang"]
+inreplace sbin/"rabbitmq-defaults" do |s|
+s.gsub! "SYS_PREFIX=${RABBITMQ_HOME}", "SYS_PREFIX=#{HOMEBREW_PREFIX}"
+s.gsub! /^ERL_DIR=$/, "ERL_DIR=#{erlang.opt_bin}/"
+s.gsub! "CLEAN_BOOT_FILE=start_clean", "CLEAN_BOOT_FILE=#{erlang.opt_lib/"erlang/bin/start_clean"}"
+s.gsub! "SASL_BOOT_FILE=start_sasl", "SASL_BOOT_FILE=#{erlang.opt_lib/"erlang/bin/start_clean"}"
diff --git a/homebrew/rabbitmq/_metadata/description b/homebrew/rabbitmq/_metadata/description
new file mode 100644
index 000000000..e95c59e73
--- /dev/null
+++ b/homebrew/rabbitmq/_metadata/description
@@ -0,0 +1 @@
+Messaging broker
diff --git a/homebrew/rabbitmq/_metadata/homepage b/homebrew/rabbitmq/_metadata/homepage
new file mode 100644
index 000000000..b106b78e4
--- /dev/null
+++ b/homebrew/rabbitmq/_metadata/homepage
@@ -0,0 +1 @@
+https://www.rabbitmq.com
diff --git a/homebrew/rabbitmq/_metadata/name b/homebrew/rabbitmq/_metadata/name
new file mode 100644
index 000000000..9af23c5de
--- /dev/null
+++ b/homebrew/rabbitmq/_metadata/name
@@ -0,0 +1 @@
+Rabbitmq
diff --git a/homebrew/rabbitmq/_metadata/version b/homebrew/rabbitmq/_metadata/version
new file mode 100644
index 000000000..35c6ac517
--- /dev/null
+++ b/homebrew/rabbitmq/_metadata/version
@@ -0,0 +1 @@
+3.7.14
diff --git a/homebrew/rabbitmq/download.sh b/homebrew/rabbitmq/download.sh
new file mode 100755
index 000000000..da5cc9b12
--- /dev/null
+++ b/homebrew/rabbitmq/download.sh
@@ -0,0 +1 @@
+wget https://github.com/rabbitmq/rabbitmq-server/releases/download/v3.7.14/rabbitmq-server-generic-unix-3.7.14.tar.xz \ No newline at end of file