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

parts = nginx-output
11

12
[nginx-common]
13
recipe = slapos.recipe.cmmi
14 15
url = http://nginx.org/download/nginx-1.9.4.tar.gz
md5sum = 27322fbb4b265c0e0cc548f5e6b7f201
16 17 18

[nginx]
<= nginx-common
Cédric de Saint Martin's avatar
Cédric de Saint Martin committed
19 20 21
configure-options=
  --with-ipv6
  --with-http_ssl_module
22 23
  --with-mail
  --with-mail_ssl_module
24 25
  --with-ld-opt="-L ${openssl:location}/lib -L ${pcre:location}/lib -L ${zlib:location}/lib -Wl,-rpath=${openssl:location}/lib -Wl,-rpath=${pcre:location}/lib -Wl,-rpath=${zlib:location}/lib"
  --with-cc-opt="-I ${openssl:location}/include -I ${pcre:location}/include -I ${zlib:location}/include"
Cédric de Saint Martin's avatar
Cédric de Saint Martin committed
26

27
[nginx-dav-ext-module]
28
recipe = hexagonit.recipe.download
29
url = https://github.com/arut/nginx-dav-ext-module/archive/v0.0.3.tar.gz
30
strip-top-level-dir = true
31
md5sum = 2cb502dbda335be4ebd5fed0b3182bae
32 33 34
mode = 0644

[nginx-webdav]
35
<= nginx-common
36 37 38 39 40
configure-options =
  --with-ipv6
  --with-http_ssl_module
  --with-mail
  --with-mail_ssl_module
41
  --error-log-path=var/log/nginx.error.log
42 43
  --with-ld-opt=" -L ${libexpat:location}/lib -L ${openssl:location}/lib -L ${pcre:location}/lib -L ${zlib:location}/lib -Wl,-rpath=${libexpat:location}/lib -Wl,-rpath=${openssl:location}/lib -Wl,-rpath=${pcre:location}/lib -Wl,-rpath=${zlib:location}/lib"
  --with-cc-opt="-I ${libexpat:location}/include -I ${openssl:location}/include -I ${pcre:location}/include -I ${zlib:location}/include"
44
  --with-http_dav_module 
45
  --add-module='${nginx-dav-ext-module:location}'
46

47 48 49 50 51 52 53 54 55
[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
56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71
[hexaglobe-nginx-module]
recipe = hexagonit.recipe.download
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
  --with-ld-opt="-L ${zlib:location}/lib -L ${openssl:location}/lib -L ${pcre:location}/lib  -Wl,-rpath=${pcre:location}/lib -Wl,-rpath=${zlib:location}/lib -Wl,-rpath=${openssl:location}/lib"
  --with-cc-opt="-I ${pcre:location}/include -I ${openssl:location}/include -I ${zlib:location}/include"
  --add-module=${hexaglobe-nginx-module:location}/sub_module
# --add-module=${hexaglobe-nginx-module:location}/nginx-upstream-fair
72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91

[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
  --with-ld-opt="-L ${zlib:location}/lib -L ${openssl:location}/lib -L ${pcre:location}/lib  -Wl,-rpath=${pcre:location}/lib -Wl,-rpath=${zlib:location}/lib -Wl,-rpath=${openssl:location}/lib"
  --with-cc-opt="-I ${pcre:location}/include -I ${openssl:location}/include -I ${zlib:location}/include"
  --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