diff options
| author | Mike McQuaid | 2014-12-27 16:10:06 +0000 |
|---|---|---|
| committer | Mike McQuaid | 2014-12-27 16:31:47 +0000 |
| commit | 462b0cf70c6407a844d771699d9e55e1dfa19134 (patch) | |
| tree | 9fce9c7b07f220b41004ec6072afbec8cfcfbea9 /Library/Formula | |
| parent | eee83420c9dc56e6459cbe6a4f5b38f68b7c2f96 (diff) | |
| download | homebrew-462b0cf70c6407a844d771699d9e55e1dfa19134.tar.bz2 | |
memcached: fix strict audit failures.
Diffstat (limited to 'Library/Formula')
| -rw-r--r-- | Library/Formula/memcached.rb | 19 |
1 files changed, 12 insertions, 7 deletions
diff --git a/Library/Formula/memcached.rb b/Library/Formula/memcached.rb index 3eee33a25..f501c741a 100644 --- a/Library/Formula/memcached.rb +++ b/Library/Formula/memcached.rb @@ -1,5 +1,3 @@ -require "formula" - class Memcached < Formula homepage "http://memcached.org/" url "http://www.memcached.org/files/memcached-1.4.20.tar.gz" @@ -14,18 +12,21 @@ class Memcached < Formula depends_on "libevent" - option "enable-sasl", "Enable SASL support -- disables ASCII protocol!" - option "enable-sasl-pwdb", "Enable SASL with memcached's own plain text password db support -- disables ASCII protocol!" + option "with-sasl", "Enable SASL support -- disables ASCII protocol!" + option "with-sasl-pwdb", "Enable SASL with memcached's own plain text password db support -- disables ASCII protocol!" + + deprecated_option "enable-sasl" => "with-sasl" + deprecated_option "enable-sasl-pwdb" => "with-sasl-pwdb" conflicts_with "mysql-cluster", :because => "both install `bin/memcached`" def install args = ["--prefix=#{prefix}", "--disable-coverage"] - args << "--enable-sasl" if build.include? "enable-sasl" - args << "--enable-sasl-pwdb" if build.include? "enable-sasl-pwdb" + args << "--enable-sasl" if build.with? "sasl" + args << "--enable-sasl-pwdb" if build.with? "sasl-pwdb" system "./configure", *args - system "make install" + system "make", "install" end plist_options :manual => "#{HOMEBREW_PREFIX}/opt/memcached/bin/memcached" @@ -53,4 +54,8 @@ class Memcached < Formula </plist> EOS end + + test do + system "#{bin}/memcached", "-h" + end end |
