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