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
parent
781bc93007
commit
70eb68cd9a
|
@ -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
|
||||
|
||||
|
|
Loading…
Reference in New Issue