homebrew mariadb formulae to build the aws key management plugin
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
class Mariadb < Formula | |
desc "Drop-in replacement for MySQL" | |
homepage "https://mariadb.org/" | |
url "https://downloads.mariadb.org/f/mariadb-10.3.10/source/mariadb-10.3.10.tar.gz" | |
sha256 "57767c048982811c7ab21d8527f6f36aa897386e8c7235f11b5505a924d68eda" | |
bottle do | |
sha256 "eec1102078f2ed74ee9e4f4fdba5a2b1c41d883b4499309034690b1aa7ea303a" => :mojave | |
sha256 "936859611a5206ff3f13cb99ec69eb1344bab3734a14ad8a35ff276dac6f83a4" => :high_sierra | |
sha256 "e946558c449fdb9686df3f82fdb5ce7ab192f2ccf0d88f18ece27a51932a2000" => :sierra | |
end | |
depends_on "cmake" => :build | |
depends_on "aws-sdk-cpp" => :build | |
depends_on "openssl" | |
conflicts_with "mysql", "mysql-cluster", "percona-server", | |
:because => "mariadb, mysql, and percona install the same binaries." | |
conflicts_with "mysql-connector-c", | |
:because => "both install MySQL client libraries" | |
conflicts_with "mytop", :because => "both install `mytop` binaries" | |
conflicts_with "mariadb-connector-c", | |
:because => "both install plugins" | |
def install | |
# Set basedir and ldata so that mysql_install_db can find the server | |
# without needing an explicit path to be set. This can still | |
# be overridden by calling --basedir= when calling. | |
inreplace "scripts/mysql_install_db.sh" do |s| | |
s.change_make_var! "basedir", "\"#{prefix}\"" | |
s.change_make_var! "ldata", "\"#{var}/mysql\"" | |
end | |
# -DINSTALL_* are relative to prefix | |
args = %W[ |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment