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