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
23 ########## this should not be needed with f14 anymore
27 #f14# # we rebuild this one only b/c f10 only has 1.34 and gnuradio needs >= 1.35
28 #f14# # this build is based on the f11 rpm, i.e. boost-1.37
30 #f14# boost-MODULES := boost
31 #f14# boost-SPEC := boost.spec
32 #f14# boost-BUILD-FROM-SRPM := yes
34 #f14# IN_BOOTSTRAPFS += boost
39 #f14# gnuradio-MODULES := gnuradio
40 #f14# gnuradio-SPEC := gnuradio.spec
41 #f14# gnuradio-BUILD-FROM-SRPM := yes
42 #f14# # boost-devel needs boost !
43 #f14# gnuradio-DEPEND-DEVEL-RPMS := boost boost-devel
45 #f14# IN_BOOTSTRAPFS += gnuradio
50 bbn-MODULES := bbn_80211
51 bbn-SPEC := bbn_80211.spec
52 bbn-BUILD-FROM-SRPM := yes
53 bbn-DEPEND-DEVEL-RPMS := gnuradio gnuradio-devel boost boost-devel
60 crunchxml-MODULES := crunchxml
61 crunchxml-SPEC := crunchxml.spec
62 crunchxml-BUILD-FROM-SRPM := yes
64 IN_BOOTSTRAPFS += crunchxml
69 spectools-MODULES := spectools
70 spectools-SPEC := spectools.spec
71 spectools-BUILD-FROM-SRPM := yes
73 IN_BOOTSTRAPFS += spectools
80 sge-BUILD-FROM-SRPM := yes
81 # turning this off - current focus is on deploying the sge box separately from myplc
82 # packaging is still broken, and we're exploring a ready-t-o-use distro on centos
84 # IN_BOOTSTRAPFS += sge
89 # use a package name with srpm in it:
90 # so the source rpm is created by running make srpm in the codebase
93 kernel-MODULES := linux-2.6
94 kernel-SPEC := kernel-2.6.spec
95 kernel-BUILD-FROM-SRPM := yes
96 ifeq "$(HOSTARCH)" "i386"
97 kernel-RPMFLAGS:= --target i686
99 kernel-RPMFLAGS:= --target $(HOSTARCH)
101 # this is useful for 2.6.22 but will not be needed anymore with 2.6.27
102 kernel-SPECVARS += iwlwifi=1
103 kernel-SPECVARS += kernelconfig=planetlab
107 kernels-clean: $(foreach package,$(KERNELS),$(package)-clean)
110 # this is to mark on which image a given rpm is supposed to go
111 IN_BOOTCD += $(KERNELS)
112 IN_VSERVER += $(KERNELS)
113 IN_BOOTSTRAPFS += $(KERNELS)
118 madwifi-MODULES := madwifi
119 madwifi-SPEC := madwifi.spec
120 madwifi-BUILD-FROM-SRPM := yes
121 madwifi-DEPEND-DEVEL-RPMS := kernel-devel
122 madwifi-SPECVARS = kernel_version=$(kernel.rpm-version) \
123 kernel_release=$(kernel.rpm-release) \
124 kernel_arch=$(kernel.rpm-arch)
126 IN_BOOTSTRAPFS += madwifi
131 iptables-MODULES := iptables
132 iptables-SPEC := iptables.spec
133 iptables-DEPEND-DEVEL-RPMS := kernel-devel kernel-headers
135 IN_BOOTSTRAPFS += iptables
140 iproute-MODULES := iproute2
141 iproute-SPEC := iproute.spec
143 IN_BOOTSTRAPFS += iproute
144 IN_VSERVER += iproute
148 # ipfw: root context module, and slice companion
150 ipfwroot-MODULES := ipfw
151 ipfwroot-SPEC := planetlab/ipfwroot.spec
152 ipfwroot-DEPEND-DEVEL-RPMS := kernel-devel
153 ipfwroot-SPECVARS = kernel_version=$(kernel.rpm-version) \
154 kernel_release=$(kernel.rpm-release) \
155 kernel_arch=$(kernel.rpm-arch)
158 ipfwslice-MODULES := ipfw
159 ipfwslice-SPEC := planetlab/ipfwslice.spec
160 ipfwslice-SPECVARS = kernel_version=$(kernel.rpm-version) \
161 kernel_release=$(kernel.rpm-release) \
162 kernel_arch=$(kernel.rpm-arch)
166 # umts: root context stuff
168 umts-backend-MODULES := planetlab-umts-tools
169 umts-backend-SPEC := backend.spec
170 IN_BOOTSTRAPFS += umts-backend
176 umts-frontend-MODULES := planetlab-umts-tools
177 umts-frontend-SPEC := frontend.spec
178 IN_VSERVER += umts-frontend
184 util-vserver-MODULES := util-vserver
185 util-vserver-SPEC := util-vserver.spec
186 util-vserver-RPMFLAGS:= --without dietlibc
188 IN_BOOTSTRAPFS += util-vserver
191 # libnl - local import
192 # we need either 1.1 or at least 1.0.pre6
193 # rebuild this on centos5 - see kexcludes in build.common
196 ifeq "$(DISTRONAME)" "centos5"
200 ifeq "$(local_libnl)" "true"
201 libnl-MODULES := libnl
202 libnl-SPEC := libnl.spec
203 libnl-BUILD-FROM-SRPM := yes
204 # this sounds like the thing to do, but in fact linux/if_vlan.h comes with kernel-headers
205 libnl-DEPEND-DEVEL-RPMS := kernel-devel kernel-headers
207 IN_BOOTSTRAPFS += libnl
213 util-vserver-pl-MODULES := util-vserver-pl
214 util-vserver-pl-SPEC := util-vserver-pl.spec
215 util-vserver-pl-DEPEND-DEVEL-RPMS := util-vserver-lib util-vserver-devel util-vserver-core
216 ifeq "$(local_libnl)" "true"
217 util-vserver-pl-DEPEND-DEVEL-RPMS += libnl libnl-devel
219 ALL += util-vserver-pl
220 IN_BOOTSTRAPFS += util-vserver-pl
225 nodeupdate-MODULES := nodeupdate
226 nodeupdate-SPEC := NodeUpdate.spec
228 IN_BOOTSTRAPFS += nodeupdate
233 ipod-MODULES := PingOfDeath
234 ipod-SPEC := ipod.spec
236 IN_BOOTSTRAPFS += ipod
241 nodemanager-MODULES := NodeManager
242 nodemanager-SPEC := NodeManager.spec
244 IN_BOOTSTRAPFS += nodemanager
249 sshd-MODULES := pl_sshd
250 sshd-SPEC := pl_sshd.spec
252 IN_BOOTSTRAPFS += sshd
255 # codemux: Port 80 demux
257 codemux-MODULES := CoDemux
258 codemux-SPEC := codemux.spec
260 IN_BOOTSTRAPFS += codemux
265 fprobe-ulog-MODULES := fprobe-ulog
266 fprobe-ulog-SPEC := fprobe-ulog.spec
268 IN_BOOTSTRAPFS += fprobe-ulog
273 pf2slice-MODULES := pf2slice
274 pf2slice-SPEC := pf2slice.spec
278 # PlanetLab Mom: Cleans up your mess
281 mom-SPEC := pl_mom.spec
283 IN_BOOTSTRAPFS += mom
286 # inotify-tools - local import
287 # rebuild this on centos5 (not found) - see kexcludes in build.common
289 local_inotify_tools=false
290 ifeq "$(DISTRONAME)" "centos5"
291 local_inotify_tools=true
294 ifeq "$(local_inotify_tools)" "true"
295 inotify-tools-MODULES := inotify-tools
296 inotify-tools-SPEC := inotify-tools.spec
297 inotify-tools-BUILD-FROM-SRPM := yes
298 IN_BOOTSTRAPFS += inotify-tools
306 vsys-SPEC := vsys.spec
307 ifeq "$(local_inotify_tools)" "true"
308 vsys-DEPEND-DEVEL-RPMS := inotify-tools inotify-tools-devel
310 IN_BOOTSTRAPFS += vsys
316 vsys-scripts-MODULES := vsys-scripts
317 vsys-scripts-SPEC := vsys-scripts.spec
318 IN_BOOTSTRAPFS += vsys-scripts
324 plcapi-MODULES := plcapi
325 plcapi-SPEC := PLCAPI.spec
332 drupal-MODULES := drupal
333 drupal-SPEC := drupal.spec
334 drupal-BUILD-FROM-SRPM := yes
339 # use the plewww module instead
341 plewww-MODULES := plewww
342 plewww-SPEC := plewww.spec
347 # www-register-wizard
349 www-register-wizard-MODULES := www-register-wizard
350 www-register-wizard-SPEC := www-register-wizard.spec
351 ALL += www-register-wizard
352 IN_MYPLC += www-register-wizard
357 pcucontrol-MODULES := pcucontrol
358 pcucontrol-SPEC := pcucontrol.spec
364 pyopenssl-MODULES := pyopenssl
365 pyopenssl-SPEC := pyOpenSSL.spec
366 pyopenssl-BUILD-FROM-SRPM := yes
372 pyaspects-MODULES := pyaspects
373 pyaspects-SPEC := pyaspects.spec
374 pyaspects-BUILD-FROM-SRPM := yes
380 nodeconfig-MODULES := nodeconfig
381 nodeconfig-SPEC := nodeconfig.spec
383 IN_MYPLC += nodeconfig
388 bootmanager-MODULES := bootmanager
389 bootmanager-SPEC := bootmanager.spec
391 IN_MYPLC += bootmanager
394 # pypcilib : used in bootcd
396 pypcilib-MODULES := pypcilib
397 pypcilib-SPEC := pypcilib.spec
399 IN_BOOTCD += pypcilib
404 pyplnet-MODULES := pyplnet
405 pyplnet-SPEC := pyplnet.spec
407 IN_BOOTSTRAPFS += pyplnet
414 bootcd-MODULES := bootcd build
415 bootcd-SPEC := bootcd.spec
416 bootcd-DEPEND-PACKAGES := $(IN_BOOTCD)
417 bootcd-DEPEND-FILES := RPMS/yumgroups.xml
418 bootcd-RPMDATE := yes
423 # vserver : reference image for slices
425 vserver-MODULES := vserver-reference build
426 vserver-SPEC := vserver-reference.spec
427 vserver-DEPEND-PACKAGES := $(IN_VSERVER)
428 vserver-DEPEND-FILES := RPMS/yumgroups.xml
429 vserver-RPMDATE := yes
431 IN_BOOTSTRAPFS += vserver
436 bootstrapfs-MODULES := bootstrapfs build
437 bootstrapfs-SPEC := bootstrapfs.spec
438 bootstrapfs-DEPEND-PACKAGES := $(IN_BOOTSTRAPFS)
439 bootstrapfs-DEPEND-FILES := RPMS/yumgroups.xml
440 bootstrapfs-RPMDATE := yes
442 IN_MYPLC += bootstrapfs
447 # all rpms resulting from packages marked as being in bootstrapfs and vserver
448 NODEREPO_RPMS = $(foreach package,$(IN_BOOTSTRAPFS) $(IN_VSERVER),$($(package).rpms))
449 # replace space with +++ (specvars cannot deal with spaces)
451 NODEREPO_RPMS_3PLUS = $(subst $(SPACE),+++,$(NODEREPO_RPMS))
453 noderepo-MODULES := bootstrapfs
454 noderepo-SPEC := noderepo.spec
455 # package requires all regular packages
456 noderepo-DEPEND-PACKAGES := $(IN_BOOTSTRAPFS) $(IN_VSERVER)
457 noderepo-DEPEND-FILES := RPMS/yumgroups.xml
458 #export rpm list to the specfile
459 noderepo-SPECVARS = node_rpms_plus=$(NODEREPO_RPMS_3PLUS)
460 noderepo-RPMDATE := yes
465 # MyPLC : lightweight packaging, dependencies are yum-installed in a vserver
467 myplc-MODULES := myplc
468 myplc-SPEC := myplc.spec
469 myplc-DEPEND-FILES := myplc-release RPMS/yumgroups.xml
472 # myplc-docs only contains docs for PLCAPI and NMAPI, but
473 # we still need to pull MyPLC, as it is where the specfile lies,
474 # together with the utility script docbook2drupal.sh
475 myplc-docs-MODULES := myplc plcapi nodemanager
476 myplc-docs-SPEC := myplc-docs.spec
479 # using some other name than myplc-release, as this is a make target already
480 release-MODULES := myplc
481 release-SPEC := myplc-release.spec
482 release-RPMDATE := yes