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
57 # skip this with k32/f8
58 ifneq "" "$(findstring k32,$(PLDISTROTAGS))"
59 ifneq "$(DISTRONAME)" "f8"
60 madwifi-MODULES := madwifi
61 madwifi-SPEC := madwifi.spec
62 madwifi-BUILD-FROM-SRPM := yes
63 madwifi-DEPEND-DEVEL-RPMS += kernel-devel
64 madwifi-SPECVARS = kernel_version=$(kernel.rpm-version) \
65 kernel_release=$(kernel.rpm-release) \
66 kernel_arch=$(kernel.rpm-arch)
68 IN_NODEIMAGE += madwifi
75 comgt-MODULES := comgt
76 comgt-SPEC := comgt.spec
81 # umts: root context stuff
83 umts-backend-MODULES := planetlab-umts-tools
84 umts-backend-SPEC := backend.spec
85 IN_NODEIMAGE += umts-backend
91 umts-frontend-MODULES := planetlab-umts-tools
92 umts-frontend-SPEC := frontend.spec
93 IN_SLICEIMAGE += umts-frontend
99 iptables-MODULES := iptables
100 iptables-SPEC := iptables.spec
101 iptables-BUILD-FROM-SRPM := yes
102 iptables-DEPEND-DEVEL-RPMS += kernel-devel kernel-headers
104 IN_NODEIMAGE += iptables
107 # we use the stock iproute2 with 2.6.32, since our gre patch is not needed anymore with that kernel
108 # note that this should be consistently reflected in nodeyumexclude
112 # iproute-MODULES := iproute2
113 # iproute-SPEC := iproute.spec
114 # iproute-BUILD-FROM-SRPM := yes
116 # IN_NODEIMAGE += iproute
117 # IN_SLICEIMAGE += iproute
118 # IN_BOOTCD += iproute
123 util-vserver-MODULES := util-vserver
124 util-vserver-SPEC := util-vserver.spec
126 util-vserver-BUILD-FROM-SRPM := yes
127 util-vserver-RPMFLAGS:= --without dietlibc --without doc
129 IN_NODEIMAGE += util-vserver
132 # libnl - local import
133 # we need either 1.1 or at least 1.0.pre6
134 # rebuild this on centos5 - see yumexclude
137 ifeq "$(DISTRONAME)" "centos5"
141 ifeq "$(local_libnl)" "true"
142 libnl-MODULES := libnl
143 libnl-SPEC := libnl.spec
144 libnl-BUILD-FROM-SRPM := yes
145 # this sounds like the thing to do, but in fact linux/if_vlan.h comes with kernel-headers
146 libnl-DEPEND-DEVEL-RPMS += kernel-devel kernel-headers
148 IN_NODEIMAGE += libnl
154 util-vserver-pl-MODULES := util-vserver-pl
155 util-vserver-pl-SPEC := util-vserver-pl.spec
156 util-vserver-pl-DEPEND-DEVEL-RPMS += util-vserver-lib util-vserver-devel util-vserver-core
157 ifeq "$(local_libnl)" "true"
158 util-vserver-pl-DEPEND-DEVEL-RPMS += libnl libnl-devel
160 ALL += util-vserver-pl
161 IN_NODEIMAGE += util-vserver-pl
166 nodeupdate-MODULES := nodeupdate
167 nodeupdate-SPEC := NodeUpdate.spec
169 IN_NODEIMAGE += nodeupdate
174 ipod-MODULES := PingOfDeath
175 ipod-SPEC := ipod.spec
182 nodemanager-lib-MODULES := nodemanager
183 nodemanager-lib-SPEC := nodemanager-lib.spec
184 ALL += nodemanager-lib
185 IN_NODEIMAGE += nodemanager-lib
187 nodemanager-vs-MODULES := nodemanager
188 nodemanager-vs-SPEC := nodemanager-vs.spec
189 ALL += nodemanager-vs
190 IN_NODEIMAGE += nodemanager-vs
195 sshd-MODULES := pl_sshd
196 sshd-SPEC := pl_sshd.spec
201 # codemux: Port 80 demux
203 codemux-MODULES := codemux
204 codemux-SPEC := codemux.spec
206 IN_NODEIMAGE += codemux
211 fprobe-ulog-MODULES := fprobe-ulog
212 fprobe-ulog-SPEC := fprobe-ulog.spec
214 IN_NODEIMAGE += fprobe-ulog
217 # DistributedRateLimiting
219 # on f16 somehow configure screws up and defines LDFLAGS=-Wl,-z,relro which ld does not like..
220 ifneq "$(DISTRONAME)" "f16"
221 DistributedRateLimiting-MODULES := DistributedRateLimiting
222 DistributedRateLimiting-SPEC := DistributedRateLimiting.spec
223 ALL += DistributedRateLimiting
224 IN_NODEREPO += DistributedRateLimiting
230 pf2slice-MODULES := pf2slice
231 pf2slice-SPEC := pf2slice.spec
235 # PlanetLab Mom: Cleans up your mess
238 mom-SPEC := pl_mom.spec
243 # inotify-tools - local import
244 # rebuild this on centos5 (not found) - see yumexclude
246 local_inotify_tools=false
247 ifeq "$(DISTRONAME)" "centos5"
248 local_inotify_tools=true
251 ifeq "$(DISTRONAME)" "sl6"
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_NODEIMAGE += inotify-tools
266 # openvswitch-MODULES := openvswitch
267 # openvswitch-SPEC := openvswitch.spec
268 # openvswitch-DEPEND-DEVEL-RPMS += kernel-devel
270 # ifeq "$(DISTRONAME)" "$(filter $(DISTRONAME),f14 f15 f16)"
271 # IN_NODEIMAGE += openvswitch
279 vsys-SPEC := vsys.spec
280 # ocaml-docs is not needed anymore but keep it on a tmp basis as some tags may still have it
281 vsys-DEVEL-RPMS += ocaml-ocamldoc ocaml-docs
282 ifeq "$(local_inotify_tools)" "true"
283 vsys-DEPEND-DEVEL-RPMS += inotify-tools inotify-tools-devel
289 # vsyssh : installed in slivers
291 vsyssh-MODULES := vsys
292 vsyssh-SPEC := vsyssh.spec
293 IN_SLICEIMAGE += vsyssh
299 vsys-scripts-MODULES := vsys-scripts
300 vsys-scripts-SPEC := vsys-scripts.spec
301 IN_NODEIMAGE += vsys-scripts
307 plcapi-MODULES := plcapi
308 plcapi-SPEC := PLCAPI.spec
315 drupal-MODULES := drupal
316 drupal-SPEC := drupal.spec
317 drupal-BUILD-FROM-SRPM := yes
322 # use the plewww module instead
324 plewww-MODULES := plewww
325 plewww-SPEC := plewww.spec
330 # www-register-wizard
332 www-register-wizard-MODULES := www-register-wizard
333 www-register-wizard-SPEC := www-register-wizard.spec
334 ALL += www-register-wizard
335 IN_MYPLC += www-register-wizard
340 pcucontrol-MODULES := pcucontrol
341 pcucontrol-SPEC := pcucontrol.spec
347 monitor-MODULES := monitor
348 monitor-SPEC := Monitor.spec
349 monitor-DEVEL-RPMS += net-snmp net-snmp-devel
351 IN_NODEIMAGE += monitor
356 plcrt-MODULES := PLCRT
357 plcrt-SPEC := plcrt.spec
360 # f12 has 0.9-1 already
361 ifeq "$(DISTRONAME)" "$(filter $(DISTRONAME),f8 centos5)"
365 pyopenssl-MODULES := pyopenssl
366 pyopenssl-SPEC := pyOpenSSL.spec
367 pyopenssl-BUILD-FROM-SRPM := yes
374 pyaspects-MODULES := pyaspects
375 pyaspects-SPEC := pyaspects.spec
376 pyaspects-BUILD-FROM-SRPM := yes
379 # sfa now uses the with statement that's not supported on python-2.4 - not even through __future__
380 # In addition we now use sqlalchemy and 0.5 as per f12 is not compatible with our model
382 ifeq "$(DISTRONAME)" "$(filter $(DISTRONAME),f8 f12 centos5)"
386 ifeq "$(build_sfa)" "true"
388 # sfa - Slice Facility Architecture
394 sface-MODULES := sface
395 sface-SPEC := sface.spec
402 nodeconfig-MODULES := nodeconfig
403 nodeconfig-SPEC := nodeconfig.spec
405 IN_MYPLC += nodeconfig
410 bootmanager-MODULES := bootmanager
411 bootmanager-SPEC := bootmanager.spec
413 IN_MYPLC += bootmanager
416 # pypcilib : used in bootcd
418 pypcilib-MODULES := pypcilib
419 pypcilib-SPEC := pypcilib.spec
421 IN_BOOTCD += pypcilib
426 pyplnet-MODULES := pyplnet
427 pyplnet-SPEC := pyplnet.spec
429 IN_NODEIMAGE += pyplnet
434 # OMF resource controller
436 omf-resctl-MODULES := omf
437 omf-resctl-SPEC := omf-resctl.spec
439 IN_SLICEIMAGE += omf-resctl
444 omf-expctl-MODULES := omf
445 omf-expctl-SPEC := omf-expctl.spec
449 # OML measurement library
452 oml-DEVEL-RPMS += sqlite-devel
453 oml-SPEC := liboml.spec
459 bootcd-MODULES := bootcd build
460 bootcd-SPEC := bootcd.spec
461 bootcd-DEPEND-PACKAGES := $(IN_BOOTCD)
462 bootcd-DEPEND-FILES := RPMS/yumgroups.xml
463 bootcd-RPMDATE := yes
470 sliceimage-MODULES := sliceimage build
471 sliceimage-SPEC := sliceimage.spec
472 sliceimage-DEPEND-PACKAGES := $(IN_SLICEIMAGE)
473 sliceimage-DEPEND-FILES := RPMS/yumgroups.xml
474 sliceimage-RPMDATE := yes
476 IN_NODEIMAGE += sliceimage
479 # vserver-specific sliceimage initialization
481 vserver-sliceimage-MODULES := sliceimage
482 vserver-sliceimage-SPEC := vserver-sliceimage.spec
483 vserver-sliceimage-RPMDATE := yes
484 ALL += vserver-sliceimage
485 IN_NODEIMAGE += vserver-sliceimage
490 nodeimage-MODULES := nodeimage build
491 nodeimage-SPEC := nodeimage.spec
492 nodeimage-DEPEND-PACKAGES := $(IN_NODEIMAGE)
493 nodeimage-DEPEND-FILES := RPMS/yumgroups.xml
494 nodeimage-RPMDATE := yes
496 IN_MYPLC += nodeimage
501 # all rpms resulting from packages marked as being in nodeimage and sliceimage
502 NODEREPO_RPMS = $(foreach package,$(IN_NODEIMAGE) $(IN_NODEREPO) $(IN_SLICEIMAGE),$($(package).rpms))
503 # replace space with +++ (specvars cannot deal with spaces)
505 NODEREPO_RPMS_3PLUS = $(subst $(SPACE),+++,$(NODEREPO_RPMS))
507 noderepo-MODULES := nodeimage
508 noderepo-SPEC := noderepo.spec
509 # package requires all embedded packages
510 noderepo-DEPEND-PACKAGES := $(IN_NODEIMAGE) $(IN_NODEREPO) $(IN_SLICEIMAGE)
511 noderepo-DEPEND-FILES := RPMS/yumgroups.xml
512 #export rpm list to the specfile
513 noderepo-SPECVARS = node_rpms_plus=$(NODEREPO_RPMS_3PLUS)
514 noderepo-RPMDATE := yes
521 # all rpms resulting from packages marked as being in vserver
522 SLICEREPO_RPMS = $(foreach package,$(IN_SLICEIMAGE),$($(package).rpms))
523 # replace space with +++ (specvars cannot deal with spaces)
525 SLICEREPO_RPMS_3PLUS = $(subst $(SPACE),+++,$(SLICEREPO_RPMS))
527 slicerepo-MODULES := nodeimage
528 slicerepo-SPEC := slicerepo.spec
529 # package requires all embedded packages
530 slicerepo-DEPEND-PACKAGES := $(IN_SLICEIMAGE)
531 slicerepo-DEPEND-FILES := RPMS/yumgroups.xml
532 #export rpm list to the specfile
533 slicerepo-SPECVARS = slice_rpms_plus=$(SLICEREPO_RPMS_3PLUS)
534 slicerepo-RPMDATE := yes
538 # MyPLC : lightweight packaging, dependencies are yum-installed in a vserver
540 myplc-MODULES := myplc
541 myplc-SPEC := myplc.spec
542 myplc-DEPEND-FILES := myplc-release RPMS/yumgroups.xml
545 # myplc-docs only contains docs for PLCAPI and NMAPI, but
546 # we still need to pull MyPLC, as it is where the specfile lies,
547 # together with the utility script docbook2drupal.sh
548 myplc-docs-MODULES := myplc plcapi nodemanager monitor
549 myplc-docs-SPEC := myplc-docs.spec
552 # using some other name than myplc-release, as this is a make target already
553 release-MODULES := myplc
554 release-SPEC := myplc-release.spec
555 release-RPMDATE := yes