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_VSERVER += mkinitrd
23 IN_BOOTSTRAPFS += 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)
45 kernels-clean: $(foreach package,$(KERNELS),$(package)-clean)
48 # this is to mark on which image a given rpm is supposed to go
49 IN_BOOTCD += $(KERNELS)
50 IN_VSERVER += $(KERNELS)
51 IN_BOOTSTRAPFS += $(KERNELS)
52 # turns out myplc installs kernel-vserver
53 IN_MYPLC += $(KERNELS)
59 ifeq "$(PLDISTROTAGS)" "planetlab-k32-tags.mk"
60 ifneq "$(DISTRONAME)" "f8"
61 madwifi-MODULES := madwifi
62 madwifi-SPEC := madwifi.spec
63 madwifi-BUILD-FROM-SRPM := yes
64 madwifi-DEPEND-DEVEL-RPMS += kernel-devel
65 madwifi-SPECVARS = kernel_version=$(kernel.rpm-version) \
66 kernel_release=$(kernel.rpm-release) \
67 kernel_arch=$(kernel.rpm-arch)
69 IN_BOOTSTRAPFS += madwifi
76 util-vserver-MODULES := util-vserver
77 util-vserver-SPEC := util-vserver.spec
78 util-vserver-RPMFLAGS:= --without dietlibc
80 IN_BOOTSTRAPFS += util-vserver
83 # libnl - local import
84 # we need either 1.1 or at least 1.0.pre6
85 # rebuild this on centos5 - see kexcludes in build.common
88 ifeq "$(DISTRONAME)" "centos5"
92 ifeq "$(local_libnl)" "true"
93 libnl-MODULES := libnl
94 libnl-SPEC := libnl.spec
95 libnl-BUILD-FROM-SRPM := yes
96 # this sounds like the thing to do, but in fact linux/if_vlan.h comes with kernel-headers
97 libnl-DEPEND-DEVEL-RPMS += kernel-devel kernel-headers
99 IN_BOOTSTRAPFS += libnl
105 util-vserver-pl-MODULES := util-vserver-pl
106 util-vserver-pl-SPEC := util-vserver-pl.spec
107 util-vserver-pl-DEPEND-DEVEL-RPMS += util-vserver-lib util-vserver-devel util-vserver-core
108 ifeq "$(local_libnl)" "true"
109 util-vserver-pl-DEPEND-DEVEL-RPMS += libnl libnl-devel
111 ALL += util-vserver-pl
112 IN_BOOTSTRAPFS += util-vserver-pl
117 nodeupdate-MODULES := nodeupdate
118 nodeupdate-SPEC := NodeUpdate.spec
120 IN_BOOTSTRAPFS += nodeupdate
125 ipod-MODULES := PingOfDeath
126 ipod-SPEC := ipod.spec
128 IN_BOOTSTRAPFS += ipod
133 nodemanager-MODULES := nodemanager
134 nodemanager-SPEC := NodeManager.spec
136 IN_BOOTSTRAPFS += nodemanager
141 sshd-MODULES := pl_sshd
142 sshd-SPEC := pl_sshd.spec
144 IN_BOOTSTRAPFS += sshd
147 # codemux: Port 80 demux
149 codemux-MODULES := codemux
150 codemux-SPEC := codemux.spec
152 IN_BOOTSTRAPFS += codemux
157 fprobe-ulog-MODULES := fprobe-ulog
158 fprobe-ulog-SPEC := fprobe-ulog.spec
160 IN_BOOTSTRAPFS += fprobe-ulog
163 # DistributedRateLimiting
165 DistributedRateLimiting-MODULES := DistributedRateLimiting
166 DistributedRateLimiting-SPEC := DistributedRateLimiting.spec
167 ALL += DistributedRateLimiting
168 IN_NODEREPO += DistributedRateLimiting
173 pf2slice-MODULES := pf2slice
174 pf2slice-SPEC := pf2slice.spec
178 # PlanetLab Mom: Cleans up your mess
181 mom-SPEC := pl_mom.spec
183 IN_BOOTSTRAPFS += mom
188 iptables-MODULES := iptables
189 iptables-SPEC := iptables.spec
190 iptables-DEPEND-DEVEL-RPMS += kernel-devel kernel-headers
192 IN_BOOTSTRAPFS += iptables
197 iproute-MODULES := iproute2
198 iproute-SPEC := iproute.spec
200 IN_BOOTSTRAPFS += iproute
201 IN_VSERVER += iproute
205 # inotify-tools - local import
206 # rebuild this on centos5 (not found) - see kexcludes in build.common
208 local_inotify_tools=false
209 ifeq "$(DISTRONAME)" "centos5"
210 local_inotify_tools=true
213 ifeq "$(local_inotify_tools)" "true"
214 inotify-tools-MODULES := inotify-tools
215 inotify-tools-SPEC := inotify-tools.spec
216 inotify-tools-BUILD-FROM-SRPM := yes
217 IN_BOOTSTRAPFS += inotify-tools
224 openvswitch-MODULES := openvswitch
225 openvswitch-SPEC := openvswitch.spec
226 openvswitch-DEPEND-DEVEL-RPMS += kernel-devel
227 IN_BOOTSTRAPFS += openvswitch
234 vsys-SPEC := vsys.spec
235 # ocaml-docs is not needed anymore but keep it on a tmp basis as some tags may still have it
236 vsys-DEVEL-RPMS += ocaml-ocamldoc ocaml-docs
237 ifeq "$(local_inotify_tools)" "true"
238 vsys-DEPEND-DEVEL-RPMS += inotify-tools inotify-tools-devel
240 IN_BOOTSTRAPFS += vsys
246 vsys-scripts-MODULES := vsys-scripts
247 vsys-scripts-SPEC := vsys-scripts.spec
248 IN_BOOTSTRAPFS += vsys-scripts
254 plcapi-MODULES := plcapi
255 plcapi-SPEC := PLCAPI.spec
262 drupal-MODULES := drupal
263 drupal-SPEC := drupal.spec
264 drupal-BUILD-FROM-SRPM := yes
269 # use the plewww module instead
271 plewww-MODULES := plewww
272 plewww-SPEC := plewww.spec
277 # www-register-wizard
279 www-register-wizard-MODULES := www-register-wizard
280 www-register-wizard-SPEC := www-register-wizard.spec
281 ALL += www-register-wizard
282 IN_MYPLC += www-register-wizard
287 pcucontrol-MODULES := pcucontrol
288 pcucontrol-SPEC := pcucontrol.spec
294 monitor-MODULES := Monitor
295 monitor-SPEC := Monitor.spec
296 monitor-DEVEL-RPMS += net-snmp net-snmp-devel
298 IN_BOOTSTRAPFS += monitor
303 plcrt-MODULES := PLCRT
304 plcrt-SPEC := plcrt.spec
310 zabbix-MODULES := Monitor
311 zabbix-SPEC := zabbix.spec
312 zabbix-BUILD-FROM-SRPM := yes
313 zabbix-DEVEL-RPMS += python-cherrypy
319 pyopenssl-MODULES := pyopenssl
320 pyopenssl-SPEC := pyOpenSSL.spec
321 pyopenssl-BUILD-FROM-SRPM := yes
328 pyaspects-MODULES := pyaspects
329 pyaspects-SPEC := pyaspects.spec
330 pyaspects-BUILD-FROM-SRPM := yes
336 ejabberd-MODULES := ejabberd
337 ejabberd-SPEC := ejabberd.spec
338 ejabberd-BUILD-FROM-SRPM := yes
339 ejabberd-DEVEL-RPMS += erlang pam-devel hevea
340 # not needed anymore on f12 and above, that come with 2.1.5, and we had 2.1.3
341 # so, this is relevant on f8 and centos5 only
342 ifeq "$(DISTRONAME)" "$(filter $(DISTRONAME),f8 centos5)"
346 # sfa now uses the with statement that's not supported on python-2.4 - not even through __future__
348 ifeq "$(DISTRONAME)" "centos5"
352 ifeq "$(build_sfa)" "true"
354 # sfa - Slice Facility Architecture
364 # xxx needed when upgrading to 5.0
365 #nodeconfig-MODULES := nodeconfig
366 nodeconfig-MODULES := nodeconfig
367 nodeconfig-SPEC := nodeconfig.spec
369 IN_MYPLC += nodeconfig
374 bootmanager-MODULES := bootmanager
375 bootmanager-SPEC := bootmanager.spec
377 IN_MYPLC += bootmanager
380 # pypcilib : used in bootcd
382 pypcilib-MODULES := pypcilib
383 pypcilib-SPEC := pypcilib.spec
385 IN_BOOTCD += pypcilib
390 pyplnet-MODULES := pyplnet
391 pyplnet-SPEC := pyplnet.spec
393 IN_BOOTSTRAPFS += pyplnet
399 # OMF resource controller
401 omf-resctl-MODULES := omf
402 omf-resctl-SPEC := omf-resctl.spec
404 IN_VSERVER += omf-resctl
409 omf-expctl-MODULES := omf
410 omf-expctl-SPEC := omf-expctl.spec
417 bootcd-MODULES := bootcd build
418 bootcd-SPEC := bootcd.spec
419 bootcd-DEPEND-PACKAGES := $(IN_BOOTCD)
420 bootcd-DEPEND-FILES := RPMS/yumgroups.xml
421 bootcd-RPMDATE := yes
426 # vserver : reference image for slices
428 vserver-MODULES := vserver-reference build
429 vserver-SPEC := vserver-reference.spec
430 vserver-DEPEND-PACKAGES := $(IN_VSERVER)
431 vserver-DEPEND-FILES := RPMS/yumgroups.xml
432 vserver-RPMDATE := yes
434 IN_BOOTSTRAPFS += vserver
439 bootstrapfs-MODULES := bootstrapfs build
440 bootstrapfs-SPEC := bootstrapfs.spec
441 bootstrapfs-DEPEND-PACKAGES := $(IN_BOOTSTRAPFS)
442 bootstrapfs-DEPEND-FILES := RPMS/yumgroups.xml
443 bootstrapfs-RPMDATE := yes
445 IN_MYPLC += bootstrapfs
450 # all rpms resulting from packages marked as being in bootstrapfs and vserver
451 NODEREPO_RPMS = $(foreach package,$(IN_BOOTSTRAPFS) $(IN_NODEREPO) $(IN_VSERVER),$($(package).rpms))
452 # replace space with +++ (specvars cannot deal with spaces)
454 NODEREPO_RPMS_3PLUS = $(subst $(SPACE),+++,$(NODEREPO_RPMS))
456 noderepo-MODULES := bootstrapfs
457 noderepo-SPEC := noderepo.spec
458 # package requires all regular packages
459 noderepo-DEPEND-PACKAGES := $(IN_BOOTSTRAPFS) $(IN_NODEREPO) $(IN_VSERVER)
460 noderepo-DEPEND-FILES := RPMS/yumgroups.xml
461 #export rpm list to the specfile
462 noderepo-SPECVARS = node_rpms_plus=$(NODEREPO_RPMS_3PLUS)
463 noderepo-RPMDATE := yes
468 # MyPLC : lightweight packaging, dependencies are yum-installed in a vserver
470 myplc-MODULES := myplc
471 myplc-SPEC := myplc.spec
472 myplc-DEPEND-FILES := myplc-release RPMS/yumgroups.xml
475 # myplc-docs only contains docs for PLCAPI and NMAPI, but
476 # we still need to pull MyPLC, as it is where the specfile lies,
477 # together with the utility script docbook2drupal.sh
478 myplc-docs-MODULES := myplc plcapi nodemanager Monitor
479 myplc-docs-SPEC := myplc-docs.spec
482 # using some other name than myplc-release, as this is a make target already
483 release-MODULES := myplc
484 release-SPEC := myplc-release.spec
485 release-RPMDATE := yes