buildout.cfg 3.93 KB
Newer Older
1
[buildout]
2
extends =
3
  ../coreutils/buildout.cfg
4
  ../git/buildout.cfg
5 6
  ../libexpat/buildout.cfg
  ../openssl/buildout.cfg
7
  ../patch/buildout.cfg
8 9
  ../pcre/buildout.cfg
  ../zlib/buildout.cfg
10 11

parts = nginx-output
12

13
[nginx-common]
14
recipe = slapos.recipe.cmmi
15
shared = true
16 17
url = http://nginx.org/download/nginx-1.10.1.tar.gz
md5sum = 088292d9caf6059ef328aa7dda332e44
18 19 20 21
patch-options = -p0
patch-binary = ${patch:location}/bin/patch
patches =
  http://nginx.org/download/patch.2017.ranges.txt#40bf9f37c881cb3b10cfefd84ca92f6a
22
  ${:_profile_base_location_}/fix-gcc7-implicit-fallthrough-errors.patch
23 24 25

[nginx]
<= nginx-common
Cédric de Saint Martin's avatar
Cédric de Saint Martin committed
26 27 28
configure-options=
  --with-ipv6
  --with-http_ssl_module
Kirill Smelkov's avatar
Kirill Smelkov committed
29
  --with-http_v2_module
30
  --with-http_gzip_static_module
iv's avatar
iv committed
31
  --with-http_realip_module
32 33
  --with-mail
  --with-mail_ssl_module
34 35
  --with-ld-opt="-L ${openssl-1.0:location}/lib -L ${pcre:location}/lib -L ${zlib:location}/lib -Wl,-rpath=${openssl-1.0:location}/lib -Wl,-rpath=${pcre:location}/lib -Wl,-rpath=${zlib:location}/lib"
  --with-cc-opt="-I ${openssl-1.0:location}/include -I ${pcre:location}/include -I ${zlib:location}/include"
Cédric de Saint Martin's avatar
Cédric de Saint Martin committed
36

37
[nginx-dav-ext-module]
38
recipe = hexagonit.recipe.download
39
ignore-existing = true
40
url = https://github.com/arut/nginx-dav-ext-module/archive/v0.0.3.tar.gz
41
strip-top-level-dir = true
42
md5sum = 2cb502dbda335be4ebd5fed0b3182bae
43 44 45
mode = 0644

[nginx-webdav]
46
<= nginx-common
47 48 49
configure-options =
  --with-ipv6
  --with-http_ssl_module
Kirill Smelkov's avatar
Kirill Smelkov committed
50
  --with-http_v2_module
51
  --with-http_gzip_static_module
52 53
  --with-mail
  --with-mail_ssl_module
54
  --error-log-path=var/log/nginx.error.log
55 56
  --with-ld-opt=" -L ${libexpat:location}/lib -L ${openssl-1.0:location}/lib -L ${pcre:location}/lib -L ${zlib:location}/lib -Wl,-rpath=${libexpat:location}/lib -Wl,-rpath=${openssl-1.0:location}/lib -Wl,-rpath=${pcre:location}/lib -Wl,-rpath=${zlib:location}/lib"
  --with-cc-opt="-I ${libexpat:location}/include -I ${openssl-1.0:location}/include -I ${pcre:location}/include -I ${zlib:location}/include"
57
  --with-http_dav_module 
58
  --add-module='${nginx-dav-ext-module:location}'
59

60 61 62 63 64 65 66 67 68
[nginx-output]
# Shared binary location to ease migration
recipe = plone.recipe.command
stop-on-error = true
update-command = ${:command}
command = ${coreutils-output:test} -x ${:nginx} -a -f ${:mime}
nginx = ${nginx:location}/sbin/nginx
mime = ${nginx:location}/conf/mime.types

Cédric de Saint Martin's avatar
Cédric de Saint Martin committed
69 70
[hexaglobe-nginx-module]
recipe = hexagonit.recipe.download
71
ignore-existing = true
Cédric de Saint Martin's avatar
Cédric de Saint Martin committed
72 73 74 75 76 77 78 79 80 81
url = http://easicloud-p.cdn.hexaglobe.net/nginx-easicloud.tar.gz
md5sum = 57fe2ceb09740f22b5b1023f29889e0e
strip-top-level-dir = true

[nginx-enable-sub]
# Used by Hexaglobe for watermarking
<= nginx
configure-options=
  --with-ipv6
  --with-http_ssl_module
82 83
  --with-ld-opt="-L ${zlib:location}/lib -L ${openssl-1.0:location}/lib -L ${pcre:location}/lib  -Wl,-rpath=${pcre:location}/lib -Wl,-rpath=${zlib:location}/lib -Wl,-rpath=${openssl-1.0:location}/lib"
  --with-cc-opt="-I ${pcre:location}/include -I ${openssl-1.0:location}/include -I ${zlib:location}/include"
Cédric de Saint Martin's avatar
Cédric de Saint Martin committed
84 85
  --add-module=${hexaglobe-nginx-module:location}/sub_module
# --add-module=${hexaglobe-nginx-module:location}/nginx-upstream-fair
86 87 88 89 90 91 92 93 94 95 96 97

[nginx-push-stream-module]
recipe = slapos.recipe.build:gitclone
repository = https://github.com/wandenberg/nginx-push-stream-module.git
revision = 3d3a204177d3a7ab8a2858e04e792a6d11bf133f
git-executable = ${git:location}/bin/git

[nginx-push-stream]
<= nginx
configure-options=
  --with-ipv6
  --with-http_ssl_module
98 99
  --with-http_v2_module
  --with-http_gzip_static_module
100
  --with-ld-opt="-L ${zlib:location}/lib -L ${openssl-1.0:location}/lib -L ${pcre:location}/lib  -Wl,-rpath=${pcre:location}/lib -Wl,-rpath=${zlib:location}/lib -Wl,-rpath=${openssl-1.0:location}/lib"
101
  --with-cc-opt="-I ${pcre:location}/include -I ${openssl-1.0:location}/include -I ${zlib:location}/include -Wno-error"
102 103 104 105 106 107
  --add-module=${nginx-push-stream-module:location}

[nginx-push-stream-output]
<= nginx-output
nginx = ${nginx-push-stream:location}/sbin/nginx
mime = ${nginx-push-stream:location}/conf/mime.types