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