From added50f10df32f329e55db1a0048e86bcf15854 Mon Sep 17 00:00:00 2001 From: Nathaniel Talbott Date: Wed, 2 Sep 2009 17:31:27 +0800 Subject: Better mysql server support Patch mysql_safe so it will run non-privileged. Write out plist for managing mysqld with launchctl. Add instructions on setting up db and launchctl script. Signed-off-by: Max Howell --- Library/Formula/mysql.rb | 42 +++++++++++++++++++++++++++++++++++++++--- 1 file changed, 39 insertions(+), 3 deletions(-) (limited to 'Library/Formula') diff --git a/Library/Formula/mysql.rb b/Library/Formula/mysql.rb index 662d8320d..75bfb5539 100644 --- a/Library/Formula/mysql.rb +++ b/Library/Formula/mysql.rb @@ -18,6 +18,10 @@ class Mysql "http://gist.github.com/raw/179616/bcbc9f185bbd353934c9379a253d23269c65170e/Diff"} + end + def install ENV['CXXFLAGS'] = ENV['CXXFLAGS'].gsub "-fomit-frame-pointer", "" ENV['CXXFLAGS'] += " -fno-omit-frame-pointer -felide-constructors" @@ -28,6 +32,7 @@ class Mysql + + + + KeepAlive + + Label + com.mysql.mysqld + Program + #{bin}/mysqld_safe + RunAtLoad + + UserName + #{`whoami`} + WorkingDirectory + /usr/local + + + EOPLIST end end -- cgit v1.2.3