1
1
class Mysql < Formula
2
+ desc "Open source relational database management system"
2
3
homepage "https://dev.mysql.com/doc/refman/5.6/en/"
3
- url "https://cdn.mysql.com/Downloads/MySQL-5.6/mysql-5.6.25.tar.gz"
4
- mirror "http://downloads.sourceforge.net/project/mysql.mirror/MySQL%205.6.25/mysql-5.6.25.tar.gz"
5
- sha256 "15079c0b83d33a092649cbdf402c9225bcd3f33e87388407be5cdbf1432c7fbd"
4
+ url "https://cdn.mysql.com/Downloads/MySQL-5.6/mysql-5.6.27.tar.gz"
5
+ sha256 "8356bba23f3f6c0c2d4806110c41d1c4d6a4b9c50825e11c5be4bbee2b20b71d"
6
6
7
7
option :universal
8
8
option "with-tests" , "Build with unit tests"
@@ -104,7 +104,7 @@ def install
104
104
105
105
# Don't create databases inside of the prefix!
106
106
# See: https://github.com/Homebrew/homebrew/issues/4975
107
- rm_rf prefix + "data"
107
+ rm_rf prefix / "data"
108
108
109
109
# Link the setup script into bin
110
110
bin . install_symlink prefix /"scripts/mysql_install_db"
@@ -118,10 +118,8 @@ def install
118
118
119
119
bin . install_symlink prefix /"support-files/mysql.server"
120
120
121
- # Move mysqlaccess to libexec
122
- libexec . mkpath
123
- mv "#{ bin } /mysqlaccess" , libexec
124
- mv "#{ bin } /mysqlaccess.conf" , libexec
121
+ libexec . install bin /"mysqlaccess"
122
+ libexec . install bin /"mysqlaccess.conf"
125
123
end
126
124
127
125
def post_install
@@ -170,6 +168,7 @@ def plist; <<-EOS.undent
170
168
end
171
169
172
170
test do
171
+ system "/bin/sh" , "-n" , "#{ bin } /mysqld_safe"
173
172
( prefix +"mysql-test" ) . cd do
174
173
system "./mysql-test-run.pl" , "status"
175
174
end
0 commit comments