aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorCarlos Borroto2011-04-01 17:40:20 -0400
committerAdam Vandenberg2011-04-01 15:19:30 -0700
commitd02df2462b180cbf55d3400d0e3c2c5352a9239e (patch)
treecebfb205d70ea7c987bfd0a1580dc9579925d1c3
parentc28b4e90f340b0928708e6d37aaa71394129f9ba (diff)
downloadhomebrew-d02df2462b180cbf55d3400d0e3c2c5352a9239e.tar.bz2
mysql - add --enable-local-infile option
Homebrew used this by default in 5.1, but it is a security risk so make it an option instead. Signed-off-by: Adam Vandenberg <flangy@gmail.com>
-rw-r--r--Library/Formula/mysql.rb6
1 files changed, 5 insertions, 1 deletions
diff --git a/Library/Formula/mysql.rb b/Library/Formula/mysql.rb
index 1dad913b9..705dfbe4d 100644
--- a/Library/Formula/mysql.rb
+++ b/Library/Formula/mysql.rb
@@ -14,7 +14,8 @@ class Mysql < Formula
[
['--with-tests', "Build with unit tests."],
['--with-embedded', "Build the embedded server."],
- ['--universal', "Make mysql a universal binary"]
+ ['--universal', "Make mysql a universal binary"],
+ ['--enable-local-infile', "Build with local infile loading support"]
]
end
@@ -40,6 +41,9 @@ class Mysql < Formula
# Make universal for bindings to universal applications
args << "-DCMAKE_OSX_ARCHITECTURES='ppc;i386'" if ARGV.include? '--universal'
+ # Build with local infile loading support
+ args << "-DENABLED_LOCAL_INFILE=1" if ARGV.include? '--enable-local-infile'
+
system "cmake", *args
system "make"
system "make install"