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