From dd9e96b72f93594c52eb002afe8a5c35ee599865 Mon Sep 17 00:00:00 2001 From: Denis Denisov Date: Sat, 1 Nov 2014 16:37:45 +0200 Subject: [PATCH] fix dav-ext-nginx-module #20 --- Formula/dav-ext-nginx-module.rb | 7 ------- Formula/nginx-full.rb | 4 ++++ 2 files changed, 4 insertions(+), 7 deletions(-) diff --git a/Formula/dav-ext-nginx-module.rb b/Formula/dav-ext-nginx-module.rb index 28e2a73..b9d0627 100644 --- a/Formula/dav-ext-nginx-module.rb +++ b/Formula/dav-ext-nginx-module.rb @@ -8,13 +8,6 @@ class DavExtNginxModule < Formula version "0.0.3" def install - unless build.include? "with-webdav" - onoe <<-EOS.undent - Error: WebDav Extended Module not work without webdav support in nginx. - Please use "--with-webdav" with nginx-full. - EOS - exit -1 - end (share+"dav-ext-nginx-module").install Dir["*"] end end diff --git a/Formula/nginx-full.rb b/Formula/nginx-full.rb index ac193d1..aa7584f 100644 --- a/Formula/nginx-full.rb +++ b/Formula/nginx-full.rb @@ -96,6 +96,10 @@ def self.third_party_modules raise "http-flood-detector-nginx-module: Stub Status module is required --with-status" end + if build.with? "dav-ext-module" and build.without? "webdav" + raise "dav-ext-nginx-module: WebDav Extended Module is required --with-webdav" + end + depends_on "pcre" depends_on "passenger" => :optional depends_on "geoip" => :optional