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