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
8 ### NOTES on diffs with onelab
9 # 2.6.27 vs 2.6.22 - does not need iwlwifi exception anymore
11 # ipfw (might just work) - svn:ipfw
12 # ipfwslice - svn:ipfw
13 # nozomi (does not work on 2.6.27) svn:nozomi
15 # umts-backend - svn:planetlab-umts-tools
16 # umts-frontend - svn:planetlab-umts-tools
17 # dummynet_image - svn:dummynet_image
26 # we rebuild this one only b/c f10 only has 1.34 and gnuradio needs >= 1.35
27 # this build is based on the f11 rpm, i.e. boost-1.37
29 boost-MODULES := boost
30 boost-SPEC := boost.spec
31 boost-BUILD-FROM-SRPM := yes
33 IN_BOOTSTRAPFS += boost
38 gnuradio-MODULES := gnuradio
39 gnuradio-SPEC := gnuradio.spec
40 gnuradio-BUILD-FROM-SRPM := yes
41 # boost-devel needs boost !
42 gnuradio-DEPEND-DEVEL-RPMS := boost boost-devel
44 IN_BOOTSTRAPFS += gnuradio
49 bbn-MODULES := bbn_80211
50 bbn-SPEC := bbn_80211.spec
51 bbn-BUILD-FROM-SRPM := yes
52 bbn-DEPEND-DEVEL-RPMS := gnuradio gnuradio-devel boost boost-devel
59 crunchxml-MODULES := crunchxml
60 crunchxml-SPEC := crunchxml.spec
61 crunchxml-BUILD-FROM-SRPM := yes
63 IN_BOOTSTRAPFS += crunchxml
68 spectools-MODULES := spectools
69 spectools-SPEC := spectools.spec
70 spectools-BUILD-FROM-SRPM := yes
72 IN_BOOTSTRAPFS += spectools
79 sge-BUILD-FROM-SRPM := yes
80 # turning this off - current focus is on deploying the sge box separately from myplc
81 # packaging is still broken, and we're exploring a ready-t-o-use distro on centos
83 # IN_BOOTSTRAPFS += sge
88 # use a package name with srpm in it:
89 # so the source rpm is created by running make srpm in the codebase
92 kernel-MODULES := linux-2.6
93 kernel-SPEC := kernel-2.6.spec
94 kernel-BUILD-FROM-SRPM := yes
95 ifeq "$(HOSTARCH)" "i386"
96 kernel-RPMFLAGS:= --target i686
98 kernel-RPMFLAGS:= --target $(HOSTARCH)
100 ### not needed with 2.6.27 anymore
101 ### kernel-SPECVARS := iwlwifi=1
105 kernels-clean: $(foreach package,$(KERNELS),$(package)-clean)
108 # this is to mark on which image a given rpm is supposed to go
109 IN_BOOTCD += $(KERNELS)
110 IN_VSERVER += $(KERNELS)
111 IN_BOOTSTRAPFS += $(KERNELS)
112 # turns out myplc installs kernel-vserver
113 IN_MYPLC += $(KERNELS)
116 #-broken-# # ipfw: root context module, and slice companion
118 #-broken-# ipfwroot-MODULES := ipfw
119 #-broken-# ipfwroot-SPEC := planetlab/ipfwroot.spec
120 #-broken-# ipfwroot-DEPEND-DEVEL-RPMS := kernel-devel
121 #-broken-# ipfwroot-SPECVARS = kernel_version=$(kernel.rpm-version) \
122 #-broken-# kernel_release=$(kernel.rpm-release) \
123 #-broken-# kernel_arch=$(kernel.rpm-arch)
124 #-broken-# ALL += ipfwroot
126 #-broken-# ipfwslice-MODULES := ipfw
127 #-broken-# ipfwslice-SPEC := planetlab/ipfwslice.spec
128 #-broken-# ipfwslice-SPECVARS = kernel_version=$(kernel.rpm-version) \
129 #-broken-# kernel_release=$(kernel.rpm-release) \
130 #-broken-# kernel_arch=$(kernel.rpm-arch)
131 #-broken-# ALL += ipfwslice
136 madwifi-MODULES := madwifi
137 madwifi-SPEC := madwifi.spec
138 madwifi-BUILD-FROM-SRPM := yes
139 madwifi-DEPEND-DEVEL-RPMS := kernel-devel
140 madwifi-SPECVARS = kernel_version=$(kernel.rpm-version) \
141 kernel_release=$(kernel.rpm-release) \
142 kernel_arch=$(kernel.rpm-arch)
144 IN_BOOTSTRAPFS += madwifi
149 iptables-MODULES := iptables
150 iptables-SPEC := iptables.spec
151 iptables-BUILD-FROM-SRPM := yes
152 iptables-DEPEND-DEVEL-RPMS := kernel-devel kernel-headers
154 IN_BOOTSTRAPFS += iptables
159 iproute-MODULES := iproute2
160 iproute-SPEC := iproute.spec
162 IN_BOOTSTRAPFS += iproute
163 IN_VSERVER += iproute
169 util-vserver-MODULES := util-vserver
170 util-vserver-SPEC := util-vserver.spec
171 util-vserver-RPMFLAGS:= --without dietlibc
173 IN_BOOTSTRAPFS += util-vserver
176 # libnl - local import
177 # we need either 1.1 or at least 1.0.pre6
178 # rebuild this on centos5 - see kexcludes in build.common
181 ifeq "$(DISTRONAME)" "centos5"
185 ifeq "$(local_libnl)" "true"
186 libnl-MODULES := libnl
187 libnl-SPEC := libnl.spec
188 libnl-BUILD-FROM-SRPM := yes
189 # this sounds like the thing to do, but in fact linux/if_vlan.h comes with kernel-headers
190 libnl-DEPEND-DEVEL-RPMS := kernel-devel kernel-headers
192 IN_BOOTSTRAPFS += libnl
198 util-vserver-pl-MODULES := util-vserver-pl
199 util-vserver-pl-SPEC := util-vserver-pl.spec
200 util-vserver-pl-DEPEND-DEVEL-RPMS := util-vserver-lib util-vserver-devel util-vserver-core
201 ifeq "$(local_libnl)" "true"
202 util-vserver-pl-DEPEND-DEVEL-RPMS += libnl libnl-devel
204 ALL += util-vserver-pl
205 IN_BOOTSTRAPFS += util-vserver-pl
210 nodeupdate-MODULES := NodeUpdate
211 nodeupdate-SPEC := NodeUpdate.spec
213 IN_BOOTSTRAPFS += nodeupdate
218 ipod-MODULES := PingOfDeath
219 ipod-SPEC := ipod.spec
221 IN_BOOTSTRAPFS += ipod
226 nodemanager-MODULES := NodeManager
227 nodemanager-SPEC := NodeManager.spec
229 IN_BOOTSTRAPFS += nodemanager
234 sshd-MODULES := pl_sshd
235 sshd-SPEC := pl_sshd.spec
237 IN_BOOTSTRAPFS += sshd
240 # codemux: Port 80 demux
242 codemux-MODULES := CoDemux
243 codemux-SPEC := codemux.spec
244 #codemux-RPMBUILD := bash ./rpmbuild.sh
246 IN_BOOTSTRAPFS += codemux
251 fprobe-ulog-MODULES := fprobe-ulog
252 fprobe-ulog-SPEC := fprobe-ulog.spec
254 IN_BOOTSTRAPFS += fprobe-ulog
259 pf2slice-MODULES := pf2slice
260 pf2slice-SPEC := pf2slice.spec
264 # PlanetLab Mom: Cleans up your mess
267 mom-SPEC := pl_mom.spec
269 IN_BOOTSTRAPFS += mom
272 # inotify-tools - local import
273 # rebuild this on centos5 (not found) - see kexcludes in build.common
275 local_inotify_tools=false
276 ifeq "$(DISTRONAME)" "centos5"
277 local_inotify_tools=true
280 ifeq "$(local_inotify_tools)" "true"
281 inotify-tools-MODULES := inotify-tools
282 inotify-tools-SPEC := inotify-tools.spec
283 inotify-tools-BUILD-FROM-SRPM := yes
284 IN_BOOTSTRAPFS += inotify-tools
292 vsys-SPEC := vsys.spec
293 ifeq "$(local_inotify_tools)" "true"
294 vsys-DEPEND-DEVEL-RPMS := inotify-tools inotify-tools-devel
296 IN_BOOTSTRAPFS += vsys
302 vsys-scripts-MODULES := vsys-scripts
303 vsys-scripts-SPEC := vsys-scripts.spec
304 IN_BOOTSTRAPFS += vsys-scripts
310 plcapi-MODULES := plcapi
311 plcapi-SPEC := PLCAPI.spec
318 drupal-MODULES := drupal
319 drupal-SPEC := drupal.spec
320 drupal-BUILD-FROM-SRPM := yes
325 # use the plewww module instead
327 plewww-MODULES := plewww
328 plewww-SPEC := plewww.spec
333 # www-register-wizard
335 www-register-wizard-MODULES := www-register-wizard
336 www-register-wizard-SPEC := www-register-wizard.spec
337 ALL += www-register-wizard
338 IN_MYPLC += www-register-wizard
343 pcucontrol-MODULES := pcucontrol
344 pcucontrol-SPEC := pcucontrol.spec
350 monitor-MODULES := Monitor
351 monitor-SPEC := Monitor.spec
353 IN_BOOTSTRAPFS += monitor
358 zabbix-MODULES := Monitor
359 zabbix-SPEC := zabbix.spec
360 zabbix-BUILD-FROM-SRPM := yes
366 plcrt-MODULES := PLCRT
367 plcrt-SPEC := plcrt.spec
373 pyopenssl-MODULES := pyopenssl
374 pyopenssl-SPEC := pyOpenSSL.spec
375 pyopenssl-BUILD-FROM-SRPM := yes
381 pyaspects-MODULES := pyaspects
382 pyaspects-SPEC := pyaspects.spec
383 pyaspects-BUILD-FROM-SRPM := yes
387 # sfa now uses the with statement that's not supported on python-2.4 - not even through __future__
390 ifeq "$(build_sfa)" "true"
392 # sfa - Slice Facility Architecture
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_BOOTSTRAPFS += pyplnet
434 # OMF resource controller
436 omf-resctl-MODULES := omf
437 omf-resctl-SPEC := omf-resctl.spec
439 IN_VSERVER += omf-resctl
444 omf-expctl-MODULES := omf
445 omf-expctl-SPEC := omf-expctl.spec
451 bootcd-MODULES := BootCD build
452 bootcd-SPEC := bootcd.spec
453 bootcd-RPMBUILD := bash ./rpmbuild.sh
454 bootcd-DEPEND-PACKAGES := $(IN_BOOTCD)
455 bootcd-DEPEND-FILES := RPMS/yumgroups.xml
456 bootcd-RPMDATE := yes
461 # vserver : reference image for slices
463 vserver-MODULES := VserverReference build
464 vserver-SPEC := vserver-reference.spec
465 vserver-DEPEND-PACKAGES := $(IN_VSERVER)
466 vserver-DEPEND-FILES := RPMS/yumgroups.xml
467 vserver-RPMDATE := yes
469 IN_BOOTSTRAPFS += vserver
474 bootstrapfs-MODULES := BootstrapFS build
475 bootstrapfs-SPEC := bootstrapfs.spec
476 bootstrapfs-RPMBUILD := bash ./rpmbuild.sh
477 bootstrapfs-DEPEND-PACKAGES := $(IN_BOOTSTRAPFS)
478 bootstrapfs-DEPEND-FILES := RPMS/yumgroups.xml
479 bootstrapfs-RPMDATE := yes
481 IN_MYPLC += bootstrapfs
486 # all rpms resulting from packages marked as being in bootstrapfs and vserver
487 NODEREPO_RPMS = $(foreach package,$(IN_BOOTSTRAPFS) $(IN_NODEREPO) $(IN_VSERVER),$($(package).rpms))
488 # replace space with +++ (specvars cannot deal with spaces)
490 NODEREPO_RPMS_3PLUS = $(subst $(SPACE),+++,$(NODEREPO_RPMS))
492 noderepo-MODULES := BootstrapFS
493 noderepo-SPEC := noderepo.spec
494 noderepo-RPMBUILD := bash ./rpmbuild.sh
495 # package requires all embedded packages
496 noderepo-DEPEND-PACKAGES := $(IN_BOOTSTRAPFS) $(IN_NODEREPO) $(IN_VSERVER)
497 noderepo-DEPEND-FILES := RPMS/yumgroups.xml
498 #export rpm list to the specfile
499 noderepo-SPECVARS = node_rpms_plus=$(NODEREPO_RPMS_3PLUS)
500 noderepo-RPMDATE := yes
507 # all rpms resulting from packages marked as being in vserver
508 SLICEREPO_RPMS = $(foreach package,$(IN_VSERVER),$($(package).rpms))
509 # replace space with +++ (specvars cannot deal with spaces)
511 SLICEREPO_RPMS_3PLUS = $(subst $(SPACE),+++,$(SLICEREPO_RPMS))
513 slicerepo-MODULES := BootstrapFS
514 slicerepo-SPEC := slicerepo.spec
515 slicerepo-RPMBUILD := bash ./rpmbuild.sh
516 # package requires all embedded packages
517 slicerepo-DEPEND-PACKAGES := $(IN_VSERVER)
518 slicerepo-DEPEND-FILES := RPMS/yumgroups.xml
519 #export rpm list to the specfile
520 slicerepo-SPECVARS = slice_rpms_plus=$(SLICEREPO_RPMS_3PLUS)
521 slicerepo-RPMDATE := yes
525 # MyPLC : lightweight packaging, dependencies are yum-installed in a vserver
527 myplc-MODULES := MyPLC
528 myplc-SPEC := myplc.spec
529 myplc-DEPEND-FILES := myplc-release RPMS/yumgroups.xml
532 # myplc-docs only contains docs for PLCAPI and NMAPI, but
533 # we still need to pull MyPLC, as it is where the specfile lies,
534 # together with the utility script docbook2drupal.sh
535 myplc-docs-MODULES := MyPLC plcapi NodeManager Monitor
536 myplc-docs-SPEC := myplc-docs.spec
539 # using some other name than myplc-release, as this is a make target already
540 release-MODULES := MyPLC
541 release-SPEC := myplc-release.spec
542 release-RPMDATE := yes