disable madwifi for k32 builds
[build.git] / planetlab.mk
1 # $Id$
2 # $URL$
3 #
4 # declare the packages to be built and their dependencies
5 # initial version from Mark Huang
6 # Mark Huang <mlhuang@cs.princeton.edu>
7 # Copyright (C) 2003-2006 The Trustees of Princeton University
8 # rewritten by Thierry Parmentelat - INRIA Sophia Antipolis
9 #
10 # see doc in Makefile  
11 #
12
13 # mkinitrd
14 #
15 ifeq "$(PLDISTROTAGS)" "planetlab-k32-tags.mk"
16 ifeq "$(DISTRONAME)" "centos5"
17 mkinitrd-MODULES := mkinitrd
18 mkinitrd-SPEC := mkinitrd.spec
19 mkinitrd-BUILD-FROM-SRPM := yes
20 ALL += mkinitrd
21 IN_BOOTCD += mkinitrd
22 IN_VSERVER += mkinitrd 
23 IN_BOOTSTRAPFS += mkinitrd
24 IN_MYPLC += mkinitrd
25 endif
26 endif
27 #
28 # kernel
29 #
30 # use a package name with srpm in it:
31 # so the source rpm is created by running make srpm in the codebase
32 #
33
34 kernel-MODULES := linux-2.6
35 kernel-SPEC := kernel-2.6.spec
36 kernel-BUILD-FROM-SRPM := yes
37 ifeq "$(HOSTARCH)" "i386"
38 kernel-RPMFLAGS:= --target i686
39 else
40 kernel-RPMFLAGS:= --target $(HOSTARCH)
41 endif
42 KERNELS += kernel
43
44 kernels: $(KERNELS)
45 kernels-clean: $(foreach package,$(KERNELS),$(package)-clean)
46
47 ALL += $(KERNELS)
48 # this is to mark on which image a given rpm is supposed to go
49 IN_BOOTCD += $(KERNELS)
50 IN_VSERVER += $(KERNELS)
51 IN_BOOTSTRAPFS += $(KERNELS)
52 # turns out myplc installs kernel-vserver
53 IN_MYPLC += $(KERNELS)
54
55 #
56 # madwifi
57 #
58
59 ifeq "$(PLDISTROTAGS)" "planetlab-k32-tags.mk"
60 ifneq "$(DISTRONAME)" "f8"
61 madwifi-MODULES := madwifi
62 madwifi-SPEC := madwifi.spec
63 madwifi-BUILD-FROM-SRPM := yes
64 madwifi-DEPEND-DEVEL-RPMS := kernel-devel
65 madwifi-SPECVARS = kernel_version=$(kernel.rpm-version) \
66         kernel_release=$(kernel.rpm-release) \
67         kernel_arch=$(kernel.rpm-arch)
68 ALL += madwifi
69 IN_BOOTSTRAPFS += madwifi
70 endif
71 endif
72
73 #
74 # util-vserver
75 #
76 util-vserver-MODULES := util-vserver
77 util-vserver-SPEC := util-vserver.spec
78 util-vserver-RPMFLAGS:= --without dietlibc
79 ALL += util-vserver
80 IN_BOOTSTRAPFS += util-vserver
81
82 #
83 # libnl - local import
84 # we need either 1.1 or at least 1.0.pre6
85 # rebuild this on centos5 - see kexcludes in build.common
86 #
87 local_libnl=false
88 ifeq "$(DISTRONAME)" "centos5"
89 local_libnl=true
90 endif
91
92 ifeq "$(local_libnl)" "true"
93 libnl-MODULES := libnl
94 libnl-SPEC := libnl.spec
95 libnl-BUILD-FROM-SRPM := yes
96 # this sounds like the thing to do, but in fact linux/if_vlan.h comes with kernel-headers
97 libnl-DEPEND-DEVEL-RPMS := kernel-devel kernel-headers
98 ALL += libnl
99 IN_BOOTSTRAPFS += libnl
100 endif
101
102 #
103 # util-vserver-pl
104 #
105 util-vserver-pl-MODULES := util-vserver-pl
106 util-vserver-pl-SPEC := util-vserver-pl.spec
107 util-vserver-pl-DEPEND-DEVEL-RPMS := util-vserver-lib util-vserver-devel util-vserver-core 
108 ifeq "$(local_libnl)" "true"
109 util-vserver-pl-DEPEND-DEVEL-RPMS += libnl libnl-devel
110 endif
111 ALL += util-vserver-pl
112 IN_BOOTSTRAPFS += util-vserver-pl
113
114 #
115 # NodeUpdate
116 #
117 nodeupdate-MODULES := nodeupdate
118 nodeupdate-SPEC := NodeUpdate.spec
119 ALL += nodeupdate
120 IN_BOOTSTRAPFS += nodeupdate
121
122 #
123 # ipod
124 #
125 ipod-MODULES := PingOfDeath
126 ipod-SPEC := ipod.spec
127 ALL += ipod
128 IN_BOOTSTRAPFS += ipod
129
130 #
131 # NodeManager
132 #
133 nodemanager-MODULES := nodemanager
134 nodemanager-SPEC := NodeManager.spec
135 ALL += nodemanager
136 IN_BOOTSTRAPFS += nodemanager
137
138 #
139 # pl_sshd
140 #
141 sshd-MODULES := pl_sshd
142 sshd-SPEC := pl_sshd.spec
143 ALL += sshd
144 IN_BOOTSTRAPFS += sshd
145
146 #
147 # codemux: Port 80 demux
148 #
149 codemux-MODULES := codemux
150 codemux-SPEC   := codemux.spec
151 codemux-RPMBUILD := sudo bash ./rpmbuild.sh
152 ALL += codemux
153 IN_BOOTSTRAPFS += codemux
154
155 #
156 # fprobe-ulog
157 #
158 fprobe-ulog-MODULES := fprobe-ulog
159 fprobe-ulog-SPEC := fprobe-ulog.spec
160 ALL += fprobe-ulog
161 IN_BOOTSTRAPFS += fprobe-ulog
162
163 #
164 # DistributedRateLimiting
165 #
166 DistributedRateLimiting-MODULES := DistributedRateLimiting
167 DistributedRateLimiting-SPEC := DistributedRateLimiting.spec
168 ALL += DistributedRateLimiting
169 IN_NODEREPO += DistributedRateLimiting
170
171 #
172 # pf2slice
173 #
174 pf2slice-MODULES := pf2slice
175 pf2slice-SPEC := pf2slice.spec
176 ALL += pf2slice
177
178 #
179 # PlanetLab Mom: Cleans up your mess
180 #
181 mom-MODULES := Mom
182 mom-SPEC := pl_mom.spec
183 ALL += mom
184 IN_BOOTSTRAPFS += mom
185
186 #
187 # iptables
188 #
189 iptables-MODULES := iptables
190 iptables-SPEC := iptables.spec
191 iptables-DEPEND-DEVEL-RPMS := kernel-devel kernel-headers
192 ALL += iptables
193 IN_BOOTSTRAPFS += iptables
194
195 #
196 # iproute
197 #
198 iproute-MODULES := iproute2
199 iproute-SPEC := iproute.spec
200 ALL += iproute
201 IN_BOOTSTRAPFS += iproute
202 IN_VSERVER += iproute
203 IN_BOOTCD += iproute
204
205 #
206 # inotify-tools - local import
207 # rebuild this on centos5 (not found) - see kexcludes in build.common
208 #
209 local_inotify_tools=false
210 ifeq "$(DISTRONAME)" "centos5"
211 local_inotify_tools=true
212 endif
213
214 ifeq "$(local_inotify_tools)" "true"
215 inotify-tools-MODULES := inotify-tools
216 inotify-tools-SPEC := inotify-tools.spec
217 inotify-tools-BUILD-FROM-SRPM := yes
218 IN_BOOTSTRAPFS += inotify-tools
219 ALL += inotify-tools
220 endif
221
222 #
223 # openvswitch
224 #
225 openvswitch-MODULES := openvswitch
226 openvswitch-SPEC := openvswitch.spec
227 IN_BOOTSTRAPFS += openvswitch
228 ALL += openvswitch
229
230 #
231 # vsys
232 #
233 vsys-MODULES := vsys
234 vsys-SPEC := vsys.spec
235 ifeq "$(local_inotify_tools)" "true"
236 vsys-DEPEND-DEVEL-RPMS := inotify-tools inotify-tools-devel
237 endif
238 IN_BOOTSTRAPFS += vsys
239 ALL += vsys
240
241 #
242 # vsys-scripts
243 #
244 vsys-scripts-MODULES := vsys-scripts
245 vsys-scripts-SPEC := vsys-scripts.spec
246 IN_BOOTSTRAPFS += vsys-scripts
247 ALL += vsys-scripts
248
249 #
250 # PLCAPI
251 #
252 plcapi-MODULES := plcapi
253 plcapi-SPEC := PLCAPI.spec
254 ALL += plcapi
255 IN_MYPLC += plcapi
256
257 #
258 # drupal
259
260 drupal-MODULES := drupal
261 drupal-SPEC := drupal.spec
262 drupal-BUILD-FROM-SRPM := yes
263 ALL += drupal
264 IN_MYPLC += drupal
265
266 #
267 # use the plewww module instead
268 #
269 plewww-MODULES := plewww
270 plewww-SPEC := plewww.spec
271 ALL += plewww
272 IN_MYPLC += plewww
273
274 #
275 # www-register-wizard
276 #
277 www-register-wizard-MODULES := www-register-wizard
278 www-register-wizard-SPEC := www-register-wizard.spec
279 ALL += www-register-wizard
280 IN_MYPLC += www-register-wizard
281
282 #
283 # pcucontrol
284 #
285 pcucontrol-MODULES := pcucontrol
286 pcucontrol-SPEC := pcucontrol.spec
287 ALL += pcucontrol
288
289 #
290 # monitor
291 #
292 monitor-MODULES := Monitor
293 monitor-SPEC := Monitor.spec
294 ALL += monitor
295 IN_BOOTSTRAPFS += monitor
296
297 #
298 # PLC RT
299 #
300 plcrt-MODULES := PLCRT
301 plcrt-SPEC := plcrt.spec
302 ALL += plcrt
303
304 #
305 # zabbix
306 #
307 zabbix-MODULES := Monitor
308 zabbix-SPEC := zabbix.spec
309 zabbix-BUILD-FROM-SRPM := yes
310 ALL += zabbix
311
312 #
313 # pyopenssl
314 #
315 pyopenssl-MODULES := pyopenssl
316 pyopenssl-SPEC := pyOpenSSL.spec
317 pyopenssl-BUILD-FROM-SRPM := yes
318 ALL += pyopenssl
319
320
321 #
322 # pyaspects
323 #
324 pyaspects-MODULES := pyaspects
325 pyaspects-SPEC := pyaspects.spec
326 pyaspects-BUILD-FROM-SRPM := yes
327 ALL += pyaspects
328
329 #
330 # ejabberd
331 #
332 ejabberd-MODULES := ejabberd
333 ejabberd-SPEC := ejabberd.spec
334 ejabberd-BUILD-FROM-SRPM := yes
335 # not needed anymore on f12 and above, that come with 2.1.5, and we had 2.1.3
336 # so, this is relevant on f8 and centos5 only
337 ifeq "$(DISTRONAME)" "$(filter $(DISTRONAME),f8 centos5)"
338 ALL += ejabberd
339 endif
340
341 # sfa now uses the with statement that's not supported on python-2.4 - not even through __future__
342 build_sfa=true
343 ifeq "$(DISTRONAME)" "centos5"
344 build_sfa=false
345 endif
346
347 ifeq "$(build_sfa)" "true"
348 #
349 # sfa - Slice Facility Architecture
350 #
351 sfa-MODULES := sfa
352 sfa-SPEC := sfa.spec
353 ALL += sfa
354 endif
355
356 #
357 # nodeconfig
358 #
359 # xxx needed when upgrading to 5.0
360 #nodeconfig-MODULES := nodeconfig
361 nodeconfig-MODULES := nodeconfig
362 nodeconfig-SPEC := nodeconfig.spec
363 ALL += nodeconfig
364 IN_MYPLC += nodeconfig
365
366 #
367 # bootmanager
368 #
369 bootmanager-MODULES := bootmanager
370 bootmanager-SPEC := bootmanager.spec
371 ALL += bootmanager
372 IN_MYPLC += bootmanager
373
374 #
375 # pypcilib : used in bootcd
376
377 pypcilib-MODULES := pypcilib
378 pypcilib-SPEC := pypcilib.spec
379 ALL += pypcilib
380 IN_BOOTCD += pypcilib
381
382 #
383 # pyplnet
384 #
385 pyplnet-MODULES := pyplnet
386 pyplnet-SPEC := pyplnet.spec
387 ALL += pyplnet
388 IN_BOOTSTRAPFS += pyplnet
389 IN_MYPLC += pyplnet
390 IN_BOOTCD += pyplnet
391
392
393 #
394 # OMF resource controller
395 #
396 omf-resctl-MODULES := omf
397 omf-resctl-SPEC := omf-resctl.spec
398 ALL += omf-resctl
399 IN_VSERVER += omf-resctl
400
401 #
402 # OMF exp controller
403 #
404 omf-expctl-MODULES := omf
405 omf-expctl-SPEC := omf-expctl.spec
406 ALL += omf-expctl
407
408
409 #
410 # bootcd
411 #
412 bootcd-MODULES := bootcd build
413 bootcd-SPEC := bootcd.spec
414 bootcd-RPMBUILD := sudo bash ./rpmbuild.sh
415 bootcd-DEPEND-PACKAGES := $(IN_BOOTCD)
416 bootcd-DEPEND-FILES := RPMS/yumgroups.xml
417 bootcd-RPMDATE := yes
418 ALL += bootcd
419 IN_MYPLC += bootcd
420
421 #
422 # vserver : reference image for slices
423 #
424 vserver-MODULES := vserver-reference build
425 vserver-SPEC := vserver-reference.spec
426 vserver-DEPEND-PACKAGES := $(IN_VSERVER)
427 vserver-DEPEND-FILES := RPMS/yumgroups.xml
428 vserver-RPMDATE := yes
429 ALL += vserver
430 IN_BOOTSTRAPFS += vserver
431
432 #
433 # bootstrapfs
434 #
435 bootstrapfs-MODULES := bootstrapfs build
436 bootstrapfs-SPEC := bootstrapfs.spec
437 bootstrapfs-RPMBUILD := sudo bash ./rpmbuild.sh
438 bootstrapfs-DEPEND-PACKAGES := $(IN_BOOTSTRAPFS)
439 bootstrapfs-DEPEND-FILES := RPMS/yumgroups.xml
440 bootstrapfs-RPMDATE := yes
441 ALL += bootstrapfs
442 IN_MYPLC += bootstrapfs
443
444 #
445 # noderepo
446 #
447 # all rpms resulting from packages marked as being in bootstrapfs and vserver
448 NODEREPO_RPMS = $(foreach package,$(IN_BOOTSTRAPFS) $(IN_NODEREPO) $(IN_VSERVER),$($(package).rpms))
449 # replace space with +++ (specvars cannot deal with spaces)
450 SPACE=$(subst x, ,x)
451 NODEREPO_RPMS_3PLUS = $(subst $(SPACE),+++,$(NODEREPO_RPMS))
452
453 noderepo-MODULES := bootstrapfs
454 noderepo-SPEC := noderepo.spec
455 noderepo-RPMBUILD := sudo bash ./rpmbuild.sh
456 # package requires all regular packages
457 noderepo-DEPEND-PACKAGES := $(IN_BOOTSTRAPFS) $(IN_NODEREPO) $(IN_VSERVER)
458 noderepo-DEPEND-FILES := RPMS/yumgroups.xml
459 #export rpm list to the specfile
460 noderepo-SPECVARS = node_rpms_plus=$(NODEREPO_RPMS_3PLUS)
461 noderepo-RPMDATE := yes
462 ALL += noderepo
463 IN_MYPLC += noderepo
464
465 #
466 # MyPLC : lightweight packaging, dependencies are yum-installed in a vserver
467 #
468 myplc-MODULES := myplc
469 myplc-SPEC := myplc.spec
470 myplc-DEPEND-FILES := myplc-release RPMS/yumgroups.xml
471 ALL += myplc
472
473 # myplc-docs only contains docs for PLCAPI and NMAPI, but
474 # we still need to pull MyPLC, as it is where the specfile lies, 
475 # together with the utility script docbook2drupal.sh
476 myplc-docs-MODULES := myplc plcapi nodemanager Monitor
477 myplc-docs-SPEC := myplc-docs.spec
478 ALL += myplc-docs
479
480 # using some other name than myplc-release, as this is a make target already
481 release-MODULES := myplc
482 release-SPEC := myplc-release.spec
483 release-RPMDATE := yes
484 ALL += release
485