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 kernel-SPECVARS += kernelconfig=planetlab
30 kernels-clean: $(foreach package,$(KERNELS),$(package)-clean)
33 # this is to mark on which image a given rpm is supposed to go
34 IN_BOOTCD += $(KERNELS)
35 IN_SLICEIMAGE += $(KERNELS)
36 IN_NODEIMAGE += $(KERNELS)
39 # ipfw: root context module, and slice companion
41 ipfwroot-MODULES := ipfw
42 ipfwroot-SPEC := planetlab/ipfwroot.spec
43 ipfwroot-DEPEND-DEVEL-RPMS += kernel-devel
44 ipfwroot-SPECVARS = kernel_version=$(kernel.rpm-version) \
45 kernel_release=$(kernel.rpm-release) \
46 kernel_arch=$(kernel.rpm-arch)
48 IN_NODEIMAGE += ipfwroot
50 ipfwslice-MODULES := ipfw
51 ipfwslice-SPEC := planetlab/ipfwslice.spec
52 ipfwslice-SPECVARS = kernel_version=$(kernel.rpm-version) \
53 kernel_release=$(kernel.rpm-release) \
54 kernel_arch=$(kernel.rpm-arch)
60 # skip this with k32/f8
61 ifneq "" "$(findstring k32,$(PLDISTROTAGS))"
62 ifneq "$(DISTRONAME)" "f8"
63 madwifi-MODULES := madwifi
64 madwifi-SPEC := madwifi.spec
65 madwifi-BUILD-FROM-SRPM := yes
66 madwifi-DEPEND-DEVEL-RPMS += kernel-devel
67 madwifi-SPECVARS = kernel_version=$(kernel.rpm-version) \
68 kernel_release=$(kernel.rpm-release) \
69 kernel_arch=$(kernel.rpm-arch)
71 IN_NODEIMAGE += madwifi
78 comgt-MODULES := comgt
79 comgt-SPEC := comgt.spec
84 # umts: root context stuff
86 umts-backend-MODULES := planetlab-umts-tools
87 umts-backend-SPEC := backend.spec
88 IN_NODEIMAGE += umts-backend
94 umts-frontend-MODULES := planetlab-umts-tools
95 umts-frontend-SPEC := frontend.spec
96 IN_SLICEIMAGE += umts-frontend
102 iptables-MODULES := iptables
103 iptables-SPEC := iptables.spec
104 iptables-BUILD-FROM-SRPM := yes
105 iptables-DEPEND-DEVEL-RPMS += kernel-devel kernel-headers
107 IN_NODEIMAGE += iptables
110 # we use the stock iproute2 with 2.6.32, since our gre patch is not needed anymore with that kernel
111 # note that this should be consistently reflected in nodeyumexclude
115 # iproute-MODULES := iproute2
116 # iproute-SPEC := iproute.spec
117 # iproute-BUILD-FROM-SRPM := yes
119 # IN_NODEIMAGE += iproute
120 # IN_SLICEIMAGE += iproute
121 # IN_BOOTCD += iproute
126 util-vserver-MODULES := util-vserver
127 util-vserver-SPEC := util-vserver.spec
129 util-vserver-BUILD-FROM-SRPM := yes
130 util-vserver-RPMFLAGS:= --without dietlibc --without doc
132 IN_NODEIMAGE += util-vserver
135 # libnl - local import
136 # we need either 1.1 or at least 1.0.pre6
137 # rebuild this on centos5 - see yumexclude
140 ifeq "$(DISTRONAME)" "centos5"
144 ifeq "$(local_libnl)" "true"
145 libnl-MODULES := libnl
146 libnl-SPEC := libnl.spec
147 libnl-BUILD-FROM-SRPM := yes
148 # this sounds like the thing to do, but in fact linux/if_vlan.h comes with kernel-headers
149 libnl-DEPEND-DEVEL-RPMS += kernel-devel kernel-headers
151 IN_NODEIMAGE += libnl
157 util-vserver-pl-MODULES := util-vserver-pl
158 util-vserver-pl-SPEC := util-vserver-pl.spec
159 util-vserver-pl-DEPEND-DEVEL-RPMS += util-vserver-lib util-vserver-devel util-vserver-core
160 ifeq "$(local_libnl)" "true"
161 util-vserver-pl-DEPEND-DEVEL-RPMS += libnl libnl-devel
163 ALL += util-vserver-pl
164 IN_NODEIMAGE += util-vserver-pl
169 nodeupdate-MODULES := nodeupdate
170 nodeupdate-SPEC := NodeUpdate.spec
172 IN_NODEIMAGE += nodeupdate
177 ipod-MODULES := PingOfDeath
178 ipod-SPEC := ipod.spec
185 nodemanager-MODULES := nodemanager
186 nodemanager-SPEC := NodeManager.spec
188 IN_NODEIMAGE += nodemanager
193 sshd-MODULES := pl_sshd
194 sshd-SPEC := pl_sshd.spec
199 # codemux: Port 80 demux
201 codemux-MODULES := codemux
202 codemux-SPEC := codemux.spec
204 IN_NODEIMAGE += codemux
209 fprobe-ulog-MODULES := fprobe-ulog
210 fprobe-ulog-SPEC := fprobe-ulog.spec
212 IN_NODEIMAGE += fprobe-ulog
215 # DistributedRateLimiting
217 # on f16 somehow configure screws up and defines LDFLAGS=-Wl,-z,relro which ld does not like..
218 ifneq "$(DISTRONAME)" "f16"
219 DistributedRateLimiting-MODULES := DistributedRateLimiting
220 DistributedRateLimiting-SPEC := DistributedRateLimiting.spec
221 ALL += DistributedRateLimiting
222 IN_NODEREPO += DistributedRateLimiting
228 pf2slice-MODULES := pf2slice
229 pf2slice-SPEC := pf2slice.spec
233 # PlanetLab Mom: Cleans up your mess
236 mom-SPEC := pl_mom.spec
241 # inotify-tools - local import
242 # rebuild this on centos5 (not found) - see yumexclude
244 local_inotify_tools=false
245 ifeq "$(DISTRONAME)" "centos5"
246 local_inotify_tools=true
249 ifeq "$(DISTRONAME)" "sl6"
250 local_inotify_tools=true
253 ifeq "$(local_inotify_tools)" "true"
254 inotify-tools-MODULES := inotify-tools
255 inotify-tools-SPEC := inotify-tools.spec
256 inotify-tools-BUILD-FROM-SRPM := yes
257 IN_NODEIMAGE += inotify-tools
264 # openvswitch-MODULES := openvswitch
265 # openvswitch-SPEC := openvswitch.spec
266 # openvswitch-DEPEND-DEVEL-RPMS += kernel-devel
268 # ifeq "$(DISTRONAME)" "$(filter $(DISTRONAME),f14 f15 f16)"
269 # IN_NODEIMAGE += openvswitch
277 vsys-SPEC := vsys.spec
278 # ocaml-docs is not needed anymore but keep it on a tmp basis as some tags may still have it
279 vsys-DEVEL-RPMS += ocaml-ocamldoc ocaml-docs
280 ifeq "$(local_inotify_tools)" "true"
281 vsys-DEPEND-DEVEL-RPMS += inotify-tools inotify-tools-devel
287 # vsyssh : installed in slivers
289 vsyssh-MODULES := vsys
290 vsyssh-SPEC := vsyssh.spec
291 IN_SLICEIMAGE += vsyssh
297 vsys-scripts-MODULES := vsys-scripts
298 vsys-scripts-SPEC := vsys-scripts.spec
299 IN_NODEIMAGE += vsys-scripts
305 plcapi-MODULES := plcapi
306 plcapi-SPEC := PLCAPI.spec
313 drupal-MODULES := drupal
314 drupal-SPEC := drupal.spec
315 drupal-BUILD-FROM-SRPM := yes
320 # use the plewww module instead
322 plewww-MODULES := plewww
323 plewww-SPEC := plewww.spec
328 # www-register-wizard
330 www-register-wizard-MODULES := www-register-wizard
331 www-register-wizard-SPEC := www-register-wizard.spec
332 ALL += www-register-wizard
333 IN_MYPLC += www-register-wizard
338 pcucontrol-MODULES := pcucontrol
339 pcucontrol-SPEC := pcucontrol.spec
345 monitor-MODULES := monitor
346 monitor-SPEC := Monitor.spec
347 monitor-DEVEL-RPMS += net-snmp net-snmp-devel
349 IN_NODEIMAGE += monitor
354 plcrt-MODULES := PLCRT
355 plcrt-SPEC := plcrt.spec
358 # f12 has 0.9-1 already
359 ifeq "$(DISTRONAME)" "$(filter $(DISTRONAME),f8 centos5)"
363 pyopenssl-MODULES := pyopenssl
364 pyopenssl-SPEC := pyOpenSSL.spec
365 pyopenssl-BUILD-FROM-SRPM := yes
372 pyaspects-MODULES := pyaspects
373 pyaspects-SPEC := pyaspects.spec
374 pyaspects-BUILD-FROM-SRPM := yes
377 # sfa now uses the with statement that's not supported on python-2.4 - not even through __future__
378 # In addition we now use sqlalchemy and 0.5 as per f12 is not compatible with our model
380 ifeq "$(DISTRONAME)" "$(filter $(DISTRONAME),f8 f12 centos5)"
384 ifeq "$(build_sfa)" "true"
386 # sfa - Slice Facility Architecture
392 sface-MODULES := sface
393 sface-SPEC := sface.spec
400 nodeconfig-MODULES := nodeconfig
401 nodeconfig-SPEC := nodeconfig.spec
403 IN_MYPLC += nodeconfig
408 bootmanager-MODULES := bootmanager
409 bootmanager-SPEC := bootmanager.spec
411 IN_MYPLC += bootmanager
414 # pypcilib : used in bootcd
416 pypcilib-MODULES := pypcilib
417 pypcilib-SPEC := pypcilib.spec
419 IN_BOOTCD += pypcilib
424 pyplnet-MODULES := pyplnet
425 pyplnet-SPEC := pyplnet.spec
427 IN_NODEIMAGE += pyplnet
432 # OMF resource controller
434 omf-resctl-MODULES := omf
435 omf-resctl-SPEC := omf-resctl.spec
437 IN_SLICEIMAGE += omf-resctl
442 omf-expctl-MODULES := omf
443 omf-expctl-SPEC := omf-expctl.spec
447 # OML measurement library
450 oml-DEVEL-RPMS += sqlite-devel
451 oml-SPEC := liboml.spec
457 bootcd-MODULES := bootcd build
458 bootcd-SPEC := bootcd.spec
459 bootcd-DEPEND-PACKAGES := $(IN_BOOTCD)
460 bootcd-DEPEND-FILES := RPMS/yumgroups.xml
461 bootcd-RPMDATE := yes
468 sliceimage-MODULES := sliceimage build
469 sliceimage-SPEC := sliceimage.spec
470 sliceimage-DEPEND-PACKAGES := $(IN_SLICEIMAGE)
471 sliceimage-DEPEND-FILES := RPMS/yumgroups.xml
472 sliceimage-RPMDATE := yes
474 IN_NODEIMAGE += sliceimage
477 # vserver-specific sliceimage initialization
479 vserver-sliceimage-MODULES := sliceimage
480 vserver-sliceimage-SPEC := vserver-sliceimage.spec
481 vserver-sliceimage-RPMDATE := yes
482 ALL += vserver-sliceimage
483 IN_NODEIMAGE += vserver-sliceimage
488 nodeimage-MODULES := nodeimage build
489 nodeimage-SPEC := nodeimage.spec
490 nodeimage-DEPEND-PACKAGES := $(IN_NODEIMAGE)
491 nodeimage-DEPEND-FILES := RPMS/yumgroups.xml
492 nodeimage-RPMDATE := yes
494 IN_MYPLC += nodeimage
499 # all rpms resulting from packages marked as being in nodeimage and sliceimage
500 NODEREPO_RPMS = $(foreach package,$(IN_NODEIMAGE) $(IN_NODEREPO) $(IN_SLICEIMAGE),$($(package).rpms))
501 # replace space with +++ (specvars cannot deal with spaces)
503 NODEREPO_RPMS_3PLUS = $(subst $(SPACE),+++,$(NODEREPO_RPMS))
505 noderepo-MODULES := nodeimage
506 noderepo-SPEC := noderepo.spec
507 # package requires all embedded packages
508 noderepo-DEPEND-PACKAGES := $(IN_NODEIMAGE) $(IN_NODEREPO) $(IN_SLICEIMAGE)
509 noderepo-DEPEND-FILES := RPMS/yumgroups.xml
510 #export rpm list to the specfile
511 noderepo-SPECVARS = node_rpms_plus=$(NODEREPO_RPMS_3PLUS)
512 noderepo-RPMDATE := yes
519 # all rpms resulting from packages marked as being in vserver
520 SLICEREPO_RPMS = $(foreach package,$(IN_SLICEIMAGE),$($(package).rpms))
521 # replace space with +++ (specvars cannot deal with spaces)
523 SLICEREPO_RPMS_3PLUS = $(subst $(SPACE),+++,$(SLICEREPO_RPMS))
525 slicerepo-MODULES := nodeimage
526 slicerepo-SPEC := slicerepo.spec
527 # package requires all embedded packages
528 slicerepo-DEPEND-PACKAGES := $(IN_SLICEIMAGE)
529 slicerepo-DEPEND-FILES := RPMS/yumgroups.xml
530 #export rpm list to the specfile
531 slicerepo-SPECVARS = slice_rpms_plus=$(SLICEREPO_RPMS_3PLUS)
532 slicerepo-RPMDATE := yes
536 # MyPLC : lightweight packaging, dependencies are yum-installed in a vserver
538 myplc-MODULES := myplc
539 myplc-SPEC := myplc.spec
540 myplc-DEPEND-FILES := myplc-release RPMS/yumgroups.xml
543 # myplc-docs only contains docs for PLCAPI and NMAPI, but
544 # we still need to pull MyPLC, as it is where the specfile lies,
545 # together with the utility script docbook2drupal.sh
546 myplc-docs-MODULES := myplc plcapi nodemanager monitor
547 myplc-docs-SPEC := myplc-docs.spec
550 # using some other name than myplc-release, as this is a make target already
551 release-MODULES := myplc
552 release-SPEC := myplc-release.spec
553 release-RPMDATE := yes