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)
49 ifneq ($(DISTRONAME),f14)
51 IN_BOOTSTRAPFS += ipfwroot
54 ipfwslice-MODULES := ipfw
55 ipfwslice-SPEC := planetlab/ipfwslice.spec
56 ipfwslice-SPECVARS = kernel_version=$(kernel.rpm-version) \
57 kernel_release=$(kernel.rpm-release) \
58 kernel_arch=$(kernel.rpm-arch)
64 madwifi-MODULES := madwifi
65 madwifi-SPEC := madwifi.spec
66 madwifi-BUILD-FROM-SRPM := yes
67 madwifi-DEPEND-DEVEL-RPMS := kernel-devel
68 madwifi-SPECVARS = kernel_version=$(kernel.rpm-version) \
69 kernel_release=$(kernel.rpm-release) \
70 kernel_arch=$(kernel.rpm-arch)
72 IN_BOOTSTRAPFS += madwifi
77 nozomi-MODULES := nozomi
78 nozomi-SPEC := nozomi.spec
79 nozomi-DEPEND-DEVEL-RPMS := kernel-devel
80 nozomi-SPECVARS = kernel_version=$(kernel.rpm-version) \
81 kernel_release=$(kernel.rpm-release) \
82 kernel_arch=$(kernel.rpm-arch)
83 IN_BOOTSTRAPFS += nozomi
89 comgt-MODULES := comgt
90 comgt-SPEC := comgt.spec
91 IN_BOOTSTRAPFS += comgt
95 # umts: root context stuff
97 umts-backend-MODULES := planetlab-umts-tools
98 umts-backend-SPEC := backend.spec
99 IN_BOOTSTRAPFS += umts-backend
105 umts-frontend-MODULES := planetlab-umts-tools
106 umts-frontend-SPEC := frontend.spec
107 IN_VSERVER += umts-frontend
113 iptables-MODULES := iptables
114 iptables-SPEC := iptables.spec
115 ifeq "$(PLDISTROTAGS)" "onelab-k27-tags.mk"
116 iptables-BUILD-FROM-SRPM := yes
118 iptables-DEPEND-DEVEL-RPMS := kernel-devel kernel-headers
120 IN_BOOTSTRAPFS += iptables
125 iproute-MODULES := iproute2
126 iproute-SPEC := iproute.spec
128 IN_BOOTSTRAPFS += iproute
129 IN_VSERVER += iproute
135 util-vserver-MODULES := util-vserver
136 util-vserver-SPEC := util-vserver.spec
137 util-vserver-RPMFLAGS:= --without dietlibc
139 IN_BOOTSTRAPFS += util-vserver
142 # libnl - local import
143 # we need either 1.1 or at least 1.0.pre6
144 # rebuild this on centos5 - see kexcludes in build.common
147 ifeq "$(DISTRONAME)" "centos5"
151 ifeq "$(local_libnl)" "true"
152 libnl-MODULES := libnl
153 libnl-SPEC := libnl.spec
154 libnl-BUILD-FROM-SRPM := yes
155 # this sounds like the thing to do, but in fact linux/if_vlan.h comes with kernel-headers
156 libnl-DEPEND-DEVEL-RPMS := kernel-devel kernel-headers
158 IN_BOOTSTRAPFS += libnl
164 util-vserver-pl-MODULES := util-vserver-pl
165 util-vserver-pl-SPEC := util-vserver-pl.spec
166 util-vserver-pl-DEPEND-DEVEL-RPMS := util-vserver-lib util-vserver-devel util-vserver-core
167 ifeq "$(local_libnl)" "true"
168 util-vserver-pl-DEPEND-DEVEL-RPMS += libnl libnl-devel
170 ALL += util-vserver-pl
171 IN_BOOTSTRAPFS += util-vserver-pl
176 nodeupdate-MODULES := nodeupdate
177 nodeupdate-SPEC := NodeUpdate.spec
179 IN_BOOTSTRAPFS += nodeupdate
184 ipod-MODULES := PingOfDeath
185 ipod-SPEC := ipod.spec
187 IN_BOOTSTRAPFS += ipod
192 nodemanager-MODULES := nodemanager
193 nodemanager-SPEC := NodeManager.spec
195 IN_BOOTSTRAPFS += nodemanager
200 sshd-MODULES := pl_sshd
201 sshd-SPEC := pl_sshd.spec
203 IN_BOOTSTRAPFS += sshd
206 # codemux: Port 80 demux
208 codemux-MODULES := codemux
209 codemux-SPEC := codemux.spec
210 #codemux-RPMBUILD := bash ./rpmbuild.sh
212 IN_BOOTSTRAPFS += codemux
217 fprobe-ulog-MODULES := fprobe-ulog
218 fprobe-ulog-SPEC := fprobe-ulog.spec
220 IN_BOOTSTRAPFS += fprobe-ulog
223 # DistributedRateLimiting
225 DistributedRateLimiting-MODULES := DistributedRateLimiting
226 DistributedRateLimiting-SPEC := DistributedRateLimiting.spec
227 ALL += DistributedRateLimiting
228 IN_NODEREPO += DistributedRateLimiting
234 pf2slice-MODULES := pf2slice
235 pf2slice-SPEC := pf2slice.spec
239 # PlanetLab Mom: Cleans up your mess
242 mom-SPEC := pl_mom.spec
244 IN_BOOTSTRAPFS += mom
247 # inotify-tools - local import
248 # rebuild this on centos5 (not found) - see kexcludes in build.common
250 local_inotify_tools=false
251 ifeq "$(DISTRONAME)" "centos5"
252 local_inotify_tools=true
255 ifeq "$(local_inotify_tools)" "true"
256 inotify-tools-MODULES := inotify-tools
257 inotify-tools-SPEC := inotify-tools.spec
258 inotify-tools-BUILD-FROM-SRPM := yes
259 IN_BOOTSTRAPFS += inotify-tools
267 vsys-SPEC := vsys.spec
268 ifeq "$(local_inotify_tools)" "true"
269 vsys-DEPEND-DEVEL-RPMS := inotify-tools inotify-tools-devel
271 IN_BOOTSTRAPFS += vsys
277 vsys-scripts-MODULES := vsys-scripts
278 vsys-scripts-SPEC := vsys-scripts.spec
279 IN_BOOTSTRAPFS += vsys-scripts
285 plcapi-MODULES := plcapi
286 plcapi-SPEC := PLCAPI.spec
293 drupal-MODULES := drupal
294 drupal-SPEC := drupal.spec
295 drupal-BUILD-FROM-SRPM := yes
300 # use the plewww module instead
302 plewww-MODULES := plewww
303 plewww-SPEC := plewww.spec
308 # www-register-wizard
310 www-register-wizard-MODULES := www-register-wizard
311 www-register-wizard-SPEC := www-register-wizard.spec
312 ALL += www-register-wizard
313 IN_MYPLC += www-register-wizard
318 pcucontrol-MODULES := pcucontrol
319 pcucontrol-SPEC := pcucontrol.spec
325 monitor-MODULES := Monitor
326 monitor-SPEC := Monitor.spec
328 IN_BOOTSTRAPFS += monitor
333 zabbix-MODULES := Monitor
334 zabbix-SPEC := zabbix.spec
335 zabbix-BUILD-FROM-SRPM := yes
341 plcrt-MODULES := PLCRT
342 plcrt-SPEC := plcrt.spec
348 pyopenssl-MODULES := pyopenssl
349 pyopenssl-SPEC := pyOpenSSL.spec
350 pyopenssl-BUILD-FROM-SRPM := yes
356 pyaspects-MODULES := pyaspects
357 pyaspects-SPEC := pyaspects.spec
358 pyaspects-BUILD-FROM-SRPM := yes
364 ejabberd-MODULES := ejabberd
365 ejabberd-SPEC := ejabberd.spec
366 ejabberd-BUILD-FROM-SRPM := yes
367 # tmp - skip on f14 for now
368 ifneq ($(DISTRONAME),f14)
372 # sfa now uses the with statement that's not supported on python-2.4 - not even through __future__
374 ifeq "$(DISTRONAME)" "centos5"
378 ifeq "$(build_sfa)" "true"
380 # sfa - Slice Facility Architecture
387 sface-MODULES := sface
388 sface-SPEC := sface.spec
394 nodeconfig-MODULES := nodeconfig
395 nodeconfig-SPEC := nodeconfig.spec
397 IN_MYPLC += nodeconfig
402 bootmanager-MODULES := bootmanager
403 bootmanager-SPEC := bootmanager.spec
405 IN_MYPLC += bootmanager
408 # pypcilib : used in bootcd
410 pypcilib-MODULES := pypcilib
411 pypcilib-SPEC := pypcilib.spec
413 IN_BOOTCD += pypcilib
418 pyplnet-MODULES := pyplnet
419 pyplnet-SPEC := pyplnet.spec
421 IN_BOOTSTRAPFS += pyplnet
426 # OMF resource controller
428 omf-resctl-MODULES := omf
429 omf-resctl-SPEC := omf-resctl.spec
431 IN_VSERVER += omf-resctl
436 omf-expctl-MODULES := omf
437 omf-expctl-SPEC := omf-expctl.spec
443 bootcd-MODULES := bootcd build
444 bootcd-SPEC := bootcd.spec
445 bootcd-RPMBUILD := bash ./rpmbuild.sh
446 bootcd-DEPEND-PACKAGES := $(IN_BOOTCD)
447 bootcd-DEPEND-FILES := RPMS/yumgroups.xml
448 bootcd-RPMDATE := yes
453 # vserver : reference image for slices
455 vserver-MODULES := vserver-reference build
456 vserver-SPEC := vserver-reference.spec
457 vserver-DEPEND-PACKAGES := $(IN_VSERVER)
458 vserver-DEPEND-FILES := RPMS/yumgroups.xml
459 vserver-RPMDATE := yes
461 IN_BOOTSTRAPFS += vserver
466 bootstrapfs-MODULES := bootstrapfs build
467 bootstrapfs-SPEC := bootstrapfs.spec
468 bootstrapfs-RPMBUILD := bash ./rpmbuild.sh
469 bootstrapfs-DEPEND-PACKAGES := $(IN_BOOTSTRAPFS)
470 bootstrapfs-DEPEND-FILES := RPMS/yumgroups.xml
471 bootstrapfs-RPMDATE := yes
473 IN_MYPLC += bootstrapfs
478 # all rpms resulting from packages marked as being in bootstrapfs and vserver
479 NODEREPO_RPMS = $(foreach package,$(IN_BOOTSTRAPFS) $(IN_NODEREPO) $(IN_VSERVER),$($(package).rpms))
480 # replace space with +++ (specvars cannot deal with spaces)
482 NODEREPO_RPMS_3PLUS = $(subst $(SPACE),+++,$(NODEREPO_RPMS))
484 noderepo-MODULES := bootstrapfs
485 noderepo-SPEC := noderepo.spec
486 noderepo-RPMBUILD := bash ./rpmbuild.sh
487 # package requires all embedded packages
488 noderepo-DEPEND-PACKAGES := $(IN_BOOTSTRAPFS) $(IN_NODEREPO) $(IN_VSERVER)
489 noderepo-DEPEND-FILES := RPMS/yumgroups.xml
490 #export rpm list to the specfile
491 noderepo-SPECVARS = node_rpms_plus=$(NODEREPO_RPMS_3PLUS)
492 noderepo-RPMDATE := yes
499 # all rpms resulting from packages marked as being in vserver
500 SLICEREPO_RPMS = $(foreach package,$(IN_VSERVER),$($(package).rpms))
501 # replace space with +++ (specvars cannot deal with spaces)
503 SLICEREPO_RPMS_3PLUS = $(subst $(SPACE),+++,$(SLICEREPO_RPMS))
505 slicerepo-MODULES := bootstrapfs
506 slicerepo-SPEC := slicerepo.spec
507 slicerepo-RPMBUILD := bash ./rpmbuild.sh
508 # package requires all embedded packages
509 slicerepo-DEPEND-PACKAGES := $(IN_VSERVER)
510 slicerepo-DEPEND-FILES := RPMS/yumgroups.xml
511 #export rpm list to the specfile
512 slicerepo-SPECVARS = slice_rpms_plus=$(SLICEREPO_RPMS_3PLUS)
513 slicerepo-RPMDATE := yes
517 # MyPLC : lightweight packaging, dependencies are yum-installed in a vserver
519 myplc-MODULES := myplc
520 myplc-SPEC := myplc.spec
521 myplc-DEPEND-FILES := myplc-release RPMS/yumgroups.xml
524 # myplc-docs only contains docs for PLCAPI and NMAPI, but
525 # we still need to pull MyPLC, as it is where the specfile lies,
526 # together with the utility script docbook2drupal.sh
527 myplc-docs-MODULES := myplc plcapi nodemanager Monitor
528 myplc-docs-SPEC := myplc-docs.spec
531 # using some other name than myplc-release, as this is a make target already
532 release-MODULES := myplc
533 release-SPEC := myplc-release.spec
534 release-RPMDATE := yes