rebuild our own libvirt on f16 only. f17 has 0.9.11
[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 #
12 # transforward: root context module for transparent port forwarding
13 #
14 transforward-MODULES := transforward
15 transforward-SPEC := transforward.spec
16 ALL += transforward
17 IN_NODEIMAGE += transforward
18
19 #
20 # procprotect: root context module for protecting against weaknesses in /proc
21 #
22 procprotect-MODULES := procprotect
23 procprotect-SPEC := procprotect.spec
24 ALL += procprotect
25 IN_NODEIMAGE += procprotect
26
27 #
28 # ipfw: root context module, and slice companion
29 #
30 ipfwroot-MODULES := ipfw
31 ipfwroot-SPEC := planetlab/ipfwroot.spec
32 ALL += ipfwroot
33 IN_NODEIMAGE += ipfwroot
34
35 ipfwslice-MODULES := ipfw
36 ipfwslice-SPEC := planetlab/ipfwslice.spec
37 ALL += ipfwslice
38
39 #
40 # NodeUpdate
41 #
42 nodeupdate-MODULES := nodeupdate
43 nodeupdate-SPEC := NodeUpdate.spec
44 ALL += nodeupdate
45 IN_NODEIMAGE += nodeupdate
46
47 #
48 # ipod
49 #
50 ipod-MODULES := PingOfDeath
51 ipod-SPEC := ipod.spec
52 ALL += ipod
53 IN_NODEIMAGE += ipod
54
55 #
56 # nodemanager
57 #
58 nodemanager-lib-MODULES := nodemanager
59 nodemanager-lib-SPEC := nodemanager-lib.spec
60 ALL += nodemanager-lib
61 IN_NODEIMAGE += nodemanager-lib
62
63 nodemanager-lxc-MODULES := nodemanager
64 nodemanager-lxc-SPEC := nodemanager-lxc.spec
65 ALL += nodemanager-lxc
66 IN_NODEIMAGE += nodemanager-lxc
67
68 #
69 # pl_sshd
70 #
71 sshd-MODULES := pl_sshd
72 sshd-SPEC := pl_sshd.spec
73 ALL += sshd
74 IN_NODEIMAGE += sshd
75
76 #
77 # codemux: Port 80 demux
78 #
79 codemux-MODULES := codemux
80 codemux-SPEC   := codemux.spec
81 ALL += codemux
82 IN_NODEIMAGE += codemux
83
84 #
85 # fprobe-ulog
86 #
87 fprobe-ulog-MODULES := fprobe-ulog
88 fprobe-ulog-SPEC := fprobe-ulog.spec
89 ALL += fprobe-ulog
90 IN_NODEIMAGE += fprobe-ulog
91
92 #################### libvirt on f16 is too old, sounds like f17 has something fine
93 local_libvirt=false
94 ifeq "$(DISTRONAME)" "f16"
95 local_libvirt=true
96 endif
97
98 ifeq "$(local_libvirt)" "true"
99 #
100 # libvirt
101 #
102 libvirt-MODULES := libvirt
103 libvirt-SPEC    := libvirt.spec
104 libvirt-BUILD-FROM-SRPM := yes
105 libvirt-DEVEL-RPMS += libxml2-devel gnutls-devel device-mapper-devel yajl-devel gettext 
106 libvirt-DEVEL-RPMS += python-devel libcap-ng-devel libpciaccess-devel radvd numactl-devel 
107 libvirt-DEVEL-RPMS += xhtml1-dtds libxslt libtasn1-devel systemtap-sdt-devel iptables-ipv6 augeas 
108 libvirt-DEVEL-RPMS += libudev-devel
109 libvirt-RPMFLAGS := --without storage-disk --without storage-iscsi --without storage-scsi \
110                         --without storage-fs --without storage-lvm \
111                         --without polkit --without sasl --without audit --with capng --with udev \
112                         --without netcf --without avahi --without sanlock \
113                         --without xen --without qemu --without hyperv --without phyp --without esx \
114                         --without libxl \
115                         --define 'packager PlanetLab'
116 ALL += libvirt
117 IN_NODEREPO += libvirt
118 IN_NODEIMAGE += libvirt
119 endif
120
121 #
122 # DistributedRateLimiting
123 #
124 #DistributedRateLimiting-MODULES := DistributedRateLimiting
125 #DistributedRateLimiting-SPEC := DistributedRateLimiting.spec
126 #ALL += DistributedRateLimiting
127 #IN_NODEREPO += DistributedRateLimiting
128
129 #
130 # pf2slice
131 #
132 pf2slice-MODULES := pf2slice
133 pf2slice-SPEC := pf2slice.spec
134 ALL += pf2slice
135
136 ##
137 ## PlanetLab Mom: Cleans up your mess
138 ##
139 #mom-MODULES := Mom
140 #mom-SPEC := pl_mom.spec
141 #ALL += mom
142 #IN_NODEIMAGE += mom
143
144 #
145 # inotify-tools - local import
146 # rebuild this on centos5 (not found) - see yumexclude
147 #
148 local_inotify_tools=false
149 ifeq "$(DISTRONAME)" "centos5"
150 local_inotify_tools=true
151 endif
152
153 ifeq "$(DISTRONAME)" "sl6"
154 local_inotify_tools=true
155 endif
156
157 ifeq "$(local_inotify_tools)" "true"
158 inotify-tools-MODULES := inotify-tools
159 inotify-tools-SPEC := inotify-tools.spec
160 inotify-tools-BUILD-FROM-SRPM := yes
161 IN_NODEIMAGE += inotify-tools
162 ALL += inotify-tools
163 endif
164
165 #
166 # openvswitch
167 #
168 # openvswitch-MODULES := openvswitch
169 # openvswitch-SPEC := openvswitch.spec
170 # openvswitch-DEPEND-DEVEL-RPMS += kernel-devel
171 # IN_NODEIMAGE += openvswitch
172 # # build only on f14 as f16 has this natively
173 # ifeq "$(DISTRONAME)" "$(filter $(DISTRONAME),f14)"
174 # ALL += openvswitch
175 # endif
176
177 #
178 # vsys
179 #
180 vsys-MODULES := vsys
181 vsys-SPEC := vsys.spec
182 # ocaml-docs is not needed anymore but keep it on a tmp basis as some tags may still have it
183 vsys-DEVEL-RPMS += ocaml-ocamldoc ocaml-docs
184 ifeq "$(local_inotify_tools)" "true"
185 vsys-DEPEND-DEVEL-RPMS += inotify-tools inotify-tools-devel
186 endif
187 IN_NODEIMAGE += vsys
188 ALL += vsys
189
190 #
191 # vsyssh : installed in slivers
192 #
193 vsyssh-MODULES := vsys
194 vsyssh-SPEC := vsyssh.spec
195 IN_SLICEIMAGE += vsyssh
196 ALL += vsyssh
197
198 #
199 # vsys-scripts
200 #
201 vsys-scripts-MODULES := vsys-scripts
202 vsys-scripts-SPEC := vsys-scripts.spec
203 IN_NODEIMAGE += vsys-scripts
204 ALL += vsys-scripts
205
206 #
207 # plcapi
208 #
209 plcapi-MODULES := plcapi
210 plcapi-SPEC := PLCAPI.spec
211 ALL += plcapi
212 IN_MYPLC += plcapi
213
214 #
215 # drupal
216
217 drupal-MODULES := drupal
218 drupal-SPEC := drupal.spec
219 drupal-BUILD-FROM-SRPM := yes
220 ALL += drupal
221 IN_MYPLC += drupal
222
223 #
224 # use the plewww module instead
225 #
226 plewww-MODULES := plewww
227 plewww-SPEC := plewww.spec
228 ALL += plewww
229 IN_MYPLC += plewww
230
231 #
232 # www-register-wizard
233 #
234 www-register-wizard-MODULES := www-register-wizard
235 www-register-wizard-SPEC := www-register-wizard.spec
236 ALL += www-register-wizard
237 IN_MYPLC += www-register-wizard
238
239 #
240 # pcucontrol
241 #
242 pcucontrol-MODULES := pcucontrol
243 pcucontrol-SPEC := pcucontrol.spec
244 ALL += pcucontrol
245
246 #
247 # monitor
248 #
249 #monitor-MODULES := monitor
250 #monitor-SPEC := Monitor.spec
251 #monitor-DEVEL-RPMS += net-snmp net-snmp-devel
252 #ALL += monitor
253 #IN_NODEIMAGE += monitor
254
255 #
256 # PLC RT
257 #
258 plcrt-MODULES := PLCRT
259 plcrt-SPEC := plcrt.spec
260 ALL += plcrt
261
262 # f12 has 0.9-1 already
263 ifeq "$(DISTRONAME)" "$(filter $(DISTRONAME),f8 centos5)"
264 #
265 # pyopenssl
266 #
267 pyopenssl-MODULES := pyopenssl
268 pyopenssl-SPEC := pyOpenSSL.spec
269 pyopenssl-BUILD-FROM-SRPM := yes
270 ALL += pyopenssl
271 endif
272
273 #
274 # pyaspects
275 #
276 pyaspects-MODULES := pyaspects
277 pyaspects-SPEC := pyaspects.spec
278 pyaspects-BUILD-FROM-SRPM := yes
279 ALL += pyaspects
280
281 # sfa now uses the with statement that's not supported on python-2.4 - not even through __future__
282 # In addition we now use sqlalchemy and 0.5 as per f12 is not compatible with our model
283 build_sfa=true
284 ifeq "$(DISTRONAME)" "$(filter $(DISTRONAME),f8 f12 centos5)"
285 build_sfa=false
286 endif
287
288 ifeq "$(build_sfa)" "true"
289 #
290 # sfa - Slice Facility Architecture
291 #
292 sfa-MODULES := sfa
293 sfa-SPEC := sfa.spec
294 ALL += sfa
295
296 sface-MODULES := sface
297 sface-SPEC := sface.spec
298 ALL += sface
299 endif
300
301 #
302 # nodeconfig
303 #
304 nodeconfig-MODULES := nodeconfig
305 nodeconfig-SPEC := nodeconfig.spec
306 ALL += nodeconfig
307 IN_MYPLC += nodeconfig
308
309 #
310 # bootmanager
311 #
312 bootmanager-MODULES := bootmanager
313 bootmanager-SPEC := bootmanager.spec
314 ALL += bootmanager
315 IN_MYPLC += bootmanager
316
317 #
318 # pypcilib : used in bootcd
319
320 pypcilib-MODULES := pypcilib
321 pypcilib-SPEC := pypcilib.spec
322 ALL += pypcilib
323 IN_BOOTCD += pypcilib
324
325 #
326 # pyplnet
327 #
328 pyplnet-MODULES := pyplnet
329 pyplnet-SPEC := pyplnet.spec
330 ALL += pyplnet
331 IN_NODEIMAGE += pyplnet
332 IN_MYPLC += pyplnet
333 IN_BOOTCD += pyplnet
334
335 #
336 # OMF resource controller
337 #
338 omf-resctl-MODULES := omf
339 omf-resctl-SPEC := omf-resctl.spec
340 ALL += omf-resctl
341 IN_SLICEIMAGE += omf-resctl
342
343 #
344 # OMF exp controller
345 #
346 omf-expctl-MODULES := omf
347 omf-expctl-SPEC := omf-expctl.spec
348 ALL += omf-expctl
349
350 #
351 # bootcd
352 #
353 bootcd-MODULES := bootcd build
354 bootcd-SPEC := bootcd.spec
355 bootcd-DEPEND-PACKAGES := $(IN_BOOTCD)
356 bootcd-DEPEND-FILES := RPMS/yumgroups.xml
357 bootcd-RPMDATE := yes
358 ALL += bootcd
359 IN_MYPLC += bootcd
360
361 #
362 # images for slices
363 #
364 sliceimage-MODULES := sliceimage build
365 sliceimage-SPEC := sliceimage.spec
366 sliceimage-DEPEND-PACKAGES := $(IN_SLICEIMAGE)
367 sliceimage-DEPEND-FILES := RPMS/yumgroups.xml
368 sliceimage-RPMDATE := yes
369 ALL += sliceimage
370 IN_NODEIMAGE += sliceimage
371
372 #
373 # lxc-specific sliceimage initialization
374
375 lxc-sliceimage-MODULES  := sliceimage
376 lxc-sliceimage-SPEC     := lxc-sliceimage.spec
377 lxc-sliceimage-RPMDATE  := yes
378 ALL                     += lxc-sliceimage
379 IN_NODEIMAGE            += lxc-sliceimage
380
381 #
382 # nodeimage
383 #
384 nodeimage-MODULES := nodeimage build
385 nodeimage-SPEC := nodeimage.spec
386 nodeimage-DEPEND-PACKAGES := $(IN_NODEIMAGE)
387 nodeimage-DEPEND-FILES := RPMS/yumgroups.xml
388 nodeimage-RPMDATE := yes
389 ALL += nodeimage
390 IN_MYPLC += nodeimage
391
392 #
393 # noderepo
394 #
395 # all rpms resulting from packages marked as being in nodeimage and sliceimage
396 NODEREPO_RPMS = $(foreach package,$(IN_NODEIMAGE) $(IN_NODEREPO) $(IN_SLICEIMAGE),$($(package).rpms))
397 # replace space with +++ (specvars cannot deal with spaces)
398 SPACE=$(subst x, ,x)
399 NODEREPO_RPMS_3PLUS = $(subst $(SPACE),+++,$(NODEREPO_RPMS))
400
401 noderepo-MODULES := nodeimage
402 noderepo-SPEC := noderepo.spec
403 # package requires all embedded packages
404 noderepo-DEPEND-PACKAGES := $(IN_NODEIMAGE) $(IN_NODEREPO) $(IN_SLICEIMAGE)
405 noderepo-DEPEND-FILES := RPMS/yumgroups.xml
406 #export rpm list to the specfile
407 noderepo-SPECVARS = node_rpms_plus=$(NODEREPO_RPMS_3PLUS)
408 noderepo-RPMDATE := yes
409 ALL += noderepo
410 IN_MYPLC += noderepo
411
412 #
413 # slicerepo
414 #
415 # all rpms resulting from packages marked as being in vserver
416 SLICEREPO_RPMS = $(foreach package,$(IN_SLICEIMAGE),$($(package).rpms))
417 # replace space with +++ (specvars cannot deal with spaces)
418 SPACE=$(subst x, ,x)
419 SLICEREPO_RPMS_3PLUS = $(subst $(SPACE),+++,$(SLICEREPO_RPMS))
420
421 slicerepo-MODULES := nodeimage
422 slicerepo-SPEC := slicerepo.spec
423 # package requires all embedded packages
424 slicerepo-DEPEND-PACKAGES := $(IN_SLICEIMAGE)
425 slicerepo-DEPEND-FILES := RPMS/yumgroups.xml
426 #export rpm list to the specfile
427 slicerepo-SPECVARS = slice_rpms_plus=$(SLICEREPO_RPMS_3PLUS)
428 slicerepo-RPMDATE := yes
429 ALL += slicerepo
430
431 #
432 # MyPLC : lightweight packaging, dependencies are yum-installed in a vserver
433 #
434 myplc-MODULES := myplc
435 myplc-SPEC := myplc.spec
436 myplc-DEPEND-FILES := myplc-release RPMS/yumgroups.xml
437 ALL += myplc
438
439 # myplc-docs only contains docs for PLCAPI and NMAPI, but
440 # we still need to pull MyPLC, as it is where the specfile lies, 
441 # together with the utility script docbook2drupal.sh
442 myplc-docs-MODULES := myplc plcapi nodemanager monitor
443 myplc-docs-SPEC := myplc-docs.spec
444 ALL += myplc-docs
445
446 # using some other name than myplc-release, as this is a make target already
447 release-MODULES := myplc
448 release-SPEC := myplc-release.spec
449 release-RPMDATE := yes
450 ALL += release