building libvirt-1.2.11 on f20 requires ceph-devel-compat
[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 f20 and f21
126 ifneq "$(DISTRONAME)" "$(filter $(DISTRONAME),f20 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 libvirt-STOCK-DEVEL-RPMS += ceph-devel-compat
161 ALL += libvirt
162 IN_NODEREPO += libvirt
163 IN_NODEIMAGE += libvirt
164
165 endif
166
167 #
168 ## libvirt-python
169 #
170 ifeq "$(separate_libvirt_python)" "true"
171
172 libvirt-python-MODULES := libvirt-python
173 libvirt-python-SPEC    := libvirt-python.spec
174 libvirt-python-BUILD-FROM-SRPM := yes
175 libvirt-python-STOCK-DEVEL-RPMS += pm-utils
176 # for 1.2.11
177 libvirt-python-STOCK-DEVEL-RPMS += python-nose
178 # it would make sense to do something like this if we wanted to
179 # build against python3 as well, but for now I turned this feature off
180 # in libvirt-python
181 #ifeq "$(distro)" "Fedora"
182 #xxx if $(distrorelease) > 18
183 #libvirt-python-STOCK-DEVEL-RPMS += python3-devel python3-nose python3-lxml
184 #endif
185 #endif
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
192 endif
193
194 #
195 # DistributedRateLimiting
196 #
197 #DistributedRateLimiting-MODULES := DistributedRateLimiting
198 #DistributedRateLimiting-SPEC := DistributedRateLimiting.spec
199 #ALL += DistributedRateLimiting
200 #IN_NODEREPO += DistributedRateLimiting
201
202 #
203 # pf2slice
204 #
205 pf2slice-MODULES := pf2slice
206 pf2slice-SPEC := pf2slice.spec
207 ALL += pf2slice
208
209 ##
210 ## PlanetLab Mom: Cleans up your mess
211 ##
212 #mom-MODULES := mom
213 #mom-SPEC := pl_mom.spec
214 #ALL += mom
215 #IN_NODEIMAGE += mom
216
217 #
218 # openvswitch
219 #
220 # openvswitch-MODULES := openvswitch
221 # openvswitch-SPEC := openvswitch.spec
222 # openvswitch-STOCK-DEVEL-RPMS += kernel-devel
223 # IN_NODEIMAGE += openvswitch
224 # # build only on f14 as f16 has this natively
225 # ifeq "$(DISTRONAME)" "$(filter $(DISTRONAME),f14)"
226 # ALL += openvswitch
227 # endif
228
229 #
230 # vsys
231 #
232 vsys-MODULES := vsys
233 vsys-SPEC := vsys.spec
234 # ocaml-docs is not needed anymore but keep it on a tmp basis as some tags may still have it
235 vsys-STOCK-DEVEL-RPMS += ocaml-ocamldoc ocaml-docs
236 IN_NODEIMAGE += vsys
237 ALL += vsys
238
239 #
240 # vsyssh : installed in slivers
241 #
242 vsyssh-MODULES := vsys
243 vsyssh-SPEC := vsyssh.spec
244 IN_SLICEIMAGE += vsyssh
245 ALL += vsyssh
246
247 #
248 # vsys-scripts
249 #
250 vsys-scripts-MODULES := vsys-scripts
251 vsys-scripts-SPEC := root-context/vsys-scripts.spec
252 IN_NODEIMAGE += vsys-scripts
253 ALL += vsys-scripts
254
255 # xxx temporarily turning this off on f21
256 ifneq "$(DISTRONAME)" "$(filter $(DISTRONAME),f21)"
257 vsys-wrapper-MODULES := vsys-scripts
258 vsys-wrapper-SPEC := slice-context/vsys-wrapper.spec
259 IN_SLICEIMAGE += vsys-wrapper
260 ALL += vsys-wrapper
261 endif
262
263 #
264 # bind_public
265 #
266 bind_public-MODULES := bind_public
267 bind_public-SPEC := bind_public.spec
268 IN_SLICEIMAGE += bind_public
269 ALL += bind_public
270
271 #
272 # sliver-openvswitch
273 #
274 sliver-openvswitch-MODULES := sliver-openvswitch
275 sliver-openvswitch-SPEC := sliver-openvswitch.spec
276 IN_SLICEIMAGE += sliver-openvswitch
277 ALL += sliver-openvswitch
278
279 #
280 # plcapi
281 #
282 plcapi-MODULES := plcapi
283 plcapi-SPEC := plcapi.spec
284 ALL += plcapi
285 IN_MYPLC += plcapi
286
287 #
288 # drupal
289
290 drupal-MODULES := drupal
291 drupal-SPEC := drupal.spec
292 drupal-BUILD-FROM-SRPM := yes
293 ALL += drupal
294 IN_MYPLC += drupal
295
296 #
297 # use the plewww module instead
298 #
299 plewww-MODULES := plewww
300 plewww-SPEC := plewww.spec
301 ALL += plewww
302 IN_MYPLC += plewww
303
304 #
305 # www-register-wizard
306 #
307 www-register-wizard-MODULES := www-register-wizard
308 www-register-wizard-SPEC := www-register-wizard.spec
309 ALL += www-register-wizard
310 IN_MYPLC += www-register-wizard
311
312 #
313 # pcucontrol
314 #
315 pcucontrol-MODULES := pcucontrol
316 pcucontrol-SPEC := pcucontrol.spec
317 ALL += pcucontrol
318
319 #
320 # monitor
321 #
322 #monitor-MODULES := monitor
323 #monitor-SPEC := Monitor.spec
324 #monitor-STOCK-DEVEL-RPMS += net-snmp net-snmp-devel
325 #ALL += monitor
326 #IN_NODEIMAGE += monitor
327
328 #
329 # PLC RT
330 #
331 plcrt-MODULES := PLCRT
332 plcrt-SPEC := plcrt.spec
333 ALL += plcrt
334
335 # f12 has 0.9-1 already
336 ifeq "$(DISTRONAME)" "$(filter $(DISTRONAME),f8 centos5)"
337 #
338 # pyopenssl
339 #
340 pyopenssl-MODULES := pyopenssl
341 pyopenssl-SPEC := pyOpenSSL.spec
342 pyopenssl-BUILD-FROM-SRPM := yes
343 ALL += pyopenssl
344 endif
345
346 #
347 # pyaspects
348 #
349 pyaspects-MODULES := pyaspects
350 pyaspects-SPEC := pyaspects.spec
351 pyaspects-BUILD-FROM-SRPM := yes
352 ALL += pyaspects
353
354 #
355 # nodeconfig
356 #
357 nodeconfig-MODULES := nodeconfig
358 nodeconfig-SPEC := nodeconfig.spec
359 ALL += nodeconfig
360 IN_MYPLC += nodeconfig
361
362 #
363 # bootmanager
364 #
365 bootmanager-MODULES := bootmanager
366 bootmanager-SPEC := bootmanager.spec
367 ALL += bootmanager
368 IN_MYPLC += bootmanager
369
370 #
371 # pypcilib : used in bootcd
372
373 pypcilib-MODULES := pypcilib
374 pypcilib-SPEC := pypcilib.spec
375 ALL += pypcilib
376 IN_BOOTCD += pypcilib
377
378 #
379 # pyplnet
380 #
381 pyplnet-MODULES := pyplnet
382 pyplnet-SPEC := pyplnet.spec
383 ALL += pyplnet
384 IN_NODEIMAGE += pyplnet
385 IN_MYPLC += pyplnet
386 IN_BOOTCD += pyplnet
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 #
500 # sfa - Slice Facility Architecture
501 #
502 sfa-MODULES := sfa
503 sfa-SPEC := sfa.spec
504 ALL += sfa