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
105 kernel-RPMDATE := yes
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)
116 # turns out myplc installs kernel-vserver
117 IN_MYPLC += $(KERNELS)
122 madwifi-MODULES := madwifi
123 madwifi-SPEC := madwifi.spec
124 madwifi-BUILD-FROM-SRPM := yes
125 madwifi-DEPEND-DEVEL-RPMS := kernel-devel
126 madwifi-SPECVARS = kernel_version=$(kernel.rpm-version) \
127 kernel_release=$(kernel.rpm-release) \
128 kernel_arch=$(kernel.rpm-arch)
130 IN_BOOTSTRAPFS += madwifi
135 util-vserver-MODULES := util-vserver
136 util-vserver-SPEC := util-vserver.spec
137 util-vserver-RPMFLAGS:= --without dietlibc
139 IN_BOOTSTRAPFS += util-vserver
142 # libnl - local import
143 # we need either 1.1 or at least 1.0.pre6
144 # rebuild this on centos5 - see kexcludes in build.common
147 ifeq "$(DISTRONAME)" "centos5"
151 ifeq "$(local_libnl)" "true"
152 libnl-MODULES := libnl
153 libnl-SPEC := libnl.spec
154 libnl-BUILD-FROM-SRPM := yes
155 # this sounds like the thing to do, but in fact linux/if_vlan.h comes with kernel-headers
156 libnl-DEPEND-DEVEL-RPMS := kernel-devel kernel-headers
158 IN_BOOTSTRAPFS += libnl
164 util-vserver-pl-MODULES := util-vserver-pl
165 util-vserver-pl-SPEC := util-vserver-pl.spec
166 util-vserver-pl-DEPEND-DEVEL-RPMS := util-vserver-lib util-vserver-devel util-vserver-core
167 ifeq "$(local_libnl)" "true"
168 util-vserver-pl-DEPEND-DEVEL-RPMS += libnl libnl-devel
170 ALL += util-vserver-pl
171 IN_BOOTSTRAPFS += util-vserver-pl
176 nodeupdate-MODULES := NodeUpdate
177 nodeupdate-SPEC := NodeUpdate.spec
179 IN_BOOTSTRAPFS += nodeupdate
184 ipod-MODULES := PingOfDeath
185 ipod-SPEC := ipod.spec
187 IN_BOOTSTRAPFS += ipod
192 nodemanager-MODULES := NodeManager
193 nodemanager-SPEC := NodeManager.spec
195 IN_BOOTSTRAPFS += nodemanager
200 sshd-MODULES := pl_sshd
201 sshd-SPEC := pl_sshd.spec
203 IN_BOOTSTRAPFS += sshd
206 # codemux: Port 80 demux
208 codemux-MODULES := CoDemux
209 codemux-SPEC := codemux.spec
210 codemux-RPMBUILD := sudo bash ./rpmbuild.sh
212 IN_BOOTSTRAPFS += codemux
217 fprobe-ulog-MODULES := fprobe-ulog
218 fprobe-ulog-SPEC := fprobe-ulog.spec
220 IN_BOOTSTRAPFS += fprobe-ulog
225 pf2slice-MODULES := pf2slice
226 pf2slice-SPEC := pf2slice.spec
230 # PlanetLab Mom: Cleans up your mess
233 mom-SPEC := pl_mom.spec
235 IN_BOOTSTRAPFS += mom
240 iptables-MODULES := iptables
241 iptables-SPEC := iptables.spec
242 iptables-DEPEND-DEVEL-RPMS := kernel-devel kernel-headers
244 IN_BOOTSTRAPFS += iptables
249 iproute-MODULES := iproute2
250 iproute-SPEC := iproute.spec
252 IN_BOOTSTRAPFS += iproute
253 IN_VSERVER += iproute
257 # inotify-tools - local import
258 # rebuild this on centos5 (not found) - see kexcludes in build.common
260 local_inotify_tools=false
261 ifeq "$(DISTRONAME)" "centos5"
262 local_inotify_tools=true
265 ifeq "$(local_inotify_tools)" "true"
266 inotify-tools-MODULES := inotify-tools
267 inotify-tools-SPEC := inotify-tools.spec
268 inotify-tools-BUILD-FROM-SRPM := yes
269 IN_BOOTSTRAPFS += inotify-tools
277 vsys-SPEC := vsys.spec
278 ifeq "$(local_inotify_tools)" "true"
279 vsys-DEPEND-DEVEL-RPMS := inotify-tools inotify-tools-devel
281 IN_BOOTSTRAPFS += vsys
287 vsys-scripts-MODULES := vsys-scripts
288 vsys-scripts-SPEC := vsys-scripts.spec
289 IN_BOOTSTRAPFS += vsys-scripts
295 PLCAPI-MODULES := PLCAPI
296 PLCAPI-SPEC := PLCAPI.spec
303 drupal-MODULES := drupal
304 drupal-SPEC := drupal.spec
305 drupal-BUILD-FROM-SRPM := yes
310 # use the plewww module instead
312 plewww-MODULES := PLEWWW
313 plewww-SPEC := plewww.spec
318 # www-register-wizard
320 www-register-wizard-MODULES := www-register-wizard
321 www-register-wizard-SPEC := www-register-wizard.spec
322 ALL += www-register-wizard
323 IN_MYPLC += www-register-wizard
328 pcucontrol-MODULES := pcucontrol
329 pcucontrol-SPEC := pcucontrol.spec
335 monitor-MODULES := Monitor
336 monitor-SPEC := Monitor.spec
338 IN_BOOTSTRAPFS += monitor
343 plcrt-MODULES := PLCRT
344 plcrt-SPEC := plcrt.spec
350 zabbix-MODULES := Monitor
351 zabbix-SPEC := zabbix.spec
352 zabbix-BUILD-FROM-SRPM := yes
358 pyopenssl-MODULES := pyopenssl
359 pyopenssl-SPEC := pyOpenSSL.spec
360 pyopenssl-BUILD-FROM-SRPM := yes
365 # sfa - Slice Facility Architecture
374 nodeconfig-MODULES := nodeconfig build
375 nodeconfig-SPEC := nodeconfig.spec
377 IN_MYPLC += nodeconfig
382 bootmanager-MODULES := BootManager
383 bootmanager-SPEC := bootmanager.spec
385 IN_MYPLC += bootmanager
388 # pypcilib : used in bootcd
390 pypcilib-MODULES := pypcilib
391 pypcilib-SPEC := pypcilib.spec
393 IN_BOOTCD += pypcilib
398 pyplnet-MODULES := pyplnet
399 pyplnet-SPEC := pyplnet.spec
401 IN_BOOTSTRAPFS += pyplnet
408 bootcd-MODULES := BootCD build
409 bootcd-SPEC := bootcd.spec
410 bootcd-RPMBUILD := sudo bash ./rpmbuild.sh
411 bootcd-DEPEND-PACKAGES := $(IN_BOOTCD)
412 bootcd-DEPEND-FILES := RPMS/yumgroups.xml
413 bootcd-RPMDATE := yes
418 # vserver : reference image for slices
420 vserver-MODULES := VserverReference build
421 vserver-SPEC := vserver-reference.spec
422 vserver-DEPEND-PACKAGES := $(IN_VSERVER)
423 vserver-DEPEND-FILES := RPMS/yumgroups.xml
424 vserver-RPMDATE := yes
426 IN_BOOTSTRAPFS += vserver
431 bootstrapfs-MODULES := BootstrapFS build
432 bootstrapfs-SPEC := bootstrapfs.spec
433 bootstrapfs-RPMBUILD := sudo bash ./rpmbuild.sh
434 bootstrapfs-DEPEND-PACKAGES := $(IN_BOOTSTRAPFS)
435 bootstrapfs-DEPEND-FILES := RPMS/yumgroups.xml
436 bootstrapfs-RPMDATE := yes
438 IN_MYPLC += bootstrapfs
443 # all rpms resulting from packages marked as being in bootstrapfs and vserver
444 NODEREPO_RPMS = $(foreach package,$(IN_BOOTSTRAPFS) $(IN_VSERVER),$($(package).rpms))
445 # replace space with +++ (specvars cannot deal with spaces)
447 NODEREPO_RPMS_3PLUS = $(subst $(SPACE),+++,$(NODEREPO_RPMS))
449 noderepo-MODULES := BootstrapFS
450 noderepo-SPEC := noderepo.spec
451 noderepo-RPMBUILD := sudo bash ./rpmbuild.sh
452 # package requires all regular packages
453 noderepo-DEPEND-PACKAGES := $(IN_BOOTSTRAPFS) $(IN_VSERVER)
454 noderepo-DEPEND-FILES := RPMS/yumgroups.xml
455 #export rpm list to the specfile
456 noderepo-SPECVARS = node_rpms_plus=$(NODEREPO_RPMS_3PLUS)
457 noderepo-RPMDATE := yes
462 # MyPLC : lightweight packaging, dependencies are yum-installed in a vserver
464 myplc-MODULES := MyPLC build
465 myplc-SPEC := myplc.spec
466 myplc-DEPEND-FILES := myplc-release RPMS/yumgroups.xml
469 # myplc-docs only contains docs for PLCAPI and NMAPI, but
470 # we still need to pull MyPLC, as it is where the specfile lies,
471 # together with the utility script docbook2drupal.sh
472 myplc-docs-MODULES := MyPLC PLCAPI NodeManager Monitor
473 myplc-docs-SPEC := myplc-docs.spec
476 # using some other name than myplc-release, as this is a make target already
477 release-MODULES := MyPLC
478 release-SPEC := myplc-release.spec
479 release-RPMDATE := yes