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