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