4 # declare the packages to be built and their dependencies
5 # initial version from Mark Huang
6 # Mark Huang <mlhuang@cs.princeton.edu>
7 # Copyright (C) 2003-2006 The Trustees of Princeton University
8 # rewritten by Thierry Parmentelat - INRIA Sophia Antipolis
15 ifeq "$(PLDISTROTAGS)" "planetlab-k32-tags.mk"
16 ifeq "$(DISTRONAME)" "centos5"
17 mkinitrd-MODULES := mkinitrd
18 mkinitrd-SPEC := mkinitrd.spec
19 mkinitrd-BUILD-FROM-SRPM := yes
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)
58 madwifi-MODULES := madwifi
59 madwifi-SPEC := madwifi.spec
60 madwifi-BUILD-FROM-SRPM := yes
61 madwifi-DEPEND-DEVEL-RPMS := kernel-devel
62 madwifi-SPECVARS = kernel_version=$(kernel.rpm-version) \
63 kernel_release=$(kernel.rpm-release) \
64 kernel_arch=$(kernel.rpm-arch)
66 IN_BOOTSTRAPFS += madwifi
71 util-vserver-MODULES := util-vserver
72 util-vserver-SPEC := util-vserver.spec
73 util-vserver-RPMFLAGS:= --without dietlibc
75 IN_BOOTSTRAPFS += util-vserver
78 # libnl - local import
79 # we need either 1.1 or at least 1.0.pre6
80 # rebuild this on centos5 - see kexcludes in build.common
83 ifeq "$(DISTRONAME)" "centos5"
87 ifeq "$(local_libnl)" "true"
88 libnl-MODULES := libnl
89 libnl-SPEC := libnl.spec
90 libnl-BUILD-FROM-SRPM := yes
91 # this sounds like the thing to do, but in fact linux/if_vlan.h comes with kernel-headers
92 libnl-DEPEND-DEVEL-RPMS := kernel-devel kernel-headers
94 IN_BOOTSTRAPFS += libnl
100 util-vserver-pl-MODULES := util-vserver-pl
101 util-vserver-pl-SPEC := util-vserver-pl.spec
102 util-vserver-pl-DEPEND-DEVEL-RPMS := util-vserver-lib util-vserver-devel util-vserver-core
103 ifeq "$(local_libnl)" "true"
104 util-vserver-pl-DEPEND-DEVEL-RPMS += libnl libnl-devel
106 ALL += util-vserver-pl
107 IN_BOOTSTRAPFS += util-vserver-pl
112 nodeupdate-MODULES := nodeupdate
113 nodeupdate-SPEC := NodeUpdate.spec
115 IN_BOOTSTRAPFS += nodeupdate
120 ipod-MODULES := PingOfDeath
121 ipod-SPEC := ipod.spec
123 IN_BOOTSTRAPFS += ipod
128 nodemanager-MODULES := nodemanager
129 nodemanager-SPEC := NodeManager.spec
131 IN_BOOTSTRAPFS += nodemanager
136 sshd-MODULES := pl_sshd
137 sshd-SPEC := pl_sshd.spec
139 IN_BOOTSTRAPFS += sshd
142 # codemux: Port 80 demux
144 codemux-MODULES := codemux
145 codemux-SPEC := codemux.spec
146 codemux-RPMBUILD := sudo bash ./rpmbuild.sh
148 IN_BOOTSTRAPFS += codemux
153 fprobe-ulog-MODULES := fprobe-ulog
154 fprobe-ulog-SPEC := fprobe-ulog.spec
156 IN_BOOTSTRAPFS += fprobe-ulog
159 # DistributedRateLimiting
161 DistributedRateLimiting-MODULES := DistributedRateLimiting
162 DistributedRateLimiting-SPEC := DistributedRateLimiting.spec
163 ALL += DistributedRateLimiting
164 IN_NODEREPO += DistributedRateLimiting
169 pf2slice-MODULES := pf2slice
170 pf2slice-SPEC := pf2slice.spec
174 # PlanetLab Mom: Cleans up your mess
177 mom-SPEC := pl_mom.spec
179 IN_BOOTSTRAPFS += mom
184 iptables-MODULES := iptables
185 iptables-SPEC := iptables.spec
186 iptables-DEPEND-DEVEL-RPMS := kernel-devel kernel-headers
188 IN_BOOTSTRAPFS += iptables
193 iproute-MODULES := iproute2
194 iproute-SPEC := iproute.spec
196 IN_BOOTSTRAPFS += iproute
197 IN_VSERVER += iproute
201 # inotify-tools - local import
202 # rebuild this on centos5 (not found) - see kexcludes in build.common
204 local_inotify_tools=false
205 ifeq "$(DISTRONAME)" "centos5"
206 local_inotify_tools=true
209 ifeq "$(local_inotify_tools)" "true"
210 inotify-tools-MODULES := inotify-tools
211 inotify-tools-SPEC := inotify-tools.spec
212 inotify-tools-BUILD-FROM-SRPM := yes
213 IN_BOOTSTRAPFS += inotify-tools
220 openvswitch-MODULES := openvswitch
221 openvswitch-SPEC := openvswitch.spec
222 IN_BOOTSTRAPFS += openvswitch
229 vsys-SPEC := vsys.spec
230 ifeq "$(local_inotify_tools)" "true"
231 vsys-DEPEND-DEVEL-RPMS := inotify-tools inotify-tools-devel
233 IN_BOOTSTRAPFS += vsys
239 vsys-scripts-MODULES := vsys-scripts
240 vsys-scripts-SPEC := vsys-scripts.spec
241 IN_BOOTSTRAPFS += vsys-scripts
247 plcapi-MODULES := plcapi
248 plcapi-SPEC := PLCAPI.spec
255 drupal-MODULES := drupal
256 drupal-SPEC := drupal.spec
257 drupal-BUILD-FROM-SRPM := yes
262 # use the plewww module instead
264 plewww-MODULES := plewww
265 plewww-SPEC := plewww.spec
270 # www-register-wizard
272 www-register-wizard-MODULES := www-register-wizard
273 www-register-wizard-SPEC := www-register-wizard.spec
274 ALL += www-register-wizard
275 IN_MYPLC += www-register-wizard
280 pcucontrol-MODULES := pcucontrol
281 pcucontrol-SPEC := pcucontrol.spec
287 monitor-MODULES := Monitor
288 monitor-SPEC := Monitor.spec
290 IN_BOOTSTRAPFS += monitor
295 plcrt-MODULES := PLCRT
296 plcrt-SPEC := plcrt.spec
302 zabbix-MODULES := Monitor
303 zabbix-SPEC := zabbix.spec
304 zabbix-BUILD-FROM-SRPM := yes
310 pyopenssl-MODULES := pyopenssl
311 pyopenssl-SPEC := pyOpenSSL.spec
312 pyopenssl-BUILD-FROM-SRPM := yes
319 pyaspects-MODULES := pyaspects
320 pyaspects-SPEC := pyaspects.spec
321 pyaspects-BUILD-FROM-SRPM := yes
327 ejabberd-MODULES := ejabberd
328 ejabberd-SPEC := ejabberd.spec
329 ejabberd-BUILD-FROM-SRPM := yes
330 # not needed anymore on f12 and above, that come with 2.1.5, and we had 2.1.3
331 # so, this is relevant on f8 and centos5 only
332 ifeq "$(DISTRONAME)" "$(filter $(DISTRONAME),f8 centos5)"
336 # sfa now uses the with statement that's not supported on python-2.4 - not even through __future__
338 ifeq "$(DISTRONAME)" "centos5"
342 ifeq "$(build_sfa)" "true"
344 # sfa - Slice Facility Architecture
354 # xxx needed when upgrading to 5.0
355 #nodeconfig-MODULES := nodeconfig
356 nodeconfig-MODULES := nodeconfig
357 nodeconfig-SPEC := nodeconfig.spec
359 IN_MYPLC += nodeconfig
364 bootmanager-MODULES := bootmanager
365 bootmanager-SPEC := bootmanager.spec
367 IN_MYPLC += bootmanager
370 # pypcilib : used in bootcd
372 pypcilib-MODULES := pypcilib
373 pypcilib-SPEC := pypcilib.spec
375 IN_BOOTCD += pypcilib
380 pyplnet-MODULES := pyplnet
381 pyplnet-SPEC := pyplnet.spec
383 IN_BOOTSTRAPFS += pyplnet
389 # OMF resource controller
391 omf-resctl-MODULES := omf
392 omf-resctl-SPEC := omf-resctl.spec
394 IN_VSERVER += omf-resctl
399 omf-expctl-MODULES := omf
400 omf-expctl-SPEC := omf-expctl.spec
407 bootcd-MODULES := bootcd build
408 bootcd-SPEC := bootcd.spec
409 bootcd-RPMBUILD := sudo bash ./rpmbuild.sh
410 bootcd-DEPEND-PACKAGES := $(IN_BOOTCD)
411 bootcd-DEPEND-FILES := RPMS/yumgroups.xml
412 bootcd-RPMDATE := yes
417 # vserver : reference image for slices
419 vserver-MODULES := vserver-reference build
420 vserver-SPEC := vserver-reference.spec
421 vserver-DEPEND-PACKAGES := $(IN_VSERVER)
422 vserver-DEPEND-FILES := RPMS/yumgroups.xml
423 vserver-RPMDATE := yes
425 IN_BOOTSTRAPFS += vserver
430 bootstrapfs-MODULES := bootstrapfs build
431 bootstrapfs-SPEC := bootstrapfs.spec
432 bootstrapfs-RPMBUILD := sudo bash ./rpmbuild.sh
433 bootstrapfs-DEPEND-PACKAGES := $(IN_BOOTSTRAPFS)
434 bootstrapfs-DEPEND-FILES := RPMS/yumgroups.xml
435 bootstrapfs-RPMDATE := yes
437 IN_MYPLC += bootstrapfs
442 # all rpms resulting from packages marked as being in bootstrapfs and vserver
443 NODEREPO_RPMS = $(foreach package,$(IN_BOOTSTRAPFS) $(IN_NODEREPO) $(IN_VSERVER),$($(package).rpms))
444 # replace space with +++ (specvars cannot deal with spaces)
446 NODEREPO_RPMS_3PLUS = $(subst $(SPACE),+++,$(NODEREPO_RPMS))
448 noderepo-MODULES := bootstrapfs
449 noderepo-SPEC := noderepo.spec
450 noderepo-RPMBUILD := sudo bash ./rpmbuild.sh
451 # package requires all regular packages
452 noderepo-DEPEND-PACKAGES := $(IN_BOOTSTRAPFS) $(IN_NODEREPO) $(IN_VSERVER)
453 noderepo-DEPEND-FILES := RPMS/yumgroups.xml
454 #export rpm list to the specfile
455 noderepo-SPECVARS = node_rpms_plus=$(NODEREPO_RPMS_3PLUS)
456 noderepo-RPMDATE := yes
461 # MyPLC : lightweight packaging, dependencies are yum-installed in a vserver
463 myplc-MODULES := myplc
464 myplc-SPEC := myplc.spec
465 myplc-DEPEND-FILES := myplc-release RPMS/yumgroups.xml
468 # myplc-docs only contains docs for PLCAPI and NMAPI, but
469 # we still need to pull MyPLC, as it is where the specfile lies,
470 # together with the utility script docbook2drupal.sh
471 myplc-docs-MODULES := myplc plcapi nodemanager Monitor
472 myplc-docs-SPEC := myplc-docs.spec
475 # using some other name than myplc-release, as this is a make target already
476 release-MODULES := myplc
477 release-SPEC := myplc-release.spec
478 release-RPMDATE := yes