-
Notifications
You must be signed in to change notification settings - Fork 3
/
Copy pathbuildout.cfg
143 lines (123 loc) · 3.57 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
# ♀ Planet Venus for Plone
# ========================
#
# This buildout sets up and configures Planet Venus (an RSS aggregator) for
# Plone, the content management system. See the README.txt for more.
#
# —Sean Kelly, [email protected], Plone AI Team
[buildout]
admin-email = [email protected]
venus-user = apache
htdocs-directory = ${buildout:directory}/var/htdocs
eggs-directory = eggs
versions = versions
extensions =
buildout.bootstrap
buildout-versions
parts =
venus
theme
venus-config
httpd-config
crontab-config
update
feeds
python
# Venus
# -----
#
# Download Planet Venus. Don't put an md5sum here, because it changes with
# each download (thanks, Github).
[venus]
recipe = hexagonit.recipe.download
strip-top-level-dir = true
url = http://intertwingly.net/code/venus.tgz
# Theme
# -----
#
# Generate the configuration for the Plone Theme for Planet Venus. Note that
# Planet Venus expects the theme config file to be named "config.ini" and in
# a directory with its theme-relevant files.
[theme]
recipe = collective.recipe.template
input = ${buildout:directory}/etc/theme.cfg.in
output = ${buildout:directory}/theme/config.ini
# Venus Config
# ------------
#
# Generate the configuration for Planet Venus with our all Plone-relevant
# blogs. When Planet Venus runs, it will read this config file.
[venus-config]
recipe = collective.recipe.template
input = ${buildout:directory}/etc/venus.cfg.in
output = ${buildout:directory}/var/venus.cfg.top
# Apache HTTPD Config
# -------------------
#
# Generate a config snippet for Apache HTTPD that we expect to be "Include"d
# from a inside a VirtualHost block (under the demesne of OSUOSL).
#
# OSUOSL provides a wildcard include "conf/*", hence we put our generated
# HTTPD config file under a "conf" directory.
[httpd-config]
recipe = collective.recipe.template
input = ${buildout:directory}/etc/httpd.cfg.in
output = ${buildout:directory}/conf/httpd.conf
# Crontab Config
# --------------
#
# Generate the crontab file to be installed in /etc/cron.d
[crontab-config]
recipe = collective.recipe.template
input = ${buildout:directory}/etc/crontab.in
output = ${buildout:directory}/var/crontab
# Python
# ------
#
# Generate a Python interpreter with the libraries that Planet Venus expects.
# If we ever use django-style templates, add "django" to the eggs list. So
# far, we just use genshi templates.
[python]
recipe = z3c.recipe.scripts
interpreter = python
eggs =
genshi
lxml
# Update
# ------
#
# Generate a script that updates the feeds.
[update]
recipe = collective.recipe.template
dollar = $
input = ${buildout:directory}/etc/update.sh.in
mode = 755
output = ${buildout:bin-directory}/update.sh
# Feeds
# -----
#
# Update the list of feeds.
[feeds]
recipe = collective.recipe.cmd
on_install = true
on_update = true
uninstall_cmds = rm -f ${buildout:directory}/var/venus.cfg
cmds =
rm -f ${buildout:directory}/var/venus.cfg
cat ${buildout:directory}/var/venus.cfg.top ${buildout:directory}/feeds.cfg > ${buildout:directory}/var/venus.cfg
# Versions
# --------
#
# Pin down versions we know work to prevent getting bit on the bum in the
# future by futuristic bum biters.
[versions]
buildout-versions = 1.6
collective.recipe.cmd = 0.5
collective.recipe.template = 1.9
distribute = 0.6.19
Genshi = 0.6
hexagonit.recipe.download = 1.5.0
lxml = 2.3
z3c.recipe.scripts = 1.0.1
zc.buildout = 1.5.2
zc.recipe.egg = 1.3.2