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