add python-nose for building libvirt-1.2.11
[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 ### the madwifi drivers ship with fedora16's kernel rpm
12
13 #
14 # lxc-userspace: scripts for entering containers
15 #
16 lxc-userspace-MODULES := lxc-userspace
17 lxc-userspace-SPEC := lxc-userspace.spec
18 ALL += lxc-userspace
19 IN_NODEIMAGE += lxc-userspace
20
21 #
22 #
23 # transforward: root context module for transparent port forwarding
24 #
25 transforward-MODULES := transforward
26 transforward-SPEC := transforward.spec
27 ALL += transforward
28 IN_NODEIMAGE += transforward
29
30 #
31 # procprotect: root context module for protecting against weaknesses in /proc
32 #
33 procprotect-MODULES := procprotect
34 procprotect-SPEC := procprotect.spec
35 ALL += procprotect
36 IN_NODEIMAGE += procprotect
37
38 #
39 # ipfw: root context module, and slice companion
40 #
41 ipfwroot-MODULES := ipfw
42 ipfwroot-SPEC := planetlab/ipfwroot.spec
43 ALL += ipfwroot
44 IN_NODEIMAGE += ipfwroot
45
46 ipfwslice-MODULES := ipfw
47 ipfwslice-SPEC := planetlab/ipfwslice.spec
48 ALL += ipfwslice
49
50 #
51 # comgt - a companion to umts tools
52
53 comgt-MODULES := comgt
54 comgt-SPEC := comgt.spec
55 IN_NODEIMAGE += comgt
56 ALL += comgt
57
58 #
59 # umts: root context stuff
60 #
61 umts-backend-MODULES := planetlab-umts-tools
62 umts-backend-SPEC := backend.spec
63 IN_NODEIMAGE += umts-backend
64 ALL += umts-backend
65
66 #
67 # umts: slice tools
68 #
69 umts-frontend-MODULES := planetlab-umts-tools
70 umts-frontend-SPEC := frontend.spec
71 IN_SLICEIMAGE += umts-frontend
72 ALL += umts-frontend
73
74 #
75 # NodeUpdate
76 #
77 nodeupdate-MODULES := nodeupdate
78 nodeupdate-SPEC := NodeUpdate.spec
79 ALL += nodeupdate
80 IN_NODEIMAGE += nodeupdate
81
82 #
83 # ipod
84 #
85 ipod-MODULES := PingOfDeath
86 ipod-SPEC := ipod.spec
87 ALL += ipod
88 IN_NODEIMAGE += ipod
89
90 #
91 # plnode-utils
92
93 plnode-utils-MODULES := plnode-utils
94 plnode-utils-SPEC := plnode-utils-lxc.spec
95 ALL += plnode-utils
96 IN_NODEIMAGE += plnode-utils
97
98 #
99 # nodemanager
100 #
101 nodemanager-MODULES := nodemanager
102 nodemanager-SPEC := nodemanager.spec
103 ALL += nodemanager
104 IN_NODEIMAGE += nodemanager
105
106 #
107 # pl_sshd
108 #
109 sshd-MODULES := pl_sshd
110 sshd-SPEC := pl_sshd.spec
111 ALL += sshd
112 IN_NODEIMAGE += sshd
113
114 #
115 # codemux: Port 80 demux
116 #
117 codemux-MODULES := codemux
118 codemux-SPEC   := codemux.spec
119 ALL += codemux
120 IN_NODEIMAGE += codemux
121
122 #
123 # fprobe-ulog
124 #
125 # xxx temporarily turning this off
126 fprobe-ulog-MODULES := fprobe-ulog
127 fprobe-ulog-SPEC := fprobe-ulog.spec
128 #ALL += fprobe-ulog
129 #IN_NODEIMAGE += fprobe-ulog
130
131 #################### libvirt version selection
132 # settling with using version 1.2.1 on all fedoras
133 # although this does not solve the slice re-creation issue seen on f20
134
135 local_libvirt=true
136 separate_libvirt_python=true
137
138 #
139 # libvirt
140 #
141 ifeq "$(local_libvirt)" "true"
142
143 libvirt-MODULES := libvirt
144 libvirt-SPEC    := libvirt.spec
145 libvirt-BUILD-FROM-SRPM := yes
146 # The --without options are breaking spec2make : hard-wired in the specfile instead
147 libvirt-STOCK-DEVEL-RPMS += xhtml1-dtds
148 libvirt-STOCK-DEVEL-RPMS += libattr-devel augeas libpciaccess-devel yajl-devel 
149 libvirt-STOCK-DEVEL-RPMS += libpcap-devel radvd ebtables device-mapper-devel 
150 libvirt-STOCK-DEVEL-RPMS += ceph-devel numactl-devel libcap-ng-devel scrub 
151 # for 1.2.1 - first seen on f20, not sure for the other ones
152 libvirt-STOCK-DEVEL-RPMS += libblkid-devel glusterfs-api-devel glusterfs-devel
153 # strictly speaking fuse-devel is not required anymore but we might wish to turn fuse back on again in the future
154 libvirt-STOCK-DEVEL-RPMS += fuse-devel libssh2-devel dbus-devel numad 
155 libvirt-STOCK-DEVEL-RPMS += systemd-devel libnl3-devel iptables-services netcf-devel
156 # 1.2.11
157 libvirt-STOCK-DEVEL-RPMS += wireshark-devel
158 ALL += libvirt
159 IN_NODEREPO += libvirt
160 IN_NODEIMAGE += libvirt
161
162 endif
163
164 #
165 ## libvirt-python
166 #
167 ifeq "$(separate_libvirt_python)" "true"
168
169 libvirt-python-MODULES := libvirt-python
170 libvirt-python-SPEC    := libvirt-python.spec
171 libvirt-python-BUILD-FROM-SRPM := yes
172 libvirt-python-STOCK-DEVEL-RPMS += pm-utils
173 # for 1.2.11
174 libvirt-python-STOCK-DEVEL-RPMS += python-nose
175 # it would make sense to do something like this if we wanted to
176 # build against python3 as well, but for now I turned this feature off
177 # in libvirt-python
178 #ifeq "$(distro)" "Fedora"
179 #xxx if $(distrorelease) > 18
180 #libvirt-python-STOCK-DEVEL-RPMS += python3-devel python3-nose python3-lxml
181 #endif
182 #endif
183 libvirt-python-LOCAL-DEVEL-RPMS += libvirt-devel libvirt-docs libvirt-client
184 libvirt-python-RPMFLAGS :=     --define 'packager PlanetLab'
185 ALL += libvirt-python
186 IN_NODEREPO += libvirt-python
187 IN_NODEIMAGE += libvirt-python
188
189 endif
190
191 #
192 # DistributedRateLimiting
193 #
194 #DistributedRateLimiting-MODULES := DistributedRateLimiting
195 #DistributedRateLimiting-SPEC := DistributedRateLimiting.spec
196 #ALL += DistributedRateLimiting
197 #IN_NODEREPO += DistributedRateLimiting
198
199 #
200 # pf2slice
201 #
202 pf2slice-MODULES := pf2slice
203 pf2slice-SPEC := pf2slice.spec
204 ALL += pf2slice
205
206 ##
207 ## PlanetLab Mom: Cleans up your mess
208 ##
209 #mom-MODULES := mom
210 #mom-SPEC := pl_mom.spec
211 #ALL += mom
212 #IN_NODEIMAGE += mom
213
214 #
215 # openvswitch
216 #
217 # openvswitch-MODULES := openvswitch
218 # openvswitch-SPEC := openvswitch.spec
219 # openvswitch-STOCK-DEVEL-RPMS += kernel-devel
220 # IN_NODEIMAGE += openvswitch
221 # # build only on f14 as f16 has this natively
222 # ifeq "$(DISTRONAME)" "$(filter $(DISTRONAME),f14)"
223 # ALL += openvswitch
224 # endif
225
226 #
227 # vsys
228 #
229 vsys-MODULES := vsys
230 vsys-SPEC := vsys.spec
231 # ocaml-docs is not needed anymore but keep it on a tmp basis as some tags may still have it
232 vsys-STOCK-DEVEL-RPMS += ocaml-ocamldoc ocaml-docs
233 IN_NODEIMAGE += vsys
234 ALL += vsys
235
236 #
237 # vsyssh : installed in slivers
238 #
239 vsyssh-MODULES := vsys
240 vsyssh-SPEC := vsyssh.spec
241 IN_SLICEIMAGE += vsyssh
242 ALL += vsyssh
243
244 #
245 # vsys-scripts
246 #
247 vsys-scripts-MODULES := vsys-scripts
248 vsys-scripts-SPEC := root-context/vsys-scripts.spec
249 IN_NODEIMAGE += vsys-scripts
250 ALL += vsys-scripts
251
252 vsys-wrapper-MODULES := vsys-scripts
253 vsys-wrapper-SPEC := slice-context/vsys-wrapper.spec
254 IN_SLICEIMAGE += vsys-wrapper
255 ALL += vsys-wrapper
256
257 #
258 # bind_public
259 #
260 bind_public-MODULES := bind_public
261 bind_public-SPEC := bind_public.spec
262 IN_SLICEIMAGE += bind_public
263 ALL += bind_public
264
265 #
266 # sliver-openvswitch
267 #
268 sliver-openvswitch-MODULES := sliver-openvswitch
269 sliver-openvswitch-SPEC := sliver-openvswitch.spec
270 IN_SLICEIMAGE += sliver-openvswitch
271 ALL += sliver-openvswitch
272
273 #
274 # plcapi
275 #
276 plcapi-MODULES := plcapi
277 plcapi-SPEC := plcapi.spec
278 ALL += plcapi
279 IN_MYPLC += plcapi
280
281 #
282 # drupal
283
284 drupal-MODULES := drupal
285 drupal-SPEC := drupal.spec
286 drupal-BUILD-FROM-SRPM := yes
287 ALL += drupal
288 IN_MYPLC += drupal
289
290 #
291 # use the plewww module instead
292 #
293 plewww-MODULES := plewww
294 plewww-SPEC := plewww.spec
295 ALL += plewww
296 IN_MYPLC += plewww
297
298 #
299 # www-register-wizard
300 #
301 www-register-wizard-MODULES := www-register-wizard
302 www-register-wizard-SPEC := www-register-wizard.spec
303 ALL += www-register-wizard
304 IN_MYPLC += www-register-wizard
305
306 #
307 # pcucontrol
308 #
309 pcucontrol-MODULES := pcucontrol
310 pcucontrol-SPEC := pcucontrol.spec
311 ALL += pcucontrol
312
313 #
314 # monitor
315 #
316 #monitor-MODULES := monitor
317 #monitor-SPEC := Monitor.spec
318 #monitor-STOCK-DEVEL-RPMS += net-snmp net-snmp-devel
319 #ALL += monitor
320 #IN_NODEIMAGE += monitor
321
322 #
323 # PLC RT
324 #
325 plcrt-MODULES := PLCRT
326 plcrt-SPEC := plcrt.spec
327 ALL += plcrt
328
329 # f12 has 0.9-1 already
330 ifeq "$(DISTRONAME)" "$(filter $(DISTRONAME),f8 centos5)"
331 #
332 # pyopenssl
333 #
334 pyopenssl-MODULES := pyopenssl
335 pyopenssl-SPEC := pyOpenSSL.spec
336 pyopenssl-BUILD-FROM-SRPM := yes
337 ALL += pyopenssl
338 endif
339
340 #
341 # pyaspects
342 #
343 pyaspects-MODULES := pyaspects
344 pyaspects-SPEC := pyaspects.spec
345 pyaspects-BUILD-FROM-SRPM := yes
346 ALL += pyaspects
347
348 #
349 # nodeconfig
350 #
351 nodeconfig-MODULES := nodeconfig
352 nodeconfig-SPEC := nodeconfig.spec
353 ALL += nodeconfig
354 IN_MYPLC += nodeconfig
355
356 #
357 # bootmanager
358 #
359 bootmanager-MODULES := bootmanager
360 bootmanager-SPEC := bootmanager.spec
361 ALL += bootmanager
362 IN_MYPLC += bootmanager
363
364 #
365 # pypcilib : used in bootcd
366
367 pypcilib-MODULES := pypcilib
368 pypcilib-SPEC := pypcilib.spec
369 ALL += pypcilib
370 IN_BOOTCD += pypcilib
371
372 #
373 # pyplnet
374 #
375 pyplnet-MODULES := pyplnet
376 pyplnet-SPEC := pyplnet.spec
377 ALL += pyplnet
378 IN_NODEIMAGE += pyplnet
379 IN_MYPLC += pyplnet
380 IN_BOOTCD += pyplnet
381
382 #
383 # OML measurement library
384 #
385 oml-MODULES := oml
386 oml-STOCK-DEVEL-RPMS += sqlite-devel 
387 oml-SPEC := liboml.spec
388 ALL += oml
389
390 #
391 # bootcd
392 #
393 bootcd-MODULES := bootcd build
394 bootcd-SPEC := bootcd.spec
395 bootcd-DEPEND-PACKAGES := $(IN_BOOTCD)
396 bootcd-DEPEND-FILES := RPMS/yumgroups.xml
397 bootcd-RPMDATE := yes
398 ALL += bootcd
399 IN_MYPLC += bootcd
400
401 #
402 # images for slices
403 #
404 sliceimage-MODULES := sliceimage build
405 sliceimage-SPEC := sliceimage.spec
406 sliceimage-DEPEND-PACKAGES := $(IN_SLICEIMAGE)
407 sliceimage-DEPEND-FILES := RPMS/yumgroups.xml
408 sliceimage-RPMDATE := yes
409 ALL += sliceimage
410 IN_NODEIMAGE += sliceimage
411
412 #
413 # lxc-specific sliceimage initialization
414
415 lxc-sliceimage-MODULES  := sliceimage
416 lxc-sliceimage-SPEC     := lxc-sliceimage.spec
417 lxc-sliceimage-RPMDATE  := yes
418 ALL                     += lxc-sliceimage
419 IN_NODEIMAGE            += lxc-sliceimage
420
421 #
422 # nodeimage
423 #
424 nodeimage-MODULES := nodeimage build
425 nodeimage-SPEC := nodeimage.spec
426 nodeimage-DEPEND-PACKAGES := $(IN_NODEIMAGE)
427 nodeimage-DEPEND-FILES := RPMS/yumgroups.xml
428 nodeimage-RPMDATE := yes
429 ALL += nodeimage
430 IN_MYPLC += nodeimage
431
432 #
433 # noderepo
434 #
435 # all rpms resulting from packages marked as being in nodeimage and sliceimage
436 NODEREPO_RPMS = $(foreach package,$(IN_NODEIMAGE) $(IN_NODEREPO) $(IN_SLICEIMAGE),$($(package).rpms))
437 # replace space with +++ (specvars cannot deal with spaces)
438 SPACE=$(subst x, ,x)
439 NODEREPO_RPMS_3PLUS = $(subst $(SPACE),+++,$(NODEREPO_RPMS))
440
441 noderepo-MODULES := nodeimage
442 noderepo-SPEC := noderepo.spec
443 # package requires all embedded packages
444 noderepo-DEPEND-PACKAGES := $(IN_NODEIMAGE) $(IN_NODEREPO) $(IN_SLICEIMAGE)
445 noderepo-DEPEND-FILES := RPMS/yumgroups.xml
446 #export rpm list to the specfile
447 noderepo-SPECVARS = node_rpms_plus=$(NODEREPO_RPMS_3PLUS)
448 noderepo-RPMDATE := yes
449 ALL += noderepo
450 IN_MYPLC += noderepo
451
452 #
453 # slicerepo
454 #
455 # all rpms resulting from packages marked as being in vserver
456 SLICEREPO_RPMS = $(foreach package,$(IN_SLICEIMAGE),$($(package).rpms))
457 # replace space with +++ (specvars cannot deal with spaces)
458 SPACE=$(subst x, ,x)
459 SLICEREPO_RPMS_3PLUS = $(subst $(SPACE),+++,$(SLICEREPO_RPMS))
460
461 slicerepo-MODULES := nodeimage
462 slicerepo-SPEC := slicerepo.spec
463 # package requires all embedded packages
464 slicerepo-DEPEND-PACKAGES := $(IN_SLICEIMAGE)
465 slicerepo-DEPEND-FILES := RPMS/yumgroups.xml
466 #export rpm list to the specfile
467 slicerepo-SPECVARS = slice_rpms_plus=$(SLICEREPO_RPMS_3PLUS)
468 slicerepo-RPMDATE := yes
469 ALL += slicerepo
470
471 #
472 # MyPLC : lightweight packaging, dependencies are yum-installed in a vserver
473 #
474 myplc-MODULES := myplc
475 myplc-SPEC := myplc.spec
476 myplc-DEPEND-FILES := myplc-release RPMS/yumgroups.xml
477 ALL += myplc
478
479 # myplc-docs only contains docs for PLCAPI and NMAPI, but
480 # we still need to pull MyPLC, as it is where the specfile lies, 
481 # together with the utility script docbook2drupal.sh
482 myplc-docs-MODULES := myplc plcapi nodemanager monitor
483 myplc-docs-SPEC := myplc-docs.spec
484 ALL += myplc-docs
485
486 # using some other name than myplc-release, as this is a make target already
487 release-MODULES := myplc
488 release-SPEC := myplc-release.spec
489 release-RPMDATE := yes
490 ALL += release
491
492 ##############################
493 #
494 # sfa - Slice Facility Architecture
495 #
496 sfa-MODULES := sfa
497 sfa-SPEC := sfa.spec
498 ALL += sfa