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