-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathbuildout.cfg
259 lines (226 loc) · 7.36 KB
/
buildout.cfg
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
# This is TyphoonAE's development buildout configuration.
[buildout]
develop = . src/bdbdatastore src/demo
extends = etc/versions.cfg
parts =
libevent
memcached
libmemcached
pylibmc
mongodb
bdbdatastore
rabbitmq
celery
ejabberd
ejabberd-config
demo
typhoonae
python
tests
pcre
nginx-upload
nginx-push
nginx
nginxctl
default-server-config
superlance
supervisor
supervisor-config
sphinx
appcfgd-ssl-certificate
versions = versions
allow-picked-versions = false
unzip = true
[libevent]
recipe = zc.recipe.cmmi
url = http://www.monkey.org/~provos/libevent-2.0.10-stable.tar.gz
[memcached]
recipe = zc.recipe.cmmi
url = http://memcached.googlecode.com/files/memcached-1.4.5.tar.gz
extra_options = --with-libevent=${libevent:location} --bindir=${buildout:directory}/bin
environment =
CFLAGS=-I${libevent:location}/include
LDFLAGS=-L${libevent:location}/lib
[libmemcached]
recipe = zc.recipe.cmmi
url = http://launchpadlibrarian.net/66527034/libmemcached-0.48.tar.gz
extra_options = --with-memcached=${buildout:directory}/bin/memcached
[pylibmc]
recipe = zc.recipe.egg:custom
egg = pylibmc
include-dirs = ${libmemcached:location}/include
library-dirs = ${libmemcached:location}/lib
rpath = ${libmemcached:location}/lib
[mongodb]
recipe = rod.recipe.mongodb
darwin-32bit-url = http://fastdl.mongodb.org/osx/mongodb-osx-i386-2.0.2.tgz
darwin-64bit-url = http://fastdl.mongodb.org/osx/mongodb-osx-x86_64-2.0.2.tgz
linux2-32bit-url = http://fastdl.mongodb.org/linux/mongodb-linux-i686-2.0.2.tgz
linux2-64bit-url = http://fastdl.mongodb.org/linux/mongodb-linux-x86_64-2.0.2.tgz
[bdbdatastore]
recipe = collective.recipe.cmd:py
on_install = true
cmds =
>>> d = os.path.join('${buildout:directory}', 'parts', 'bdbdatastore')
>>> if not os.path.isdir(d):
... os.mkdir(d)
>>> from zc.buildout.download import Download
>>> download = Download()
>>> download('http://cloud.github.com/downloads/Arachnid/bdbdatastore/bdbdatastore-0.2.2.jar', path=os.path.join(d, 'bdbdatastore-0.2.2.jar'))
[rabbitmq]
recipe = rod.recipe.rabbitmq
url = http://www.rabbitmq.com/releases/rabbitmq-server/v2.5.0/rabbitmq-server-2.5.0.tar.gz
[celery]
recipe = zc.recipe.egg
eggs =
celery
${typhoonae:eggs}
extra-paths =
${typhoonae:extra-paths}
scripts =
celeryctl
celeryd
camqadm
celeryev
celeryd-multi
celerybeat
[ejabberd]
recipe = rod.recipe.ejabberd
url = http://www.process-one.net/downloads/ejabberd/2.1.8/ejabberd-2.1.8.tar.gz
[ejabberd-config]
recipe = collective.recipe.template
input = ${buildout:directory}/etc/ejabberd.cfg.in
output = ${buildout:directory}/etc/ejabberd.cfg
[demo]
recipe = rod.recipe.appengine
eggs = demo
zip-packages = False
url = http://googleappengine.googlecode.com/files/google_appengine_1.6.0.zip
server-script = dev_appserver
use_setuptools_pkg_resources = True
#patch = ${buildout:directory}/src/patches/google_appengine_1.4.0_unicode_email.patch
patch = ${buildout:directory}/src/patches/google_appengine_1.6.0_using_sdk+appcfg_nocheck_cert.patch
[typhoonae]
recipe = zc.recipe.egg
eggs =
PIL
bdbdatastore
typhoonae [amqp]
typhoonae [appcfg]
typhoonae [celery]
typhoonae [memcached]
typhoonae [mongo]
typhoonae [mysql]
typhoonae [websocket]
typhoonae [xmpp]
extra-paths =
${buildout:directory}/etc
${buildout:directory}/parts/google_appengine
${buildout:directory}/parts/google_appengine/lib/antlr3
${buildout:directory}/parts/google_appengine/lib/django_0_96
${buildout:directory}/parts/google_appengine/lib/fancy_urllib
${buildout:directory}/parts/google_appengine/lib/ipaddr
${buildout:directory}/parts/google_appengine/lib/webob
${buildout:directory}/parts/google_appengine/lib/whoosh
${buildout:directory}/parts/google_appengine/lib/yaml/lib
${buildout:directory}/parts/google_appengine/lib/simplejson
${buildout:directory}/parts/google_appengine/lib/graphy
[python]
recipe = zc.recipe.egg
eggs =
${typhoonae:eggs}
extra-paths =
${typhoonae:extra-paths}
interpreter = python
scripts = python
[tests]
recipe = zc.recipe.egg
eggs =
${typhoonae:eggs}
coverage
nose
extra-paths =
${typhoonae:extra-paths}
[pcre]
recipe = zc.recipe.cmmi
url = ftp://ftp.csx.cam.ac.uk/pub/software/programming/pcre/pcre-8.21.tar.gz
[nginx-upload]
recipe = collective.recipe.cmd:py
on_install = true
cmds =
>>> import subprocess, sys
>>> from zc.buildout.download import Download
>>> cache = os.path.join('${buildout:directory}', 'downloads')
>>> download = Download(cache=cache)
>>> path, is_temp = download('http://www.grid.net.ru/nginx/download/nginx_upload_module-2.2.0.tar.gz')
>>> os.chdir("${buildout:directory}/parts")
>>> subprocess.call(['tar', 'xvzf', path])
[nginx-push]
recipe = collective.recipe.cmd:py
on_install = true
cmds =
>>> import subprocess, sys
>>> from zc.buildout.download import Download
>>> cache = os.path.join('${buildout:directory}', 'downloads')
>>> download = Download(cache=cache)
>>> path, is_temp = download('http://pushmodule.slact.net/downloads/nginx_http_push_module-0.692.tar.gz')
>>> os.chdir("${buildout:directory}/parts")
>>> subprocess.call(['tar', 'xvzf', path])
[nginx]
recipe = zc.recipe.cmmi
url = http://sysoev.ru/nginx/nginx-0.8.54.tar.gz
extra_options = --with-cc-opt=-I${pcre:location}/include --with-ld-opt=-L${pcre:location}/lib --with-http_ssl_module --add-module=${buildout:directory}/parts/nginx_upload_module-2.2.0 --add-module=${buildout:directory}/parts/nginx_http_push_module-0.692
[nginxctl]
recipe = gocept.nginx
nginx = nginx
configuration =
daemon off;
worker_processes 4;
events {
worker_connections 1024;
}
http {
include ${nginx:location}/conf/mime.types;
default_type application/octet-stream;
sendfile on;
keepalive_timeout 65;
server_names_hash_bucket_size 128;
# Enable gzip compression
gzip on;
gzip_http_version 1.0;
gzip_comp_level 2;
gzip_proxied any;
gzip_min_length 1100;
gzip_buffers 16 8k;
gzip_types text/plain text/html text/css application/x-javascript text/xml application/xml application/xml+rss text/javascript;
# Some version of IE 6 don't handle compression well on some
# mime-types, so just disable for them
gzip_disable "MSIE [1-6].(?!.*SV1)";
# Set a vary header so downstream proxies don't send cached gzipped
# content to IE6
gzip_vary on;
include ${buildout:directory}/etc/*-nginx.conf;
}
[default-server-config]
recipe = collective.recipe.template
input = ${buildout:directory}/etc/server.conf.in
output = ${buildout:directory}/etc/default-nginx.conf
[superlance]
recipe = zc.recipe.egg
[supervisor]
recipe = zc.recipe.egg
[supervisor-config]
recipe = collective.recipe.template
input = ${buildout:directory}/etc/supervisord.conf.in
output = ${buildout:directory}/etc/supervisord.conf
[sphinx]
recipe = zc.recipe.egg
eggs =
${typhoonae:eggs}
Sphinx
extra-paths =
${typhoonae:extra-paths}
[appcfgd-ssl-certificate]
recipe = collective.recipe.cmd
on_install = true
cmds = openssl req -new -newkey rsa:1024 -days 365 -nodes -x509 -subj "/C=US/CN=typhoonae" -keyout ${buildout:directory}/etc/ssl/appcfgd.key -out ${buildout:directory}/etc/ssl/appcfgd.cert