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

Commit

Permalink
Merge pull request #72 from boxen/mysql-5.6.27
Browse files Browse the repository at this point in the history
mysql 5.6.27
  • Loading branch information
MikeMcQuaid committed Nov 24, 2015
2 parents 257eb25 + 34167a0 commit 257f351
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 9 deletions.
2 changes: 1 addition & 1 deletion data/Darwin.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -14,4 +14,4 @@ mysql::port: "13306"
mysql::socket: "%{::boxen::config::datadir}/socket"

mysql::package: boxen/brews/mysql
mysql::version: 5.6.25
mysql::version: 5.6.27
15 changes: 7 additions & 8 deletions files/brews/mysql.rb
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
class Mysql < Formula
desc "Open source relational database management system"
homepage "https://dev.mysql.com/doc/refman/5.6/en/"
url "https://cdn.mysql.com/Downloads/MySQL-5.6/mysql-5.6.25.tar.gz"
mirror "http://downloads.sourceforge.net/project/mysql.mirror/MySQL%205.6.25/mysql-5.6.25.tar.gz"
sha256 "15079c0b83d33a092649cbdf402c9225bcd3f33e87388407be5cdbf1432c7fbd"
url "https://cdn.mysql.com/Downloads/MySQL-5.6/mysql-5.6.27.tar.gz"
sha256 "8356bba23f3f6c0c2d4806110c41d1c4d6a4b9c50825e11c5be4bbee2b20b71d"

option :universal
option "with-tests", "Build with unit tests"
Expand Down Expand Up @@ -104,7 +104,7 @@ def install

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

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

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

# Move mysqlaccess to libexec
libexec.mkpath
mv "#{bin}/mysqlaccess", libexec
mv "#{bin}/mysqlaccess.conf", libexec
libexec.install bin/"mysqlaccess"
libexec.install bin/"mysqlaccess.conf"
end

def post_install
Expand Down Expand Up @@ -170,6 +168,7 @@ def plist; <<-EOS.undent
end

test do
system "/bin/sh", "-n", "#{bin}/mysqld_safe"
(prefix+"mysql-test").cd do
system "./mysql-test-run.pl", "status"
end
Expand Down

0 comments on commit 257f351

Please sign in to comment.