Skip to content

Commit

Permalink
fix dav-ext-nginx-module #20
Browse files Browse the repository at this point in the history
  • Loading branch information
denji committed Nov 1, 2014
1 parent 07d117a commit dd9e96b
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 7 deletions.
7 changes: 0 additions & 7 deletions Formula/dav-ext-nginx-module.rb
Expand Up @@ -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
4 changes: 4 additions & 0 deletions Formula/nginx-full.rb
Expand Up @@ -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
Expand Down

0 comments on commit dd9e96b

Please sign in to comment.