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
14 # use a package name with srpm in it:
15 # so the source rpm is created by running make srpm in the codebase
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
24 kernel-RPMFLAGS:= --target $(HOSTARCH)
26 kernel-SPECVARS += kernelconfig=planetlab
30 kernels-clean: $(foreach package,$(KERNELS),$(package)-clean)
33 # this is to mark on which image a given rpm is supposed to go
34 IN_BOOTCD += $(KERNELS)
35 IN_VSERVER += $(KERNELS)
36 IN_BOOTSTRAPFS += $(KERNELS)
39 # ipfw: root context module, and slice companion
41 ipfwroot-MODULES := ipfw
42 ipfwroot-SPEC := planetlab/ipfwroot.spec
43 ipfwroot-DEPEND-DEVEL-RPMS += kernel-devel
44 ipfwroot-SPECVARS = kernel_version=$(kernel.rpm-version) \
45 kernel_release=$(kernel.rpm-release) \
46 kernel_arch=$(kernel.rpm-arch)
48 IN_BOOTSTRAPFS += ipfwroot
50 ipfwslice-MODULES := ipfw
51 ipfwslice-SPEC := planetlab/ipfwslice.spec
52 ipfwslice-SPECVARS = kernel_version=$(kernel.rpm-version) \
53 kernel_release=$(kernel.rpm-release) \
54 kernel_arch=$(kernel.rpm-arch)
60 madwifi-MODULES := madwifi
61 madwifi-SPEC := madwifi.spec
62 madwifi-BUILD-FROM-SRPM := yes
63 madwifi-DEPEND-DEVEL-RPMS += kernel-devel
64 madwifi-SPECVARS = kernel_version=$(kernel.rpm-version) \
65 kernel_release=$(kernel.rpm-release) \
66 kernel_arch=$(kernel.rpm-arch)
68 IN_BOOTSTRAPFS += madwifi
73 comgt-MODULES := comgt
74 comgt-SPEC := comgt.spec
75 IN_BOOTSTRAPFS += comgt
79 # umts: root context stuff
81 umts-backend-MODULES := planetlab-umts-tools
82 umts-backend-SPEC := backend.spec
83 IN_BOOTSTRAPFS += umts-backend
89 umts-frontend-MODULES := planetlab-umts-tools
90 umts-frontend-SPEC := frontend.spec
91 IN_VSERVER += umts-frontend
97 iptables-MODULES := iptables
98 iptables-SPEC := iptables.spec
99 iptables-BUILD-FROM-SRPM := yes
100 iptables-DEPEND-DEVEL-RPMS += kernel-devel kernel-headers
102 IN_BOOTSTRAPFS += iptables
107 iproute-MODULES := iproute2
108 iproute-SPEC := iproute.spec
109 iproute-BUILD-FROM-SRPM := yes
111 IN_BOOTSTRAPFS += iproute
112 IN_VSERVER += iproute
118 util-vserver-MODULES := util-vserver
119 util-vserver-SPEC := util-vserver.spec
121 util-vserver-BUILD-FROM-SRPM := yes
122 util-vserver-RPMFLAGS:= --without dietlibc --without doc
124 IN_BOOTSTRAPFS += util-vserver
127 # libnl - local import
128 # we need either 1.1 or at least 1.0.pre6
129 # rebuild this on centos5 - see kexcludes in build.common
132 ifeq "$(DISTRONAME)" "centos5"
136 ifeq "$(local_libnl)" "true"
137 libnl-MODULES := libnl
138 libnl-SPEC := libnl.spec
139 libnl-BUILD-FROM-SRPM := yes
140 # this sounds like the thing to do, but in fact linux/if_vlan.h comes with kernel-headers
141 libnl-DEPEND-DEVEL-RPMS += kernel-devel kernel-headers
143 IN_BOOTSTRAPFS += libnl
149 util-vserver-pl-MODULES := util-vserver-pl
150 util-vserver-pl-SPEC := util-vserver-pl.spec
151 util-vserver-pl-DEPEND-DEVEL-RPMS += util-vserver-lib util-vserver-devel util-vserver-core
152 ifeq "$(local_libnl)" "true"
153 util-vserver-pl-DEPEND-DEVEL-RPMS += libnl libnl-devel
155 ALL += util-vserver-pl
156 IN_BOOTSTRAPFS += util-vserver-pl
161 nodeupdate-MODULES := nodeupdate
162 nodeupdate-SPEC := NodeUpdate.spec
164 IN_BOOTSTRAPFS += nodeupdate
169 ipod-MODULES := PingOfDeath
170 ipod-SPEC := ipod.spec
172 IN_BOOTSTRAPFS += ipod
177 nodemanager-MODULES := nodemanager
178 nodemanager-SPEC := NodeManager.spec
180 IN_BOOTSTRAPFS += nodemanager
185 sshd-MODULES := pl_sshd
186 sshd-SPEC := pl_sshd.spec
188 IN_BOOTSTRAPFS += sshd
191 # codemux: Port 80 demux
193 codemux-MODULES := codemux
194 codemux-SPEC := codemux.spec
196 IN_BOOTSTRAPFS += codemux
201 fprobe-ulog-MODULES := fprobe-ulog
202 fprobe-ulog-SPEC := fprobe-ulog.spec
204 IN_BOOTSTRAPFS += fprobe-ulog
207 # DistributedRateLimiting
209 DistributedRateLimiting-MODULES := DistributedRateLimiting
210 DistributedRateLimiting-SPEC := DistributedRateLimiting.spec
211 ALL += DistributedRateLimiting
212 IN_NODEREPO += DistributedRateLimiting
218 pf2slice-MODULES := pf2slice
219 pf2slice-SPEC := pf2slice.spec
223 # PlanetLab Mom: Cleans up your mess
226 mom-SPEC := pl_mom.spec
228 IN_BOOTSTRAPFS += mom
231 # inotify-tools - local import
232 # rebuild this on centos5 (not found) - see kexcludes in build.common
234 local_inotify_tools=false
235 ifeq "$(DISTRONAME)" "centos5"
236 local_inotify_tools=true
239 ifeq "$(local_inotify_tools)" "true"
240 inotify-tools-MODULES := inotify-tools
241 inotify-tools-SPEC := inotify-tools.spec
242 inotify-tools-BUILD-FROM-SRPM := yes
243 IN_BOOTSTRAPFS += inotify-tools
250 openvswitch-MODULES := openvswitch
251 openvswitch-SPEC := openvswitch.spec
252 openvswitch-DEPEND-DEVEL-RPMS += kernel-devel
253 # maybe not in production yet
254 #IN_BOOTSTRAPFS += openvswitch
261 vsys-SPEC := vsys.spec
262 # ocaml-docs is not needed anymore but keep it on a tmp basis as some tags may still have it
263 vsys-DEVEL-RPMS += ocaml-ocamldoc ocaml-docs
264 ifeq "$(local_inotify_tools)" "true"
265 vsys-DEPEND-DEVEL-RPMS += inotify-tools inotify-tools-devel
267 IN_BOOTSTRAPFS += vsys
273 vsys-scripts-MODULES := vsys-scripts
274 vsys-scripts-SPEC := vsys-scripts.spec
275 IN_BOOTSTRAPFS += vsys-scripts
281 plcapi-MODULES := plcapi
282 plcapi-SPEC := PLCAPI.spec
289 drupal-MODULES := drupal
290 drupal-SPEC := drupal.spec
291 drupal-BUILD-FROM-SRPM := yes
296 # use the plewww module instead
298 plewww-MODULES := plewww
299 plewww-SPEC := plewww.spec
304 # www-register-wizard
306 www-register-wizard-MODULES := www-register-wizard
307 www-register-wizard-SPEC := www-register-wizard.spec
308 ALL += www-register-wizard
309 IN_MYPLC += www-register-wizard
314 pcucontrol-MODULES := pcucontrol
315 pcucontrol-SPEC := pcucontrol.spec
321 monitor-MODULES := monitor
322 monitor-SPEC := Monitor.spec
323 monitor-DEVEL-RPMS += net-snmp net-snmp-devel
325 IN_BOOTSTRAPFS += monitor
330 zabbix-MODULES := monitor
331 zabbix-SPEC := zabbix.spec
332 zabbix-BUILD-FROM-SRPM := yes
333 zabbix-DEVEL-RPMS += python-cherrypy
334 ### turn this off as zabbix comes with stock fedora or epel
340 plcrt-MODULES := PLCRT
341 plcrt-SPEC := plcrt.spec
344 # f12 has 0.9-1 already
345 ifeq "$(DISTRONAME)" "$(filter $(DISTRONAME),f8 centos5)"
349 pyopenssl-MODULES := pyopenssl
350 pyopenssl-SPEC := pyOpenSSL.spec
351 pyopenssl-BUILD-FROM-SRPM := yes
358 pyaspects-MODULES := pyaspects
359 pyaspects-SPEC := pyaspects.spec
360 pyaspects-BUILD-FROM-SRPM := yes
366 ejabberd-MODULES := ejabberd
367 ejabberd-SPEC := ejabberd.spec
368 ejabberd-BUILD-FROM-SRPM := yes
369 ejabberd-DEVEL-RPMS += erlang pam-devel hevea
370 # not needed anymore on f12 and above, that come with 2.1.5, and we had 2.1.3
371 # so, this is relevant on f8 and centos5 only
372 ifeq "$(DISTRONAME)" "$(filter $(DISTRONAME),f8 centos5)"
376 # sfa now uses the with statement that's not supported on python-2.4 - not even through __future__
378 ifeq "$(DISTRONAME)" "centos5"
382 ifeq "$(build_sfa)" "true"
384 # sfa - Slice Facility Architecture
391 sface-MODULES := sface
392 sface-SPEC := sface.spec
398 nodeconfig-MODULES := nodeconfig
399 nodeconfig-SPEC := nodeconfig.spec
401 IN_MYPLC += nodeconfig
406 bootmanager-MODULES := bootmanager
407 bootmanager-SPEC := bootmanager.spec
409 IN_MYPLC += bootmanager
412 # pypcilib : used in bootcd
414 pypcilib-MODULES := pypcilib
415 pypcilib-SPEC := pypcilib.spec
417 IN_BOOTCD += pypcilib
422 pyplnet-MODULES := pyplnet
423 pyplnet-SPEC := pyplnet.spec
425 IN_BOOTSTRAPFS += pyplnet
430 # OMF resource controller
432 omf-resctl-MODULES := omf
433 omf-resctl-SPEC := omf-resctl.spec
435 IN_VSERVER += omf-resctl
440 omf-expctl-MODULES := omf
441 omf-expctl-SPEC := omf-expctl.spec
445 # OML measurement library
448 oml-DEVEL-RPMS += sqlite-devel
449 oml-SPEC := liboml.spec
455 bootcd-MODULES := bootcd build
456 bootcd-SPEC := bootcd.spec
457 bootcd-DEPEND-PACKAGES := $(IN_BOOTCD)
458 bootcd-DEPEND-FILES := RPMS/yumgroups.xml
459 bootcd-RPMDATE := yes
464 # vserver : reference image for slices
466 vserver-MODULES := vserver-reference build
467 vserver-SPEC := vserver-reference.spec
468 vserver-DEPEND-PACKAGES := $(IN_VSERVER)
469 vserver-DEPEND-FILES := RPMS/yumgroups.xml
470 vserver-RPMDATE := yes
472 IN_BOOTSTRAPFS += vserver
477 bootstrapfs-MODULES := bootstrapfs build
478 bootstrapfs-SPEC := bootstrapfs.spec
479 bootstrapfs-DEPEND-PACKAGES := $(IN_BOOTSTRAPFS)
480 bootstrapfs-DEPEND-FILES := RPMS/yumgroups.xml
481 bootstrapfs-RPMDATE := yes
483 IN_MYPLC += bootstrapfs
488 # all rpms resulting from packages marked as being in bootstrapfs and vserver
489 NODEREPO_RPMS = $(foreach package,$(IN_BOOTSTRAPFS) $(IN_NODEREPO) $(IN_VSERVER),$($(package).rpms))
490 # replace space with +++ (specvars cannot deal with spaces)
492 NODEREPO_RPMS_3PLUS = $(subst $(SPACE),+++,$(NODEREPO_RPMS))
494 noderepo-MODULES := bootstrapfs
495 noderepo-SPEC := noderepo.spec
496 # package requires all embedded packages
497 noderepo-DEPEND-PACKAGES := $(IN_BOOTSTRAPFS) $(IN_NODEREPO) $(IN_VSERVER)
498 noderepo-DEPEND-FILES := RPMS/yumgroups.xml
499 #export rpm list to the specfile
500 noderepo-SPECVARS = node_rpms_plus=$(NODEREPO_RPMS_3PLUS)
501 noderepo-RPMDATE := yes
508 # all rpms resulting from packages marked as being in vserver
509 SLICEREPO_RPMS = $(foreach package,$(IN_VSERVER),$($(package).rpms))
510 # replace space with +++ (specvars cannot deal with spaces)
512 SLICEREPO_RPMS_3PLUS = $(subst $(SPACE),+++,$(SLICEREPO_RPMS))
514 slicerepo-MODULES := bootstrapfs
515 slicerepo-SPEC := slicerepo.spec
516 # package requires all embedded packages
517 slicerepo-DEPEND-PACKAGES := $(IN_VSERVER)
518 slicerepo-DEPEND-FILES := RPMS/yumgroups.xml
519 #export rpm list to the specfile
520 slicerepo-SPECVARS = slice_rpms_plus=$(SLICEREPO_RPMS_3PLUS)
521 slicerepo-RPMDATE := yes
525 # MyPLC : lightweight packaging, dependencies are yum-installed in a vserver
527 myplc-MODULES := myplc
528 myplc-SPEC := myplc.spec
531 # myplc-docs only contains docs for PLCAPI and NMAPI, but
532 # we still need to pull MyPLC, as it is where the specfile lies,
533 # together with the utility script docbook2drupal.sh
534 myplc-docs-MODULES := myplc plcapi nodemanager monitor
535 myplc-docs-SPEC := myplc-docs.spec
538 # using some other name than myplc-release, as this is a make target already
539 release-MODULES := myplc
540 release-SPEC := myplc-release.spec
541 release-RPMDATE := yes