more changes for f22
[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 ### remove procprotect from the nodes on f20 and above, needs more work starting with 3.19
34 ifneq "$(DISTRONAME)" "$(filter $(DISTRONAME),f20 f21 f22)"
35 procprotect-MODULES := procprotect
36 procprotect-SPEC := procprotect.spec
37 ALL += procprotect
38 IN_NODEIMAGE += procprotect
39 endif
40
41 #
42 # ipfw: root context module, and slice companion
43 #
44 ipfwroot-MODULES := ipfw
45 ipfwroot-SPEC := planetlab/ipfwroot.spec
46 ALL += ipfwroot
47 IN_NODEIMAGE += ipfwroot
48
49 ipfwslice-MODULES := ipfw
50 ipfwslice-SPEC := planetlab/ipfwslice.spec
51 ALL += ipfwslice
52
53 #
54 # comgt - a companion to umts tools
55
56 comgt-MODULES := comgt
57 comgt-SPEC := comgt.spec
58 IN_NODEIMAGE += comgt
59 ALL += comgt
60
61 #
62 # umts: root context stuff
63 #
64 umts-backend-MODULES := planetlab-umts-tools
65 umts-backend-SPEC := backend.spec
66 IN_NODEIMAGE += umts-backend
67 ALL += umts-backend
68
69 #
70 # umts: slice tools
71 #
72 umts-frontend-MODULES := planetlab-umts-tools
73 umts-frontend-SPEC := frontend.spec
74 IN_SLICEIMAGE += umts-frontend
75 ALL += umts-frontend
76
77 #
78 # NodeUpdate
79 #
80 nodeupdate-MODULES := nodeupdate
81 nodeupdate-SPEC := NodeUpdate.spec
82 ALL += nodeupdate
83 IN_NODEIMAGE += nodeupdate
84
85 #
86 # ipod
87 #
88 ipod-MODULES := PingOfDeath
89 ipod-SPEC := ipod.spec
90 ALL += ipod
91 IN_NODEIMAGE += ipod
92
93 #
94 # plnode-utils
95
96 plnode-utils-MODULES := plnode-utils
97 plnode-utils-SPEC := plnode-utils-lxc.spec
98 ALL += plnode-utils
99 IN_NODEIMAGE += plnode-utils
100
101 #
102 # nodemanager
103 #
104 nodemanager-MODULES := nodemanager
105 nodemanager-SPEC := nodemanager.spec
106 ALL += nodemanager
107 IN_NODEIMAGE += nodemanager
108
109 #
110 # pl_sshd
111 #
112 sshd-MODULES := pl_sshd
113 sshd-SPEC := pl_sshd.spec
114 ALL += sshd
115 IN_NODEIMAGE += sshd
116
117 #
118 # codemux: Port 80 demux
119 #
120 codemux-MODULES := codemux
121 codemux-SPEC   := codemux.spec
122 ALL += codemux
123 IN_NODEIMAGE += codemux
124
125 #
126 # fprobe-ulog
127 #
128 # xxx temporarily turning this off on f20 and above
129 ifneq "$(DISTRONAME)" "$(filter $(DISTRONAME),f20 f21 f22)"
130 fprobe-ulog-MODULES := fprobe-ulog
131 fprobe-ulog-SPEC := fprobe-ulog.spec
132 ALL += fprobe-ulog
133 IN_NODEIMAGE += fprobe-ulog
134 endif
135
136 #################### libvirt version selection
137 # settling with using version 1.2.1 on all fedoras
138 # although this does not solve the slice re-creation issue seen on f20
139
140 local_libvirt=true
141 separate_libvirt_python=true
142
143 #
144 # libvirt
145 #
146 ifeq "$(local_libvirt)" "true"
147
148 libvirt-MODULES := libvirt
149 libvirt-SPEC    := libvirt.spec
150 libvirt-BUILD-FROM-SRPM := yes
151 # The --without options are breaking spec2make : hard-wired in the specfile instead
152 libvirt-STOCK-DEVEL-RPMS += xhtml1-dtds
153 libvirt-STOCK-DEVEL-RPMS += libattr-devel augeas libpciaccess-devel yajl-devel 
154 libvirt-STOCK-DEVEL-RPMS += libpcap-devel radvd ebtables device-mapper-devel 
155 libvirt-STOCK-DEVEL-RPMS += ceph-devel numactl-devel libcap-ng-devel scrub 
156 # for 1.2.1 - first seen on f20, not sure for the other ones
157 libvirt-STOCK-DEVEL-RPMS += libblkid-devel glusterfs-api-devel glusterfs-devel
158 # strictly speaking fuse-devel is not required anymore but we might wish to turn fuse back on again in the future
159 libvirt-STOCK-DEVEL-RPMS += fuse-devel libssh2-devel dbus-devel numad 
160 libvirt-STOCK-DEVEL-RPMS += systemd-devel libnl3-devel iptables-services netcf-devel
161 # 1.2.11
162 libvirt-STOCK-DEVEL-RPMS += wireshark-devel
163 libvirt-STOCK-DEVEL-RPMS += ceph-devel-compat
164 ALL += libvirt
165 IN_NODEREPO += libvirt
166 IN_NODEIMAGE += libvirt
167
168 endif
169
170 #
171 ## libvirt-python
172 #
173 ifeq "$(separate_libvirt_python)" "true"
174
175 libvirt-python-MODULES := libvirt-python
176 libvirt-python-SPEC    := libvirt-python.spec
177 libvirt-python-BUILD-FROM-SRPM := yes
178 libvirt-python-STOCK-DEVEL-RPMS += pm-utils
179 # for 1.2.11
180 libvirt-python-STOCK-DEVEL-RPMS += python-nose
181 # it would make sense to do something like this if we wanted to
182 # build against python3 as well, but for now I turned this feature off
183 # in libvirt-python
184 #ifeq "$(distro)" "Fedora"
185 #xxx if $(distrorelease) > 18
186 #libvirt-python-STOCK-DEVEL-RPMS += python3-devel python3-nose python3-lxml
187 #endif
188 #endif
189 libvirt-python-LOCAL-DEVEL-RPMS += libvirt-devel libvirt-docs libvirt-client
190 libvirt-python-RPMFLAGS :=     --define 'packager PlanetLab'
191 ALL += libvirt-python
192 IN_NODEREPO += libvirt-python
193 IN_NODEIMAGE += libvirt-python
194
195 endif
196
197 #
198 # DistributedRateLimiting
199 #
200 #DistributedRateLimiting-MODULES := DistributedRateLimiting
201 #DistributedRateLimiting-SPEC := DistributedRateLimiting.spec
202 #ALL += DistributedRateLimiting
203 #IN_NODEREPO += DistributedRateLimiting
204
205 #
206 # pf2slice
207 #
208 pf2slice-MODULES := pf2slice
209 pf2slice-SPEC := pf2slice.spec
210 ALL += pf2slice
211
212 ##
213 ## PlanetLab Mom: Cleans up your mess
214 ##
215 #mom-MODULES := mom
216 #mom-SPEC := pl_mom.spec
217 #ALL += mom
218 #IN_NODEIMAGE += mom
219
220 #
221 # openvswitch
222 #
223 # openvswitch-MODULES := openvswitch
224 # openvswitch-SPEC := openvswitch.spec
225 # openvswitch-STOCK-DEVEL-RPMS += kernel-devel
226 # IN_NODEIMAGE += openvswitch
227 # # build only on f14 as f16 has this natively
228 # ifeq "$(DISTRONAME)" "$(filter $(DISTRONAME),f14)"
229 # ALL += openvswitch
230 # endif
231
232 #
233 # vsys
234 #
235 vsys-MODULES := vsys
236 vsys-SPEC := vsys.spec
237 # ocaml-docs is not needed anymore but keep it on a tmp basis as some tags may still have it
238 vsys-STOCK-DEVEL-RPMS += ocaml-ocamldoc ocaml-docs
239 IN_NODEIMAGE += vsys
240 ALL += vsys
241
242 #
243 # vsyssh : installed in slivers
244 #
245 vsyssh-MODULES := vsys
246 vsyssh-SPEC := vsyssh.spec
247 IN_SLICEIMAGE += vsyssh
248 ALL += vsyssh
249
250 #
251 # vsys-scripts
252 #
253 vsys-scripts-MODULES := vsys-scripts
254 vsys-scripts-SPEC := root-context/vsys-scripts.spec
255 IN_NODEIMAGE += vsys-scripts
256 ALL += vsys-scripts
257
258 # xxx temporarily turning this off on f21
259 ifneq "$(DISTRONAME)" "$(filter $(DISTRONAME),f21 f22)"
260 vsys-wrapper-MODULES := vsys-scripts
261 vsys-wrapper-SPEC := slice-context/vsys-wrapper.spec
262 IN_SLICEIMAGE += vsys-wrapper
263 ALL += vsys-wrapper
264 endif
265
266 #
267 # bind_public
268 #
269 bind_public-MODULES := bind_public
270 bind_public-SPEC := bind_public.spec
271 IN_SLICEIMAGE += bind_public
272 ALL += bind_public
273
274 #
275 # sliver-openvswitch
276 #
277 sliver-openvswitch-MODULES := sliver-openvswitch
278 sliver-openvswitch-SPEC := sliver-openvswitch.spec
279 IN_SLICEIMAGE += sliver-openvswitch
280 ALL += sliver-openvswitch
281
282 #
283 # plcapi
284 #
285 plcapi-MODULES := plcapi
286 plcapi-SPEC := plcapi.spec
287 ALL += plcapi
288 IN_MYPLC += plcapi
289
290 #
291 # drupal
292
293 drupal-MODULES := drupal
294 drupal-SPEC := drupal.spec
295 drupal-BUILD-FROM-SRPM := yes
296 ALL += drupal
297 IN_MYPLC += drupal
298
299 #
300 # use the plewww module instead
301 #
302 plewww-MODULES := plewww
303 plewww-SPEC := plewww.spec
304 ALL += plewww
305 IN_MYPLC += plewww
306
307 #
308 # www-register-wizard
309 #
310 www-register-wizard-MODULES := www-register-wizard
311 www-register-wizard-SPEC := www-register-wizard.spec
312 ALL += www-register-wizard
313 IN_MYPLC += www-register-wizard
314
315 #
316 # pcucontrol
317 #
318 pcucontrol-MODULES := pcucontrol
319 pcucontrol-SPEC := pcucontrol.spec
320 ALL += pcucontrol
321
322 #
323 # monitor
324 #
325 #monitor-MODULES := monitor
326 #monitor-SPEC := Monitor.spec
327 #monitor-STOCK-DEVEL-RPMS += net-snmp net-snmp-devel
328 #ALL += monitor
329 #IN_NODEIMAGE += monitor
330
331 #
332 # PLC RT
333 #
334 plcrt-MODULES := PLCRT
335 plcrt-SPEC := plcrt.spec
336 ALL += plcrt
337
338 # f12 has 0.9-1 already
339 ifeq "$(DISTRONAME)" "$(filter $(DISTRONAME),f8 centos5)"
340 #
341 # pyopenssl
342 #
343 pyopenssl-MODULES := pyopenssl
344 pyopenssl-SPEC := pyOpenSSL.spec
345 pyopenssl-BUILD-FROM-SRPM := yes
346 ALL += pyopenssl
347 endif
348
349 #
350 # pyaspects
351 #
352 pyaspects-MODULES := pyaspects
353 pyaspects-SPEC := pyaspects.spec
354 pyaspects-BUILD-FROM-SRPM := yes
355 ALL += pyaspects
356
357 #
358 # nodeconfig
359 #
360 nodeconfig-MODULES := nodeconfig
361 nodeconfig-SPEC := nodeconfig.spec
362 ALL += nodeconfig
363 IN_MYPLC += nodeconfig
364
365 #
366 # bootmanager
367 #
368 bootmanager-MODULES := bootmanager
369 bootmanager-SPEC := bootmanager.spec
370 ALL += bootmanager
371 IN_MYPLC += bootmanager
372
373 #
374 # pypcilib : used in bootcd
375
376 pypcilib-MODULES := pypcilib
377 pypcilib-SPEC := pypcilib.spec
378 ALL += pypcilib
379 IN_BOOTCD += pypcilib
380
381 #
382 # pyplnet
383 #
384 pyplnet-MODULES := pyplnet
385 pyplnet-SPEC := pyplnet.spec
386 ALL += pyplnet
387 IN_NODEIMAGE += pyplnet
388 IN_MYPLC += pyplnet
389 IN_BOOTCD += pyplnet
390
391 #
392 # OML measurement library
393 #
394 oml-MODULES := oml
395 oml-STOCK-DEVEL-RPMS += sqlite-devel 
396 oml-SPEC := liboml.spec
397 ALL += oml
398
399 #
400 # bootcd
401 #
402 bootcd-MODULES := bootcd build
403 bootcd-SPEC := bootcd.spec
404 bootcd-DEPEND-PACKAGES := $(IN_BOOTCD)
405 bootcd-DEPEND-FILES := RPMS/yumgroups.xml
406 bootcd-RPMDATE := yes
407 ALL += bootcd
408 IN_MYPLC += bootcd
409
410 #
411 # images for slices
412 #
413 sliceimage-MODULES := sliceimage build
414 sliceimage-SPEC := sliceimage.spec
415 sliceimage-DEPEND-PACKAGES := $(IN_SLICEIMAGE)
416 sliceimage-DEPEND-FILES := RPMS/yumgroups.xml
417 sliceimage-RPMDATE := yes
418 ALL += sliceimage
419 IN_NODEIMAGE += sliceimage
420
421 #
422 # lxc-specific sliceimage initialization
423
424 lxc-sliceimage-MODULES  := sliceimage
425 lxc-sliceimage-SPEC     := lxc-sliceimage.spec
426 lxc-sliceimage-RPMDATE  := yes
427 ALL                     += lxc-sliceimage
428 IN_NODEIMAGE            += lxc-sliceimage
429
430 #
431 # nodeimage
432 #
433 nodeimage-MODULES := nodeimage build
434 nodeimage-SPEC := nodeimage.spec
435 nodeimage-DEPEND-PACKAGES := $(IN_NODEIMAGE)
436 nodeimage-DEPEND-FILES := RPMS/yumgroups.xml
437 nodeimage-RPMDATE := yes
438 ALL += nodeimage
439 IN_MYPLC += nodeimage
440
441 #
442 # noderepo
443 #
444 # all rpms resulting from packages marked as being in nodeimage and sliceimage
445 NODEREPO_RPMS = $(foreach package,$(IN_NODEIMAGE) $(IN_NODEREPO) $(IN_SLICEIMAGE),$($(package).rpms))
446 # replace space with +++ (specvars cannot deal with spaces)
447 SPACE=$(subst x, ,x)
448 NODEREPO_RPMS_3PLUS = $(subst $(SPACE),+++,$(NODEREPO_RPMS))
449
450 noderepo-MODULES := nodeimage
451 noderepo-SPEC := noderepo.spec
452 # package requires all embedded packages
453 noderepo-DEPEND-PACKAGES := $(IN_NODEIMAGE) $(IN_NODEREPO) $(IN_SLICEIMAGE)
454 noderepo-DEPEND-FILES := RPMS/yumgroups.xml
455 #export rpm list to the specfile
456 noderepo-SPECVARS = node_rpms_plus=$(NODEREPO_RPMS_3PLUS)
457 noderepo-RPMDATE := yes
458 ALL += noderepo
459 IN_MYPLC += noderepo
460
461 #
462 # slicerepo
463 #
464 # all rpms resulting from packages marked as being in vserver
465 SLICEREPO_RPMS = $(foreach package,$(IN_SLICEIMAGE),$($(package).rpms))
466 # replace space with +++ (specvars cannot deal with spaces)
467 SPACE=$(subst x, ,x)
468 SLICEREPO_RPMS_3PLUS = $(subst $(SPACE),+++,$(SLICEREPO_RPMS))
469
470 slicerepo-MODULES := nodeimage
471 slicerepo-SPEC := slicerepo.spec
472 # package requires all embedded packages
473 slicerepo-DEPEND-PACKAGES := $(IN_SLICEIMAGE)
474 slicerepo-DEPEND-FILES := RPMS/yumgroups.xml
475 #export rpm list to the specfile
476 slicerepo-SPECVARS = slice_rpms_plus=$(SLICEREPO_RPMS_3PLUS)
477 slicerepo-RPMDATE := yes
478 ALL += slicerepo
479
480 #
481 # MyPLC : lightweight packaging, dependencies are yum-installed in a vserver
482 #
483 myplc-MODULES := myplc
484 myplc-SPEC := myplc.spec
485 myplc-DEPEND-FILES := myplc-release RPMS/yumgroups.xml
486 ALL += myplc
487
488 # myplc-docs only contains docs for PLCAPI and NMAPI, but
489 # we still need to pull MyPLC, as it is where the specfile lies, 
490 # together with the utility script docbook2drupal.sh
491 myplc-docs-MODULES := myplc plcapi nodemanager monitor
492 myplc-docs-SPEC := myplc-docs.spec
493 ALL += myplc-docs
494
495 # using some other name than myplc-release, as this is a make target already
496 release-MODULES := myplc
497 release-SPEC := myplc-release.spec
498 release-RPMDATE := yes
499 ALL += release
500
501 ##############################
502 #
503 # sfa - Slice Facility Architecture
504 #
505 sfa-MODULES := sfa
506 sfa-SPEC := sfa.spec
507 ALL += sfa