aboutsummaryrefslogtreecommitdiffstats
path: root/Library/Formula
diff options
context:
space:
mode:
authordinkypumpkin2011-04-13 13:17:59 +0100
committerAdam Vandenberg2011-04-13 06:54:46 -0700
commit46b835bf73a778141e283b8c62ea8c14035dca74 (patch)
treefad5cf89fe459d07302cf12fcd696a7c3ef57b57 /Library/Formula
parent4582838385d0eee1a84872202da4f0420d64c762 (diff)
downloadhomebrew-46b835bf73a778141e283b8c62ea8c14035dca74.tar.bz2
mysql: added pidof dependency, changed PATH in mysql.server
1. Added dependency on pidof. This is necessary for "mysql.server status" to work fully. 2. Added #{HOMEBREW_PREFIX}/bin to PATH in mysql.server so that it can find Homebrew-installed pidof. Signed-off-by: Adam Vandenberg <flangy@gmail.com>
Diffstat (limited to 'Library/Formula')
-rw-r--r--Library/Formula/mysql.rb6
1 files changed, 5 insertions, 1 deletions
diff --git a/Library/Formula/mysql.rb b/Library/Formula/mysql.rb
index 0f80dff47..f34b053a0 100644
--- a/Library/Formula/mysql.rb
+++ b/Library/Formula/mysql.rb
@@ -7,6 +7,7 @@ class Mysql < Formula
depends_on 'cmake' => :build
depends_on 'readline'
+ depends_on 'pidof'
fails_with_llvm "https://github.com/mxcl/homebrew/issues/issue/144"
@@ -65,7 +66,10 @@ class Mysql < Formula
# Link the setup script into bin
ln_s prefix+'scripts/mysql_install_db', bin+'mysql_install_db'
- # Link the startup script into bin
+ # Fix up the control script and link into bin
+ inreplace "#{prefix}/support-files/mysql.server" do |s|
+ s.gsub!(/^(PATH=".*)(")/, "\\1:#{HOMEBREW_PREFIX}/bin\\2")
+ end
ln_s "#{prefix}/support-files/mysql.server", bin
end