reset libvirt build deps, in order to determine what's really required
[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 ahip with fedora16's kernel rpm
12
13 #
14 # lxctools: scripts for entering containers
15 #
16 lxctools-MODULES := lxctools
17 lxctools-SPEC := lxctools.spec
18 ALL += lxctools
19 IN_NODEIMAGE += lxctools
20
21 #
22 # lxcsu: root context module for entering namespaces
23 #
24 lxcsu-MODULES := lxcsu
25 lxcsu-SPEC := lxcsu.spec
26 ALL += lxcsu
27 IN_NODEIMAGE += lxcsu
28
29 #
30 #
31 # transforward: root context module for transparent port forwarding
32 #
33 transforward-MODULES := transforward
34 transforward-SPEC := transforward.spec
35 ALL += transforward
36 IN_NODEIMAGE += transforward
37
38 #
39 # procprotect: root context module for protecting against weaknesses in /proc
40 #
41 procprotect-MODULES := procprotect
42 procprotect-SPEC := procprotect.spec
43 ALL += procprotect
44 IN_NODEIMAGE += procprotect
45
46 #
47 # ipfw: root context module, and slice companion
48 #
49 ipfwroot-MODULES := ipfw
50 ipfwroot-SPEC := planetlab/ipfwroot.spec
51 ALL += ipfwroot
52 IN_NODEIMAGE += ipfwroot
53
54 ipfwslice-MODULES := ipfw
55 ipfwslice-SPEC := planetlab/ipfwslice.spec
56 ALL += ipfwslice
57
58 #
59 # NodeUpdate
60 #
61 nodeupdate-MODULES := nodeupdate
62 nodeupdate-SPEC := NodeUpdate.spec
63 ALL += nodeupdate
64 IN_NODEIMAGE += nodeupdate
65
66 #
67 # ipod
68 #
69 ipod-MODULES := PingOfDeath
70 ipod-SPEC := ipod.spec
71 ALL += ipod
72 IN_NODEIMAGE += ipod
73
74 #
75 # plnode-utils
76
77 plnode-utils-MODULES := plnode-utils
78 plnode-utils-SPEC := plnode-utils-lxc.spec
79 ALL += plnode-utils
80 IN_NODEIMAGE += plnode-utils
81
82 #
83 # nodemanager
84 #
85 nodemanager-lib-MODULES := nodemanager
86 nodemanager-lib-SPEC := nodemanager-lib.spec
87 ALL += nodemanager-lib
88 IN_NODEIMAGE += nodemanager-lib
89
90 nodemanager-lxc-MODULES := nodemanager
91 nodemanager-lxc-SPEC := nodemanager-lxc.spec
92 ALL += nodemanager-lxc
93 IN_NODEIMAGE += nodemanager-lxc
94
95 #
96 # pl_sshd
97 #
98 sshd-MODULES := pl_sshd
99 sshd-SPEC := pl_sshd.spec
100 ALL += sshd
101 IN_NODEIMAGE += sshd
102
103 #
104 # codemux: Port 80 demux
105 #
106 codemux-MODULES := codemux
107 codemux-SPEC   := codemux.spec
108 ALL += codemux
109 IN_NODEIMAGE += codemux
110
111 #
112 # fprobe-ulog
113 #
114 fprobe-ulog-MODULES := fprobe-ulog
115 fprobe-ulog-SPEC := fprobe-ulog.spec
116 ALL += fprobe-ulog
117 IN_NODEIMAGE += fprobe-ulog
118
119 #################### using our own libvirt on all distros for now
120 #local_libvirt=false
121 #ifeq "$(DISTRONAME)" "f16"
122 local_libvirt=true
123 #endif
124
125 ifeq "$(local_libvirt)" "true"
126 #
127 # libvirt
128 #
129 libvirt-MODULES := libvirt
130 libvirt-SPEC    := libvirt.spec
131 libvirt-BUILD-FROM-SRPM := yes
132 # The --without options are breaking spec2make : hard-wired in the specfile instead
133 #libvirt-RPMFLAGS := --without storage-disk --without storage-iscsi --without storage-scsi \
134 #                       --without storage-fs --without storage-lvm \
135 #                       --without polkit --without sasl --without audit --with capng --with udev \
136 #                       --without netcf --without avahi --without sanlock \
137 #                       --without xen --without qemu --without hyperv --without phyp --without esx \
138 #                       --without libxl \
139 #libvirt-DEVEL-RPMS += libxml2-devel gnutls-devel device-mapper-devel yajl-devel gettext 
140 #libvirt-DEVEL-RPMS += python-devel libcap-ng-devel libpciaccess-devel radvd numactl-devel 
141 #libvirt-DEVEL-RPMS += xhtml1-dtds libxslt libtasn1-devel systemtap-sdt-devel iptables-ipv6 augeas 
142 #libvirt-DEVEL-RPMS += libudev-devel libpcap-devel libnl-devel ebtables scrub ceph-devel
143 # added for 0.10.2 
144 #libvirt-DEVEL-RPMS += xen-devel sanlock-devel avahi-devel cyrus-sasl-devel polkit qemu-img lvm2
145 #libvirt-DEVEL-RPMS += iscsi-initiator-utils parted-devel libssh2-devel netcf-devel libwsman-devel
146 #libvirt-DEVEL-RPMS += audit-libs-devel nfs-utils libblkid-devel
147 # added for 1.0.2 on f16+f18
148 #libvirt-DEVEL-RPMS += libattr-devel libssh2-devel
149 # added for 1.0.2 on f18
150 #ifneq "$(DISTRONAME)" "f16"
151 #libvirt-devel-RPMS" += libnl3-devel fuse-devel dbus-devel numad
152 #endif
153 libvirt-RPMFLAGS :=     --define 'packager PlanetLab'
154 ALL += libvirt
155 IN_NODEREPO += libvirt
156 IN_NODEIMAGE += libvirt
157 endif
158
159 #
160 # DistributedRateLimiting
161 #
162 #DistributedRateLimiting-MODULES := DistributedRateLimiting
163 #DistributedRateLimiting-SPEC := DistributedRateLimiting.spec
164 #ALL += DistributedRateLimiting
165 #IN_NODEREPO += DistributedRateLimiting
166
167 #
168 # pf2slice
169 #
170 pf2slice-MODULES := pf2slice
171 pf2slice-SPEC := pf2slice.spec
172 ALL += pf2slice
173
174 ##
175 ## PlanetLab Mom: Cleans up your mess
176 ##
177 #mom-MODULES := mom
178 #mom-SPEC := pl_mom.spec
179 #ALL += mom
180 #IN_NODEIMAGE += mom
181
182 #
183 # inotify-tools - local import
184 # rebuild this on centos5 (not found) - see yumexclude
185 #
186 local_inotify_tools=false
187 ifeq "$(DISTRONAME)" "centos5"
188 local_inotify_tools=true
189 endif
190
191 ifeq "$(DISTRONAME)" "sl6"
192 local_inotify_tools=true
193 endif
194
195 ifeq "$(local_inotify_tools)" "true"
196 inotify-tools-MODULES := inotify-tools
197 inotify-tools-SPEC := inotify-tools.spec
198 inotify-tools-BUILD-FROM-SRPM := yes
199 IN_NODEIMAGE += inotify-tools
200 ALL += inotify-tools
201 endif
202
203 #
204 # openvswitch
205 #
206 # openvswitch-MODULES := openvswitch
207 # openvswitch-SPEC := openvswitch.spec
208 # openvswitch-DEPEND-DEVEL-RPMS += kernel-devel
209 # IN_NODEIMAGE += openvswitch
210 # # build only on f14 as f16 has this natively
211 # ifeq "$(DISTRONAME)" "$(filter $(DISTRONAME),f14)"
212 # ALL += openvswitch
213 # endif
214
215 #
216 # vsys
217 #
218 vsys-MODULES := vsys
219 vsys-SPEC := vsys.spec
220 # ocaml-docs is not needed anymore but keep it on a tmp basis as some tags may still have it
221 vsys-DEVEL-RPMS += ocaml-ocamldoc ocaml-docs
222 ifeq "$(local_inotify_tools)" "true"
223 vsys-DEPEND-DEVEL-RPMS += inotify-tools inotify-tools-devel
224 endif
225 IN_NODEIMAGE += vsys
226 ALL += vsys
227
228 #
229 # vsyssh : installed in slivers
230 #
231 vsyssh-MODULES := vsys
232 vsyssh-SPEC := vsyssh.spec
233 IN_SLICEIMAGE += vsyssh
234 ALL += vsyssh
235
236 #
237 # vsys-scripts
238 #
239 vsys-scripts-MODULES := vsys-scripts
240 vsys-scripts-SPEC := root-context/vsys-scripts.spec
241 IN_NODEIMAGE += vsys-scripts
242 ALL += vsys-scripts
243
244 #
245 # bind_public
246 #
247 bind_public-MODULES := bind_public
248 bind_public-SPEC := bind_public.spec
249 IN_SLICEIMAGE += bind_public
250 ALL += bind_public
251
252 #
253 # plcapi
254 #
255 plcapi-MODULES := plcapi
256 plcapi-SPEC := plcapi.spec
257 ALL += plcapi
258 IN_MYPLC += plcapi
259
260 #
261 # drupal
262
263 drupal-MODULES := drupal
264 drupal-SPEC := drupal.spec
265 drupal-BUILD-FROM-SRPM := yes
266 ALL += drupal
267 IN_MYPLC += drupal
268
269 #
270 # use the plewww module instead
271 #
272 plewww-MODULES := plewww
273 plewww-SPEC := plewww.spec
274 ALL += plewww
275 IN_MYPLC += plewww
276
277 #
278 # www-register-wizard
279 #
280 www-register-wizard-MODULES := www-register-wizard
281 www-register-wizard-SPEC := www-register-wizard.spec
282 ALL += www-register-wizard
283 IN_MYPLC += www-register-wizard
284
285 #
286 # pcucontrol
287 #
288 pcucontrol-MODULES := pcucontrol
289 pcucontrol-SPEC := pcucontrol.spec
290 ALL += pcucontrol
291
292 #
293 # monitor
294 #
295 #monitor-MODULES := monitor
296 #monitor-SPEC := Monitor.spec
297 #monitor-DEVEL-RPMS += net-snmp net-snmp-devel
298 #ALL += monitor
299 #IN_NODEIMAGE += monitor
300
301 #
302 # PLC RT
303 #
304 plcrt-MODULES := PLCRT
305 plcrt-SPEC := plcrt.spec
306 ALL += plcrt
307
308 # f12 has 0.9-1 already
309 ifeq "$(DISTRONAME)" "$(filter $(DISTRONAME),f8 centos5)"
310 #
311 # pyopenssl
312 #
313 pyopenssl-MODULES := pyopenssl
314 pyopenssl-SPEC := pyOpenSSL.spec
315 pyopenssl-BUILD-FROM-SRPM := yes
316 ALL += pyopenssl
317 endif
318
319 #
320 # pyaspects
321 #
322 pyaspects-MODULES := pyaspects
323 pyaspects-SPEC := pyaspects.spec
324 pyaspects-BUILD-FROM-SRPM := yes
325 ALL += pyaspects
326
327 # sfa now uses the with statement that's not supported on python-2.4 - not even through __future__
328 # In addition we now use sqlalchemy and 0.5 as per f12 is not compatible with our model
329 build_sfa=true
330 ifeq "$(DISTRONAME)" "$(filter $(DISTRONAME),f8 f12 centos5)"
331 build_sfa=false
332 endif
333
334 ifeq "$(build_sfa)" "true"
335 #
336 # sfa - Slice Facility Architecture
337 #
338 sfa-MODULES := sfa
339 sfa-SPEC := sfa.spec
340 ALL += sfa
341
342 sface-MODULES := sface
343 sface-SPEC := sface.spec
344 ALL += sface
345 endif
346
347 #
348 # nodeconfig
349 #
350 nodeconfig-MODULES := nodeconfig
351 nodeconfig-SPEC := nodeconfig.spec
352 ALL += nodeconfig
353 IN_MYPLC += nodeconfig
354
355 #
356 # bootmanager
357 #
358 bootmanager-MODULES := bootmanager
359 bootmanager-SPEC := bootmanager.spec
360 ALL += bootmanager
361 IN_MYPLC += bootmanager
362
363 #
364 # pypcilib : used in bootcd
365
366 pypcilib-MODULES := pypcilib
367 pypcilib-SPEC := pypcilib.spec
368 ALL += pypcilib
369 IN_BOOTCD += pypcilib
370
371 #
372 # pyplnet
373 #
374 pyplnet-MODULES := pyplnet
375 pyplnet-SPEC := pyplnet.spec
376 ALL += pyplnet
377 IN_NODEIMAGE += pyplnet
378 IN_MYPLC += pyplnet
379 IN_BOOTCD += pyplnet
380
381 #
382 # OMF resource controller
383 #
384 omf-resctl-MODULES := omf
385 omf-resctl-SPEC := omf-resctl.spec
386 ALL += omf-resctl
387 IN_SLICEIMAGE += omf-resctl
388
389 #
390 # OMF exp controller
391 #
392 omf-expctl-MODULES := omf
393 omf-expctl-SPEC := omf-expctl.spec
394 ALL += omf-expctl
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