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 # use a package name with srpm in it:
52 # so the source rpm is created by running make srpm in the codebase
55 kernel-MODULES := linux-2.6
56 kernel-SPEC := kernel-2.6.spec
57 kernel-BUILD-FROM-SRPM := yes
58 ifeq "$(HOSTARCH)" "i386"
59 kernel-RPMFLAGS:= --target i686
61 kernel-RPMFLAGS:= --target $(HOSTARCH)
63 ### not needed with 2.6.27 anymore
64 ### kernel-SPECVARS := iwlwifi=1
70 kernels-clean: $(foreach package,$(KERNELS),$(package)-clean)
73 # this is to mark on which image a given rpm is supposed to go
74 IN_BOOTCD += $(KERNELS)
75 IN_VSERVER += $(KERNELS)
76 IN_BOOTSTRAPFS += $(KERNELS)
77 # turns out myplc installs kernel-vserver
78 IN_MYPLC += $(KERNELS)
83 madwifi-MODULES := madwifi
84 madwifi-SPEC := madwifi.spec
85 madwifi-BUILD-FROM-SRPM := yes
86 madwifi-DEPEND-DEVEL-RPMS := kernel-devel
87 madwifi-SPECVARS = kernel_version=$(kernel.rpm-version) \
88 kernel_release=$(kernel.rpm-release) \
89 kernel_arch=$(kernel.rpm-arch)
91 IN_BOOTSTRAPFS += madwifi
96 util-vserver-MODULES := util-vserver
97 util-vserver-SPEC := util-vserver.spec
98 util-vserver-RPMFLAGS:= --without dietlibc
100 IN_BOOTSTRAPFS += util-vserver
103 # libnl - local import
104 # we need either 1.1 or at least 1.0.pre6
105 # rebuild this on centos5 - see kexcludes in build.common
108 ifeq "$(DISTRONAME)" "centos5"
112 ifeq "$(local_libnl)" "true"
113 libnl-MODULES := libnl
114 libnl-SPEC := libnl.spec
115 libnl-BUILD-FROM-SRPM := yes
116 # this sounds like the thing to do, but in fact linux/if_vlan.h comes with kernel-headers
117 libnl-DEPEND-DEVEL-RPMS := kernel-devel kernel-headers
119 IN_BOOTSTRAPFS += libnl
125 util-vserver-pl-MODULES := util-vserver-pl
126 util-vserver-pl-SPEC := util-vserver-pl.spec
127 util-vserver-pl-DEPEND-DEVEL-RPMS := util-vserver-lib util-vserver-devel util-vserver-core
128 ifeq "$(local_libnl)" "true"
129 util-vserver-pl-DEPEND-DEVEL-RPMS += libnl libnl-devel
131 ALL += util-vserver-pl
132 IN_BOOTSTRAPFS += util-vserver-pl
137 nodeupdate-MODULES := NodeUpdate
138 nodeupdate-SPEC := NodeUpdate.spec
140 IN_BOOTSTRAPFS += nodeupdate
145 ipod-MODULES := PingOfDeath
146 ipod-SPEC := ipod.spec
148 IN_BOOTSTRAPFS += ipod
153 nodemanager-MODULES := NodeManager
154 nodemanager-SPEC := NodeManager.spec
156 IN_BOOTSTRAPFS += nodemanager
161 sshd-MODULES := pl_sshd
162 sshd-SPEC := pl_sshd.spec
164 IN_BOOTSTRAPFS += sshd
167 # codemux: Port 80 demux
169 codemux-MODULES := CoDemux
170 codemux-SPEC := codemux.spec
171 codemux-RPMBUILD := sudo bash ./rpmbuild.sh
173 IN_BOOTSTRAPFS += codemux
178 fprobe-ulog-MODULES := fprobe-ulog
179 fprobe-ulog-SPEC := fprobe-ulog.spec
181 IN_BOOTSTRAPFS += fprobe-ulog
186 pf2slice-MODULES := pf2slice
187 pf2slice-SPEC := pf2slice.spec
191 # PlanetLab Mom: Cleans up your mess
194 mom-SPEC := pl_mom.spec
196 IN_BOOTSTRAPFS += mom
201 iptables-MODULES := iptables
202 iptables-SPEC := iptables.spec
203 iptables-DEPEND-DEVEL-RPMS := kernel-devel kernel-headers
205 IN_BOOTSTRAPFS += iptables
210 iproute-MODULES := iproute2
211 iproute-SPEC := iproute.spec
213 IN_BOOTSTRAPFS += iproute
214 IN_VSERVER += iproute
218 # inotify-tools - local import
219 # rebuild this on centos5 (not found) - see kexcludes in build.common
221 local_inotify_tools=false
222 ifeq "$(DISTRONAME)" "centos5"
223 local_inotify_tools=true
226 ifeq "$(local_inotify_tools)" "true"
227 inotify-tools-MODULES := inotify-tools
228 inotify-tools-SPEC := inotify-tools.spec
229 inotify-tools-BUILD-FROM-SRPM := yes
230 IN_BOOTSTRAPFS += inotify-tools
238 vsys-SPEC := vsys.spec
239 ifeq "$(local_inotify_tools)" "true"
240 vsys-DEPEND-DEVEL-RPMS := inotify-tools inotify-tools-devel
242 IN_BOOTSTRAPFS += vsys
248 vsys-scripts-MODULES := vsys-scripts
249 vsys-scripts-SPEC := vsys-scripts.spec
250 IN_BOOTSTRAPFS += vsys-scripts
256 PLCAPI-MODULES := PLCAPI
257 PLCAPI-SPEC := PLCAPI.spec
264 drupal-MODULES := drupal
265 drupal-SPEC := drupal.spec
266 drupal-BUILD-FROM-SRPM := yes
271 # use the plewww module instead
273 plewww-MODULES := PLEWWW
274 plewww-SPEC := plewww.spec
279 # www-register-wizard
281 www-register-wizard-MODULES := www-register-wizard
282 www-register-wizard-SPEC := www-register-wizard.spec
283 ALL += www-register-wizard
284 IN_MYPLC += www-register-wizard
289 monitor-MODULES := Monitor
290 monitor-SPEC := Monitor.spec
292 IN_BOOTSTRAPFS += monitor
297 plcrt-MODULES := PLCRT
298 plcrt-SPEC := plcrt.spec
304 zabbix-MODULES := Monitor
305 zabbix-SPEC := zabbix.spec
306 zabbix-BUILD-FROM-SRPM := yes
312 pyopenssl-MODULES := pyopenssl
313 pyopenssl-SPEC := pyOpenSSL.spec
314 pyopenssl-BUILD-FROM-SRPM := yes
319 # sfa - Slice Facility Architecture
328 nodeconfig-MODULES := nodeconfig build
329 nodeconfig-SPEC := nodeconfig.spec
331 IN_MYPLC += nodeconfig
336 bootmanager-MODULES := BootManager
337 bootmanager-SPEC := bootmanager.spec
339 IN_MYPLC += bootmanager
342 # pypcilib : used in bootcd
344 pypcilib-MODULES := pypcilib
345 pypcilib-SPEC := pypcilib.spec
347 IN_BOOTCD += pypcilib
352 pyplnet-MODULES := pyplnet
353 pyplnet-SPEC := pyplnet.spec
355 IN_BOOTSTRAPFS += pyplnet
362 bootcd-MODULES := BootCD build
363 bootcd-SPEC := bootcd.spec
364 bootcd-RPMBUILD := sudo bash ./rpmbuild.sh
365 bootcd-DEPEND-PACKAGES := $(IN_BOOTCD)
366 bootcd-DEPEND-FILES := RPMS/yumgroups.xml
367 bootcd-RPMDATE := yes
372 # vserver : reference image for slices
374 vserver-MODULES := VserverReference build
375 vserver-SPEC := vserver-reference.spec
376 vserver-DEPEND-PACKAGES := $(IN_VSERVER)
377 vserver-DEPEND-FILES := RPMS/yumgroups.xml
378 vserver-RPMDATE := yes
380 IN_BOOTSTRAPFS += vserver
385 bootstrapfs-MODULES := BootstrapFS build
386 bootstrapfs-SPEC := bootstrapfs.spec
387 bootstrapfs-RPMBUILD := sudo bash ./rpmbuild.sh
388 bootstrapfs-DEPEND-PACKAGES := $(IN_BOOTSTRAPFS)
389 bootstrapfs-DEPEND-FILES := RPMS/yumgroups.xml
390 bootstrapfs-RPMDATE := yes
392 IN_MYPLC += bootstrapfs
397 # all rpms resulting from packages marked as being in bootstrapfs and vserver
398 NODEREPO_RPMS = $(foreach package,$(IN_BOOTSTRAPFS) $(IN_VSERVER),$($(package).rpms))
399 # replace space with +++ (specvars cannot deal with spaces)
401 NODEREPO_RPMS_3PLUS = $(subst $(SPACE),+++,$(NODEREPO_RPMS))
403 noderepo-MODULES := BootstrapFS
404 noderepo-SPEC := noderepo.spec
405 noderepo-RPMBUILD := sudo bash ./rpmbuild.sh
406 # package requires all regular packages
407 noderepo-DEPEND-PACKAGES := $(IN_BOOTSTRAPFS) $(IN_VSERVER)
408 noderepo-DEPEND-FILES := RPMS/yumgroups.xml
409 #export rpm list to the specfile
410 noderepo-SPECVARS = node_rpms_plus=$(NODEREPO_RPMS_3PLUS)
411 noderepo-RPMDATE := yes
416 # MyPLC : lightweight packaging, dependencies are yum-installed in a vserver
418 myplc-MODULES := MyPLC build
419 myplc-SPEC := myplc.spec
420 myplc-DEPEND-FILES := myplc-release RPMS/yumgroups.xml
423 # myplc-docs only contains docs for PLCAPI and NMAPI, but
424 # we still need to pull MyPLC, as it is where the specfile lies,
425 # together with the utility script docbook2drupal.sh
426 myplc-docs-MODULES := MyPLC PLCAPI NodeManager Monitor
427 myplc-docs-SPEC := myplc-docs.spec
430 # using some other name than myplc-release, as this is a make target already
431 release-MODULES := MyPLC
432 release-SPEC := myplc-release.spec
433 release-RPMDATE := yes