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 # skip this with k32/f8
61 ifneq "" "$(findstring k32,$(PLDISTROTAGS))"
62 ifneq "$(DISTRONAME)" "f8"
63 madwifi-MODULES := madwifi
64 madwifi-SPEC := madwifi.spec
65 madwifi-BUILD-FROM-SRPM := yes
66 madwifi-DEPEND-DEVEL-RPMS += kernel-devel
67 madwifi-SPECVARS = kernel_version=$(kernel.rpm-version) \
68 kernel_release=$(kernel.rpm-release) \
69 kernel_arch=$(kernel.rpm-arch)
71 IN_BOOTSTRAPFS += madwifi
78 comgt-MODULES := comgt
79 comgt-SPEC := comgt.spec
80 IN_BOOTSTRAPFS += comgt
84 # umts: root context stuff
86 umts-backend-MODULES := planetlab-umts-tools
87 umts-backend-SPEC := backend.spec
88 IN_BOOTSTRAPFS += umts-backend
94 umts-frontend-MODULES := planetlab-umts-tools
95 umts-frontend-SPEC := frontend.spec
96 IN_VSERVER += umts-frontend
102 iptables-MODULES := iptables
103 iptables-SPEC := iptables.spec
104 iptables-BUILD-FROM-SRPM := yes
105 iptables-DEPEND-DEVEL-RPMS += kernel-devel kernel-headers
107 IN_BOOTSTRAPFS += iptables
112 iproute-MODULES := iproute2
113 iproute-SPEC := iproute.spec
114 iproute-BUILD-FROM-SRPM := yes
116 IN_BOOTSTRAPFS += iproute
117 IN_VSERVER += iproute
123 util-vserver-MODULES := util-vserver
124 util-vserver-SPEC := util-vserver.spec
126 util-vserver-BUILD-FROM-SRPM := yes
127 util-vserver-RPMFLAGS:= --without dietlibc --without doc
129 IN_BOOTSTRAPFS += util-vserver
132 # libnl - local import
133 # we need either 1.1 or at least 1.0.pre6
134 # rebuild this on centos5 - see yumexclude
137 ifeq "$(DISTRONAME)" "centos5"
141 ifeq "$(local_libnl)" "true"
142 libnl-MODULES := libnl
143 libnl-SPEC := libnl.spec
144 libnl-BUILD-FROM-SRPM := yes
145 # this sounds like the thing to do, but in fact linux/if_vlan.h comes with kernel-headers
146 libnl-DEPEND-DEVEL-RPMS += kernel-devel kernel-headers
148 IN_BOOTSTRAPFS += libnl
154 util-vserver-pl-MODULES := util-vserver-pl
155 util-vserver-pl-SPEC := util-vserver-pl.spec
156 util-vserver-pl-DEPEND-DEVEL-RPMS += util-vserver-lib util-vserver-devel util-vserver-core
157 ifeq "$(local_libnl)" "true"
158 util-vserver-pl-DEPEND-DEVEL-RPMS += libnl libnl-devel
160 ALL += util-vserver-pl
161 IN_BOOTSTRAPFS += util-vserver-pl
166 nodeupdate-MODULES := nodeupdate
167 nodeupdate-SPEC := NodeUpdate.spec
169 IN_BOOTSTRAPFS += nodeupdate
174 ipod-MODULES := PingOfDeath
175 ipod-SPEC := ipod.spec
177 IN_BOOTSTRAPFS += ipod
182 nodemanager-MODULES := nodemanager
183 nodemanager-SPEC := NodeManager.spec
185 IN_BOOTSTRAPFS += nodemanager
190 sshd-MODULES := pl_sshd
191 sshd-SPEC := pl_sshd.spec
193 IN_BOOTSTRAPFS += sshd
196 # codemux: Port 80 demux
198 codemux-MODULES := codemux
199 codemux-SPEC := codemux.spec
201 IN_BOOTSTRAPFS += codemux
206 fprobe-ulog-MODULES := fprobe-ulog
207 fprobe-ulog-SPEC := fprobe-ulog.spec
209 IN_BOOTSTRAPFS += fprobe-ulog
212 # DistributedRateLimiting
214 # on f16 somehow configure screws up and defines LDFLAGS=-Wl,-z,relro which ld does not like..
215 ifneq "$(DISTRONAME)" "f16"
216 DistributedRateLimiting-MODULES := DistributedRateLimiting
217 DistributedRateLimiting-SPEC := DistributedRateLimiting.spec
218 ALL += DistributedRateLimiting
219 IN_NODEREPO += DistributedRateLimiting
225 pf2slice-MODULES := pf2slice
226 pf2slice-SPEC := pf2slice.spec
230 # PlanetLab Mom: Cleans up your mess
233 mom-SPEC := pl_mom.spec
235 IN_BOOTSTRAPFS += mom
238 # inotify-tools - local import
239 # rebuild this on centos5 (not found) - see yumexclude
241 local_inotify_tools=false
242 ifeq "$(DISTRONAME)" "centos5"
243 local_inotify_tools=true
246 ifeq "$(DISTRONAME)" "sl6"
247 local_inotify_tools=true
250 ifeq "$(local_inotify_tools)" "true"
251 inotify-tools-MODULES := inotify-tools
252 inotify-tools-SPEC := inotify-tools.spec
253 inotify-tools-BUILD-FROM-SRPM := yes
254 IN_BOOTSTRAPFS += inotify-tools
261 openvswitch-MODULES := openvswitch
262 openvswitch-SPEC := openvswitch.spec
263 openvswitch-DEPEND-DEVEL-RPMS += kernel-devel
264 # maybe not in production yet
265 #IN_BOOTSTRAPFS += openvswitch
272 vsys-SPEC := vsys.spec
273 # ocaml-docs is not needed anymore but keep it on a tmp basis as some tags may still have it
274 vsys-DEVEL-RPMS += ocaml-ocamldoc ocaml-docs
275 ifeq "$(local_inotify_tools)" "true"
276 vsys-DEPEND-DEVEL-RPMS += inotify-tools inotify-tools-devel
278 IN_BOOTSTRAPFS += vsys
282 # vsyssh : installed in slivers
284 vsyssh-MODULES := vsys
285 vsyssh-SPEC := vsyssh.spec
292 vsys-scripts-MODULES := vsys-scripts
293 vsys-scripts-SPEC := vsys-scripts.spec
294 IN_BOOTSTRAPFS += vsys-scripts
300 plcapi-MODULES := plcapi
301 plcapi-SPEC := PLCAPI.spec
308 drupal-MODULES := drupal
309 drupal-SPEC := drupal.spec
310 drupal-BUILD-FROM-SRPM := yes
315 # use the plewww module instead
317 plewww-MODULES := plewww
318 plewww-SPEC := plewww.spec
323 # www-register-wizard
325 www-register-wizard-MODULES := www-register-wizard
326 www-register-wizard-SPEC := www-register-wizard.spec
327 ALL += www-register-wizard
328 IN_MYPLC += www-register-wizard
333 pcucontrol-MODULES := pcucontrol
334 pcucontrol-SPEC := pcucontrol.spec
340 monitor-MODULES := monitor
341 monitor-SPEC := Monitor.spec
342 monitor-DEVEL-RPMS += net-snmp net-snmp-devel
344 IN_BOOTSTRAPFS += monitor
349 plcrt-MODULES := PLCRT
350 plcrt-SPEC := plcrt.spec
353 # f12 has 0.9-1 already
354 ifeq "$(DISTRONAME)" "$(filter $(DISTRONAME),f8 centos5)"
358 pyopenssl-MODULES := pyopenssl
359 pyopenssl-SPEC := pyOpenSSL.spec
360 pyopenssl-BUILD-FROM-SRPM := yes
367 pyaspects-MODULES := pyaspects
368 pyaspects-SPEC := pyaspects.spec
369 pyaspects-BUILD-FROM-SRPM := yes
375 ejabberd-MODULES := ejabberd
376 ejabberd-SPEC := ejabberd.spec
377 ejabberd-BUILD-FROM-SRPM := yes
378 ejabberd-DEVEL-RPMS += erlang pam-devel hevea
379 # not needed anymore on f12 and above, that come with 2.1.5, and we had 2.1.3
380 # so, this is relevant on f8 and centos5 only
381 ifeq "$(DISTRONAME)" "$(filter $(DISTRONAME),f8 centos5)"
385 # sfa now uses the with statement that's not supported on python-2.4 - not even through __future__
386 # In addition we now use sqlalchemy and 0.5 as per f12 is not compatible with our model
388 ifeq "$(DISTRONAME)" "$(filter $(DISTRONAME),f8 f12 centos5)"
392 ifeq "$(build_sfa)" "true"
394 # sfa - Slice Facility Architecture
400 sface-MODULES := sface
401 sface-SPEC := sface.spec
408 nodeconfig-MODULES := nodeconfig
409 nodeconfig-SPEC := nodeconfig.spec
411 IN_MYPLC += nodeconfig
416 bootmanager-MODULES := bootmanager
417 bootmanager-SPEC := bootmanager.spec
419 IN_MYPLC += bootmanager
422 # pypcilib : used in bootcd
424 pypcilib-MODULES := pypcilib
425 pypcilib-SPEC := pypcilib.spec
427 IN_BOOTCD += pypcilib
432 pyplnet-MODULES := pyplnet
433 pyplnet-SPEC := pyplnet.spec
435 IN_BOOTSTRAPFS += pyplnet
440 # OMF resource controller
442 omf-resctl-MODULES := omf
443 omf-resctl-SPEC := omf-resctl.spec
445 IN_VSERVER += omf-resctl
450 omf-expctl-MODULES := omf
451 omf-expctl-SPEC := omf-expctl.spec
455 # OML measurement library
458 oml-DEVEL-RPMS += sqlite-devel
459 oml-SPEC := liboml.spec
465 bootcd-MODULES := bootcd build
466 bootcd-SPEC := bootcd.spec
467 bootcd-DEPEND-PACKAGES := $(IN_BOOTCD)
468 bootcd-DEPEND-FILES := RPMS/yumgroups.xml
469 bootcd-RPMDATE := yes
474 # vserver : reference image for slices
476 vserver-MODULES := vserver-reference build
477 vserver-SPEC := vserver-reference.spec
478 vserver-DEPEND-PACKAGES := $(IN_VSERVER)
479 vserver-DEPEND-FILES := RPMS/yumgroups.xml
480 vserver-RPMDATE := yes
482 IN_BOOTSTRAPFS += vserver
487 bootstrapfs-MODULES := bootstrapfs build
488 bootstrapfs-SPEC := bootstrapfs.spec
489 bootstrapfs-DEPEND-PACKAGES := $(IN_BOOTSTRAPFS)
490 bootstrapfs-DEPEND-FILES := RPMS/yumgroups.xml
491 bootstrapfs-RPMDATE := yes
493 IN_MYPLC += bootstrapfs
498 # all rpms resulting from packages marked as being in bootstrapfs and vserver
499 NODEREPO_RPMS = $(foreach package,$(IN_BOOTSTRAPFS) $(IN_NODEREPO) $(IN_VSERVER),$($(package).rpms))
500 # replace space with +++ (specvars cannot deal with spaces)
502 NODEREPO_RPMS_3PLUS = $(subst $(SPACE),+++,$(NODEREPO_RPMS))
504 noderepo-MODULES := bootstrapfs
505 noderepo-SPEC := noderepo.spec
506 # package requires all embedded packages
507 noderepo-DEPEND-PACKAGES := $(IN_BOOTSTRAPFS) $(IN_NODEREPO) $(IN_VSERVER)
508 noderepo-DEPEND-FILES := RPMS/yumgroups.xml
509 #export rpm list to the specfile
510 noderepo-SPECVARS = node_rpms_plus=$(NODEREPO_RPMS_3PLUS)
511 noderepo-RPMDATE := yes
518 # all rpms resulting from packages marked as being in vserver
519 SLICEREPO_RPMS = $(foreach package,$(IN_VSERVER),$($(package).rpms))
520 # replace space with +++ (specvars cannot deal with spaces)
522 SLICEREPO_RPMS_3PLUS = $(subst $(SPACE),+++,$(SLICEREPO_RPMS))
524 slicerepo-MODULES := bootstrapfs
525 slicerepo-SPEC := slicerepo.spec
526 # package requires all embedded packages
527 slicerepo-DEPEND-PACKAGES := $(IN_VSERVER)
528 slicerepo-DEPEND-FILES := RPMS/yumgroups.xml
529 #export rpm list to the specfile
530 slicerepo-SPECVARS = slice_rpms_plus=$(SLICEREPO_RPMS_3PLUS)
531 slicerepo-RPMDATE := yes
535 # MyPLC : lightweight packaging, dependencies are yum-installed in a vserver
537 myplc-MODULES := myplc
538 myplc-SPEC := myplc.spec
539 myplc-DEPEND-FILES := myplc-release RPMS/yumgroups.xml
542 # myplc-docs only contains docs for PLCAPI and NMAPI, but
543 # we still need to pull MyPLC, as it is where the specfile lies,
544 # together with the utility script docbook2drupal.sh
545 myplc-docs-MODULES := myplc plcapi nodemanager monitor
546 myplc-docs-SPEC := myplc-docs.spec
549 # using some other name than myplc-release, as this is a make target already
550 release-MODULES := myplc
551 release-SPEC := myplc-release.spec
552 release-RPMDATE := yes