From 40d59d7009f2f2da1bf277d54831c31be2f4d396 Mon Sep 17 00:00:00 2001 From: Adam Vandenberg Date: Sun, 16 Jun 2013 08:06:32 -0700 Subject: mariadb: my.cnf edits apply to --client-only Closes #20533. --- Library/Formula/mariadb.rb | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) (limited to 'Library') diff --git a/Library/Formula/mariadb.rb b/Library/Formula/mariadb.rb index 37ba9e154..95a7c353b 100644 --- a/Library/Formula/mariadb.rb +++ b/Library/Formula/mariadb.rb @@ -89,6 +89,11 @@ class Mariadb < Formula system "make" system "make install" + # Fix my.cnf to point to #{etc} instead of /etc + inreplace "#{etc}/my.cnf" do |s| + s.gsub!("!includedir /etc/my.cnf.d", "!includedir #{etc}/my.cnf.d") + end + unless build.include? 'client-only' # Don't create databases inside of the prefix! # See: https://github.com/mxcl/homebrew/issues/4975 @@ -107,11 +112,6 @@ class Mariadb < Formula s.gsub!(/pidof/, 'pgrep') if MacOS.version >= :mountain_lion end - # Fix my.cnf to point to #{etc} instead of /etc - inreplace "#{etc}/my.cnf" do |s| - s.gsub!("!includedir /etc/my.cnf.d", "!includedir #{etc}/my.cnf.d") - end - ln_s "#{prefix}/support-files/mysql.server", bin end end -- cgit v1.2.3