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>
master
dinkypumpkin 2011-04-13 13:17:59 +01:00 committed by Adam Vandenberg
parent 781bc93007
commit 70eb68cd9a
1 changed files with 5 additions and 1 deletions

View File

@ -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