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