Commit 92faa2836185d105f268993a5ce7a3b2c5b22e86

Authored by Jacob Vosmaer
1 parent 5efca807

Vendor the nginx software definition

Source:
https://github.com/opscode/omnibus-software/blob/2a89c313eb476ab62f2603bb5efdbde6c41dbecc/config/software/nginx.rb
Showing 1 changed file with 40 additions and 0 deletions   Show diff stats
config/software/nginx.rb 0 → 100644
... ... @@ -0,0 +1,40 @@
  1 +#
  2 +# Copyright:: Copyright (c) 2012-2014 Chef Software, Inc.
  3 +# License:: Apache License, Version 2.0
  4 +#
  5 +# Licensed under the Apache License, Version 2.0 (the "License");
  6 +# you may not use this file except in compliance with the License.
  7 +# You may obtain a copy of the License at
  8 +#
  9 +# http://www.apache.org/licenses/LICENSE-2.0
  10 +#
  11 +# Unless required by applicable law or agreed to in writing, software
  12 +# distributed under the License is distributed on an "AS IS" BASIS,
  13 +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
  14 +# See the License for the specific language governing permissions and
  15 +# limitations under the License.
  16 +#
  17 +
  18 +name "nginx"
  19 +default_version "1.4.4"
  20 +
  21 +dependency "pcre"
  22 +dependency "openssl"
  23 +
  24 +source :url => "http://nginx.org/download/nginx-#{version}.tar.gz",
  25 + :md5 => "5dfaba1cbeae9087f3949860a02caa9f"
  26 +
  27 +relative_path "nginx-#{version}"
  28 +
  29 +build do
  30 + command ["./configure",
  31 + "--prefix=#{install_dir}/embedded",
  32 + "--with-http_ssl_module",
  33 + "--with-http_stub_status_module",
  34 + "--with-ipv6",
  35 + "--with-debug",
  36 + "--with-ld-opt=-L#{install_dir}/embedded/lib",
  37 + "--with-cc-opt=\"-L#{install_dir}/embedded/lib -I#{install_dir}/embedded/include\""].join(" ")
  38 + command "make -j #{max_build_jobs}", :env => {"LD_RUN_PATH" => "#{install_dir}/embedded/lib"}
  39 + command "make install"
  40 +end
... ...