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 # 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
32 kernels-clean: $(foreach package,$(KERNELS),$(package)-clean)
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)
41 # ipfw: root context module, and slice companion
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)
50 IN_BOOTSTRAPFS += ipfwroot
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)
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)
70 IN_BOOTSTRAPFS += madwifi
75 comgt-MODULES := comgt
76 comgt-SPEC := comgt.spec
77 IN_BOOTSTRAPFS += comgt
81 # umts: root context stuff
83 umts-backend-MODULES := planetlab-umts-tools
84 umts-backend-SPEC := backend.spec
85 IN_BOOTSTRAPFS += umts-backend
91 umts-frontend-MODULES := planetlab-umts-tools
92 umts-frontend-SPEC := frontend.spec
93 IN_VSERVER += umts-frontend
99 iptables-MODULES := iptables
100 iptables-SPEC := iptables.spec
101 iptables-BUILD-FROM-SRPM := yes
102 iptables-DEPEND-DEVEL-RPMS += kernel-devel kernel-headers
104 IN_BOOTSTRAPFS += iptables
109 iproute-MODULES := iproute2
110 iproute-SPEC := iproute.spec
111 iproute-BUILD-FROM-SRPM := yes
113 IN_BOOTSTRAPFS += iproute
114 IN_VSERVER += iproute
120 util-vserver-MODULES := util-vserver
121 util-vserver-SPEC := util-vserver.spec
123 util-vserver-BUILD-FROM-SRPM := yes
124 util-vserver-RPMFLAGS:= --without dietlibc --without doc
126 IN_BOOTSTRAPFS += util-vserver
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
134 ifeq "$(DISTRONAME)" "centos5"
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
145 IN_BOOTSTRAPFS += libnl
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
157 ALL += util-vserver-pl
158 IN_BOOTSTRAPFS += util-vserver-pl
163 nodeupdate-MODULES := nodeupdate
164 nodeupdate-SPEC := NodeUpdate.spec
166 IN_BOOTSTRAPFS += nodeupdate
171 ipod-MODULES := PingOfDeath
172 ipod-SPEC := ipod.spec
174 IN_BOOTSTRAPFS += ipod
179 nodemanager-MODULES := nodemanager
180 nodemanager-SPEC := NodeManager.spec
182 IN_BOOTSTRAPFS += nodemanager
187 sshd-MODULES := pl_sshd
188 sshd-SPEC := pl_sshd.spec
190 IN_BOOTSTRAPFS += sshd
193 # codemux: Port 80 demux
195 codemux-MODULES := codemux
196 codemux-SPEC := codemux.spec
198 IN_BOOTSTRAPFS += codemux
203 fprobe-ulog-MODULES := fprobe-ulog
204 fprobe-ulog-SPEC := fprobe-ulog.spec
206 IN_BOOTSTRAPFS += fprobe-ulog
209 # DistributedRateLimiting
211 DistributedRateLimiting-MODULES := DistributedRateLimiting
212 DistributedRateLimiting-SPEC := DistributedRateLimiting.spec
213 ALL += DistributedRateLimiting
214 IN_NODEREPO += DistributedRateLimiting
220 pf2slice-MODULES := pf2slice
221 pf2slice-SPEC := pf2slice.spec
225 # PlanetLab Mom: Cleans up your mess
228 mom-SPEC := pl_mom.spec
230 IN_BOOTSTRAPFS += mom
233 # inotify-tools - local import
234 # rebuild this on centos5 (not found) - see kexcludes in build.common
236 local_inotify_tools=false
237 ifeq "$(DISTRONAME)" "centos5"
238 local_inotify_tools=true
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
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
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
269 IN_BOOTSTRAPFS += vsys
275 vsys-scripts-MODULES := vsys-scripts
276 vsys-scripts-SPEC := vsys-scripts.spec
277 IN_BOOTSTRAPFS += vsys-scripts
283 plcapi-MODULES := plcapi
284 plcapi-SPEC := PLCAPI.spec
291 drupal-MODULES := drupal
292 drupal-SPEC := drupal.spec
293 drupal-BUILD-FROM-SRPM := yes
298 # use the plewww module instead
300 plewww-MODULES := plewww
301 plewww-SPEC := plewww.spec
306 # www-register-wizard
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
316 pcucontrol-MODULES := pcucontrol
317 pcucontrol-SPEC := pcucontrol.spec
323 monitor-MODULES := monitor
324 monitor-SPEC := Monitor.spec
325 monitor-DEVEL-RPMS += net-snmp net-snmp-devel
327 IN_BOOTSTRAPFS += monitor
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
342 plcrt-MODULES := PLCRT
343 plcrt-SPEC := plcrt.spec
349 pyopenssl-MODULES := pyopenssl
350 pyopenssl-SPEC := pyOpenSSL.spec
351 pyopenssl-BUILD-FROM-SRPM := yes
357 pyaspects-MODULES := pyaspects
358 pyaspects-SPEC := pyaspects.spec
359 pyaspects-BUILD-FROM-SRPM := yes
365 ejabberd-MODULES := ejabberd
366 ejabberd-SPEC := ejabberd.spec
367 ejabberd-BUILD-FROM-SRPM := yes
368 ejabberd-DEVEL-RPMS += erlang pam-devel hevea
369 # not needed anymore on f12 and above, that come with 2.1.5, and we had 2.1.3
370 # so, this is relevant on f8 and centos5 only
371 ifeq "$(DISTRONAME)" "$(filter $(DISTRONAME),f8 centos5)"
375 # sfa now uses the with statement that's not supported on python-2.4 - not even through __future__
377 ifeq "$(DISTRONAME)" "centos5"
381 ifeq "$(build_sfa)" "true"
383 # sfa - Slice Facility Architecture
390 sface-MODULES := sface
391 sface-SPEC := sface.spec
397 nodeconfig-MODULES := nodeconfig
398 nodeconfig-SPEC := nodeconfig.spec
400 IN_MYPLC += nodeconfig
405 bootmanager-MODULES := bootmanager
406 bootmanager-SPEC := bootmanager.spec
408 IN_MYPLC += bootmanager
411 # pypcilib : used in bootcd
413 pypcilib-MODULES := pypcilib
414 pypcilib-SPEC := pypcilib.spec
416 IN_BOOTCD += pypcilib
421 pyplnet-MODULES := pyplnet
422 pyplnet-SPEC := pyplnet.spec
424 IN_BOOTSTRAPFS += pyplnet
429 # OMF resource controller
431 omf-resctl-MODULES := omf
432 omf-resctl-SPEC := omf-resctl.spec
434 IN_VSERVER += omf-resctl
439 omf-expctl-MODULES := omf
440 omf-expctl-SPEC := omf-expctl.spec
444 # OML measurement library
447 oml-DEVEL-RPMS += sqlite-devel
448 oml-SPEC := liboml.spec
454 bootcd-MODULES := bootcd build
455 bootcd-SPEC := bootcd.spec
456 bootcd-DEPEND-PACKAGES := $(IN_BOOTCD)
457 bootcd-DEPEND-FILES := RPMS/yumgroups.xml
458 bootcd-RPMDATE := yes
463 # vserver : reference image for slices
465 vserver-MODULES := vserver-reference build
466 vserver-SPEC := vserver-reference.spec
467 vserver-DEPEND-PACKAGES := $(IN_VSERVER)
468 vserver-DEPEND-FILES := RPMS/yumgroups.xml
469 vserver-RPMDATE := yes
471 IN_BOOTSTRAPFS += vserver
476 bootstrapfs-MODULES := bootstrapfs build
477 bootstrapfs-SPEC := bootstrapfs.spec
478 bootstrapfs-DEPEND-PACKAGES := $(IN_BOOTSTRAPFS)
479 bootstrapfs-DEPEND-FILES := RPMS/yumgroups.xml
480 bootstrapfs-RPMDATE := yes
482 IN_MYPLC += bootstrapfs
487 # all rpms resulting from packages marked as being in bootstrapfs and vserver
488 NODEREPO_RPMS = $(foreach package,$(IN_BOOTSTRAPFS) $(IN_NODEREPO) $(IN_VSERVER),$($(package).rpms))
489 # replace space with +++ (specvars cannot deal with spaces)
491 NODEREPO_RPMS_3PLUS = $(subst $(SPACE),+++,$(NODEREPO_RPMS))
493 noderepo-MODULES := bootstrapfs
494 noderepo-SPEC := noderepo.spec
495 # package requires all embedded packages
496 noderepo-DEPEND-PACKAGES := $(IN_BOOTSTRAPFS) $(IN_NODEREPO) $(IN_VSERVER)
497 noderepo-DEPEND-FILES := RPMS/yumgroups.xml
498 #export rpm list to the specfile
499 noderepo-SPECVARS = node_rpms_plus=$(NODEREPO_RPMS_3PLUS)
500 noderepo-RPMDATE := yes
507 # all rpms resulting from packages marked as being in vserver
508 SLICEREPO_RPMS = $(foreach package,$(IN_VSERVER),$($(package).rpms))
509 # replace space with +++ (specvars cannot deal with spaces)
511 SLICEREPO_RPMS_3PLUS = $(subst $(SPACE),+++,$(SLICEREPO_RPMS))
513 slicerepo-MODULES := bootstrapfs
514 slicerepo-SPEC := slicerepo.spec
515 # package requires all embedded packages
516 slicerepo-DEPEND-PACKAGES := $(IN_VSERVER)
517 slicerepo-DEPEND-FILES := RPMS/yumgroups.xml
518 #export rpm list to the specfile
519 slicerepo-SPECVARS = slice_rpms_plus=$(SLICEREPO_RPMS_3PLUS)
520 slicerepo-RPMDATE := yes
524 # MyPLC : lightweight packaging, dependencies are yum-installed in a vserver
526 myplc-MODULES := myplc
527 myplc-SPEC := myplc.spec
530 # myplc-docs only contains docs for PLCAPI and NMAPI, but
531 # we still need to pull MyPLC, as it is where the specfile lies,
532 # together with the utility script docbook2drupal.sh
533 myplc-docs-MODULES := myplc plcapi nodemanager monitor
534 myplc-docs-SPEC := myplc-docs.spec
537 # using some other name than myplc-release, as this is a make target already
538 release-MODULES := myplc
539 release-SPEC := myplc-release.spec
540 release-RPMDATE := yes