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
10 ### NOTES on diffs with onelab
11 # 2.6.27 vs 2.6.22 - does not need iwlwifi exception anymore
13 # ipfw (might just work) - svn:ipfw
14 # ipfwslice - svn:ipfw
15 # nozomi (does not work on 2.6.27) svn:nozomi
17 # umts-backend - svn:planetlab-umts-tools
18 # umts-frontend - svn:planetlab-umts-tools
19 # dummynet_image - svn:dummynet_image
28 # we rebuild this one only b/c f10 only has 1.34 and gnuradio needs >= 1.35
29 # this build is based on the f11 rpm, i.e. boost-1.37
31 boost-MODULES := boost
32 boost-SPEC := boost.spec
33 boost-BUILD-FROM-SRPM := yes
35 IN_BOOTSTRAPFS += boost
40 gnuradio-MODULES := gnuradio
41 gnuradio-SPEC := gnuradio.spec
42 gnuradio-BUILD-FROM-SRPM := yes
43 # boost-devel needs boost !
44 gnuradio-DEPEND-DEVEL-RPMS := boost boost-devel
46 IN_BOOTSTRAPFS += gnuradio
51 bbn-MODULES := bbn_80211
52 bbn-SPEC := bbn_80211.spec
53 bbn-BUILD-FROM-SRPM := yes
54 bbn-DEPEND-DEVEL-RPMS := gnuradio gnuradio-devel boost boost-devel
61 crunchxml-MODULES := crunchxml
62 crunchxml-SPEC := crunchxml.spec
63 crunchxml-BUILD-FROM-SRPM := yes
65 IN_BOOTSTRAPFS += crunchxml
70 spectools-MODULES := spectools
71 spectools-SPEC := spectools.spec
72 spectools-BUILD-FROM-SRPM := yes
74 IN_BOOTSTRAPFS += spectools
81 sge-BUILD-FROM-SRPM := yes
82 # turning this off - current focus is on deploying the sge box separately from myplc
83 # packaging is still broken, and we're exploring a ready-t-o-use distro on centos
85 # IN_BOOTSTRAPFS += sge
90 # use a package name with srpm in it:
91 # so the source rpm is created by running make srpm in the codebase
94 kernel-MODULES := linux-2.6
95 kernel-SPEC := kernel-2.6.spec
96 kernel-BUILD-FROM-SRPM := yes
97 ifeq "$(HOSTARCH)" "i386"
98 kernel-RPMFLAGS:= --target i686
100 kernel-RPMFLAGS:= --target $(HOSTARCH)
102 ### not needed with 2.6.27 anymore
103 ### kernel-SPECVARS := iwlwifi=1
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)
114 # turns out myplc installs kernel-vserver
115 IN_MYPLC += $(KERNELS)
118 #-broken-# # ipfw: root context module, and slice companion
120 #-broken-# ipfwroot-MODULES := ipfw
121 #-broken-# ipfwroot-SPEC := planetlab/ipfwroot.spec
122 #-broken-# ipfwroot-DEPEND-DEVEL-RPMS := kernel-devel
123 #-broken-# ipfwroot-SPECVARS = kernel_version=$(kernel.rpm-version) \
124 #-broken-# kernel_release=$(kernel.rpm-release) \
125 #-broken-# kernel_arch=$(kernel.rpm-arch)
126 #-broken-# ALL += ipfwroot
128 #-broken-# ipfwslice-MODULES := ipfw
129 #-broken-# ipfwslice-SPEC := planetlab/ipfwslice.spec
130 #-broken-# ipfwslice-SPECVARS = kernel_version=$(kernel.rpm-version) \
131 #-broken-# kernel_release=$(kernel.rpm-release) \
132 #-broken-# kernel_arch=$(kernel.rpm-arch)
133 #-broken-# ALL += ipfwslice
138 madwifi-MODULES := madwifi
139 madwifi-SPEC := madwifi.spec
140 madwifi-BUILD-FROM-SRPM := yes
141 madwifi-DEPEND-DEVEL-RPMS := kernel-devel
142 madwifi-SPECVARS = kernel_version=$(kernel.rpm-version) \
143 kernel_release=$(kernel.rpm-release) \
144 kernel_arch=$(kernel.rpm-arch)
146 IN_BOOTSTRAPFS += madwifi
151 iptables-MODULES := iptables
152 iptables-SPEC := iptables.spec
153 iptables-DEPEND-DEVEL-RPMS := kernel-devel kernel-headers
155 IN_BOOTSTRAPFS += iptables
160 iproute-MODULES := iproute2
161 iproute-SPEC := iproute.spec
163 IN_BOOTSTRAPFS += iproute
164 IN_VSERVER += iproute
170 util-vserver-MODULES := util-vserver
171 util-vserver-SPEC := util-vserver.spec
172 util-vserver-RPMFLAGS:= --without dietlibc
174 IN_BOOTSTRAPFS += util-vserver
177 # libnl - local import
178 # we need either 1.1 or at least 1.0.pre6
179 # rebuild this on centos5 - see kexcludes in build.common
182 ifeq "$(DISTRONAME)" "centos5"
186 ifeq "$(local_libnl)" "true"
187 libnl-MODULES := libnl
188 libnl-SPEC := libnl.spec
189 libnl-BUILD-FROM-SRPM := yes
190 # this sounds like the thing to do, but in fact linux/if_vlan.h comes with kernel-headers
191 libnl-DEPEND-DEVEL-RPMS := kernel-devel kernel-headers
193 IN_BOOTSTRAPFS += libnl
199 util-vserver-pl-MODULES := util-vserver-pl
200 util-vserver-pl-SPEC := util-vserver-pl.spec
201 util-vserver-pl-DEPEND-DEVEL-RPMS := util-vserver-lib util-vserver-devel util-vserver-core
202 ifeq "$(local_libnl)" "true"
203 util-vserver-pl-DEPEND-DEVEL-RPMS += libnl libnl-devel
205 ALL += util-vserver-pl
206 IN_BOOTSTRAPFS += util-vserver-pl
211 nodeupdate-MODULES := NodeUpdate
212 nodeupdate-SPEC := NodeUpdate.spec
214 IN_BOOTSTRAPFS += nodeupdate
219 ipod-MODULES := PingOfDeath
220 ipod-SPEC := ipod.spec
222 IN_BOOTSTRAPFS += ipod
227 nodemanager-MODULES := NodeManager
228 nodemanager-SPEC := NodeManager.spec
230 IN_BOOTSTRAPFS += nodemanager
235 sshd-MODULES := pl_sshd
236 sshd-SPEC := pl_sshd.spec
238 IN_BOOTSTRAPFS += sshd
241 # codemux: Port 80 demux
243 codemux-MODULES := CoDemux
244 codemux-SPEC := codemux.spec
245 codemux-RPMBUILD := sudo bash ./rpmbuild.sh
247 IN_BOOTSTRAPFS += codemux
252 fprobe-ulog-MODULES := fprobe-ulog
253 fprobe-ulog-SPEC := fprobe-ulog.spec
255 IN_BOOTSTRAPFS += fprobe-ulog
260 pf2slice-MODULES := pf2slice
261 pf2slice-SPEC := pf2slice.spec
265 # PlanetLab Mom: Cleans up your mess
268 mom-SPEC := pl_mom.spec
270 IN_BOOTSTRAPFS += mom
273 # inotify-tools - local import
274 # rebuild this on centos5 (not found) - see kexcludes in build.common
276 local_inotify_tools=false
277 ifeq "$(DISTRONAME)" "centos5"
278 local_inotify_tools=true
281 ifeq "$(local_inotify_tools)" "true"
282 inotify-tools-MODULES := inotify-tools
283 inotify-tools-SPEC := inotify-tools.spec
284 inotify-tools-BUILD-FROM-SRPM := yes
285 IN_BOOTSTRAPFS += inotify-tools
293 vsys-SPEC := vsys.spec
294 ifeq "$(local_inotify_tools)" "true"
295 vsys-DEPEND-DEVEL-RPMS := inotify-tools inotify-tools-devel
297 IN_BOOTSTRAPFS += vsys
303 vsys-scripts-MODULES := vsys-scripts
304 vsys-scripts-SPEC := vsys-scripts.spec
305 IN_BOOTSTRAPFS += vsys-scripts
311 plcapi-MODULES := PLCAPI
312 plcapi-SPEC := PLCAPI.spec
319 drupal-MODULES := drupal
320 drupal-SPEC := drupal.spec
321 drupal-BUILD-FROM-SRPM := yes
326 # use the plewww module instead
328 plewww-MODULES := PLEWWW
329 plewww-SPEC := plewww.spec
334 # www-register-wizard
336 www-register-wizard-MODULES := www-register-wizard
337 www-register-wizard-SPEC := www-register-wizard.spec
338 ALL += www-register-wizard
339 IN_MYPLC += www-register-wizard
344 pcucontrol-MODULES := pcucontrol
345 pcucontrol-SPEC := pcucontrol.spec
351 monitor-MODULES := Monitor
352 monitor-SPEC := Monitor.spec
354 IN_BOOTSTRAPFS += monitor
359 plcrt-MODULES := PLCRT
360 plcrt-SPEC := plcrt.spec
366 zabbix-MODULES := Monitor
367 zabbix-SPEC := zabbix.spec
368 zabbix-BUILD-FROM-SRPM := yes
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
388 # sfa - Slice Facility Architecture
397 nodeconfig-MODULES := nodeconfig
398 nodeconfig-SPEC := nodeconfig.spec
400 IN_MYPLC += nodeconfig
405 bootmanager-MODULES := BootManager
406 bootmanager-SPEC := bootmanager.spec
408 IN_MYPLC += bootmanager
411 # pypcilib : used in bootcd
413 pypcilib-MODULES := pypcilib
414 pypcilib-SPEC := pypcilib.spec
416 IN_BOOTCD += pypcilib
421 pyplnet-MODULES := pyplnet
422 pyplnet-SPEC := pyplnet.spec
424 IN_BOOTSTRAPFS += pyplnet
431 bootcd-MODULES := BootCD build
432 bootcd-SPEC := bootcd.spec
433 bootcd-RPMBUILD := sudo bash ./rpmbuild.sh
434 bootcd-DEPEND-PACKAGES := $(IN_BOOTCD)
435 bootcd-DEPEND-FILES := RPMS/yumgroups.xml
436 bootcd-RPMDATE := yes
441 # vserver : reference image for slices
443 vserver-MODULES := VserverReference build
444 vserver-SPEC := vserver-reference.spec
445 vserver-DEPEND-PACKAGES := $(IN_VSERVER)
446 vserver-DEPEND-FILES := RPMS/yumgroups.xml
447 vserver-RPMDATE := yes
449 IN_BOOTSTRAPFS += vserver
454 bootstrapfs-MODULES := BootstrapFS build
455 bootstrapfs-SPEC := bootstrapfs.spec
456 bootstrapfs-RPMBUILD := sudo bash ./rpmbuild.sh
457 bootstrapfs-DEPEND-PACKAGES := $(IN_BOOTSTRAPFS)
458 bootstrapfs-DEPEND-FILES := RPMS/yumgroups.xml
459 bootstrapfs-RPMDATE := yes
461 IN_MYPLC += bootstrapfs
466 # all rpms resulting from packages marked as being in bootstrapfs and vserver
467 NODEREPO_RPMS = $(foreach package,$(IN_BOOTSTRAPFS) $(IN_VSERVER),$($(package).rpms))
468 # replace space with +++ (specvars cannot deal with spaces)
470 NODEREPO_RPMS_3PLUS = $(subst $(SPACE),+++,$(NODEREPO_RPMS))
472 noderepo-MODULES := BootstrapFS
473 noderepo-SPEC := noderepo.spec
474 noderepo-RPMBUILD := sudo bash ./rpmbuild.sh
475 # package requires all regular packages
476 noderepo-DEPEND-PACKAGES := $(IN_BOOTSTRAPFS) $(IN_VSERVER)
477 noderepo-DEPEND-FILES := RPMS/yumgroups.xml
478 #export rpm list to the specfile
479 noderepo-SPECVARS = node_rpms_plus=$(NODEREPO_RPMS_3PLUS)
480 noderepo-RPMDATE := yes
485 # MyPLC : lightweight packaging, dependencies are yum-installed in a vserver
487 myplc-MODULES := MyPLC
488 myplc-SPEC := myplc.spec
489 myplc-DEPEND-FILES := myplc-release RPMS/yumgroups.xml
492 # myplc-docs only contains docs for PLCAPI and NMAPI, but
493 # we still need to pull MyPLC, as it is where the specfile lies,
494 # together with the utility script docbook2drupal.sh
495 myplc-docs-MODULES := MyPLC PLCAPI NodeManager Monitor
496 myplc-docs-SPEC := myplc-docs.spec
499 # using some other name than myplc-release, as this is a make target already
500 release-MODULES := MyPLC
501 release-SPEC := myplc-release.spec
502 release-RPMDATE := yes