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 bbn-MODULES := bbn_80211
27 bbn-SPEC := bbn_80211.spec
28 bbn-BUILD-FROM-SRPM := yes
29 # now from the stock repo
30 bbn-DEVEL-RPMS := gnuradio gnuradio-devel boost boost-devel swig
31 #bbn-DEPEND-DEVEL-RPMS := gnuradio gnuradio-devel boost boost-devel
38 crunchxml-MODULES := crunchxml
39 crunchxml-SPEC := crunchxml.spec
40 crunchxml-BUILD-FROM-SRPM := yes
41 crunchxml-DEVEL-RPMS := glib2-devel libxml-devel libxml2-devel scons
43 IN_BOOTSTRAPFS += crunchxml
48 spectools-MODULES := spectools
49 spectools-SPEC := spectools.spec
50 spectools-BUILD-FROM-SRPM := yes
51 spectools-DEVEL-RPMS := gtk2-devel
53 IN_BOOTSTRAPFS += spectools
60 sge-BUILD-FROM-SRPM := yes
61 sge-DEVEL-RPMS += kdevelop-devel kdevelop kdevelop-libs java-1.6.0-openjdk
62 sge-DEVEL-RPMS += lesstif lesstif-devel
64 # turning this off - current focus is on deploying the sge box separately from myplc
65 # packaging is still broken, and we're exploring a ready-t-o-use distro on centos
67 # IN_BOOTSTRAPFS += sge
72 # use a package name with srpm in it:
73 # so the source rpm is created by running make srpm in the codebase
76 kernel-MODULES := linux-2.6
77 kernel-SPEC := kernel-2.6.spec
78 kernel-BUILD-FROM-SRPM := yes
79 ifeq "$(HOSTARCH)" "i386"
80 kernel-RPMFLAGS:= --target i686
82 kernel-RPMFLAGS:= --target $(HOSTARCH)
84 # this is useful for 2.6.22 but will not be needed anymore with 2.6.27
85 kernel-SPECVARS += iwlwifi=1
86 kernel-SPECVARS += kernelconfig=planetlab
90 kernels-clean: $(foreach package,$(KERNELS),$(package)-clean)
93 # this is to mark on which image a given rpm is supposed to go
94 IN_BOOTCD += $(KERNELS)
95 IN_VSERVER += $(KERNELS)
96 IN_BOOTSTRAPFS += $(KERNELS)
99 # ipfw: root context module, and slice companion
101 ipfwroot-MODULES := ipfw
102 ipfwroot-SPEC := planetlab/ipfwroot.spec
103 ipfwroot-DEPEND-DEVEL-RPMS += kernel-devel
104 ipfwroot-SPECVARS = kernel_version=$(kernel.rpm-version) \
105 kernel_release=$(kernel.rpm-release) \
106 kernel_arch=$(kernel.rpm-arch)
108 IN_BOOTSTRAPFS += ipfwroot
110 ipfwslice-MODULES := ipfw
111 ipfwslice-SPEC := planetlab/ipfwslice.spec
112 ipfwslice-SPECVARS = kernel_version=$(kernel.rpm-version) \
113 kernel_release=$(kernel.rpm-release) \
114 kernel_arch=$(kernel.rpm-arch)
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
131 # umts: root context stuff
133 umts-backend-MODULES := planetlab-umts-tools
134 umts-backend-SPEC := backend.spec
135 IN_BOOTSTRAPFS += umts-backend
141 umts-frontend-MODULES := planetlab-umts-tools
142 umts-frontend-SPEC := frontend.spec
143 IN_VSERVER += umts-frontend
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 util-vserver-MODULES := util-vserver
160 util-vserver-SPEC := util-vserver.spec
161 util-vserver-RPMFLAGS:= --without dietlibc
163 IN_BOOTSTRAPFS += util-vserver
168 util-vserver-pl-MODULES := util-vserver-pl
169 util-vserver-pl-SPEC := util-vserver-pl.spec
170 util-vserver-pl-DEPEND-DEVEL-RPMS += util-vserver-lib util-vserver-devel util-vserver-core
171 ifeq "$(local_libnl)" "true"
172 util-vserver-pl-DEPEND-DEVEL-RPMS += libnl libnl-devel
174 ALL += util-vserver-pl
175 IN_BOOTSTRAPFS += util-vserver-pl
180 nodeupdate-MODULES := nodeupdate
181 nodeupdate-SPEC := NodeUpdate.spec
183 IN_BOOTSTRAPFS += nodeupdate
188 ipod-MODULES := PingOfDeath
189 ipod-SPEC := ipod.spec
191 IN_BOOTSTRAPFS += ipod
196 nodemanager-MODULES := nodemanager
197 nodemanager-SPEC := NodeManager.spec
199 IN_BOOTSTRAPFS += nodemanager
204 sshd-MODULES := pl_sshd
205 sshd-SPEC := pl_sshd.spec
207 IN_BOOTSTRAPFS += sshd
210 # codemux: Port 80 demux
212 codemux-MODULES := codemux
213 codemux-SPEC := codemux.spec
215 IN_BOOTSTRAPFS += codemux
220 fprobe-ulog-MODULES := fprobe-ulog
221 fprobe-ulog-SPEC := fprobe-ulog.spec
223 IN_BOOTSTRAPFS += fprobe-ulog
228 pf2slice-MODULES := pf2slice
229 pf2slice-SPEC := pf2slice.spec
233 # PlanetLab Mom: Cleans up your mess
236 mom-SPEC := pl_mom.spec
238 IN_BOOTSTRAPFS += mom
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 "$(local_inotify_tools)" "true"
250 inotify-tools-MODULES := inotify-tools
251 inotify-tools-SPEC := inotify-tools.spec
252 inotify-tools-BUILD-FROM-SRPM := yes
253 IN_BOOTSTRAPFS += inotify-tools
261 vsys-SPEC := vsys.spec
262 vsys-DEVEL-RPMS += ocaml-ocamldoc
263 ifeq "$(local_inotify_tools)" "true"
264 vsys-DEPEND-DEVEL-RPMS += inotify-tools inotify-tools-devel
266 IN_BOOTSTRAPFS += vsys
272 vsys-scripts-MODULES := vsys-scripts
273 vsys-scripts-SPEC := vsys-scripts.spec
274 IN_BOOTSTRAPFS += vsys-scripts
280 plcapi-MODULES := plcapi
281 plcapi-SPEC := PLCAPI.spec
288 drupal-MODULES := drupal
289 drupal-SPEC := drupal.spec
290 drupal-BUILD-FROM-SRPM := yes
295 # use the plewww module instead
297 plewww-MODULES := plewww
298 plewww-SPEC := plewww.spec
303 # www-register-wizard
305 www-register-wizard-MODULES := www-register-wizard
306 www-register-wizard-SPEC := www-register-wizard.spec
307 ALL += www-register-wizard
308 IN_MYPLC += www-register-wizard
313 pcucontrol-MODULES := pcucontrol
314 pcucontrol-SPEC := pcucontrol.spec
320 pyopenssl-MODULES := pyopenssl
321 pyopenssl-SPEC := pyOpenSSL.spec
322 pyopenssl-BUILD-FROM-SRPM := yes
328 pyaspects-MODULES := pyaspects
329 pyaspects-SPEC := pyaspects.spec
330 pyaspects-BUILD-FROM-SRPM := yes
336 nodeconfig-MODULES := nodeconfig
337 nodeconfig-SPEC := nodeconfig.spec
339 IN_MYPLC += nodeconfig
344 bootmanager-MODULES := bootmanager
345 bootmanager-SPEC := bootmanager.spec
347 IN_MYPLC += bootmanager
350 # pypcilib : used in bootcd
352 pypcilib-MODULES := pypcilib
353 pypcilib-SPEC := pypcilib.spec
355 IN_BOOTCD += pypcilib
360 pyplnet-MODULES := pyplnet
361 pyplnet-SPEC := pyplnet.spec
363 IN_BOOTSTRAPFS += pyplnet
368 # OMF resource controller
370 omf-resctl-MODULES := omf
371 omf-resctl-SPEC := omf-resctl.spec
373 IN_VSERVER += omf-resctl
378 omf-expctl-MODULES := omf
379 omf-expctl-SPEC := omf-expctl.spec
383 # OML measurement library
386 oml-DEVEL-RPMS += sqlite-devel
387 oml-SPEC := liboml.spec
393 bootcd-MODULES := bootcd build
394 bootcd-SPEC := bootcd.spec
395 bootcd-DEPEND-PACKAGES := $(IN_BOOTCD)
396 bootcd-DEPEND-FILES := RPMS/yumgroups.xml
397 bootcd-RPMDATE := yes
402 # vserver : reference image for slices
404 vserver-MODULES := vserver-reference build
405 vserver-SPEC := vserver-reference.spec
406 vserver-DEPEND-PACKAGES := $(IN_VSERVER)
407 vserver-DEPEND-FILES := RPMS/yumgroups.xml
408 vserver-RPMDATE := yes
410 IN_BOOTSTRAPFS += vserver
415 bootstrapfs-MODULES := bootstrapfs build
416 bootstrapfs-SPEC := bootstrapfs.spec
417 bootstrapfs-DEPEND-PACKAGES := $(IN_BOOTSTRAPFS)
418 bootstrapfs-DEPEND-FILES := RPMS/yumgroups.xml
419 bootstrapfs-RPMDATE := yes
421 IN_MYPLC += bootstrapfs
426 # all rpms resulting from packages marked as being in bootstrapfs and vserver
427 NODEREPO_RPMS = $(foreach package,$(IN_BOOTSTRAPFS) $(IN_NODEREPO) $(IN_VSERVER),$($(package).rpms))
428 # replace space with +++ (specvars cannot deal with spaces)
430 NODEREPO_RPMS_3PLUS = $(subst $(SPACE),+++,$(NODEREPO_RPMS))
432 noderepo-MODULES := bootstrapfs
433 noderepo-SPEC := noderepo.spec
434 # package requires all embedded packages
435 noderepo-DEPEND-PACKAGES := $(IN_BOOTSTRAPFS) $(IN_NODEREPO) $(IN_VSERVER)
436 noderepo-DEPEND-FILES := RPMS/yumgroups.xml
437 #export rpm list to the specfile
438 noderepo-SPECVARS = node_rpms_plus=$(NODEREPO_RPMS_3PLUS)
439 noderepo-RPMDATE := yes
446 # all rpms resulting from packages marked as being in vserver
447 SLICEREPO_RPMS = $(foreach package,$(IN_VSERVER),$($(package).rpms))
448 # replace space with +++ (specvars cannot deal with spaces)
450 SLICEREPO_RPMS_3PLUS = $(subst $(SPACE),+++,$(SLICEREPO_RPMS))
452 slicerepo-MODULES := bootstrapfs
453 slicerepo-SPEC := slicerepo.spec
454 # package requires all embedded packages
455 slicerepo-DEPEND-PACKAGES := $(IN_VSERVER)
456 slicerepo-DEPEND-FILES := RPMS/yumgroups.xml
457 #export rpm list to the specfile
458 slicerepo-SPECVARS = slice_rpms_plus=$(SLICEREPO_RPMS_3PLUS)
459 slicerepo-RPMDATE := yes
463 # MyPLC : lightweight packaging, dependencies are yum-installed in a vserver
465 myplc-MODULES := myplc
466 myplc-SPEC := myplc.spec
467 myplc-DEPEND-FILES := myplc-release RPMS/yumgroups.xml
470 # myplc-docs only contains docs for PLCAPI and NMAPI, but
471 # we still need to pull MyPLC, as it is where the specfile lies,
472 # together with the utility script docbook2drupal.sh
473 myplc-docs-MODULES := myplc plcapi nodemanager
474 myplc-docs-SPEC := myplc-docs.spec
477 # using some other name than myplc-release, as this is a make target already
478 release-MODULES := myplc
479 release-SPEC := myplc-release.spec
480 release-RPMDATE := yes