Skip to content
This repository was archived by the owner on Dec 2, 2020. It is now read-only.

Commit 257f351

Browse files
committed
Merge pull request #72 from boxen/mysql-5.6.27
mysql 5.6.27
2 parents 257eb25 + 34167a0 commit 257f351

File tree

2 files changed

+8
-9
lines changed

2 files changed

+8
-9
lines changed

data/Darwin.yaml

+1-1
Original file line numberDiff line numberDiff line change
@@ -14,4 +14,4 @@ mysql::port: "13306"
1414
mysql::socket: "%{::boxen::config::datadir}/socket"
1515

1616
mysql::package: boxen/brews/mysql
17-
mysql::version: 5.6.25
17+
mysql::version: 5.6.27

files/brews/mysql.rb

+7-8
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
class Mysql < Formula
2+
desc "Open source relational database management system"
23
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"
66

77
option :universal
88
option "with-tests", "Build with unit tests"
@@ -104,7 +104,7 @@ def install
104104

105105
# Don't create databases inside of the prefix!
106106
# See: https://github.com/Homebrew/homebrew/issues/4975
107-
rm_rf prefix+"data"
107+
rm_rf prefix/"data"
108108

109109
# Link the setup script into bin
110110
bin.install_symlink prefix/"scripts/mysql_install_db"
@@ -118,10 +118,8 @@ def install
118118

119119
bin.install_symlink prefix/"support-files/mysql.server"
120120

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"
125123
end
126124

127125
def post_install
@@ -170,6 +168,7 @@ def plist; <<-EOS.undent
170168
end
171169

172170
test do
171+
system "/bin/sh", "-n", "#{bin}/mysqld_safe"
173172
(prefix+"mysql-test").cd do
174173
system "./mysql-test-run.pl", "status"
175174
end

0 commit comments

Comments
 (0)