# # Copyright 2012-2014 Chef Software, Inc. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in writing, software # distributed under the License is distributed on an "AS IS" BASIS, # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. # See the License for the specific language governing permissions and # limitations under the License. # name "nginx" default_version "1.8.0" dependency "pcre" dependency "openssl" source url: "http://nginx.org/download/nginx-#{version}.tar.gz" version("1.4.4") { source md5: "5dfaba1cbeae9087f3949860a02caa9f" } version("1.4.7") { source md5: "aee151d298dcbfeb88b3f7dd3e7a4d17" } version("1.6.3") { source md5: "ea813aee2c344c2f5b66cdb24a472738" } version("1.8.0") { source md5: "3ca4a37931e9fa301964b8ce889da8cb" } relative_path "nginx-#{version}" build do env = with_standard_compiler_flags(with_embedded_path) command "./configure" \ " --prefix=#{install_dir}/embedded" \ " --with-http_ssl_module" \ " --with-http_stub_status_module" \ " --with-ipv6" \ " --with-debug" \ " --with-cc-opt=\"-L#{install_dir}/embedded/lib -I#{install_dir}/embedded/include\"" \ " --with-ld-opt=-L#{install_dir}/embedded/lib", env: env make "-j #{workers}", env: env make "install", env: env # Ensure the logs directory is available on rebuild from git cache touch "#{install_dir}/embedded/logs/.gitkeep" end
# | Change | User | Description | Committed | |
---|---|---|---|---|---|
#1 | 16289 | Doug Scheirer | merge from main | ||
//guest/perforce_software/helix-web-services/main/source/packaging/omnibus-helix-web-services/config/software/nginx.rb | |||||
#1 | 16285 | tjuricek |
Deploy/install improvements - Include nginx in Omnibus distribution, do not conflict with system nginx install - Use old-school sysvinit scripts - Create 'hws_launch' wrapper to initiate nginx and unicorn, which also reads system config file for settings |