cleanup the libvirt section, use 1.2.1 on all fedoras
[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 # this module won't build yet under f20
42 ifeq "$(DISTRONAME)" "f18"
43 ipfwroot-MODULES := ipfw
44 ipfwroot-SPEC := planetlab/ipfwroot.spec
45 ALL += ipfwroot
46 IN_NODEIMAGE += ipfwroot
47
48 ipfwslice-MODULES := ipfw
49 ipfwslice-SPEC := planetlab/ipfwslice.spec
50 ALL += ipfwslice
51 endif
52
53 #
54 # comgt - a companion to umts tools
55
56 comgt-MODULES := comgt
57 comgt-SPEC := comgt.spec
58 IN_NODEIMAGE += comgt
59 ALL += comgt
60
61 #
62 # umts: root context stuff
63 #
64 umts-backend-MODULES := planetlab-umts-tools
65 umts-backend-SPEC := backend.spec
66 IN_NODEIMAGE += umts-backend
67 ALL += umts-backend
68
69 #
70 # umts: slice tools
71 #
72 umts-frontend-MODULES := planetlab-umts-tools
73 umts-frontend-SPEC := frontend.spec
74 IN_SLICEIMAGE += umts-frontend
75 ALL += umts-frontend
76
77 #
78 # NodeUpdate
79 #
80 nodeupdate-MODULES := nodeupdate
81 nodeupdate-SPEC := NodeUpdate.spec
82 ALL += nodeupdate
83 IN_NODEIMAGE += nodeupdate
84
85 #
86 # ipod
87 #
88 ipod-MODULES := PingOfDeath
89 ipod-SPEC := ipod.spec
90 ALL += ipod
91 IN_NODEIMAGE += ipod
92
93 #
94 # plnode-utils
95
96 plnode-utils-MODULES := plnode-utils
97 plnode-utils-SPEC := plnode-utils-lxc.spec
98 ALL += plnode-utils
99 IN_NODEIMAGE += plnode-utils
100
101 #
102 # nodemanager
103 #
104 nodemanager-lib-MODULES := nodemanager
105 nodemanager-lib-SPEC := nodemanager-lib.spec
106 ALL += nodemanager-lib
107 IN_NODEIMAGE += nodemanager-lib
108
109 nodemanager-lxc-MODULES := nodemanager
110 nodemanager-lxc-SPEC := nodemanager-lxc.spec
111 ALL += nodemanager-lxc
112 IN_NODEIMAGE += nodemanager-lxc
113
114 #
115 # pl_sshd
116 #
117 sshd-MODULES := pl_sshd
118 sshd-SPEC := pl_sshd.spec
119 ALL += sshd
120 IN_NODEIMAGE += sshd
121
122 #
123 # codemux: Port 80 demux
124 #
125 codemux-MODULES := codemux
126 codemux-SPEC   := codemux.spec
127 ALL += codemux
128 IN_NODEIMAGE += codemux
129
130 #
131 # fprobe-ulog
132 #
133 fprobe-ulog-MODULES := fprobe-ulog
134 fprobe-ulog-SPEC := fprobe-ulog.spec
135 ALL += fprobe-ulog
136 IN_NODEIMAGE += fprobe-ulog
137
138 #################### libvirt version selection
139 # settling with using version 1.2.1 on all fedoras
140 # although this does not solve the slice re-creation issue seen on f20
141
142 local_libvirt=true
143 separate_libvirt_python=true
144
145 #
146 # libvirt
147 #
148 ifeq "$(local_libvirt)" "true"
149
150 libvirt-MODULES := libvirt
151 libvirt-SPEC    := libvirt.spec
152 libvirt-BUILD-FROM-SRPM := yes
153 # The --without options are breaking spec2make : hard-wired in the specfile instead
154 libvirt-STOCK-DEVEL-RPMS += xhtml1-dtds gettext gettext-devel libtasn1-devel gnutls-devel 
155 libvirt-STOCK-DEVEL-RPMS += libattr-devel augeas libpciaccess-devel yajl-devel 
156 libvirt-STOCK-DEVEL-RPMS += libpcap-devel radvd ebtables device-mapper-devel 
157 libvirt-STOCK-DEVEL-RPMS += ceph-devel numactl-devel libcap-ng-devel scrub 
158 # for 1.2.1 - first seen on f20, not sure for the other ones
159 libvirt-STOCK-DEVEL-RPMS += libblkid-devel glusterfs-api-devel glusterfs-devel
160 # strictly speaking fuse-devel is not required anymore but we might wish to turn fuse back on again in the future
161 libvirt-STOCK-DEVEL-RPMS += fuse-devel libssh2-devel dbus-devel numad 
162 libvirt-STOCK-DEVEL-RPMS += systemd-devel libnl3-devel iptables-ipv6 libgcrypt-devel netcf-devel
163 ALL += libvirt
164 IN_NODEREPO += libvirt
165 IN_NODEIMAGE += libvirt
166
167 endif
168
169 #
170 ## libvirt-python
171 #
172 ifeq "$(separate_libvirt_python)" "true"
173
174 libvirt-python-MODULES := libvirt-python
175 libvirt-python-SPEC    := libvirt-python.spec
176 libvirt-python-BUILD-FROM-SRPM := yes
177 libvirt-python-STOCK-DEVEL-RPMS += gnutls-utils nc pm-utils 
178 libvirt-python-LOCAL-DEVEL-RPMS += libvirt-devel libvirt-docs libvirt-client
179 libvirt-python-RPMFLAGS :=     --define 'packager PlanetLab'
180 ALL += libvirt-python
181 IN_NODEREPO += libvirt-python
182 IN_NODEIMAGE += libvirt-python
183
184 endif
185
186 #
187 # DistributedRateLimiting
188 #
189 #DistributedRateLimiting-MODULES := DistributedRateLimiting
190 #DistributedRateLimiting-SPEC := DistributedRateLimiting.spec
191 #ALL += DistributedRateLimiting
192 #IN_NODEREPO += DistributedRateLimiting
193
194 #
195 # pf2slice
196 #
197 pf2slice-MODULES := pf2slice
198 pf2slice-SPEC := pf2slice.spec
199 ALL += pf2slice
200
201 ##
202 ## PlanetLab Mom: Cleans up your mess
203 ##
204 #mom-MODULES := mom
205 #mom-SPEC := pl_mom.spec
206 #ALL += mom
207 #IN_NODEIMAGE += mom
208
209 #
210 # openvswitch
211 #
212 # openvswitch-MODULES := openvswitch
213 # openvswitch-SPEC := openvswitch.spec
214 # openvswitch-STOCK-DEVEL-RPMS += kernel-devel
215 # IN_NODEIMAGE += openvswitch
216 # # build only on f14 as f16 has this natively
217 # ifeq "$(DISTRONAME)" "$(filter $(DISTRONAME),f14)"
218 # ALL += openvswitch
219 # endif
220
221 #
222 # vsys
223 #
224 vsys-MODULES := vsys
225 vsys-SPEC := vsys.spec
226 # ocaml-docs is not needed anymore but keep it on a tmp basis as some tags may still have it
227 vsys-STOCK-DEVEL-RPMS += ocaml-ocamldoc ocaml-docs
228 IN_NODEIMAGE += vsys
229 ALL += vsys
230
231 #
232 # vsyssh : installed in slivers
233 #
234 vsyssh-MODULES := vsys
235 vsyssh-SPEC := vsyssh.spec
236 IN_SLICEIMAGE += vsyssh
237 ALL += vsyssh
238
239 #
240 # vsys-scripts
241 #
242 vsys-scripts-MODULES := vsys-scripts
243 vsys-scripts-SPEC := root-context/vsys-scripts.spec
244 IN_NODEIMAGE += vsys-scripts
245 ALL += vsys-scripts
246
247 #
248 # bind_public
249 #
250 bind_public-MODULES := bind_public
251 bind_public-SPEC := bind_public.spec
252 IN_SLICEIMAGE += bind_public
253 ALL += bind_public
254
255 #
256 # sliver-openvswitch
257 #
258 sliver-openvswitch-MODULES := sliver-openvswitch
259 sliver-openvswitch-SPEC := sliver-openvswitch.spec
260 IN_SLICEIMAGE += sliver-openvswitch
261 ALL += sliver-openvswitch
262
263 #
264 # plcapi
265 #
266 plcapi-MODULES := plcapi
267 plcapi-SPEC := plcapi.spec
268 ALL += plcapi
269 IN_MYPLC += plcapi
270
271 #
272 # drupal
273
274 drupal-MODULES := drupal
275 drupal-SPEC := drupal.spec
276 drupal-BUILD-FROM-SRPM := yes
277 ALL += drupal
278 IN_MYPLC += drupal
279
280 #
281 # use the plewww module instead
282 #
283 plewww-MODULES := plewww
284 plewww-SPEC := plewww.spec
285 ALL += plewww
286 IN_MYPLC += plewww
287
288 #
289 # www-register-wizard
290 #
291 www-register-wizard-MODULES := www-register-wizard
292 www-register-wizard-SPEC := www-register-wizard.spec
293 ALL += www-register-wizard
294 IN_MYPLC += www-register-wizard
295
296 #
297 # pcucontrol
298 #
299 pcucontrol-MODULES := pcucontrol
300 pcucontrol-SPEC := pcucontrol.spec
301 ALL += pcucontrol
302
303 #
304 # monitor
305 #
306 #monitor-MODULES := monitor
307 #monitor-SPEC := Monitor.spec
308 #monitor-STOCK-DEVEL-RPMS += net-snmp net-snmp-devel
309 #ALL += monitor
310 #IN_NODEIMAGE += monitor
311
312 #
313 # PLC RT
314 #
315 plcrt-MODULES := PLCRT
316 plcrt-SPEC := plcrt.spec
317 ALL += plcrt
318
319 # f12 has 0.9-1 already
320 ifeq "$(DISTRONAME)" "$(filter $(DISTRONAME),f8 centos5)"
321 #
322 # pyopenssl
323 #
324 pyopenssl-MODULES := pyopenssl
325 pyopenssl-SPEC := pyOpenSSL.spec
326 pyopenssl-BUILD-FROM-SRPM := yes
327 ALL += pyopenssl
328 endif
329
330 #
331 # pyaspects
332 #
333 pyaspects-MODULES := pyaspects
334 pyaspects-SPEC := pyaspects.spec
335 pyaspects-BUILD-FROM-SRPM := yes
336 ALL += pyaspects
337
338 #
339 # nodeconfig
340 #
341 nodeconfig-MODULES := nodeconfig
342 nodeconfig-SPEC := nodeconfig.spec
343 ALL += nodeconfig
344 IN_MYPLC += nodeconfig
345
346 #
347 # bootmanager
348 #
349 bootmanager-MODULES := bootmanager
350 bootmanager-SPEC := bootmanager.spec
351 ALL += bootmanager
352 IN_MYPLC += bootmanager
353
354 #
355 # pypcilib : used in bootcd
356
357 pypcilib-MODULES := pypcilib
358 pypcilib-SPEC := pypcilib.spec
359 ALL += pypcilib
360 IN_BOOTCD += pypcilib
361
362 #
363 # pyplnet
364 #
365 pyplnet-MODULES := pyplnet
366 pyplnet-SPEC := pyplnet.spec
367 ALL += pyplnet
368 IN_NODEIMAGE += pyplnet
369 IN_MYPLC += pyplnet
370 IN_BOOTCD += pyplnet
371
372 #
373 # for OMF resource controller as  a gem : rvm-ruby has right version of ruby and related gem stuff
374 #
375 rvm-ruby-MODULES := rvm-ruby
376 rvm-ruby-SPEC := rpm/rvm-ruby.spec
377 rvm-ruby-STOCK-DEVEL-RPMS := chrpath libyaml-devel libffi-devel libxslt-devel
378 # Since Oct 22. 2013, f18 has a new release of openssl that ruby is not too happy to build against
379 # turning this off for now, Christoph Dwertmann to monitor the status of this bug/incompatibility upstream
380 #ALL += rvm-ruby
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 # sfa requires python-2.7
494 build_sfa=true
495 ifeq "$(DISTRONAME)" "$(filter $(DISTRONAME),f8 f12 centos5)"
496 build_sfa=false
497 endif
498
499 ifeq "$(build_sfa)" "true"
500 #
501 # sfa - Slice Facility Architecture
502 #
503 sfa-MODULES := sfa
504 sfa-SPEC := sfa.spec
505 ALL += sfa
506
507 #sface-MODULES := sface
508 #sface-SPEC := sface.spec
509 #ALL += sface
510 endif
511
512 ##############################
513 # don't build these by default, we have separate builds for that
514 myslice-MODULES := myslice
515 myslice-SPEC := myslice.spec
516 myslice-STOCK-DEVEL-RPMS := python-django
517 myslice-STOCK-DEVEL-DEBS := python-django python-django-south
518 #ALL += myslice
519
520 manifold-MODULES := manifold
521 manifold-SPEC := manifold.spec
522 #ALL += manifold