Added new lxc administration packages to lxc distribution
[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 := transforward
17 lxctools-SPEC := transforward.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 #################### libvirt on f16 is too old, sounds like f17 has something fine
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 libvirt-DEVEL-RPMS += libxml2-devel gnutls-devel device-mapper-devel yajl-devel gettext 
133 libvirt-DEVEL-RPMS += python-devel libcap-ng-devel libpciaccess-devel radvd numactl-devel 
134 libvirt-DEVEL-RPMS += xhtml1-dtds libxslt libtasn1-devel systemtap-sdt-devel iptables-ipv6 augeas 
135 libvirt-DEVEL-RPMS += libudev-devel libpcap-devel libnl-devel ebtables scrub
136 libvirt-RPMFLAGS := --without storage-disk --without storage-iscsi --without storage-scsi \
137                         --without storage-fs --without storage-lvm \
138                         --without polkit --without sasl --without audit --with capng --with udev \
139                         --without netcf --without avahi --without sanlock \
140                         --without xen --without qemu --without hyperv --without phyp --without esx \
141                         --without libxl \
142                         --define 'packager PlanetLab'
143 ALL += libvirt
144 IN_NODEREPO += libvirt
145 IN_NODEIMAGE += libvirt
146 endif
147
148 #
149 # DistributedRateLimiting
150 #
151 #DistributedRateLimiting-MODULES := DistributedRateLimiting
152 #DistributedRateLimiting-SPEC := DistributedRateLimiting.spec
153 #ALL += DistributedRateLimiting
154 #IN_NODEREPO += DistributedRateLimiting
155
156 #
157 # pf2slice
158 #
159 pf2slice-MODULES := pf2slice
160 pf2slice-SPEC := pf2slice.spec
161 ALL += pf2slice
162
163 ##
164 ## PlanetLab Mom: Cleans up your mess
165 ##
166 #mom-MODULES := mom
167 #mom-SPEC := pl_mom.spec
168 #ALL += mom
169 #IN_NODEIMAGE += mom
170
171 #
172 # inotify-tools - local import
173 # rebuild this on centos5 (not found) - see yumexclude
174 #
175 local_inotify_tools=false
176 ifeq "$(DISTRONAME)" "centos5"
177 local_inotify_tools=true
178 endif
179
180 ifeq "$(DISTRONAME)" "sl6"
181 local_inotify_tools=true
182 endif
183
184 ifeq "$(local_inotify_tools)" "true"
185 inotify-tools-MODULES := inotify-tools
186 inotify-tools-SPEC := inotify-tools.spec
187 inotify-tools-BUILD-FROM-SRPM := yes
188 IN_NODEIMAGE += inotify-tools
189 ALL += inotify-tools
190 endif
191
192 #
193 # openvswitch
194 #
195 # openvswitch-MODULES := openvswitch
196 # openvswitch-SPEC := openvswitch.spec
197 # openvswitch-DEPEND-DEVEL-RPMS += kernel-devel
198 # IN_NODEIMAGE += openvswitch
199 # # build only on f14 as f16 has this natively
200 # ifeq "$(DISTRONAME)" "$(filter $(DISTRONAME),f14)"
201 # ALL += openvswitch
202 # endif
203
204 #
205 # vsys
206 #
207 vsys-MODULES := vsys
208 vsys-SPEC := vsys.spec
209 # ocaml-docs is not needed anymore but keep it on a tmp basis as some tags may still have it
210 vsys-DEVEL-RPMS += ocaml-ocamldoc ocaml-docs
211 ifeq "$(local_inotify_tools)" "true"
212 vsys-DEPEND-DEVEL-RPMS += inotify-tools inotify-tools-devel
213 endif
214 IN_NODEIMAGE += vsys
215 ALL += vsys
216
217 #
218 # vsyssh : installed in slivers
219 #
220 vsyssh-MODULES := vsys
221 vsyssh-SPEC := vsyssh.spec
222 IN_SLICEIMAGE += vsyssh
223 ALL += vsyssh
224
225 #
226 # vsys-scripts
227 #
228 vsys-scripts-MODULES := vsys-scripts
229 vsys-scripts-SPEC := root-context/vsys-scripts.spec
230 IN_NODEIMAGE += vsys-scripts
231 ALL += vsys-scripts
232
233 #
234 # bind_public
235 #
236 bind_public-MODULES := bind_public
237 bind_public-SPEC := bind_public.spec
238 IN_SLICEIMAGE += bind_public
239 ALL += bind_public
240
241 #
242 # plcapi
243 #
244 plcapi-MODULES := plcapi
245 plcapi-SPEC := PLCAPI.spec
246 ALL += plcapi
247 IN_MYPLC += plcapi
248
249 #
250 # drupal
251
252 drupal-MODULES := drupal
253 drupal-SPEC := drupal.spec
254 drupal-BUILD-FROM-SRPM := yes
255 ALL += drupal
256 IN_MYPLC += drupal
257
258 #
259 # use the plewww module instead
260 #
261 plewww-MODULES := plewww
262 plewww-SPEC := plewww.spec
263 ALL += plewww
264 IN_MYPLC += plewww
265
266 #
267 # www-register-wizard
268 #
269 www-register-wizard-MODULES := www-register-wizard
270 www-register-wizard-SPEC := www-register-wizard.spec
271 ALL += www-register-wizard
272 IN_MYPLC += www-register-wizard
273
274 #
275 # pcucontrol
276 #
277 pcucontrol-MODULES := pcucontrol
278 pcucontrol-SPEC := pcucontrol.spec
279 ALL += pcucontrol
280
281 #
282 # monitor
283 #
284 #monitor-MODULES := monitor
285 #monitor-SPEC := Monitor.spec
286 #monitor-DEVEL-RPMS += net-snmp net-snmp-devel
287 #ALL += monitor
288 #IN_NODEIMAGE += monitor
289
290 #
291 # PLC RT
292 #
293 plcrt-MODULES := PLCRT
294 plcrt-SPEC := plcrt.spec
295 ALL += plcrt
296
297 # f12 has 0.9-1 already
298 ifeq "$(DISTRONAME)" "$(filter $(DISTRONAME),f8 centos5)"
299 #
300 # pyopenssl
301 #
302 pyopenssl-MODULES := pyopenssl
303 pyopenssl-SPEC := pyOpenSSL.spec
304 pyopenssl-BUILD-FROM-SRPM := yes
305 ALL += pyopenssl
306 endif
307
308 #
309 # pyaspects
310 #
311 pyaspects-MODULES := pyaspects
312 pyaspects-SPEC := pyaspects.spec
313 pyaspects-BUILD-FROM-SRPM := yes
314 ALL += pyaspects
315
316 # sfa now uses the with statement that's not supported on python-2.4 - not even through __future__
317 # In addition we now use sqlalchemy and 0.5 as per f12 is not compatible with our model
318 build_sfa=true
319 ifeq "$(DISTRONAME)" "$(filter $(DISTRONAME),f8 f12 centos5)"
320 build_sfa=false
321 endif
322
323 ifeq "$(build_sfa)" "true"
324 #
325 # sfa - Slice Facility Architecture
326 #
327 sfa-MODULES := sfa
328 sfa-SPEC := sfa.spec
329 ALL += sfa
330
331 sface-MODULES := sface
332 sface-SPEC := sface.spec
333 ALL += sface
334 endif
335
336 #
337 # nodeconfig
338 #
339 nodeconfig-MODULES := nodeconfig
340 nodeconfig-SPEC := nodeconfig.spec
341 ALL += nodeconfig
342 IN_MYPLC += nodeconfig
343
344 #
345 # bootmanager
346 #
347 bootmanager-MODULES := bootmanager
348 bootmanager-SPEC := bootmanager.spec
349 ALL += bootmanager
350 IN_MYPLC += bootmanager
351
352 #
353 # pypcilib : used in bootcd
354
355 pypcilib-MODULES := pypcilib
356 pypcilib-SPEC := pypcilib.spec
357 ALL += pypcilib
358 IN_BOOTCD += pypcilib
359
360 #
361 # pyplnet
362 #
363 pyplnet-MODULES := pyplnet
364 pyplnet-SPEC := pyplnet.spec
365 ALL += pyplnet
366 IN_NODEIMAGE += pyplnet
367 IN_MYPLC += pyplnet
368 IN_BOOTCD += pyplnet
369
370 #
371 # OMF resource controller
372 #
373 omf-resctl-MODULES := omf
374 omf-resctl-SPEC := omf-resctl.spec
375 ALL += omf-resctl
376 IN_SLICEIMAGE += omf-resctl
377
378 #
379 # OMF exp controller
380 #
381 omf-expctl-MODULES := omf
382 omf-expctl-SPEC := omf-expctl.spec
383 ALL += omf-expctl
384
385 #
386 # bootcd
387 #
388 bootcd-MODULES := bootcd build
389 bootcd-SPEC := bootcd.spec
390 bootcd-DEPEND-PACKAGES := $(IN_BOOTCD)
391 bootcd-DEPEND-FILES := RPMS/yumgroups.xml
392 bootcd-RPMDATE := yes
393 ALL += bootcd
394 IN_MYPLC += bootcd
395
396 #
397 # images for slices
398 #
399 sliceimage-MODULES := sliceimage build
400 sliceimage-SPEC := sliceimage.spec
401 sliceimage-DEPEND-PACKAGES := $(IN_SLICEIMAGE)
402 sliceimage-DEPEND-FILES := RPMS/yumgroups.xml
403 sliceimage-RPMDATE := yes
404 ALL += sliceimage
405 IN_NODEIMAGE += sliceimage
406
407 #
408 # lxc-specific sliceimage initialization
409
410 lxc-sliceimage-MODULES  := sliceimage
411 lxc-sliceimage-SPEC     := lxc-sliceimage.spec
412 lxc-sliceimage-RPMDATE  := yes
413 ALL                     += lxc-sliceimage
414 IN_NODEIMAGE            += lxc-sliceimage
415
416 #
417 # nodeimage
418 #
419 nodeimage-MODULES := nodeimage build
420 nodeimage-SPEC := nodeimage.spec
421 nodeimage-DEPEND-PACKAGES := $(IN_NODEIMAGE)
422 nodeimage-DEPEND-FILES := RPMS/yumgroups.xml
423 nodeimage-RPMDATE := yes
424 ALL += nodeimage
425 IN_MYPLC += nodeimage
426
427 #
428 # noderepo
429 #
430 # all rpms resulting from packages marked as being in nodeimage and sliceimage
431 NODEREPO_RPMS = $(foreach package,$(IN_NODEIMAGE) $(IN_NODEREPO) $(IN_SLICEIMAGE),$($(package).rpms))
432 # replace space with +++ (specvars cannot deal with spaces)
433 SPACE=$(subst x, ,x)
434 NODEREPO_RPMS_3PLUS = $(subst $(SPACE),+++,$(NODEREPO_RPMS))
435
436 noderepo-MODULES := nodeimage
437 noderepo-SPEC := noderepo.spec
438 # package requires all embedded packages
439 noderepo-DEPEND-PACKAGES := $(IN_NODEIMAGE) $(IN_NODEREPO) $(IN_SLICEIMAGE)
440 noderepo-DEPEND-FILES := RPMS/yumgroups.xml
441 #export rpm list to the specfile
442 noderepo-SPECVARS = node_rpms_plus=$(NODEREPO_RPMS_3PLUS)
443 noderepo-RPMDATE := yes
444 ALL += noderepo
445 IN_MYPLC += noderepo
446
447 #
448 # slicerepo
449 #
450 # all rpms resulting from packages marked as being in vserver
451 SLICEREPO_RPMS = $(foreach package,$(IN_SLICEIMAGE),$($(package).rpms))
452 # replace space with +++ (specvars cannot deal with spaces)
453 SPACE=$(subst x, ,x)
454 SLICEREPO_RPMS_3PLUS = $(subst $(SPACE),+++,$(SLICEREPO_RPMS))
455
456 slicerepo-MODULES := nodeimage
457 slicerepo-SPEC := slicerepo.spec
458 # package requires all embedded packages
459 slicerepo-DEPEND-PACKAGES := $(IN_SLICEIMAGE)
460 slicerepo-DEPEND-FILES := RPMS/yumgroups.xml
461 #export rpm list to the specfile
462 slicerepo-SPECVARS = slice_rpms_plus=$(SLICEREPO_RPMS_3PLUS)
463 slicerepo-RPMDATE := yes
464 ALL += slicerepo
465
466 #
467 # MyPLC : lightweight packaging, dependencies are yum-installed in a vserver
468 #
469 myplc-MODULES := myplc
470 myplc-SPEC := myplc.spec
471 myplc-DEPEND-FILES := myplc-release RPMS/yumgroups.xml
472 ALL += myplc
473
474 # myplc-docs only contains docs for PLCAPI and NMAPI, but
475 # we still need to pull MyPLC, as it is where the specfile lies, 
476 # together with the utility script docbook2drupal.sh
477 myplc-docs-MODULES := myplc plcapi nodemanager monitor
478 myplc-docs-SPEC := myplc-docs.spec
479 ALL += myplc-docs
480
481 # using some other name than myplc-release, as this is a make target already
482 release-MODULES := myplc
483 release-SPEC := myplc-release.spec
484 release-RPMDATE := yes
485 ALL += release