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 # use a package name with srpm in it:
29 # so the source rpm is created by running make srpm in the codebase
32 kernel-MODULES := linux-2.6
33 kernel-SPEC := kernel-2.6.spec
34 kernel-BUILD-FROM-SRPM := yes
35 ifeq "$(HOSTARCH)" "i386"
36 kernel-RPMFLAGS:= --target i686
38 kernel-RPMFLAGS:= --target $(HOSTARCH)
40 ### not needed with 2.6.27 anymore
41 ### kernel-SPECVARS := iwlwifi=1
47 kernels-clean: $(foreach package,$(KERNELS),$(package)-clean)
50 # this is to mark on which image a given rpm is supposed to go
51 IN_BOOTCD += $(KERNELS)
52 IN_VSERVER += $(KERNELS)
53 IN_BOOTSTRAPFS += $(KERNELS)
54 # turns out myplc installs kernel-vserver
55 IN_MYPLC += $(KERNELS)
60 madwifi-MODULES := madwifi
61 madwifi-SPEC := madwifi.spec
62 madwifi-BUILD-FROM-SRPM := yes
63 madwifi-DEPEND-DEVEL-RPMS := kernel-devel
64 madwifi-SPECVARS = kernel_version=$(kernel.rpm-version) \
65 kernel_release=$(kernel.rpm-release) \
66 kernel_arch=$(kernel.rpm-arch)
68 IN_BOOTSTRAPFS += madwifi
73 boost-MODULES := boost
74 boost-SPEC := boost.spec
75 boost-BUILD-FROM-SRPM := yes
77 IN_BOOTSTRAPFS += boost
82 gnuradio-MODULES := gnuradio
83 gnuradio-SPEC := gnuradio.spec
84 gnuradio-BUILD-FROM-SRPM := yes
85 gnuradio-DEPEND-DEVEL-RPMS := boost-devel
87 IN_BOOTSTRAPFS += gnuradio
92 util-vserver-MODULES := util-vserver
93 util-vserver-SPEC := util-vserver.spec
94 util-vserver-RPMFLAGS:= --without dietlibc
96 IN_BOOTSTRAPFS += util-vserver
99 # libnl - local import
100 # we need either 1.1 or at least 1.0.pre6
101 # rebuild this on centos5 - see kexcludes in build.common
104 ifeq "$(DISTRONAME)" "centos5"
108 ifeq "$(local_libnl)" "true"
109 libnl-MODULES := libnl
110 libnl-SPEC := libnl.spec
111 libnl-BUILD-FROM-SRPM := yes
112 # this sounds like the thing to do, but in fact linux/if_vlan.h comes with kernel-headers
113 libnl-DEPEND-DEVEL-RPMS := kernel-devel kernel-headers
115 IN_BOOTSTRAPFS += libnl
121 util-vserver-pl-MODULES := util-vserver-pl
122 util-vserver-pl-SPEC := util-vserver-pl.spec
123 util-vserver-pl-DEPEND-DEVEL-RPMS := util-vserver-lib util-vserver-devel util-vserver-core
124 ifeq "$(local_libnl)" "true"
125 util-vserver-pl-DEPEND-DEVEL-RPMS += libnl libnl-devel
127 ALL += util-vserver-pl
128 IN_BOOTSTRAPFS += util-vserver-pl
133 nodeupdate-MODULES := NodeUpdate
134 nodeupdate-SPEC := NodeUpdate.spec
136 IN_BOOTSTRAPFS += nodeupdate
141 ipod-MODULES := PingOfDeath
142 ipod-SPEC := ipod.spec
144 IN_BOOTSTRAPFS += ipod
149 nodemanager-MODULES := NodeManager
150 nodemanager-SPEC := NodeManager.spec
152 IN_BOOTSTRAPFS += nodemanager
157 sshd-MODULES := pl_sshd
158 sshd-SPEC := pl_sshd.spec
160 IN_BOOTSTRAPFS += sshd
163 # codemux: Port 80 demux
165 codemux-MODULES := CoDemux
166 codemux-SPEC := codemux.spec
167 codemux-RPMBUILD := sudo bash ./rpmbuild.sh
169 IN_BOOTSTRAPFS += codemux
174 fprobe-ulog-MODULES := fprobe-ulog
175 fprobe-ulog-SPEC := fprobe-ulog.spec
177 IN_BOOTSTRAPFS += fprobe-ulog
182 pf2slice-MODULES := pf2slice
183 pf2slice-SPEC := pf2slice.spec
187 # PlanetLab Mom: Cleans up your mess
190 mom-SPEC := pl_mom.spec
192 IN_BOOTSTRAPFS += mom
197 iptables-MODULES := iptables
198 iptables-SPEC := iptables.spec
199 iptables-DEPEND-DEVEL-RPMS := kernel-devel kernel-headers
201 IN_BOOTSTRAPFS += iptables
206 iproute-MODULES := iproute2
207 iproute-SPEC := iproute.spec
209 IN_BOOTSTRAPFS += iproute
210 IN_VSERVER += iproute
214 # inotify-tools - local import
215 # rebuild this on centos5 (not found) - see kexcludes in build.common
217 local_inotify_tools=false
218 ifeq "$(DISTRONAME)" "centos5"
219 local_inotify_tools=true
222 ifeq "$(local_inotify_tools)" "true"
223 inotify-tools-MODULES := inotify-tools
224 inotify-tools-SPEC := inotify-tools.spec
225 inotify-tools-BUILD-FROM-SRPM := yes
226 IN_BOOTSTRAPFS += inotify-tools
234 vsys-SPEC := vsys.spec
235 ifeq "$(local_inotify_tools)" "true"
236 vsys-DEPEND-DEVEL-RPMS := inotify-tools inotify-tools-devel
238 IN_BOOTSTRAPFS += vsys
244 vsys-scripts-MODULES := vsys-scripts
245 vsys-scripts-SPEC := vsys-scripts.spec
246 IN_BOOTSTRAPFS += vsys-scripts
252 PLCAPI-MODULES := PLCAPI
253 PLCAPI-SPEC := PLCAPI.spec
260 drupal-MODULES := drupal
261 drupal-SPEC := drupal.spec
262 drupal-BUILD-FROM-SRPM := yes
267 # use the plewww module instead
269 plewww-MODULES := PLEWWW
270 plewww-SPEC := plewww.spec
275 # www-register-wizard
277 www-register-wizard-MODULES := www-register-wizard
278 www-register-wizard-SPEC := www-register-wizard.spec
279 ALL += www-register-wizard
280 IN_MYPLC += www-register-wizard
285 monitor-MODULES := Monitor
286 monitor-SPEC := Monitor.spec
288 IN_BOOTSTRAPFS += monitor
293 plcrt-MODULES := PLCRT
294 plcrt-SPEC := plcrt.spec
300 zabbix-MODULES := Monitor
301 zabbix-SPEC := zabbix.spec
302 zabbix-BUILD-FROM-SRPM := yes
308 pyopenssl-MODULES := pyopenssl
309 pyopenssl-SPEC := pyOpenSSL.spec
310 pyopenssl-BUILD-FROM-SRPM := yes
315 # sfa - Slice Facility Architecture
324 nodeconfig-MODULES := nodeconfig build
325 nodeconfig-SPEC := nodeconfig.spec
327 IN_MYPLC += nodeconfig
332 bootmanager-MODULES := BootManager
333 bootmanager-SPEC := bootmanager.spec
335 IN_MYPLC += bootmanager
338 # pypcilib : used in bootcd
340 pypcilib-MODULES := pypcilib
341 pypcilib-SPEC := pypcilib.spec
343 IN_BOOTCD += pypcilib
348 pyplnet-MODULES := pyplnet
349 pyplnet-SPEC := pyplnet.spec
351 IN_BOOTSTRAPFS += pyplnet
358 bootcd-MODULES := BootCD build
359 bootcd-SPEC := bootcd.spec
360 bootcd-RPMBUILD := sudo bash ./rpmbuild.sh
361 bootcd-DEPEND-PACKAGES := $(IN_BOOTCD)
362 bootcd-DEPEND-FILES := RPMS/yumgroups.xml
363 bootcd-RPMDATE := yes
368 # vserver : reference image for slices
370 vserver-MODULES := VserverReference build
371 vserver-SPEC := vserver-reference.spec
372 vserver-DEPEND-PACKAGES := $(IN_VSERVER)
373 vserver-DEPEND-FILES := RPMS/yumgroups.xml
374 vserver-RPMDATE := yes
376 IN_BOOTSTRAPFS += vserver
381 bootstrapfs-MODULES := BootstrapFS build
382 bootstrapfs-SPEC := bootstrapfs.spec
383 bootstrapfs-RPMBUILD := sudo bash ./rpmbuild.sh
384 bootstrapfs-DEPEND-PACKAGES := $(IN_BOOTSTRAPFS)
385 bootstrapfs-DEPEND-FILES := RPMS/yumgroups.xml
386 bootstrapfs-RPMDATE := yes
388 IN_MYPLC += bootstrapfs
393 # all rpms resulting from packages marked as being in bootstrapfs and vserver
394 NODEREPO_RPMS = $(foreach package,$(IN_BOOTSTRAPFS) $(IN_VSERVER),$($(package).rpms))
395 # replace space with +++ (specvars cannot deal with spaces)
397 NODEREPO_RPMS_3PLUS = $(subst $(SPACE),+++,$(NODEREPO_RPMS))
399 noderepo-MODULES := BootstrapFS
400 noderepo-SPEC := noderepo.spec
401 noderepo-RPMBUILD := sudo bash ./rpmbuild.sh
402 # package requires all regular packages
403 noderepo-DEPEND-PACKAGES := $(IN_BOOTSTRAPFS) $(IN_VSERVER)
404 noderepo-DEPEND-FILES := RPMS/yumgroups.xml
405 #export rpm list to the specfile
406 noderepo-SPECVARS = node_rpms_plus=$(NODEREPO_RPMS_3PLUS)
407 noderepo-RPMDATE := yes
412 # MyPLC : lightweight packaging, dependencies are yum-installed in a vserver
414 myplc-MODULES := MyPLC build
415 myplc-SPEC := myplc.spec
416 myplc-DEPEND-FILES := myplc-release RPMS/yumgroups.xml
419 # myplc-docs only contains docs for PLCAPI and NMAPI, but
420 # we still need to pull MyPLC, as it is where the specfile lies,
421 # together with the utility script docbook2drupal.sh
422 myplc-docs-MODULES := MyPLC PLCAPI NodeManager Monitor
423 myplc-docs-SPEC := myplc-docs.spec
426 # using some other name than myplc-release, as this is a make target already
427 release-MODULES := MyPLC
428 release-SPEC := myplc-release.spec
429 release-RPMDATE := yes