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 # now from the stock repo
54 bbn-DEVEL-RPMS := gnuradio gnuradio-devel boost boost-devel
55 #bbn-DEPEND-DEVEL-RPMS := gnuradio gnuradio-devel boost boost-devel
62 crunchxml-MODULES := crunchxml
63 crunchxml-SPEC := crunchxml.spec
64 crunchxml-BUILD-FROM-SRPM := yes
66 IN_BOOTSTRAPFS += crunchxml
71 spectools-MODULES := spectools
72 spectools-SPEC := spectools.spec
73 spectools-BUILD-FROM-SRPM := yes
75 IN_BOOTSTRAPFS += spectools
82 sge-BUILD-FROM-SRPM := yes
83 # turning this off - current focus is on deploying the sge box separately from myplc
84 # packaging is still broken, and we're exploring a ready-t-o-use distro on centos
86 # IN_BOOTSTRAPFS += sge
91 # use a package name with srpm in it:
92 # so the source rpm is created by running make srpm in the codebase
95 kernel-MODULES := linux-2.6
96 kernel-SPEC := kernel-2.6.spec
97 kernel-BUILD-FROM-SRPM := yes
98 ifeq "$(HOSTARCH)" "i386"
99 kernel-RPMFLAGS:= --target i686
101 kernel-RPMFLAGS:= --target $(HOSTARCH)
103 # this is useful for 2.6.22 but will not be needed anymore with 2.6.27
104 kernel-SPECVARS += iwlwifi=1
105 kernel-SPECVARS += kernelconfig=planetlab
109 kernels-clean: $(foreach package,$(KERNELS),$(package)-clean)
112 # this is to mark on which image a given rpm is supposed to go
113 IN_BOOTCD += $(KERNELS)
114 IN_VSERVER += $(KERNELS)
115 IN_BOOTSTRAPFS += $(KERNELS)
120 madwifi-MODULES := madwifi
121 madwifi-SPEC := madwifi.spec
122 madwifi-BUILD-FROM-SRPM := yes
123 madwifi-DEPEND-DEVEL-RPMS := kernel-devel
124 madwifi-SPECVARS = kernel_version=$(kernel.rpm-version) \
125 kernel_release=$(kernel.rpm-release) \
126 kernel_arch=$(kernel.rpm-arch)
128 IN_BOOTSTRAPFS += madwifi
133 iptables-MODULES := iptables
134 iptables-SPEC := iptables.spec
135 iptables-DEPEND-DEVEL-RPMS := kernel-devel kernel-headers
137 IN_BOOTSTRAPFS += iptables
142 iproute-MODULES := iproute2
143 iproute-SPEC := iproute.spec
145 IN_BOOTSTRAPFS += iproute
146 IN_VSERVER += iproute
150 # ipfw: root context module, and slice companion
152 ipfwroot-MODULES := ipfw
153 ipfwroot-SPEC := planetlab/ipfwroot.spec
154 ipfwroot-DEPEND-DEVEL-RPMS := kernel-devel
155 ipfwroot-SPECVARS = kernel_version=$(kernel.rpm-version) \
156 kernel_release=$(kernel.rpm-release) \
157 kernel_arch=$(kernel.rpm-arch)
160 ipfwslice-MODULES := ipfw
161 ipfwslice-SPEC := planetlab/ipfwslice.spec
162 ipfwslice-SPECVARS = kernel_version=$(kernel.rpm-version) \
163 kernel_release=$(kernel.rpm-release) \
164 kernel_arch=$(kernel.rpm-arch)
168 # umts: root context stuff
170 umts-backend-MODULES := planetlab-umts-tools
171 umts-backend-SPEC := backend.spec
172 IN_BOOTSTRAPFS += umts-backend
178 umts-frontend-MODULES := planetlab-umts-tools
179 umts-frontend-SPEC := frontend.spec
180 IN_VSERVER += umts-frontend
186 util-vserver-MODULES := util-vserver
187 util-vserver-SPEC := util-vserver.spec
188 util-vserver-RPMFLAGS:= --without dietlibc
190 IN_BOOTSTRAPFS += util-vserver
193 # libnl - local import
194 # we need either 1.1 or at least 1.0.pre6
195 # rebuild this on centos5 - see kexcludes in build.common
198 ifeq "$(DISTRONAME)" "centos5"
202 ifeq "$(local_libnl)" "true"
203 libnl-MODULES := libnl
204 libnl-SPEC := libnl.spec
205 libnl-BUILD-FROM-SRPM := yes
206 # this sounds like the thing to do, but in fact linux/if_vlan.h comes with kernel-headers
207 libnl-DEPEND-DEVEL-RPMS := kernel-devel kernel-headers
209 IN_BOOTSTRAPFS += libnl
215 util-vserver-pl-MODULES := util-vserver-pl
216 util-vserver-pl-SPEC := util-vserver-pl.spec
217 util-vserver-pl-DEPEND-DEVEL-RPMS := util-vserver-lib util-vserver-devel util-vserver-core
218 ifeq "$(local_libnl)" "true"
219 util-vserver-pl-DEPEND-DEVEL-RPMS += libnl libnl-devel
221 ALL += util-vserver-pl
222 IN_BOOTSTRAPFS += util-vserver-pl
227 nodeupdate-MODULES := nodeupdate
228 nodeupdate-SPEC := NodeUpdate.spec
230 IN_BOOTSTRAPFS += nodeupdate
235 ipod-MODULES := PingOfDeath
236 ipod-SPEC := ipod.spec
238 IN_BOOTSTRAPFS += ipod
243 nodemanager-MODULES := nodemanager
244 nodemanager-SPEC := NodeManager.spec
246 IN_BOOTSTRAPFS += nodemanager
251 sshd-MODULES := pl_sshd
252 sshd-SPEC := pl_sshd.spec
254 IN_BOOTSTRAPFS += sshd
257 # codemux: Port 80 demux
259 codemux-MODULES := codemux
260 codemux-SPEC := codemux.spec
262 IN_BOOTSTRAPFS += codemux
267 fprobe-ulog-MODULES := fprobe-ulog
268 fprobe-ulog-SPEC := fprobe-ulog.spec
270 IN_BOOTSTRAPFS += fprobe-ulog
275 pf2slice-MODULES := pf2slice
276 pf2slice-SPEC := pf2slice.spec
280 # PlanetLab Mom: Cleans up your mess
283 mom-SPEC := pl_mom.spec
285 IN_BOOTSTRAPFS += mom
288 # inotify-tools - local import
289 # rebuild this on centos5 (not found) - see kexcludes in build.common
291 local_inotify_tools=false
292 ifeq "$(DISTRONAME)" "centos5"
293 local_inotify_tools=true
296 ifeq "$(local_inotify_tools)" "true"
297 inotify-tools-MODULES := inotify-tools
298 inotify-tools-SPEC := inotify-tools.spec
299 inotify-tools-BUILD-FROM-SRPM := yes
300 IN_BOOTSTRAPFS += inotify-tools
308 vsys-SPEC := vsys.spec
309 ifeq "$(local_inotify_tools)" "true"
310 vsys-DEPEND-DEVEL-RPMS := inotify-tools inotify-tools-devel
312 IN_BOOTSTRAPFS += vsys
318 vsys-scripts-MODULES := vsys-scripts
319 vsys-scripts-SPEC := vsys-scripts.spec
320 IN_BOOTSTRAPFS += vsys-scripts
326 plcapi-MODULES := plcapi
327 plcapi-SPEC := PLCAPI.spec
334 drupal-MODULES := drupal
335 drupal-SPEC := drupal.spec
336 drupal-BUILD-FROM-SRPM := yes
341 # use the plewww module instead
343 plewww-MODULES := plewww
344 plewww-SPEC := plewww.spec
349 # www-register-wizard
351 www-register-wizard-MODULES := www-register-wizard
352 www-register-wizard-SPEC := www-register-wizard.spec
353 ALL += www-register-wizard
354 IN_MYPLC += www-register-wizard
359 pcucontrol-MODULES := pcucontrol
360 pcucontrol-SPEC := pcucontrol.spec
366 pyopenssl-MODULES := pyopenssl
367 pyopenssl-SPEC := pyOpenSSL.spec
368 pyopenssl-BUILD-FROM-SRPM := yes
374 pyaspects-MODULES := pyaspects
375 pyaspects-SPEC := pyaspects.spec
376 pyaspects-BUILD-FROM-SRPM := yes
382 nodeconfig-MODULES := nodeconfig
383 nodeconfig-SPEC := nodeconfig.spec
385 IN_MYPLC += nodeconfig
390 bootmanager-MODULES := bootmanager
391 bootmanager-SPEC := bootmanager.spec
393 IN_MYPLC += bootmanager
396 # pypcilib : used in bootcd
398 pypcilib-MODULES := pypcilib
399 pypcilib-SPEC := pypcilib.spec
401 IN_BOOTCD += pypcilib
406 pyplnet-MODULES := pyplnet
407 pyplnet-SPEC := pyplnet.spec
409 IN_BOOTSTRAPFS += pyplnet
416 bootcd-MODULES := bootcd build
417 bootcd-SPEC := bootcd.spec
418 bootcd-DEPEND-PACKAGES := $(IN_BOOTCD)
419 bootcd-DEPEND-FILES := RPMS/yumgroups.xml
420 bootcd-RPMDATE := yes
425 # vserver : reference image for slices
427 vserver-MODULES := vserver-reference build
428 vserver-SPEC := vserver-reference.spec
429 vserver-DEPEND-PACKAGES := $(IN_VSERVER)
430 vserver-DEPEND-FILES := RPMS/yumgroups.xml
431 vserver-RPMDATE := yes
433 IN_BOOTSTRAPFS += vserver
438 bootstrapfs-MODULES := bootstrapfs build
439 bootstrapfs-SPEC := bootstrapfs.spec
440 bootstrapfs-DEPEND-PACKAGES := $(IN_BOOTSTRAPFS)
441 bootstrapfs-DEPEND-FILES := RPMS/yumgroups.xml
442 bootstrapfs-RPMDATE := yes
444 IN_MYPLC += bootstrapfs
449 # all rpms resulting from packages marked as being in bootstrapfs and vserver
450 NODEREPO_RPMS = $(foreach package,$(IN_BOOTSTRAPFS) $(IN_VSERVER),$($(package).rpms))
451 # replace space with +++ (specvars cannot deal with spaces)
453 NODEREPO_RPMS_3PLUS = $(subst $(SPACE),+++,$(NODEREPO_RPMS))
455 noderepo-MODULES := bootstrapfs
456 noderepo-SPEC := noderepo.spec
457 # package requires all regular packages
458 noderepo-DEPEND-PACKAGES := $(IN_BOOTSTRAPFS) $(IN_VSERVER)
459 noderepo-DEPEND-FILES := RPMS/yumgroups.xml
460 #export rpm list to the specfile
461 noderepo-SPECVARS = node_rpms_plus=$(NODEREPO_RPMS_3PLUS)
462 noderepo-RPMDATE := yes
467 # MyPLC : lightweight packaging, dependencies are yum-installed in a vserver
469 myplc-MODULES := myplc
470 myplc-SPEC := myplc.spec
471 myplc-DEPEND-FILES := myplc-release RPMS/yumgroups.xml
474 # myplc-docs only contains docs for PLCAPI and NMAPI, but
475 # we still need to pull MyPLC, as it is where the specfile lies,
476 # together with the utility script docbook2drupal.sh
477 myplc-docs-MODULES := myplc plcapi nodemanager
478 myplc-docs-SPEC := myplc-docs.spec
481 # using some other name than myplc-release, as this is a make target already
482 release-MODULES := myplc
483 release-SPEC := myplc-release.spec
484 release-RPMDATE := yes