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