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
13 ifeq "$(PLDISTROTAGS)" "planetlab-k32-tags.mk"
14 ifeq "$(DISTRONAME)" "centos5"
15 mkinitrd-MODULES := mkinitrd
16 mkinitrd-SPEC := mkinitrd.spec
17 mkinitrd-BUILD-FROM-SRPM := yes
18 mkinitrd-DEVEL-RPMS += parted-devel glib2-devel libdhcp4client-devel libdhcp6client-devel libdhcp-devel
19 mkinitrd-DEVEL-RPMS += device-mapper libselinux-devel libsepol-devel libnl-devel
22 IN_SLICEIMAGE += mkinitrd
23 IN_NODEIMAGE += mkinitrd
30 # use a package name with srpm in it:
31 # so the source rpm is created by running make srpm in the codebase
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
40 kernel-RPMFLAGS:= --target $(HOSTARCH)
42 kernel-SPECVARS += kernelconfig=planetlab
46 kernels-clean: $(foreach package,$(KERNELS),$(package)-clean)
49 # this is to mark on which image a given rpm is supposed to go
50 IN_BOOTCD += $(KERNELS)
51 IN_SLICEIMAGE += $(KERNELS)
52 IN_NODEIMAGE += $(KERNELS)
57 # skip this with k32/f8
58 ifneq "" "$(findstring k32,$(PLDISTROTAGS))"
59 ifneq "$(DISTRONAME)" "f8"
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_NODEIMAGE += madwifi
75 iptables-MODULES := iptables
76 iptables-SPEC := iptables.spec
77 iptables-BUILD-FROM-SRPM := yes
78 iptables-DEPEND-DEVEL-RPMS += kernel-devel kernel-headers
80 IN_NODEIMAGE += iptables
85 iproute-MODULES := iproute2
86 iproute-SPEC := iproute.spec
87 iproute-BUILD-FROM-SRPM := yes
89 IN_NODEIMAGE += iproute
90 IN_SLICEIMAGE += iproute
96 util-vserver-MODULES := util-vserver
97 util-vserver-SPEC := util-vserver.spec
99 util-vserver-BUILD-FROM-SRPM := yes
100 util-vserver-RPMFLAGS:= --without dietlibc --without doc
102 IN_NODEIMAGE += util-vserver
105 # libnl - local import
106 # we need either 1.1 or at least 1.0.pre6
107 # rebuild this on centos5 - see yumexclude
110 ifeq "$(DISTRONAME)" "centos5"
114 ifeq "$(local_libnl)" "true"
115 libnl-MODULES := libnl
116 libnl-SPEC := libnl.spec
117 libnl-BUILD-FROM-SRPM := yes
118 # this sounds like the thing to do, but in fact linux/if_vlan.h comes with kernel-headers
119 libnl-DEPEND-DEVEL-RPMS += kernel-devel kernel-headers
121 IN_NODEIMAGE += libnl
127 util-vserver-pl-MODULES := util-vserver-pl
128 util-vserver-pl-SPEC := util-vserver-pl.spec
129 util-vserver-pl-DEPEND-DEVEL-RPMS += util-vserver-lib util-vserver-devel util-vserver-core
130 ifeq "$(local_libnl)" "true"
131 util-vserver-pl-DEPEND-DEVEL-RPMS += libnl libnl-devel
133 ALL += util-vserver-pl
134 IN_NODEIMAGE += util-vserver-pl
139 nodeupdate-MODULES := nodeupdate
140 nodeupdate-SPEC := NodeUpdate.spec
142 IN_NODEIMAGE += nodeupdate
147 ipod-MODULES := PingOfDeath
148 ipod-SPEC := ipod.spec
155 nodemanager-MODULES := nodemanager
156 nodemanager-SPEC := NodeManager.spec
158 IN_NODEIMAGE += nodemanager
163 sshd-MODULES := pl_sshd
164 sshd-SPEC := pl_sshd.spec
169 # codemux: Port 80 demux
171 codemux-MODULES := codemux
172 codemux-SPEC := codemux.spec
174 IN_NODEIMAGE += codemux
179 fprobe-ulog-MODULES := fprobe-ulog
180 fprobe-ulog-SPEC := fprobe-ulog.spec
182 IN_NODEIMAGE += fprobe-ulog
185 # DistributedRateLimiting
187 DistributedRateLimiting-MODULES := DistributedRateLimiting
188 DistributedRateLimiting-SPEC := DistributedRateLimiting.spec
189 ALL += DistributedRateLimiting
190 IN_NODEREPO += DistributedRateLimiting
195 pf2slice-MODULES := pf2slice
196 pf2slice-SPEC := pf2slice.spec
200 # PlanetLab Mom: Cleans up your mess
203 mom-SPEC := pl_mom.spec
208 # inotify-tools - local import
209 # rebuild this on centos5 (not found) - see yumexclude
211 local_inotify_tools=false
212 ifeq "$(DISTRONAME)" "centos5"
213 local_inotify_tools=true
216 ifeq "$(DISTRONAME)" "sl6"
217 local_inotify_tools=true
220 ifeq "$(local_inotify_tools)" "true"
221 inotify-tools-MODULES := inotify-tools
222 inotify-tools-SPEC := inotify-tools.spec
223 inotify-tools-BUILD-FROM-SRPM := yes
224 IN_NODEIMAGE += inotify-tools
231 openvswitch-MODULES := openvswitch
232 openvswitch-SPEC := openvswitch.spec
233 openvswitch-DEPEND-DEVEL-RPMS += kernel-devel
235 #ifeq "$(DISTRONAME)" "$(filter $(DISTRONAME),f14 f15 f16)"
236 #IN_NODEIMAGE += openvswitch
244 vsys-SPEC := vsys.spec
245 # ocaml-docs is not needed anymore but keep it on a tmp basis as some tags may still have it
246 vsys-DEVEL-RPMS += ocaml-ocamldoc ocaml-docs
247 ifeq "$(local_inotify_tools)" "true"
248 vsys-DEPEND-DEVEL-RPMS += inotify-tools inotify-tools-devel
254 # vsyssh : installed in slivers
256 vsyssh-MODULES := vsys
257 vsyssh-SPEC := vsyssh.spec
258 IN_SLICEIMAGE += vsyssh
264 vsys-scripts-MODULES := vsys-scripts
265 vsys-scripts-SPEC := root-context/vsys-scripts.spec
266 IN_NODEIMAGE += vsys-scripts
272 plcapi-MODULES := plcapi
273 plcapi-SPEC := PLCAPI.spec
280 drupal-MODULES := drupal
281 drupal-SPEC := drupal.spec
282 drupal-BUILD-FROM-SRPM := yes
287 # use the plewww module instead
289 plewww-MODULES := plewww
290 plewww-SPEC := plewww.spec
295 # www-register-wizard
297 www-register-wizard-MODULES := www-register-wizard
298 www-register-wizard-SPEC := www-register-wizard.spec
299 ALL += www-register-wizard
300 IN_MYPLC += www-register-wizard
305 pcucontrol-MODULES := pcucontrol
306 pcucontrol-SPEC := pcucontrol.spec
312 monitor-MODULES := monitor
313 monitor-SPEC := Monitor.spec
314 monitor-DEVEL-RPMS += net-snmp net-snmp-devel
316 IN_NODEIMAGE += monitor
321 plcrt-MODULES := PLCRT
322 plcrt-SPEC := plcrt.spec
325 # f12 has 0.9-1 already
326 ifeq "$(DISTRONAME)" "$(filter $(DISTRONAME),f8 centos5)"
330 pyopenssl-MODULES := pyopenssl
331 pyopenssl-SPEC := pyOpenSSL.spec
332 pyopenssl-BUILD-FROM-SRPM := yes
339 pyaspects-MODULES := pyaspects
340 pyaspects-SPEC := pyaspects.spec
341 pyaspects-BUILD-FROM-SRPM := yes
344 # sfa now uses the with statement that's not supported on python-2.4 - not even through __future__
345 # In addition we now use sqlalchemy and 0.5 as per f12 is not compatible with our model
347 ifeq "$(DISTRONAME)" "$(filter $(DISTRONAME),f8 f12 centos5)"
351 ifeq "$(build_sfa)" "true"
353 # sfa - Slice Facility Architecture
359 sface-MODULES := sface
360 sface-SPEC := sface.spec
367 nodeconfig-MODULES := nodeconfig
368 nodeconfig-SPEC := nodeconfig.spec
370 IN_MYPLC += nodeconfig
375 bootmanager-MODULES := bootmanager
376 bootmanager-SPEC := bootmanager.spec
378 IN_MYPLC += bootmanager
381 # pypcilib : used in bootcd
383 pypcilib-MODULES := pypcilib
384 pypcilib-SPEC := pypcilib.spec
386 IN_BOOTCD += pypcilib
391 pyplnet-MODULES := pyplnet
392 pyplnet-SPEC := pyplnet.spec
394 IN_NODEIMAGE += pyplnet
399 # OMF resource controller
401 omf-resctl-MODULES := omf
402 omf-resctl-SPEC := omf-resctl.spec
404 IN_SLICEIMAGE += omf-resctl
409 omf-expctl-MODULES := omf
410 omf-expctl-SPEC := omf-expctl.spec
416 bootcd-MODULES := bootcd build
417 bootcd-SPEC := bootcd.spec
418 bootcd-DEPEND-PACKAGES := $(IN_BOOTCD)
419 bootcd-DEPEND-FILES := RPMS/yumgroups.xml
420 bootcd-RPMDATE := yes
427 sliceimage-MODULES := sliceimage build
428 sliceimage-SPEC := sliceimage.spec
429 sliceimage-DEPEND-PACKAGES := $(IN_SLICEIMAGE)
430 sliceimage-DEPEND-FILES := RPMS/yumgroups.xml
431 sliceimage-RPMDATE := yes
433 IN_NODEIMAGE += sliceimage
436 # vserver-specific sliceimage initialization
438 vserver-sliceimage-MODULES := sliceimage
439 vserver-sliceimage-SPEC := vserver-sliceimage.spec
440 vserver-sliceimage-RPMDATE := yes
441 ALL += vserver-sliceimage
442 IN_NODEIMAGE += vserver-sliceimage
447 nodeimage-MODULES := nodeimage build
448 nodeimage-SPEC := nodeimage.spec
449 nodeimage-DEPEND-PACKAGES := $(IN_NODEIMAGE)
450 nodeimage-DEPEND-FILES := RPMS/yumgroups.xml
451 nodeimage-RPMDATE := yes
453 IN_MYPLC += nodeimage
458 # all rpms resulting from packages marked as being in nodeimage and sliceimage
459 NODEREPO_RPMS = $(foreach package,$(IN_NODEIMAGE) $(IN_NODEREPO) $(IN_SLICEIMAGE),$($(package).rpms))
460 # replace space with +++ (specvars cannot deal with spaces)
462 NODEREPO_RPMS_3PLUS = $(subst $(SPACE),+++,$(NODEREPO_RPMS))
464 noderepo-MODULES := nodeimage
465 noderepo-SPEC := noderepo.spec
466 # package requires all embedded packages
467 noderepo-DEPEND-PACKAGES := $(IN_NODEIMAGE) $(IN_NODEREPO) $(IN_SLICEIMAGE)
468 noderepo-DEPEND-FILES := RPMS/yumgroups.xml
469 #export rpm list to the specfile
470 noderepo-SPECVARS = node_rpms_plus=$(NODEREPO_RPMS_3PLUS)
471 noderepo-RPMDATE := yes
478 # all rpms resulting from packages marked as being in vserver
479 SLICEREPO_RPMS = $(foreach package,$(IN_SLICEIMAGE),$($(package).rpms))
480 # replace space with +++ (specvars cannot deal with spaces)
482 SLICEREPO_RPMS_3PLUS = $(subst $(SPACE),+++,$(SLICEREPO_RPMS))
484 slicerepo-MODULES := nodeimage
485 slicerepo-SPEC := slicerepo.spec
486 # package requires all embedded packages
487 slicerepo-DEPEND-PACKAGES := $(IN_SLICEIMAGE)
488 slicerepo-DEPEND-FILES := RPMS/yumgroups.xml
489 #export rpm list to the specfile
490 slicerepo-SPECVARS = slice_rpms_plus=$(SLICEREPO_RPMS_3PLUS)
491 slicerepo-RPMDATE := yes
495 # MyPLC : lightweight packaging, dependencies are yum-installed in a vserver
497 myplc-MODULES := myplc
498 myplc-SPEC := myplc.spec
499 myplc-DEPEND-FILES := myplc-release RPMS/yumgroups.xml
502 # myplc-docs only contains docs for PLCAPI and NMAPI, but
503 # we still need to pull MyPLC, as it is where the specfile lies,
504 # together with the utility script docbook2drupal.sh
505 myplc-docs-MODULES := myplc plcapi nodemanager monitor
506 myplc-docs-SPEC := myplc-docs.spec
509 # using some other name than myplc-release, as this is a make target already
510 release-MODULES := myplc
511 release-SPEC := myplc-release.spec
512 release-RPMDATE := yes