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
16 # use a package name with srpm in it:
17 # so the source rpm is created by running make srpm in the codebase
20 kernel-MODULES := linux-2.6
21 kernel-SPEC := kernel-2.6.spec
22 kernel-BUILD-FROM-SRPM := yes
23 ifeq "$(HOSTARCH)" "i386"
24 kernel-RPMFLAGS:= --target i686
26 kernel-RPMFLAGS:= --target $(HOSTARCH)
28 # this is useful for 2.6.22 but will not be needed anymore with 2.6.27
29 kernel-SPECVARS += iwlwifi=1
30 kernel-SPECVARS += kernelconfig=planetlab
34 kernels-clean: $(foreach package,$(KERNELS),$(package)-clean)
37 # this is to mark on which image a given rpm is supposed to go
38 IN_BOOTCD += $(KERNELS)
39 IN_VSERVER += $(KERNELS)
40 IN_BOOTSTRAPFS += $(KERNELS)
43 # ipfw: root context module, and slice companion
45 ipfwroot-MODULES := ipfw
46 ipfwroot-SPEC := planetlab/ipfwroot.spec
47 ipfwroot-DEPEND-DEVEL-RPMS := kernel-devel
48 ipfwroot-SPECVARS = kernel_version=$(kernel.rpm-version) \
49 kernel_release=$(kernel.rpm-release) \
50 kernel_arch=$(kernel.rpm-arch)
52 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)
61 # this doesn't build on f12 - weird all right - I suspect gcc to be smarter but that needs investigation
62 # is madwifi still current anyway ? should we move to ath5k instead ?
63 #ifneq "$(DISTRONAME)" "f12"
67 madwifi-MODULES := madwifi
68 madwifi-SPEC := madwifi.spec
69 madwifi-BUILD-FROM-SRPM := yes
70 madwifi-DEPEND-DEVEL-RPMS := kernel-devel
71 madwifi-SPECVARS = kernel_version=$(kernel.rpm-version) \
72 kernel_release=$(kernel.rpm-release) \
73 kernel_arch=$(kernel.rpm-arch)
75 IN_BOOTSTRAPFS += madwifi
81 nozomi-MODULES := nozomi
82 nozomi-SPEC := nozomi.spec
83 nozomi-DEPEND-DEVEL-RPMS := kernel-devel
84 nozomi-SPECVARS = kernel_version=$(kernel.rpm-version) \
85 kernel_release=$(kernel.rpm-release) \
86 kernel_arch=$(kernel.rpm-arch)
87 IN_BOOTSTRAPFS += nozomi
93 comgt-MODULES := comgt
94 comgt-SPEC := comgt.spec
95 IN_BOOTSTRAPFS += comgt
99 # umts: root context stuff
101 umts-backend-MODULES := planetlab-umts-tools
102 umts-backend-SPEC := backend.spec
103 IN_BOOTSTRAPFS += umts-backend
109 umts-frontend-MODULES := planetlab-umts-tools
110 umts-frontend-SPEC := frontend.spec
111 IN_VSERVER += umts-frontend
117 iptables-MODULES := iptables
118 iptables-SPEC := iptables.spec
119 ifeq "$(PLDISTROTAGS)" "onelab-k27-tags.mk"
120 iptables-BUILD-FROM-SRPM := yes
122 iptables-DEPEND-DEVEL-RPMS := kernel-devel kernel-headers
124 IN_BOOTSTRAPFS += iptables
129 iproute-MODULES := iproute2
130 iproute-SPEC := iproute.spec
132 IN_BOOTSTRAPFS += iproute
133 IN_VSERVER += iproute
139 util-vserver-MODULES := util-vserver
140 util-vserver-SPEC := util-vserver.spec
141 util-vserver-RPMFLAGS:= --without dietlibc
143 IN_BOOTSTRAPFS += util-vserver
146 # libnl - local import
147 # we need either 1.1 or at least 1.0.pre6
148 # rebuild this on centos5 - see kexcludes in build.common
151 ifeq "$(DISTRONAME)" "centos5"
155 ifeq "$(local_libnl)" "true"
156 libnl-MODULES := libnl
157 libnl-SPEC := libnl.spec
158 libnl-BUILD-FROM-SRPM := yes
159 # this sounds like the thing to do, but in fact linux/if_vlan.h comes with kernel-headers
160 libnl-DEPEND-DEVEL-RPMS := kernel-devel kernel-headers
162 IN_BOOTSTRAPFS += libnl
168 util-vserver-pl-MODULES := util-vserver-pl
169 util-vserver-pl-SPEC := util-vserver-pl.spec
170 util-vserver-pl-DEPEND-DEVEL-RPMS := util-vserver-lib util-vserver-devel util-vserver-core
171 ifeq "$(local_libnl)" "true"
172 util-vserver-pl-DEPEND-DEVEL-RPMS += libnl libnl-devel
174 ALL += util-vserver-pl
175 IN_BOOTSTRAPFS += util-vserver-pl
180 nodeupdate-MODULES := NodeUpdate
181 nodeupdate-SPEC := NodeUpdate.spec
183 IN_BOOTSTRAPFS += nodeupdate
188 ipod-MODULES := PingOfDeath
189 ipod-SPEC := ipod.spec
191 IN_BOOTSTRAPFS += ipod
196 nodemanager-MODULES := NodeManager
197 nodemanager-SPEC := NodeManager.spec
199 IN_BOOTSTRAPFS += nodemanager
204 sshd-MODULES := pl_sshd
205 sshd-SPEC := pl_sshd.spec
207 IN_BOOTSTRAPFS += sshd
210 # codemux: Port 80 demux
212 codemux-MODULES := CoDemux
213 codemux-SPEC := codemux.spec
214 #codemux-RPMBUILD := bash ./rpmbuild.sh
216 IN_BOOTSTRAPFS += codemux
221 fprobe-ulog-MODULES := fprobe-ulog
222 fprobe-ulog-SPEC := fprobe-ulog.spec
224 IN_BOOTSTRAPFS += fprobe-ulog
227 # DistributedRateLimiting
229 DistributedRateLimiting-MODULES := DistributedRateLimiting
230 DistributedRateLimiting-SPEC := DistributedRateLimiting.spec
231 ALL += DistributedRateLimiting
232 IN_NODEREPO += DistributedRateLimiting
238 pf2slice-MODULES := pf2slice
239 pf2slice-SPEC := pf2slice.spec
243 # PlanetLab Mom: Cleans up your mess
246 mom-SPEC := pl_mom.spec
248 IN_BOOTSTRAPFS += mom
251 # inotify-tools - local import
252 # rebuild this on centos5 (not found) - see kexcludes in build.common
254 local_inotify_tools=false
255 ifeq "$(DISTRONAME)" "centos5"
256 local_inotify_tools=true
259 ifeq "$(local_inotify_tools)" "true"
260 inotify-tools-MODULES := inotify-tools
261 inotify-tools-SPEC := inotify-tools.spec
262 inotify-tools-BUILD-FROM-SRPM := yes
263 IN_BOOTSTRAPFS += inotify-tools
271 vsys-SPEC := vsys.spec
272 ifeq "$(local_inotify_tools)" "true"
273 vsys-DEPEND-DEVEL-RPMS := inotify-tools inotify-tools-devel
275 IN_BOOTSTRAPFS += vsys
281 vsys-scripts-MODULES := vsys-scripts
282 vsys-scripts-SPEC := vsys-scripts.spec
283 IN_BOOTSTRAPFS += vsys-scripts
289 plcapi-MODULES := PLCAPI
290 plcapi-SPEC := PLCAPI.spec
296 drupal-MODULES := drupal
297 drupal-SPEC := drupal.spec
298 drupal-BUILD-FROM-SRPM := yes
302 # use the plewww module instead
304 plewww-MODULES := PLEWWW
305 plewww-SPEC := plewww.spec
309 # www-register-wizard
311 www-register-wizard-MODULES := www-register-wizard
312 www-register-wizard-SPEC := www-register-wizard.spec
313 ALL += 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
370 # sfa - Slice Facility Architecture
379 nodeconfig-MODULES := nodeconfig
380 nodeconfig-SPEC := nodeconfig.spec
386 bootmanager-MODULES := BootManager
387 bootmanager-SPEC := bootmanager.spec
391 # pypcilib : used in bootcd
393 pypcilib-MODULES := pypcilib
394 pypcilib-SPEC := pypcilib.spec
396 IN_BOOTCD += pypcilib
401 pyplnet-MODULES := pyplnet
402 pyplnet-SPEC := pyplnet.spec
404 IN_BOOTSTRAPFS += pyplnet
408 # OMF resource controller
410 omf-resctl-MODULES := omf
411 omf-resctl-SPEC := omf-resctl.spec
413 IN_VSERVER += omf-resctl
418 omf-expctl-MODULES := omf
419 omf-expctl-SPEC := omf-expctl.spec
425 bootcd-MODULES := BootCD build
426 bootcd-SPEC := bootcd.spec
427 bootcd-RPMBUILD := bash ./rpmbuild.sh
428 bootcd-DEPEND-PACKAGES := $(IN_BOOTCD)
429 bootcd-DEPEND-FILES := RPMS/yumgroups.xml
430 bootcd-RPMDATE := yes
434 # vserver : reference image for slices
436 vserver-MODULES := VserverReference build
437 vserver-SPEC := vserver-reference.spec
438 vserver-DEPEND-PACKAGES := $(IN_VSERVER)
439 vserver-DEPEND-FILES := RPMS/yumgroups.xml
440 vserver-RPMDATE := yes
442 IN_BOOTSTRAPFS += vserver
447 bootstrapfs-MODULES := BootstrapFS build
448 bootstrapfs-SPEC := bootstrapfs.spec
449 bootstrapfs-RPMBUILD := bash ./rpmbuild.sh
450 bootstrapfs-DEPEND-PACKAGES := $(IN_BOOTSTRAPFS)
451 bootstrapfs-DEPEND-FILES := RPMS/yumgroups.xml
452 bootstrapfs-RPMDATE := yes
458 # all rpms resulting from packages marked as being in bootstrapfs and vserver
459 NODEREPO_RPMS = $(foreach package,$(IN_BOOTSTRAPFS) $(IN_NODEREPO) $(IN_VSERVER),$($(package).rpms))
460 # replace space with +++ (specvars cannot deal with spaces)
462 NODEREPO_RPMS_3PLUS = $(subst $(SPACE),+++,$(NODEREPO_RPMS))
464 noderepo-MODULES := BootstrapFS
465 noderepo-SPEC := noderepo.spec
466 noderepo-RPMBUILD := bash ./rpmbuild.sh
467 # package requires all embedded packages
468 noderepo-DEPEND-PACKAGES := $(IN_BOOTSTRAPFS) $(IN_NODEREPO) $(IN_VSERVER)
469 noderepo-DEPEND-FILES := RPMS/yumgroups.xml
470 #export rpm list to the specfile
471 noderepo-SPECVARS = node_rpms_plus=$(NODEREPO_RPMS_3PLUS)
472 noderepo-RPMDATE := yes
478 # all rpms resulting from packages marked as being in vserver
479 SLICEREPO_RPMS = $(foreach package,$(IN_VSERVER),$($(package).rpms))
480 # replace space with +++ (specvars cannot deal with spaces)
482 SLICEREPO_RPMS_3PLUS = $(subst $(SPACE),+++,$(SLICEREPO_RPMS))
484 slicerepo-MODULES := BootstrapFS
485 slicerepo-SPEC := slicerepo.spec
486 slicerepo-RPMBUILD := bash ./rpmbuild.sh
487 # package requires all embedded packages
488 slicerepo-DEPEND-PACKAGES := $(IN_VSERVER)
489 slicerepo-DEPEND-FILES := RPMS/yumgroups.xml
490 #export rpm list to the specfile
491 slicerepo-SPECVARS = slice_rpms_plus=$(SLICEREPO_RPMS_3PLUS)
492 slicerepo-RPMDATE := yes
496 # MyPLC : lightweight packaging, dependencies are yum-installed in a vserver
498 myplc-MODULES := MyPLC
499 myplc-SPEC := myplc.spec
500 myplc-DEPEND-FILES := myplc-release RPMS/yumgroups.xml
503 # myplc-docs only contains docs for PLCAPI and NMAPI, but
504 # we still need to pull MyPLC, as it is where the specfile lies,
505 # together with the utility script docbook2drupal.sh
506 myplc-docs-MODULES := MyPLC PLCAPI NodeManager Monitor
507 myplc-docs-SPEC := myplc-docs.spec
510 # using some other name than myplc-release, as this is a make target already
511 release-MODULES := MyPLC
512 release-SPEC := myplc-release.spec
513 release-RPMDATE := yes