rollback madwifi addtion - won't build in this release
[build.git] / lxc.mk
1 #
2 # declare the packages to be built and their dependencies
3 # initial version from Mark Huang
4 # Mark Huang <mlhuang@cs.princeton.edu>
5 # Copyright (C) 2003-2006 The Trustees of Princeton University
6 # rewritten by Thierry Parmentelat - INRIA Sophia Antipolis
7 #
8 # see doc in Makefile  
9 #
10
11 #
12 # transforward: root context module for transparent port forwarding
13 #
14 transforward-MODULES := transforward
15 transforward-SPEC := transforward.spec
16 ALL += transforward
17 IN_NODEIMAGE += transforward
18
19 #
20 # procprotect: root context module for protecting against weaknesses in /proc
21 #
22 procprotect-MODULES := procprotect
23 procprotect-SPEC := procprotect.spec
24 ALL += procprotect
25 IN_NODEIMAGE += procprotect
26
27 #
28 # ipfw: root context module, and slice companion
29 #
30 ipfwroot-MODULES := ipfw
31 ipfwroot-SPEC := planetlab/ipfwroot.spec
32 ALL += ipfwroot
33 IN_NODEIMAGE += ipfwroot
34
35 ipfwslice-MODULES := ipfw
36 ipfwslice-SPEC := planetlab/ipfwslice.spec
37 ALL += ipfwslice
38
39 #
40 # NodeUpdate
41 #
42 nodeupdate-MODULES := nodeupdate
43 nodeupdate-SPEC := NodeUpdate.spec
44 ALL += nodeupdate
45 IN_NODEIMAGE += nodeupdate
46
47 #
48 # ipod
49 #
50 ipod-MODULES := PingOfDeath
51 ipod-SPEC := ipod.spec
52 ALL += ipod
53 IN_NODEIMAGE += ipod
54
55 #
56 # nodemanager
57 #
58 nodemanager-lib-MODULES := nodemanager
59 nodemanager-lib-SPEC := nodemanager-lib.spec
60 ALL += nodemanager-lib
61 IN_NODEIMAGE += nodemanager-lib
62
63 nodemanager-lxc-MODULES := nodemanager
64 nodemanager-lxc-SPEC := nodemanager-lxc.spec
65 ALL += nodemanager-lxc
66 IN_NODEIMAGE += nodemanager-lxc
67
68 #
69 # pl_sshd
70 #
71 sshd-MODULES := pl_sshd
72 sshd-SPEC := pl_sshd.spec
73 ALL += sshd
74 IN_NODEIMAGE += sshd
75
76 #
77 # codemux: Port 80 demux
78 #
79 codemux-MODULES := codemux
80 codemux-SPEC   := codemux.spec
81 ALL += codemux
82 IN_NODEIMAGE += codemux
83
84 #
85 # fprobe-ulog
86 #
87 fprobe-ulog-MODULES := fprobe-ulog
88 fprobe-ulog-SPEC := fprobe-ulog.spec
89 ALL += fprobe-ulog
90 IN_NODEIMAGE += fprobe-ulog
91
92 #
93 # libvirt
94 #
95 libvirt-MODULES := libvirt
96 libvirt-SPEC    := libvirt.spec
97 libvirt-BUILD-FROM-SRPM := yes
98 libvirt-DEVEL-RPMS += libxml2-devel gnutls-devel device-mapper-devel yajl-devel gettext 
99 libvirt-DEVEL-RPMS += python-devel libcap-ng-devel libpciaccess-devel radvd numactl-devel 
100 libvirt-DEVEL-RPMS += xhtml1-dtds libxslt libtasn1-devel systemtap-sdt-devel iptables-ipv6 augeas 
101 libvirt-DEVEL-RPMS += libudev-devel
102 libvirt-RPMFLAGS := --without storage-disk --without storage-iscsi --without storage-scsi \
103                         --without storage-fs --without storage-lvm \
104                         --without polkit --without sasl --without audit --with capng --with udev \
105                         --without netcf --without avahi --without sanlock \
106                         --without xen --without qemu --without hyperv --without phyp --without esx \
107                         --without libxl \
108                         --define 'packager PlanetLab'
109 ALL += libvirt
110 IN_NODEREPO += libvirt
111 IN_NODEIMAGE += libvirt
112
113 #
114 # DistributedRateLimiting
115 #
116 #DistributedRateLimiting-MODULES := DistributedRateLimiting
117 #DistributedRateLimiting-SPEC := DistributedRateLimiting.spec
118 #ALL += DistributedRateLimiting
119 #IN_NODEREPO += DistributedRateLimiting
120
121 #
122 # pf2slice
123 #
124 pf2slice-MODULES := pf2slice
125 pf2slice-SPEC := pf2slice.spec
126 ALL += pf2slice
127
128 ##
129 ## PlanetLab Mom: Cleans up your mess
130 ##
131 #mom-MODULES := Mom
132 #mom-SPEC := pl_mom.spec
133 #ALL += mom
134 #IN_NODEIMAGE += mom
135
136 #
137 # inotify-tools - local import
138 # rebuild this on centos5 (not found) - see yumexclude
139 #
140 local_inotify_tools=false
141 ifeq "$(DISTRONAME)" "centos5"
142 local_inotify_tools=true
143 endif
144
145 ifeq "$(DISTRONAME)" "sl6"
146 local_inotify_tools=true
147 endif
148
149 ifeq "$(local_inotify_tools)" "true"
150 inotify-tools-MODULES := inotify-tools
151 inotify-tools-SPEC := inotify-tools.spec
152 inotify-tools-BUILD-FROM-SRPM := yes
153 IN_NODEIMAGE += inotify-tools
154 ALL += inotify-tools
155 endif
156
157 #
158 # openvswitch
159 #
160 # openvswitch-MODULES := openvswitch
161 # openvswitch-SPEC := openvswitch.spec
162 # openvswitch-DEPEND-DEVEL-RPMS += kernel-devel
163 # IN_NODEIMAGE += openvswitch
164 # # build only on f14 as f16 has this natively
165 # ifeq "$(DISTRONAME)" "$(filter $(DISTRONAME),f14)"
166 # ALL += openvswitch
167 # endif
168
169 #
170 # vsys
171 #
172 vsys-MODULES := vsys
173 vsys-SPEC := vsys.spec
174 # ocaml-docs is not needed anymore but keep it on a tmp basis as some tags may still have it
175 vsys-DEVEL-RPMS += ocaml-ocamldoc ocaml-docs
176 ifeq "$(local_inotify_tools)" "true"
177 vsys-DEPEND-DEVEL-RPMS += inotify-tools inotify-tools-devel
178 endif
179 IN_NODEIMAGE += vsys
180 ALL += vsys
181
182 #
183 # vsyssh : installed in slivers
184 #
185 vsyssh-MODULES := vsys
186 vsyssh-SPEC := vsyssh.spec
187 IN_SLICEIMAGE += vsyssh
188 ALL += vsyssh
189
190 #
191 # vsys-scripts
192 #
193 vsys-scripts-MODULES := vsys-scripts
194 vsys-scripts-SPEC := vsys-scripts.spec
195 IN_NODEIMAGE += vsys-scripts
196 ALL += vsys-scripts
197
198 #
199 # plcapi
200 #
201 plcapi-MODULES := plcapi
202 plcapi-SPEC := PLCAPI.spec
203 ALL += plcapi
204 IN_MYPLC += plcapi
205
206 #
207 # drupal
208
209 drupal-MODULES := drupal
210 drupal-SPEC := drupal.spec
211 drupal-BUILD-FROM-SRPM := yes
212 ALL += drupal
213 IN_MYPLC += drupal
214
215 #
216 # use the plewww module instead
217 #
218 plewww-MODULES := plewww
219 plewww-SPEC := plewww.spec
220 ALL += plewww
221 IN_MYPLC += plewww
222
223 #
224 # www-register-wizard
225 #
226 www-register-wizard-MODULES := www-register-wizard
227 www-register-wizard-SPEC := www-register-wizard.spec
228 ALL += www-register-wizard
229 IN_MYPLC += www-register-wizard
230
231 #
232 # pcucontrol
233 #
234 pcucontrol-MODULES := pcucontrol
235 pcucontrol-SPEC := pcucontrol.spec
236 ALL += pcucontrol
237
238 #
239 # monitor
240 #
241 #monitor-MODULES := monitor
242 #monitor-SPEC := Monitor.spec
243 #monitor-DEVEL-RPMS += net-snmp net-snmp-devel
244 #ALL += monitor
245 #IN_NODEIMAGE += monitor
246
247 #
248 # PLC RT
249 #
250 plcrt-MODULES := PLCRT
251 plcrt-SPEC := plcrt.spec
252 ALL += plcrt
253
254 # f12 has 0.9-1 already
255 ifeq "$(DISTRONAME)" "$(filter $(DISTRONAME),f8 centos5)"
256 #
257 # pyopenssl
258 #
259 pyopenssl-MODULES := pyopenssl
260 pyopenssl-SPEC := pyOpenSSL.spec
261 pyopenssl-BUILD-FROM-SRPM := yes
262 ALL += pyopenssl
263 endif
264
265 #
266 # pyaspects
267 #
268 pyaspects-MODULES := pyaspects
269 pyaspects-SPEC := pyaspects.spec
270 pyaspects-BUILD-FROM-SRPM := yes
271 ALL += pyaspects
272
273 # sfa now uses the with statement that's not supported on python-2.4 - not even through __future__
274 # In addition we now use sqlalchemy and 0.5 as per f12 is not compatible with our model
275 build_sfa=true
276 ifeq "$(DISTRONAME)" "$(filter $(DISTRONAME),f8 f12 centos5)"
277 build_sfa=false
278 endif
279
280 ifeq "$(build_sfa)" "true"
281 #
282 # sfa - Slice Facility Architecture
283 #
284 sfa-MODULES := sfa
285 sfa-SPEC := sfa.spec
286 ALL += sfa
287
288 sface-MODULES := sface
289 sface-SPEC := sface.spec
290 ALL += sface
291 endif
292
293 #
294 # nodeconfig
295 #
296 nodeconfig-MODULES := nodeconfig
297 nodeconfig-SPEC := nodeconfig.spec
298 ALL += nodeconfig
299 IN_MYPLC += nodeconfig
300
301 #
302 # bootmanager
303 #
304 bootmanager-MODULES := bootmanager
305 bootmanager-SPEC := bootmanager.spec
306 ALL += bootmanager
307 IN_MYPLC += bootmanager
308
309 #
310 # pypcilib : used in bootcd
311
312 pypcilib-MODULES := pypcilib
313 pypcilib-SPEC := pypcilib.spec
314 ALL += pypcilib
315 IN_BOOTCD += pypcilib
316
317 #
318 # pyplnet
319 #
320 pyplnet-MODULES := pyplnet
321 pyplnet-SPEC := pyplnet.spec
322 ALL += pyplnet
323 IN_NODEIMAGE += pyplnet
324 IN_MYPLC += pyplnet
325 IN_BOOTCD += pyplnet
326
327 #
328 # OMF resource controller
329 #
330 omf-resctl-MODULES := omf
331 omf-resctl-SPEC := omf-resctl.spec
332 ALL += omf-resctl
333 IN_SLICEIMAGE += omf-resctl
334
335 #
336 # OMF exp controller
337 #
338 omf-expctl-MODULES := omf
339 omf-expctl-SPEC := omf-expctl.spec
340 ALL += omf-expctl
341
342 #
343 # bootcd
344 #
345 bootcd-MODULES := bootcd build
346 bootcd-SPEC := bootcd.spec
347 bootcd-DEPEND-PACKAGES := $(IN_BOOTCD)
348 bootcd-DEPEND-FILES := RPMS/yumgroups.xml
349 bootcd-RPMDATE := yes
350 ALL += bootcd
351 IN_MYPLC += bootcd
352
353 #
354 # images for slices
355 #
356 sliceimage-MODULES := sliceimage build
357 sliceimage-SPEC := sliceimage.spec
358 sliceimage-DEPEND-PACKAGES := $(IN_SLICEIMAGE)
359 sliceimage-DEPEND-FILES := RPMS/yumgroups.xml
360 sliceimage-RPMDATE := yes
361 ALL += sliceimage
362 IN_NODEIMAGE += sliceimage
363
364 #
365 # lxc-specific sliceimage initialization
366
367 lxc-sliceimage-MODULES  := sliceimage
368 lxc-sliceimage-SPEC     := lxc-sliceimage.spec
369 lxc-sliceimage-RPMDATE  := yes
370 ALL                     += lxc-sliceimage
371 IN_NODEIMAGE            += lxc-sliceimage
372
373 #
374 # nodeimage
375 #
376 nodeimage-MODULES := nodeimage build
377 nodeimage-SPEC := nodeimage.spec
378 nodeimage-DEPEND-PACKAGES := $(IN_NODEIMAGE)
379 nodeimage-DEPEND-FILES := RPMS/yumgroups.xml
380 nodeimage-RPMDATE := yes
381 ALL += nodeimage
382 IN_MYPLC += nodeimage
383
384 #
385 # noderepo
386 #
387 # all rpms resulting from packages marked as being in nodeimage and sliceimage
388 NODEREPO_RPMS = $(foreach package,$(IN_NODEIMAGE) $(IN_NODEREPO) $(IN_SLICEIMAGE),$($(package).rpms))
389 # replace space with +++ (specvars cannot deal with spaces)
390 SPACE=$(subst x, ,x)
391 NODEREPO_RPMS_3PLUS = $(subst $(SPACE),+++,$(NODEREPO_RPMS))
392
393 noderepo-MODULES := nodeimage
394 noderepo-SPEC := noderepo.spec
395 # package requires all embedded packages
396 noderepo-DEPEND-PACKAGES := $(IN_NODEIMAGE) $(IN_NODEREPO) $(IN_SLICEIMAGE)
397 noderepo-DEPEND-FILES := RPMS/yumgroups.xml
398 #export rpm list to the specfile
399 noderepo-SPECVARS = node_rpms_plus=$(NODEREPO_RPMS_3PLUS)
400 noderepo-RPMDATE := yes
401 ALL += noderepo
402 IN_MYPLC += noderepo
403
404 #
405 # slicerepo
406 #
407 # all rpms resulting from packages marked as being in vserver
408 SLICEREPO_RPMS = $(foreach package,$(IN_SLICEIMAGE),$($(package).rpms))
409 # replace space with +++ (specvars cannot deal with spaces)
410 SPACE=$(subst x, ,x)
411 SLICEREPO_RPMS_3PLUS = $(subst $(SPACE),+++,$(SLICEREPO_RPMS))
412
413 slicerepo-MODULES := nodeimage
414 slicerepo-SPEC := slicerepo.spec
415 # package requires all embedded packages
416 slicerepo-DEPEND-PACKAGES := $(IN_SLICEIMAGE)
417 slicerepo-DEPEND-FILES := RPMS/yumgroups.xml
418 #export rpm list to the specfile
419 slicerepo-SPECVARS = slice_rpms_plus=$(SLICEREPO_RPMS_3PLUS)
420 slicerepo-RPMDATE := yes
421 ALL += slicerepo
422
423 #
424 # MyPLC : lightweight packaging, dependencies are yum-installed in a vserver
425 #
426 myplc-MODULES := myplc
427 myplc-SPEC := myplc.spec
428 myplc-DEPEND-FILES := myplc-release RPMS/yumgroups.xml
429 ALL += myplc
430
431 # myplc-docs only contains docs for PLCAPI and NMAPI, but
432 # we still need to pull MyPLC, as it is where the specfile lies, 
433 # together with the utility script docbook2drupal.sh
434 myplc-docs-MODULES := myplc plcapi nodemanager monitor
435 myplc-docs-SPEC := myplc-docs.spec
436 ALL += myplc-docs
437
438 # using some other name than myplc-release, as this is a make target already
439 release-MODULES := myplc
440 release-SPEC := myplc-release.spec
441 release-RPMDATE := yes
442 ALL += release