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