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
33 #f14# boost-DEVEL-RPMS := bzip2-devel libicu-devel chrpath
35 #f14# IN_BOOTSTRAPFS += boost
40 #f14# gnuradio-MODULES := gnuradio
41 #f14# gnuradio-SPEC := gnuradio.spec
42 #f14# gnuradio-BUILD-FROM-SRPM := yes
43 #f14# gnuradio-DEVEL-RPMS := python-numeric numpy wxPython PyQt4 swig fftw sdcc gsl guile cppunit fftw-devel gsl-devel libusb-devel cppunit-devel
44 #f14# # boost-devel needs boost !
45 #f14# gnuradio-DEPEND-DEVEL-RPMS := boost boost-devel
47 #f14# IN_BOOTSTRAPFS += gnuradio
52 bbn-MODULES := bbn_80211
53 bbn-SPEC := bbn_80211.spec
54 bbn-BUILD-FROM-SRPM := yes
55 # now from the stock repo
56 bbn-DEVEL-RPMS := gnuradio gnuradio-devel boost boost-devel swig
57 #bbn-DEPEND-DEVEL-RPMS := gnuradio gnuradio-devel boost boost-devel
64 crunchxml-MODULES := crunchxml
65 crunchxml-SPEC := crunchxml.spec
66 crunchxml-BUILD-FROM-SRPM := yes
67 crunchxml-DEVEL-RPMS := glib2-devel libxml-devel libxml2-devel scons
69 IN_BOOTSTRAPFS += crunchxml
74 spectools-MODULES := spectools
75 spectools-SPEC := spectools.spec
76 spectools-BUILD-FROM-SRPM := yes
77 spectools-DEVEL-RPMS := gtk2-devel
79 IN_BOOTSTRAPFS += spectools
86 sge-BUILD-FROM-SRPM := yes
87 sge-DEVEL-RPMS += kdevelop-devel kdevelop kdevelop-libs java-1.6.0-openjdk
88 sge-DEVEL-RPMS += lesstif lesstif-devel
90 # turning this off - current focus is on deploying the sge box separately from myplc
91 # packaging is still broken, and we're exploring a ready-t-o-use distro on centos
93 # IN_BOOTSTRAPFS += sge
98 # use a package name with srpm in it:
99 # so the source rpm is created by running make srpm in the codebase
102 kernel-MODULES := linux-2.6
103 kernel-SPEC := kernel-2.6.spec
104 kernel-BUILD-FROM-SRPM := yes
105 ifeq "$(HOSTARCH)" "i386"
106 kernel-RPMFLAGS:= --target i686
108 kernel-RPMFLAGS:= --target $(HOSTARCH)
110 # this is useful for 2.6.22 but will not be needed anymore with 2.6.27
111 kernel-SPECVARS += iwlwifi=1
112 kernel-SPECVARS += kernelconfig=planetlab
116 kernels-clean: $(foreach package,$(KERNELS),$(package)-clean)
119 # this is to mark on which image a given rpm is supposed to go
120 IN_BOOTCD += $(KERNELS)
121 IN_VSERVER += $(KERNELS)
122 IN_BOOTSTRAPFS += $(KERNELS)
127 madwifi-MODULES := madwifi
128 madwifi-SPEC := madwifi.spec
129 madwifi-BUILD-FROM-SRPM := yes
130 madwifi-DEPEND-DEVEL-RPMS := kernel-devel
131 madwifi-SPECVARS = kernel_version=$(kernel.rpm-version) \
132 kernel_release=$(kernel.rpm-release) \
133 kernel_arch=$(kernel.rpm-arch)
135 IN_BOOTSTRAPFS += madwifi
140 iptables-MODULES := iptables
141 iptables-SPEC := iptables.spec
142 iptables-DEPEND-DEVEL-RPMS := kernel-devel kernel-headers
144 IN_BOOTSTRAPFS += iptables
149 iproute-MODULES := iproute2
150 iproute-SPEC := iproute.spec
152 IN_BOOTSTRAPFS += iproute
153 IN_VSERVER += iproute
157 # ipfw: root context module, and slice companion
159 ipfwroot-MODULES := ipfw
160 ipfwroot-SPEC := planetlab/ipfwroot.spec
161 ipfwroot-DEPEND-DEVEL-RPMS := kernel-devel
162 ipfwroot-SPECVARS = kernel_version=$(kernel.rpm-version) \
163 kernel_release=$(kernel.rpm-release) \
164 kernel_arch=$(kernel.rpm-arch)
167 ipfwslice-MODULES := ipfw
168 ipfwslice-SPEC := planetlab/ipfwslice.spec
169 ipfwslice-SPECVARS = kernel_version=$(kernel.rpm-version) \
170 kernel_release=$(kernel.rpm-release) \
171 kernel_arch=$(kernel.rpm-arch)
175 # umts: root context stuff
177 umts-backend-MODULES := planetlab-umts-tools
178 umts-backend-SPEC := backend.spec
179 IN_BOOTSTRAPFS += umts-backend
185 umts-frontend-MODULES := planetlab-umts-tools
186 umts-frontend-SPEC := frontend.spec
187 IN_VSERVER += umts-frontend
193 util-vserver-MODULES := util-vserver
194 util-vserver-SPEC := util-vserver.spec
195 util-vserver-RPMFLAGS:= --without dietlibc
197 IN_BOOTSTRAPFS += util-vserver
200 # libnl - local import
201 # we need either 1.1 or at least 1.0.pre6
202 # rebuild this on centos5 - see kexcludes in build.common
205 ifeq "$(DISTRONAME)" "centos5"
209 ifeq "$(local_libnl)" "true"
210 libnl-MODULES := libnl
211 libnl-SPEC := libnl.spec
212 libnl-BUILD-FROM-SRPM := yes
213 # this sounds like the thing to do, but in fact linux/if_vlan.h comes with kernel-headers
214 libnl-DEPEND-DEVEL-RPMS := kernel-devel kernel-headers
216 IN_BOOTSTRAPFS += libnl
222 util-vserver-pl-MODULES := util-vserver-pl
223 util-vserver-pl-SPEC := util-vserver-pl.spec
224 util-vserver-pl-DEPEND-DEVEL-RPMS := util-vserver-lib util-vserver-devel util-vserver-core
225 ifeq "$(local_libnl)" "true"
226 util-vserver-pl-DEPEND-DEVEL-RPMS += libnl libnl-devel
228 ALL += util-vserver-pl
229 IN_BOOTSTRAPFS += util-vserver-pl
234 nodeupdate-MODULES := nodeupdate
235 nodeupdate-SPEC := NodeUpdate.spec
237 IN_BOOTSTRAPFS += nodeupdate
242 ipod-MODULES := PingOfDeath
243 ipod-SPEC := ipod.spec
245 IN_BOOTSTRAPFS += ipod
250 nodemanager-MODULES := nodemanager
251 nodemanager-SPEC := NodeManager.spec
253 IN_BOOTSTRAPFS += nodemanager
258 sshd-MODULES := pl_sshd
259 sshd-SPEC := pl_sshd.spec
261 IN_BOOTSTRAPFS += sshd
264 # codemux: Port 80 demux
266 codemux-MODULES := codemux
267 codemux-SPEC := codemux.spec
269 IN_BOOTSTRAPFS += codemux
274 fprobe-ulog-MODULES := fprobe-ulog
275 fprobe-ulog-SPEC := fprobe-ulog.spec
277 IN_BOOTSTRAPFS += fprobe-ulog
282 pf2slice-MODULES := pf2slice
283 pf2slice-SPEC := pf2slice.spec
287 # PlanetLab Mom: Cleans up your mess
290 mom-SPEC := pl_mom.spec
292 IN_BOOTSTRAPFS += mom
295 # inotify-tools - local import
296 # rebuild this on centos5 (not found) - see kexcludes in build.common
298 local_inotify_tools=false
299 ifeq "$(DISTRONAME)" "centos5"
300 local_inotify_tools=true
303 ifeq "$(local_inotify_tools)" "true"
304 inotify-tools-MODULES := inotify-tools
305 inotify-tools-SPEC := inotify-tools.spec
306 inotify-tools-BUILD-FROM-SRPM := yes
307 IN_BOOTSTRAPFS += inotify-tools
315 vsys-SPEC := vsys.spec
316 vsys-DEVEL-RPMS += ocaml-docs ocaml-ocamldoc
317 ifeq "$(local_inotify_tools)" "true"
318 vsys-DEPEND-DEVEL-RPMS := inotify-tools inotify-tools-devel
320 IN_BOOTSTRAPFS += vsys
326 vsys-scripts-MODULES := vsys-scripts
327 vsys-scripts-SPEC := vsys-scripts.spec
328 IN_BOOTSTRAPFS += vsys-scripts
334 plcapi-MODULES := plcapi
335 plcapi-SPEC := PLCAPI.spec
342 drupal-MODULES := drupal
343 drupal-SPEC := drupal.spec
344 drupal-BUILD-FROM-SRPM := yes
349 # use the plewww module instead
351 plewww-MODULES := plewww
352 plewww-SPEC := plewww.spec
357 # www-register-wizard
359 www-register-wizard-MODULES := www-register-wizard
360 www-register-wizard-SPEC := www-register-wizard.spec
361 ALL += www-register-wizard
362 IN_MYPLC += www-register-wizard
367 pcucontrol-MODULES := pcucontrol
368 pcucontrol-SPEC := pcucontrol.spec
374 pyopenssl-MODULES := pyopenssl
375 pyopenssl-SPEC := pyOpenSSL.spec
376 pyopenssl-BUILD-FROM-SRPM := yes
382 pyaspects-MODULES := pyaspects
383 pyaspects-SPEC := pyaspects.spec
384 pyaspects-BUILD-FROM-SRPM := yes
390 nodeconfig-MODULES := nodeconfig
391 nodeconfig-SPEC := nodeconfig.spec
393 IN_MYPLC += nodeconfig
398 bootmanager-MODULES := bootmanager
399 bootmanager-SPEC := bootmanager.spec
401 IN_MYPLC += bootmanager
404 # pypcilib : used in bootcd
406 pypcilib-MODULES := pypcilib
407 pypcilib-SPEC := pypcilib.spec
409 IN_BOOTCD += pypcilib
414 pyplnet-MODULES := pyplnet
415 pyplnet-SPEC := pyplnet.spec
417 IN_BOOTSTRAPFS += pyplnet
424 bootcd-MODULES := bootcd build
425 bootcd-SPEC := bootcd.spec
426 bootcd-DEPEND-PACKAGES := $(IN_BOOTCD)
427 bootcd-DEPEND-FILES := RPMS/yumgroups.xml
428 bootcd-RPMDATE := yes
433 # vserver : reference image for slices
435 vserver-MODULES := vserver-reference build
436 vserver-SPEC := vserver-reference.spec
437 vserver-DEPEND-PACKAGES := $(IN_VSERVER)
438 vserver-DEPEND-FILES := RPMS/yumgroups.xml
439 vserver-RPMDATE := yes
441 IN_BOOTSTRAPFS += vserver
446 bootstrapfs-MODULES := bootstrapfs build
447 bootstrapfs-SPEC := bootstrapfs.spec
448 bootstrapfs-DEPEND-PACKAGES := $(IN_BOOTSTRAPFS)
449 bootstrapfs-DEPEND-FILES := RPMS/yumgroups.xml
450 bootstrapfs-RPMDATE := yes
452 IN_MYPLC += bootstrapfs
457 # all rpms resulting from packages marked as being in bootstrapfs and vserver
458 NODEREPO_RPMS = $(foreach package,$(IN_BOOTSTRAPFS) $(IN_VSERVER),$($(package).rpms))
459 # replace space with +++ (specvars cannot deal with spaces)
461 NODEREPO_RPMS_3PLUS = $(subst $(SPACE),+++,$(NODEREPO_RPMS))
463 noderepo-MODULES := bootstrapfs
464 noderepo-SPEC := noderepo.spec
465 # package requires all regular packages
466 noderepo-DEPEND-PACKAGES := $(IN_BOOTSTRAPFS) $(IN_VSERVER)
467 noderepo-DEPEND-FILES := RPMS/yumgroups.xml
468 #export rpm list to the specfile
469 noderepo-SPECVARS = node_rpms_plus=$(NODEREPO_RPMS_3PLUS)
470 noderepo-RPMDATE := yes
475 # MyPLC : lightweight packaging, dependencies are yum-installed in a vserver
477 myplc-MODULES := myplc
478 myplc-SPEC := myplc.spec
479 myplc-DEPEND-FILES := myplc-release RPMS/yumgroups.xml
482 # myplc-docs only contains docs for PLCAPI and NMAPI, but
483 # we still need to pull MyPLC, as it is where the specfile lies,
484 # together with the utility script docbook2drupal.sh
485 myplc-docs-MODULES := myplc plcapi nodemanager
486 myplc-docs-SPEC := myplc-docs.spec
489 # using some other name than myplc-release, as this is a make target already
490 release-MODULES := myplc
491 release-SPEC := myplc-release.spec
492 release-RPMDATE := yes