turning off problematic builds on f21 more carefully
[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 on f21
126 ifneq "$(DISTRONAME)" "$(filter $(DISTRONAME),f21)"
127 fprobe-ulog-MODULES := fprobe-ulog
128 fprobe-ulog-SPEC := fprobe-ulog.spec
129 ALL += fprobe-ulog
130 IN_NODEIMAGE += fprobe-ulog
131 endif
132
133 #################### libvirt version selection
134 # settling with using version 1.2.1 on all fedoras
135 # although this does not solve the slice re-creation issue seen on f20
136
137 local_libvirt=true
138 separate_libvirt_python=true
139
140 #
141 # libvirt
142 #
143 ifeq "$(local_libvirt)" "true"
144
145 libvirt-MODULES := libvirt
146 libvirt-SPEC    := libvirt.spec
147 libvirt-BUILD-FROM-SRPM := yes
148 # The --without options are breaking spec2make : hard-wired in the specfile instead
149 libvirt-STOCK-DEVEL-RPMS += xhtml1-dtds
150 libvirt-STOCK-DEVEL-RPMS += libattr-devel augeas libpciaccess-devel yajl-devel 
151 libvirt-STOCK-DEVEL-RPMS += libpcap-devel radvd ebtables device-mapper-devel 
152 libvirt-STOCK-DEVEL-RPMS += ceph-devel numactl-devel libcap-ng-devel scrub 
153 # for 1.2.1 - first seen on f20, not sure for the other ones
154 libvirt-STOCK-DEVEL-RPMS += libblkid-devel glusterfs-api-devel glusterfs-devel
155 # strictly speaking fuse-devel is not required anymore but we might wish to turn fuse back on again in the future
156 libvirt-STOCK-DEVEL-RPMS += fuse-devel libssh2-devel dbus-devel numad 
157 libvirt-STOCK-DEVEL-RPMS += systemd-devel libnl3-devel iptables-services netcf-devel
158 # 1.2.11
159 libvirt-STOCK-DEVEL-RPMS += wireshark-devel
160 ALL += libvirt
161 IN_NODEREPO += libvirt
162 IN_NODEIMAGE += libvirt
163
164 endif
165
166 #
167 ## libvirt-python
168 #
169 ifeq "$(separate_libvirt_python)" "true"
170
171 libvirt-python-MODULES := libvirt-python
172 libvirt-python-SPEC    := libvirt-python.spec
173 libvirt-python-BUILD-FROM-SRPM := yes
174 libvirt-python-STOCK-DEVEL-RPMS += pm-utils
175 # for 1.2.11
176 libvirt-python-STOCK-DEVEL-RPMS += python-nose
177 # it would make sense to do something like this if we wanted to
178 # build against python3 as well, but for now I turned this feature off
179 # in libvirt-python
180 #ifeq "$(distro)" "Fedora"
181 #xxx if $(distrorelease) > 18
182 #libvirt-python-STOCK-DEVEL-RPMS += python3-devel python3-nose python3-lxml
183 #endif
184 #endif
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
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 # xxx temporarily turning this off on f21
255 ifneq "$(DISTRONAME)" "$(filter $(DISTRONAME),f21)"
256 vsys-wrapper-MODULES := vsys-scripts
257 vsys-wrapper-SPEC := slice-context/vsys-wrapper.spec
258 IN_SLICEIMAGE += vsys-wrapper
259 ALL += vsys-wrapper
260 endif
261
262 #
263 # bind_public
264 #
265 bind_public-MODULES := bind_public
266 bind_public-SPEC := bind_public.spec
267 IN_SLICEIMAGE += bind_public
268 ALL += bind_public
269
270 #
271 # sliver-openvswitch
272 #
273 sliver-openvswitch-MODULES := sliver-openvswitch
274 sliver-openvswitch-SPEC := sliver-openvswitch.spec
275 IN_SLICEIMAGE += sliver-openvswitch
276 ALL += sliver-openvswitch
277
278 #
279 # plcapi
280 #
281 plcapi-MODULES := plcapi
282 plcapi-SPEC := plcapi.spec
283 ALL += plcapi
284 IN_MYPLC += plcapi
285
286 #
287 # drupal
288
289 drupal-MODULES := drupal
290 drupal-SPEC := drupal.spec
291 drupal-BUILD-FROM-SRPM := yes
292 ALL += drupal
293 IN_MYPLC += drupal
294
295 #
296 # use the plewww module instead
297 #
298 plewww-MODULES := plewww
299 plewww-SPEC := plewww.spec
300 ALL += plewww
301 IN_MYPLC += plewww
302
303 #
304 # www-register-wizard
305 #
306 www-register-wizard-MODULES := www-register-wizard
307 www-register-wizard-SPEC := www-register-wizard.spec
308 ALL += www-register-wizard
309 IN_MYPLC += www-register-wizard
310
311 #
312 # pcucontrol
313 #
314 pcucontrol-MODULES := pcucontrol
315 pcucontrol-SPEC := pcucontrol.spec
316 ALL += pcucontrol
317
318 #
319 # monitor
320 #
321 #monitor-MODULES := monitor
322 #monitor-SPEC := Monitor.spec
323 #monitor-STOCK-DEVEL-RPMS += net-snmp net-snmp-devel
324 #ALL += monitor
325 #IN_NODEIMAGE += monitor
326
327 #
328 # PLC RT
329 #
330 plcrt-MODULES := PLCRT
331 plcrt-SPEC := plcrt.spec
332 ALL += plcrt
333
334 # f12 has 0.9-1 already
335 ifeq "$(DISTRONAME)" "$(filter $(DISTRONAME),f8 centos5)"
336 #
337 # pyopenssl
338 #
339 pyopenssl-MODULES := pyopenssl
340 pyopenssl-SPEC := pyOpenSSL.spec
341 pyopenssl-BUILD-FROM-SRPM := yes
342 ALL += pyopenssl
343 endif
344
345 #
346 # pyaspects
347 #
348 pyaspects-MODULES := pyaspects
349 pyaspects-SPEC := pyaspects.spec
350 pyaspects-BUILD-FROM-SRPM := yes
351 ALL += pyaspects
352
353 #
354 # nodeconfig
355 #
356 nodeconfig-MODULES := nodeconfig
357 nodeconfig-SPEC := nodeconfig.spec
358 ALL += nodeconfig
359 IN_MYPLC += nodeconfig
360
361 #
362 # bootmanager
363 #
364 bootmanager-MODULES := bootmanager
365 bootmanager-SPEC := bootmanager.spec
366 ALL += bootmanager
367 IN_MYPLC += bootmanager
368
369 #
370 # pypcilib : used in bootcd
371
372 pypcilib-MODULES := pypcilib
373 pypcilib-SPEC := pypcilib.spec
374 ALL += pypcilib
375 IN_BOOTCD += pypcilib
376
377 #
378 # pyplnet
379 #
380 pyplnet-MODULES := pyplnet
381 pyplnet-SPEC := pyplnet.spec
382 ALL += pyplnet
383 IN_NODEIMAGE += pyplnet
384 IN_MYPLC += pyplnet
385 IN_BOOTCD += pyplnet
386
387 #
388 # OML measurement library
389 #
390 oml-MODULES := oml
391 oml-STOCK-DEVEL-RPMS += sqlite-devel 
392 oml-SPEC := liboml.spec
393 ALL += oml
394
395 #
396 # bootcd
397 #
398 bootcd-MODULES := bootcd build
399 bootcd-SPEC := bootcd.spec
400 bootcd-DEPEND-PACKAGES := $(IN_BOOTCD)
401 bootcd-DEPEND-FILES := RPMS/yumgroups.xml
402 bootcd-RPMDATE := yes
403 ALL += bootcd
404 IN_MYPLC += bootcd
405
406 #
407 # images for slices
408 #
409 sliceimage-MODULES := sliceimage build
410 sliceimage-SPEC := sliceimage.spec
411 sliceimage-DEPEND-PACKAGES := $(IN_SLICEIMAGE)
412 sliceimage-DEPEND-FILES := RPMS/yumgroups.xml
413 sliceimage-RPMDATE := yes
414 ALL += sliceimage
415 IN_NODEIMAGE += sliceimage
416
417 #
418 # lxc-specific sliceimage initialization
419
420 lxc-sliceimage-MODULES  := sliceimage
421 lxc-sliceimage-SPEC     := lxc-sliceimage.spec
422 lxc-sliceimage-RPMDATE  := yes
423 ALL                     += lxc-sliceimage
424 IN_NODEIMAGE            += lxc-sliceimage
425
426 #
427 # nodeimage
428 #
429 nodeimage-MODULES := nodeimage build
430 nodeimage-SPEC := nodeimage.spec
431 nodeimage-DEPEND-PACKAGES := $(IN_NODEIMAGE)
432 nodeimage-DEPEND-FILES := RPMS/yumgroups.xml
433 nodeimage-RPMDATE := yes
434 ALL += nodeimage
435 IN_MYPLC += nodeimage
436
437 #
438 # noderepo
439 #
440 # all rpms resulting from packages marked as being in nodeimage and sliceimage
441 NODEREPO_RPMS = $(foreach package,$(IN_NODEIMAGE) $(IN_NODEREPO) $(IN_SLICEIMAGE),$($(package).rpms))
442 # replace space with +++ (specvars cannot deal with spaces)
443 SPACE=$(subst x, ,x)
444 NODEREPO_RPMS_3PLUS = $(subst $(SPACE),+++,$(NODEREPO_RPMS))
445
446 noderepo-MODULES := nodeimage
447 noderepo-SPEC := noderepo.spec
448 # package requires all embedded packages
449 noderepo-DEPEND-PACKAGES := $(IN_NODEIMAGE) $(IN_NODEREPO) $(IN_SLICEIMAGE)
450 noderepo-DEPEND-FILES := RPMS/yumgroups.xml
451 #export rpm list to the specfile
452 noderepo-SPECVARS = node_rpms_plus=$(NODEREPO_RPMS_3PLUS)
453 noderepo-RPMDATE := yes
454 ALL += noderepo
455 IN_MYPLC += noderepo
456
457 #
458 # slicerepo
459 #
460 # all rpms resulting from packages marked as being in vserver
461 SLICEREPO_RPMS = $(foreach package,$(IN_SLICEIMAGE),$($(package).rpms))
462 # replace space with +++ (specvars cannot deal with spaces)
463 SPACE=$(subst x, ,x)
464 SLICEREPO_RPMS_3PLUS = $(subst $(SPACE),+++,$(SLICEREPO_RPMS))
465
466 slicerepo-MODULES := nodeimage
467 slicerepo-SPEC := slicerepo.spec
468 # package requires all embedded packages
469 slicerepo-DEPEND-PACKAGES := $(IN_SLICEIMAGE)
470 slicerepo-DEPEND-FILES := RPMS/yumgroups.xml
471 #export rpm list to the specfile
472 slicerepo-SPECVARS = slice_rpms_plus=$(SLICEREPO_RPMS_3PLUS)
473 slicerepo-RPMDATE := yes
474 ALL += slicerepo
475
476 #
477 # MyPLC : lightweight packaging, dependencies are yum-installed in a vserver
478 #
479 myplc-MODULES := myplc
480 myplc-SPEC := myplc.spec
481 myplc-DEPEND-FILES := myplc-release RPMS/yumgroups.xml
482 ALL += myplc
483
484 # myplc-docs only contains docs for PLCAPI and NMAPI, but
485 # we still need to pull MyPLC, as it is where the specfile lies, 
486 # together with the utility script docbook2drupal.sh
487 myplc-docs-MODULES := myplc plcapi nodemanager monitor
488 myplc-docs-SPEC := myplc-docs.spec
489 ALL += myplc-docs
490
491 # using some other name than myplc-release, as this is a make target already
492 release-MODULES := myplc
493 release-SPEC := myplc-release.spec
494 release-RPMDATE := yes
495 ALL += release
496
497 ##############################
498 #
499 # sfa - Slice Facility Architecture
500 #
501 sfa-MODULES := sfa
502 sfa-SPEC := sfa.spec
503 ALL += sfa