libvirt 121 build deps
[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 #################### using our own libvirt on f18, and the stock version later on
139 local_libvirt=false
140 ifeq "$(DISTRONAME)" "$(filter $(DISTRONAME),f18 f20)"
141 local_libvirt=true
142 endif
143
144 ifeq "$(local_libvirt)" "true"
145 #
146 # libvirt
147 #
148 libvirt-MODULES := libvirt
149 libvirt-SPEC    := libvirt.spec
150 libvirt-BUILD-FROM-SRPM := yes
151 # The --without options are breaking spec2make : hard-wired in the specfile instead
152 libvirt-STOCK-DEVEL-RPMS += xhtml1-dtds gettext gettext-devel libtasn1-devel gnutls-devel 
153 libvirt-STOCK-DEVEL-RPMS += libattr-devel augeas libpciaccess-devel yajl-devel 
154 libvirt-STOCK-DEVEL-RPMS += libpcap-devel radvd ebtables device-mapper-devel 
155 libvirt-STOCK-DEVEL-RPMS += ceph-devel numactl-devel libcap-ng-devel scrub 
156 # for 1.2.1 - first seen on f20, not sure for the other ones
157 libvirt-STOCK-DEVEL-RPMS += libblkid-devel glusterfs-api-devel glusterfs-devel
158
159 ifeq "$(DISTRONAME)" "f16"
160 libvirt-STOCK-DEVEL-RPMS += libnl-devel libudev-devel
161 endif
162 # strictly speaking fuse-devel is not required anymore but we might wish to turn fuse back on again in the future
163 ifeq "$(DISTRONAME)" "$(filter $(DISTRONAME),f18 f20)"
164 libvirt-STOCK-DEVEL-RPMS += fuse-devel libssh2-devel dbus-devel numad 
165 libvirt-STOCK-DEVEL-RPMS += systemd-devel libnl3-devel iptables-ipv6 libgcrypt-devel
166 endif
167 libvirt-RPMFLAGS :=     --define 'packager PlanetLab'
168 ALL += libvirt
169 IN_NODEREPO += libvirt
170 IN_NODEIMAGE += libvirt
171 endif
172
173 #
174 # DistributedRateLimiting
175 #
176 #DistributedRateLimiting-MODULES := DistributedRateLimiting
177 #DistributedRateLimiting-SPEC := DistributedRateLimiting.spec
178 #ALL += DistributedRateLimiting
179 #IN_NODEREPO += DistributedRateLimiting
180
181 #
182 # pf2slice
183 #
184 pf2slice-MODULES := pf2slice
185 pf2slice-SPEC := pf2slice.spec
186 ALL += pf2slice
187
188 ##
189 ## PlanetLab Mom: Cleans up your mess
190 ##
191 #mom-MODULES := mom
192 #mom-SPEC := pl_mom.spec
193 #ALL += mom
194 #IN_NODEIMAGE += mom
195
196 #
197 # openvswitch
198 #
199 # openvswitch-MODULES := openvswitch
200 # openvswitch-SPEC := openvswitch.spec
201 # openvswitch-STOCK-DEVEL-RPMS += kernel-devel
202 # IN_NODEIMAGE += openvswitch
203 # # build only on f14 as f16 has this natively
204 # ifeq "$(DISTRONAME)" "$(filter $(DISTRONAME),f14)"
205 # ALL += openvswitch
206 # endif
207
208 #
209 # vsys
210 #
211 vsys-MODULES := vsys
212 vsys-SPEC := vsys.spec
213 # ocaml-docs is not needed anymore but keep it on a tmp basis as some tags may still have it
214 vsys-STOCK-DEVEL-RPMS += ocaml-ocamldoc ocaml-docs
215 IN_NODEIMAGE += vsys
216 ALL += vsys
217
218 #
219 # vsyssh : installed in slivers
220 #
221 vsyssh-MODULES := vsys
222 vsyssh-SPEC := vsyssh.spec
223 IN_SLICEIMAGE += vsyssh
224 ALL += vsyssh
225
226 #
227 # vsys-scripts
228 #
229 vsys-scripts-MODULES := vsys-scripts
230 vsys-scripts-SPEC := root-context/vsys-scripts.spec
231 IN_NODEIMAGE += vsys-scripts
232 ALL += vsys-scripts
233
234 #
235 # bind_public
236 #
237 bind_public-MODULES := bind_public
238 bind_public-SPEC := bind_public.spec
239 IN_SLICEIMAGE += bind_public
240 ALL += bind_public
241
242 #
243 # sliver-openvswitch
244 #
245 sliver-openvswitch-MODULES := sliver-openvswitch
246 sliver-openvswitch-SPEC := sliver-openvswitch.spec
247 IN_SLICEIMAGE += sliver-openvswitch
248 ALL += sliver-openvswitch
249
250 #
251 # plcapi
252 #
253 plcapi-MODULES := plcapi
254 plcapi-SPEC := plcapi.spec
255 ALL += plcapi
256 IN_MYPLC += plcapi
257
258 #
259 # mod_python
260
261 # this was dropped in fedora18, at which point the intention has been to
262 # move to wsgi instead; however our using wsgi currently looks unstable
263 # so you have the option to install this manually, in which case myplc will 
264 # swap to using mod_python - see plc.d/httpd
265 ifeq "$(DISTRO)" "Fedora"
266 ifneq "$(DISTRONAME)" "f16"
267 mod_python-MODULES := mod_python
268 mod_python-SPEC := mod_python.spec
269 mod_python-STOCK-DEVEL-RPMS := httpd-devel
270 mod_python-BUILD-FROM-SRPM := yes
271 ALL += mod_python
272 endif
273 endif
274
275 #
276 # drupal
277
278 drupal-MODULES := drupal
279 drupal-SPEC := drupal.spec
280 drupal-BUILD-FROM-SRPM := yes
281 ALL += drupal
282 IN_MYPLC += drupal
283
284 #
285 # use the plewww module instead
286 #
287 plewww-MODULES := plewww
288 plewww-SPEC := plewww.spec
289 ALL += plewww
290 IN_MYPLC += plewww
291
292 #
293 # www-register-wizard
294 #
295 www-register-wizard-MODULES := www-register-wizard
296 www-register-wizard-SPEC := www-register-wizard.spec
297 ALL += www-register-wizard
298 IN_MYPLC += www-register-wizard
299
300 #
301 # pcucontrol
302 #
303 pcucontrol-MODULES := pcucontrol
304 pcucontrol-SPEC := pcucontrol.spec
305 ALL += pcucontrol
306
307 #
308 # monitor
309 #
310 #monitor-MODULES := monitor
311 #monitor-SPEC := Monitor.spec
312 #monitor-STOCK-DEVEL-RPMS += net-snmp net-snmp-devel
313 #ALL += monitor
314 #IN_NODEIMAGE += monitor
315
316 #
317 # PLC RT
318 #
319 plcrt-MODULES := PLCRT
320 plcrt-SPEC := plcrt.spec
321 ALL += plcrt
322
323 # f12 has 0.9-1 already
324 ifeq "$(DISTRONAME)" "$(filter $(DISTRONAME),f8 centos5)"
325 #
326 # pyopenssl
327 #
328 pyopenssl-MODULES := pyopenssl
329 pyopenssl-SPEC := pyOpenSSL.spec
330 pyopenssl-BUILD-FROM-SRPM := yes
331 ALL += pyopenssl
332 endif
333
334 #
335 # pyaspects
336 #
337 pyaspects-MODULES := pyaspects
338 pyaspects-SPEC := pyaspects.spec
339 pyaspects-BUILD-FROM-SRPM := yes
340 ALL += pyaspects
341
342 #
343 # nodeconfig
344 #
345 nodeconfig-MODULES := nodeconfig
346 nodeconfig-SPEC := nodeconfig.spec
347 ALL += nodeconfig
348 IN_MYPLC += nodeconfig
349
350 #
351 # bootmanager
352 #
353 bootmanager-MODULES := bootmanager
354 bootmanager-SPEC := bootmanager.spec
355 ALL += bootmanager
356 IN_MYPLC += bootmanager
357
358 #
359 # pypcilib : used in bootcd
360
361 pypcilib-MODULES := pypcilib
362 pypcilib-SPEC := pypcilib.spec
363 ALL += pypcilib
364 IN_BOOTCD += pypcilib
365
366 #
367 # pyplnet
368 #
369 pyplnet-MODULES := pyplnet
370 pyplnet-SPEC := pyplnet.spec
371 ALL += pyplnet
372 IN_NODEIMAGE += pyplnet
373 IN_MYPLC += pyplnet
374 IN_BOOTCD += pyplnet
375
376 #
377 # for OMF resource controller as  a gem : rvm-ruby has right version of ruby and related gem stuff
378 #
379 rvm-ruby-MODULES := rvm-ruby
380 rvm-ruby-SPEC := rpm/rvm-ruby.spec
381 rvm-ruby-STOCK-DEVEL-RPMS := chrpath libyaml-devel libffi-devel libxslt-devel
382 # Since Oct 22. 2013, f18 has a new release of openssl that ruby is not too happy to build against
383 # turning this off for now, Christoph Dwertmann to monitor the status of this bug/incompatibility upstream
384 #ALL += rvm-ruby
385
386 #
387 # OML measurement library
388 #
389 oml-MODULES := oml
390 oml-STOCK-DEVEL-RPMS += sqlite-devel 
391 oml-SPEC := liboml.spec
392 ALL += oml
393
394 #
395 # bootcd
396 #
397 bootcd-MODULES := bootcd build
398 bootcd-SPEC := bootcd.spec
399 bootcd-DEPEND-PACKAGES := $(IN_BOOTCD)
400 bootcd-DEPEND-FILES := RPMS/yumgroups.xml
401 bootcd-RPMDATE := yes
402 ALL += bootcd
403 IN_MYPLC += bootcd
404
405 #
406 # images for slices
407 #
408 sliceimage-MODULES := sliceimage build
409 sliceimage-SPEC := sliceimage.spec
410 sliceimage-DEPEND-PACKAGES := $(IN_SLICEIMAGE)
411 sliceimage-DEPEND-FILES := RPMS/yumgroups.xml
412 sliceimage-RPMDATE := yes
413 ALL += sliceimage
414 IN_NODEIMAGE += sliceimage
415
416 #
417 # lxc-specific sliceimage initialization
418
419 lxc-sliceimage-MODULES  := sliceimage
420 lxc-sliceimage-SPEC     := lxc-sliceimage.spec
421 lxc-sliceimage-RPMDATE  := yes
422 ALL                     += lxc-sliceimage
423 IN_NODEIMAGE            += lxc-sliceimage
424
425 #
426 # nodeimage
427 #
428 nodeimage-MODULES := nodeimage build
429 nodeimage-SPEC := nodeimage.spec
430 nodeimage-DEPEND-PACKAGES := $(IN_NODEIMAGE)
431 nodeimage-DEPEND-FILES := RPMS/yumgroups.xml
432 nodeimage-RPMDATE := yes
433 ALL += nodeimage
434 IN_MYPLC += nodeimage
435
436 #
437 # noderepo
438 #
439 # all rpms resulting from packages marked as being in nodeimage and sliceimage
440 NODEREPO_RPMS = $(foreach package,$(IN_NODEIMAGE) $(IN_NODEREPO) $(IN_SLICEIMAGE),$($(package).rpms))
441 # replace space with +++ (specvars cannot deal with spaces)
442 SPACE=$(subst x, ,x)
443 NODEREPO_RPMS_3PLUS = $(subst $(SPACE),+++,$(NODEREPO_RPMS))
444
445 noderepo-MODULES := nodeimage
446 noderepo-SPEC := noderepo.spec
447 # package requires all embedded packages
448 noderepo-DEPEND-PACKAGES := $(IN_NODEIMAGE) $(IN_NODEREPO) $(IN_SLICEIMAGE)
449 noderepo-DEPEND-FILES := RPMS/yumgroups.xml
450 #export rpm list to the specfile
451 noderepo-SPECVARS = node_rpms_plus=$(NODEREPO_RPMS_3PLUS)
452 noderepo-RPMDATE := yes
453 ALL += noderepo
454 IN_MYPLC += noderepo
455
456 #
457 # slicerepo
458 #
459 # all rpms resulting from packages marked as being in vserver
460 SLICEREPO_RPMS = $(foreach package,$(IN_SLICEIMAGE),$($(package).rpms))
461 # replace space with +++ (specvars cannot deal with spaces)
462 SPACE=$(subst x, ,x)
463 SLICEREPO_RPMS_3PLUS = $(subst $(SPACE),+++,$(SLICEREPO_RPMS))
464
465 slicerepo-MODULES := nodeimage
466 slicerepo-SPEC := slicerepo.spec
467 # package requires all embedded packages
468 slicerepo-DEPEND-PACKAGES := $(IN_SLICEIMAGE)
469 slicerepo-DEPEND-FILES := RPMS/yumgroups.xml
470 #export rpm list to the specfile
471 slicerepo-SPECVARS = slice_rpms_plus=$(SLICEREPO_RPMS_3PLUS)
472 slicerepo-RPMDATE := yes
473 ALL += slicerepo
474
475 #
476 # MyPLC : lightweight packaging, dependencies are yum-installed in a vserver
477 #
478 myplc-MODULES := myplc
479 myplc-SPEC := myplc.spec
480 myplc-DEPEND-FILES := myplc-release RPMS/yumgroups.xml
481 ALL += myplc
482
483 # myplc-docs only contains docs for PLCAPI and NMAPI, but
484 # we still need to pull MyPLC, as it is where the specfile lies, 
485 # together with the utility script docbook2drupal.sh
486 myplc-docs-MODULES := myplc plcapi nodemanager monitor
487 myplc-docs-SPEC := myplc-docs.spec
488 ALL += myplc-docs
489
490 # using some other name than myplc-release, as this is a make target already
491 release-MODULES := myplc
492 release-SPEC := myplc-release.spec
493 release-RPMDATE := yes
494 ALL += release
495
496 ##############################
497 # sfa requires python-2.7
498 build_sfa=true
499 ifeq "$(DISTRONAME)" "$(filter $(DISTRONAME),f8 f12 centos5)"
500 build_sfa=false
501 endif
502
503 ifeq "$(build_sfa)" "true"
504 #
505 # sfa - Slice Facility Architecture
506 #
507 sfa-MODULES := sfa
508 sfa-SPEC := sfa.spec
509 ALL += sfa
510
511 #sface-MODULES := sface
512 #sface-SPEC := sface.spec
513 #ALL += sface
514 endif
515
516 ##############################
517 # don't build these by default, we have separate builds for that
518 myslice-MODULES := myslice
519 myslice-SPEC := myslice.spec
520 myslice-STOCK-DEVEL-RPMS := python-django
521 myslice-STOCK-DEVEL-DEBS := python-django python-django-south
522 #ALL += myslice
523
524 manifold-MODULES := manifold
525 manifold-SPEC := manifold.spec
526 #ALL += manifold