From 11219fc0b5786a8607e108dffa246067eb0f2915 Mon Sep 17 00:00:00 2001 From: Michael Klishin Date: Thu, 21 Sep 2017 02:28:36 -0600 Subject: [PATCH] rabbitmq: download packages from Bintray (#18342) Currently the package is downloaded from rabbitmq.com/releases. Team RabbitMQ plans to turn it into a read-only archive and eventually shut it down. While it's not going to happen any time soon, we try to not reference or recommend it anywhere. Instead, the users are encouraged to use GitHub, Bintray or Package Cloud. Besides that, Bintray offers a CDN and better availability. While at it, I've noticed that OTP 20 is marked as unsupported. That's no longer correct: RabbitMQ officially supports OTP 20 as of 3.6.11 [1]. 1. https://groups.google.com/forum/#!searchin/rabbitmq-users/OTP$2020%7Csort:relevance/rabbitmq-users/_imbAavBYjY/ninEKhMYAgAJ --- Formula/rabbitmq.rb | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) diff --git a/Formula/rabbitmq.rb b/Formula/rabbitmq.rb index 8d16de2991..fd7613956e 100644 --- a/Formula/rabbitmq.rb +++ b/Formula/rabbitmq.rb @@ -1,14 +1,12 @@ class Rabbitmq < Formula desc "Messaging broker" homepage "https://www.rabbitmq.com" - url "https://www.rabbitmq.com/releases/rabbitmq-server/v3.6.12/rabbitmq-server-generic-unix-3.6.12.tar.xz" + url "https://dl.bintray.com/rabbitmq/binaries/rabbitmq-server-generic-unix-3.6.12.tar.xz" sha256 "1c20bcfbcea922f1ceb14c95d2ad1211add4e1b03ba8491405640c384ea5a8df" bottle :unneeded - # Incompatible with Erlang/OTP 20.0 - # See upstream issue from 23 Jun 2017 https://github.com/rabbitmq/rabbitmq-server/issues/1272 - depends_on "erlang@19" + depends_on "erlang" def install # Install the base files @@ -19,9 +17,9 @@ class Rabbitmq < Formula (var/"log/rabbitmq").mkpath # Correct SYS_PREFIX for things like rabbitmq-plugins + erlang = Formula["erlang"] inreplace sbin/"rabbitmq-defaults" do |s| s.gsub! "SYS_PREFIX=${RABBITMQ_HOME}", "SYS_PREFIX=#{HOMEBREW_PREFIX}" - erlang = Formula["erlang@19"] 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"}"