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)
50 IN_BOOTSTRAPFS += ipfwroot
52 ipfwslice-MODULES := ipfw
53 ipfwslice-SPEC := planetlab/ipfwslice.spec
54 ipfwslice-SPECVARS = kernel_version=$(kernel.rpm-version) \
55 kernel_release=$(kernel.rpm-release) \
56 kernel_arch=$(kernel.rpm-arch)
62 madwifi-MODULES := madwifi
63 madwifi-SPEC := madwifi.spec
64 madwifi-BUILD-FROM-SRPM := yes
65 madwifi-DEPEND-DEVEL-RPMS := kernel-devel
66 madwifi-SPECVARS = kernel_version=$(kernel.rpm-version) \
67 kernel_release=$(kernel.rpm-release) \
68 kernel_arch=$(kernel.rpm-arch)
70 IN_BOOTSTRAPFS += madwifi
75 nozomi-MODULES := nozomi
76 nozomi-SPEC := nozomi.spec
77 nozomi-DEPEND-DEVEL-RPMS := kernel-devel
78 nozomi-SPECVARS = kernel_version=$(kernel.rpm-version) \
79 kernel_release=$(kernel.rpm-release) \
80 kernel_arch=$(kernel.rpm-arch)
81 IN_BOOTSTRAPFS += nozomi
87 comgt-MODULES := comgt
88 comgt-SPEC := comgt.spec
89 IN_BOOTSTRAPFS += comgt
93 # umts: root context stuff
95 umts-backend-MODULES := planetlab-umts-tools
96 umts-backend-SPEC := backend.spec
97 IN_BOOTSTRAPFS += umts-backend
103 umts-frontend-MODULES := planetlab-umts-tools
104 umts-frontend-SPEC := frontend.spec
105 IN_VSERVER += umts-frontend
111 iptables-MODULES := iptables
112 iptables-SPEC := iptables.spec
113 ifeq "$(PLDISTROTAGS)" "onelab-k27-tags.mk"
114 iptables-BUILD-FROM-SRPM := yes
116 iptables-DEPEND-DEVEL-RPMS := kernel-devel kernel-headers
118 IN_BOOTSTRAPFS += iptables
123 iproute-MODULES := iproute2
124 iproute-SPEC := iproute.spec
126 IN_BOOTSTRAPFS += iproute
127 IN_VSERVER += iproute
133 util-vserver-MODULES := util-vserver
134 util-vserver-SPEC := util-vserver.spec
135 util-vserver-RPMFLAGS:= --without dietlibc
137 IN_BOOTSTRAPFS += util-vserver
140 # libnl - local import
141 # we need either 1.1 or at least 1.0.pre6
142 # rebuild this on centos5 - see kexcludes in build.common
145 ifeq "$(DISTRONAME)" "centos5"
149 ifeq "$(local_libnl)" "true"
150 libnl-MODULES := libnl
151 libnl-SPEC := libnl.spec
152 libnl-BUILD-FROM-SRPM := yes
153 # this sounds like the thing to do, but in fact linux/if_vlan.h comes with kernel-headers
154 libnl-DEPEND-DEVEL-RPMS := kernel-devel kernel-headers
156 IN_BOOTSTRAPFS += libnl
162 util-vserver-pl-MODULES := util-vserver-pl
163 util-vserver-pl-SPEC := util-vserver-pl.spec
164 util-vserver-pl-DEPEND-DEVEL-RPMS := util-vserver-lib util-vserver-devel util-vserver-core
165 ifeq "$(local_libnl)" "true"
166 util-vserver-pl-DEPEND-DEVEL-RPMS += libnl libnl-devel
168 ALL += util-vserver-pl
169 IN_BOOTSTRAPFS += util-vserver-pl
174 nodeupdate-MODULES := nodeupdate
175 nodeupdate-SPEC := NodeUpdate.spec
177 IN_BOOTSTRAPFS += nodeupdate
182 ipod-MODULES := PingOfDeath
183 ipod-SPEC := ipod.spec
185 IN_BOOTSTRAPFS += ipod
190 nodemanager-MODULES := nodemanager
191 nodemanager-SPEC := NodeManager.spec
193 IN_BOOTSTRAPFS += nodemanager
198 sshd-MODULES := pl_sshd
199 sshd-SPEC := pl_sshd.spec
201 IN_BOOTSTRAPFS += sshd
204 # codemux: Port 80 demux
206 codemux-MODULES := codemux
207 codemux-SPEC := codemux.spec
209 IN_BOOTSTRAPFS += codemux
214 fprobe-ulog-MODULES := fprobe-ulog
215 fprobe-ulog-SPEC := fprobe-ulog.spec
217 IN_BOOTSTRAPFS += fprobe-ulog
220 # DistributedRateLimiting
222 DistributedRateLimiting-MODULES := DistributedRateLimiting
223 DistributedRateLimiting-SPEC := DistributedRateLimiting.spec
224 ALL += DistributedRateLimiting
225 IN_NODEREPO += DistributedRateLimiting
231 pf2slice-MODULES := pf2slice
232 pf2slice-SPEC := pf2slice.spec
236 # PlanetLab Mom: Cleans up your mess
239 mom-SPEC := pl_mom.spec
241 IN_BOOTSTRAPFS += mom
244 # inotify-tools - local import
245 # rebuild this on centos5 (not found) - see kexcludes in build.common
247 local_inotify_tools=false
248 ifeq "$(DISTRONAME)" "centos5"
249 local_inotify_tools=true
252 ifeq "$(local_inotify_tools)" "true"
253 inotify-tools-MODULES := inotify-tools
254 inotify-tools-SPEC := inotify-tools.spec
255 inotify-tools-BUILD-FROM-SRPM := yes
256 IN_BOOTSTRAPFS += inotify-tools
263 openvswitch-MODULES := openvswitch
264 openvswitch-SPEC := openvswitch.spec
265 openvswitch-DEPEND-DEVEL-RPMS := kernel-devel
266 IN_BOOTSTRAPFS += openvswitch
273 vsys-SPEC := vsys.spec
274 ifeq "$(local_inotify_tools)" "true"
275 vsys-DEPEND-DEVEL-RPMS := inotify-tools inotify-tools-devel
277 IN_BOOTSTRAPFS += vsys
283 vsys-scripts-MODULES := vsys-scripts
284 vsys-scripts-SPEC := vsys-scripts.spec
285 IN_BOOTSTRAPFS += vsys-scripts
291 plcapi-MODULES := plcapi
292 plcapi-SPEC := PLCAPI.spec
299 drupal-MODULES := drupal
300 drupal-SPEC := drupal.spec
301 drupal-BUILD-FROM-SRPM := yes
306 # use the plewww module instead
308 plewww-MODULES := plewww
309 plewww-SPEC := plewww.spec
314 # www-register-wizard
316 www-register-wizard-MODULES := www-register-wizard
317 www-register-wizard-SPEC := www-register-wizard.spec
318 ALL += www-register-wizard
319 IN_MYPLC += www-register-wizard
324 pcucontrol-MODULES := pcucontrol
325 pcucontrol-SPEC := pcucontrol.spec
331 monitor-MODULES := Monitor
332 monitor-SPEC := Monitor.spec
334 IN_BOOTSTRAPFS += monitor
339 zabbix-MODULES := Monitor
340 zabbix-SPEC := zabbix.spec
341 zabbix-BUILD-FROM-SRPM := yes
347 plcrt-MODULES := PLCRT
348 plcrt-SPEC := plcrt.spec
354 pyopenssl-MODULES := pyopenssl
355 pyopenssl-SPEC := pyOpenSSL.spec
356 pyopenssl-BUILD-FROM-SRPM := yes
362 pyaspects-MODULES := pyaspects
363 pyaspects-SPEC := pyaspects.spec
364 pyaspects-BUILD-FROM-SRPM := yes
370 ejabberd-MODULES := ejabberd
371 ejabberd-SPEC := ejabberd.spec
372 ejabberd-BUILD-FROM-SRPM := yes
373 # not needed anymore on f12 and above, that come with 2.1.5, and we had 2.1.3
374 # so, this is relevant on f8 and centos5 only
375 ifeq "$(DISTRONAME)" "$(filter $(DISTRONAME),f8 centos5)"
379 # sfa now uses the with statement that's not supported on python-2.4 - not even through __future__
381 ifeq "$(DISTRONAME)" "centos5"
385 ifeq "$(build_sfa)" "true"
387 # sfa - Slice Facility Architecture
394 sface-MODULES := sface
395 sface-SPEC := sface.spec
401 nodeconfig-MODULES := nodeconfig
402 nodeconfig-SPEC := nodeconfig.spec
404 IN_MYPLC += nodeconfig
409 bootmanager-MODULES := bootmanager
410 bootmanager-SPEC := bootmanager.spec
412 IN_MYPLC += bootmanager
415 # pypcilib : used in bootcd
417 pypcilib-MODULES := pypcilib
418 pypcilib-SPEC := pypcilib.spec
420 IN_BOOTCD += pypcilib
425 pyplnet-MODULES := pyplnet
426 pyplnet-SPEC := pyplnet.spec
428 IN_BOOTSTRAPFS += pyplnet
433 # OMF resource controller
435 omf-resctl-MODULES := omf
436 omf-resctl-SPEC := omf-resctl.spec
438 IN_VSERVER += omf-resctl
443 omf-expctl-MODULES := omf
444 omf-expctl-SPEC := omf-expctl.spec
450 bootcd-MODULES := bootcd build
451 bootcd-SPEC := bootcd.spec
452 bootcd-DEPEND-PACKAGES := $(IN_BOOTCD)
453 bootcd-DEPEND-FILES := RPMS/yumgroups.xml
454 bootcd-RPMDATE := yes
459 # vserver : reference image for slices
461 vserver-MODULES := vserver-reference build
462 vserver-SPEC := vserver-reference.spec
463 vserver-DEPEND-PACKAGES := $(IN_VSERVER)
464 vserver-DEPEND-FILES := RPMS/yumgroups.xml
465 vserver-RPMDATE := yes
467 IN_BOOTSTRAPFS += vserver
472 bootstrapfs-MODULES := bootstrapfs build
473 bootstrapfs-SPEC := bootstrapfs.spec
474 bootstrapfs-DEPEND-PACKAGES := $(IN_BOOTSTRAPFS)
475 bootstrapfs-DEPEND-FILES := RPMS/yumgroups.xml
476 bootstrapfs-RPMDATE := yes
478 IN_MYPLC += bootstrapfs
483 # all rpms resulting from packages marked as being in bootstrapfs and vserver
484 NODEREPO_RPMS = $(foreach package,$(IN_BOOTSTRAPFS) $(IN_NODEREPO) $(IN_VSERVER),$($(package).rpms))
485 # replace space with +++ (specvars cannot deal with spaces)
487 NODEREPO_RPMS_3PLUS = $(subst $(SPACE),+++,$(NODEREPO_RPMS))
489 noderepo-MODULES := bootstrapfs
490 noderepo-SPEC := noderepo.spec
491 # package requires all embedded packages
492 noderepo-DEPEND-PACKAGES := $(IN_BOOTSTRAPFS) $(IN_NODEREPO) $(IN_VSERVER)
493 noderepo-DEPEND-FILES := RPMS/yumgroups.xml
494 #export rpm list to the specfile
495 noderepo-SPECVARS = node_rpms_plus=$(NODEREPO_RPMS_3PLUS)
496 noderepo-RPMDATE := yes
503 # all rpms resulting from packages marked as being in vserver
504 SLICEREPO_RPMS = $(foreach package,$(IN_VSERVER),$($(package).rpms))
505 # replace space with +++ (specvars cannot deal with spaces)
507 SLICEREPO_RPMS_3PLUS = $(subst $(SPACE),+++,$(SLICEREPO_RPMS))
509 slicerepo-MODULES := bootstrapfs
510 slicerepo-SPEC := slicerepo.spec
511 # package requires all embedded packages
512 slicerepo-DEPEND-PACKAGES := $(IN_VSERVER)
513 slicerepo-DEPEND-FILES := RPMS/yumgroups.xml
514 #export rpm list to the specfile
515 slicerepo-SPECVARS = slice_rpms_plus=$(SLICEREPO_RPMS_3PLUS)
516 slicerepo-RPMDATE := yes
520 # MyPLC : lightweight packaging, dependencies are yum-installed in a vserver
522 myplc-MODULES := myplc
523 myplc-SPEC := myplc.spec
524 myplc-DEPEND-FILES := myplc-release RPMS/yumgroups.xml
527 # myplc-docs only contains docs for PLCAPI and NMAPI, but
528 # we still need to pull MyPLC, as it is where the specfile lies,
529 # together with the utility script docbook2drupal.sh
530 myplc-docs-MODULES := myplc plcapi nodemanager Monitor
531 myplc-docs-SPEC := myplc-docs.spec
534 # using some other name than myplc-release, as this is a make target already
535 release-MODULES := myplc
536 release-SPEC := myplc-release.spec
537 release-RPMDATE := yes