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 gnuradio-MODULES := gnuradio
74 gnuradio-SPEC := gnuradio.spec
75 gnuradio-BUILD-FROM-SRPM := yes
77 IN_BOOTSTRAPFS += gnuradio
82 util-vserver-MODULES := util-vserver
83 util-vserver-SPEC := util-vserver.spec
84 util-vserver-RPMFLAGS:= --without dietlibc
86 IN_BOOTSTRAPFS += util-vserver
89 # libnl - local import
90 # we need either 1.1 or at least 1.0.pre6
91 # rebuild this on centos5 - see kexcludes in build.common
94 ifeq "$(DISTRONAME)" "centos5"
98 ifeq "$(local_libnl)" "true"
99 libnl-MODULES := libnl
100 libnl-SPEC := libnl.spec
101 libnl-BUILD-FROM-SRPM := yes
102 # this sounds like the thing to do, but in fact linux/if_vlan.h comes with kernel-headers
103 libnl-DEPEND-DEVEL-RPMS := kernel-devel kernel-headers
105 IN_BOOTSTRAPFS += libnl
111 util-vserver-pl-MODULES := util-vserver-pl
112 util-vserver-pl-SPEC := util-vserver-pl.spec
113 util-vserver-pl-DEPEND-DEVEL-RPMS := util-vserver-lib util-vserver-devel util-vserver-core
114 ifeq "$(local_libnl)" "true"
115 util-vserver-pl-DEPEND-DEVEL-RPMS += libnl libnl-devel
117 ALL += util-vserver-pl
118 IN_BOOTSTRAPFS += util-vserver-pl
123 nodeupdate-MODULES := NodeUpdate
124 nodeupdate-SPEC := NodeUpdate.spec
126 IN_BOOTSTRAPFS += nodeupdate
131 ipod-MODULES := PingOfDeath
132 ipod-SPEC := ipod.spec
134 IN_BOOTSTRAPFS += ipod
139 nodemanager-MODULES := NodeManager
140 nodemanager-SPEC := NodeManager.spec
142 IN_BOOTSTRAPFS += nodemanager
147 sshd-MODULES := pl_sshd
148 sshd-SPEC := pl_sshd.spec
150 IN_BOOTSTRAPFS += sshd
153 # codemux: Port 80 demux
155 codemux-MODULES := CoDemux
156 codemux-SPEC := codemux.spec
157 codemux-RPMBUILD := sudo bash ./rpmbuild.sh
159 IN_BOOTSTRAPFS += codemux
164 fprobe-ulog-MODULES := fprobe-ulog
165 fprobe-ulog-SPEC := fprobe-ulog.spec
167 IN_BOOTSTRAPFS += fprobe-ulog
172 pf2slice-MODULES := pf2slice
173 pf2slice-SPEC := pf2slice.spec
177 # PlanetLab Mom: Cleans up your mess
180 mom-SPEC := pl_mom.spec
182 IN_BOOTSTRAPFS += mom
187 iptables-MODULES := iptables
188 iptables-SPEC := iptables.spec
189 iptables-DEPEND-DEVEL-RPMS := kernel-devel kernel-headers
191 IN_BOOTSTRAPFS += iptables
196 iproute-MODULES := iproute2
197 iproute-SPEC := iproute.spec
199 IN_BOOTSTRAPFS += iproute
200 IN_VSERVER += iproute
204 # inotify-tools - local import
205 # rebuild this on centos5 (not found) - see kexcludes in build.common
207 local_inotify_tools=false
208 ifeq "$(DISTRONAME)" "centos5"
209 local_inotify_tools=true
212 ifeq "$(local_inotify_tools)" "true"
213 inotify-tools-MODULES := inotify-tools
214 inotify-tools-SPEC := inotify-tools.spec
215 inotify-tools-BUILD-FROM-SRPM := yes
216 IN_BOOTSTRAPFS += inotify-tools
224 vsys-SPEC := vsys.spec
225 ifeq "$(local_inotify_tools)" "true"
226 vsys-DEPEND-DEVEL-RPMS := inotify-tools inotify-tools-devel
228 IN_BOOTSTRAPFS += vsys
234 vsys-scripts-MODULES := vsys-scripts
235 vsys-scripts-SPEC := vsys-scripts.spec
236 IN_BOOTSTRAPFS += vsys-scripts
242 PLCAPI-MODULES := PLCAPI
243 PLCAPI-SPEC := PLCAPI.spec
250 drupal-MODULES := drupal
251 drupal-SPEC := drupal.spec
252 drupal-BUILD-FROM-SRPM := yes
257 # use the plewww module instead
259 plewww-MODULES := PLEWWW
260 plewww-SPEC := plewww.spec
265 # www-register-wizard
267 www-register-wizard-MODULES := www-register-wizard
268 www-register-wizard-SPEC := www-register-wizard.spec
269 ALL += www-register-wizard
270 IN_MYPLC += www-register-wizard
275 monitor-MODULES := Monitor
276 monitor-SPEC := Monitor.spec
278 IN_BOOTSTRAPFS += monitor
283 plcrt-MODULES := PLCRT
284 plcrt-SPEC := plcrt.spec
290 zabbix-MODULES := Monitor
291 zabbix-SPEC := zabbix.spec
292 zabbix-BUILD-FROM-SRPM := yes
298 pyopenssl-MODULES := pyopenssl
299 pyopenssl-SPEC := pyOpenSSL.spec
300 pyopenssl-BUILD-FROM-SRPM := yes
305 # sfa - Slice Facility Architecture
314 nodeconfig-MODULES := nodeconfig build
315 nodeconfig-SPEC := nodeconfig.spec
317 IN_MYPLC += nodeconfig
322 bootmanager-MODULES := BootManager
323 bootmanager-SPEC := bootmanager.spec
325 IN_MYPLC += bootmanager
328 # pypcilib : used in bootcd
330 pypcilib-MODULES := pypcilib
331 pypcilib-SPEC := pypcilib.spec
333 IN_BOOTCD += pypcilib
338 pyplnet-MODULES := pyplnet
339 pyplnet-SPEC := pyplnet.spec
341 IN_BOOTSTRAPFS += pyplnet
348 bootcd-MODULES := BootCD build
349 bootcd-SPEC := bootcd.spec
350 bootcd-RPMBUILD := sudo bash ./rpmbuild.sh
351 bootcd-DEPEND-PACKAGES := $(IN_BOOTCD)
352 bootcd-DEPEND-FILES := RPMS/yumgroups.xml
353 bootcd-RPMDATE := yes
358 # vserver : reference image for slices
360 vserver-MODULES := VserverReference build
361 vserver-SPEC := vserver-reference.spec
362 vserver-DEPEND-PACKAGES := $(IN_VSERVER)
363 vserver-DEPEND-FILES := RPMS/yumgroups.xml
364 vserver-RPMDATE := yes
366 IN_BOOTSTRAPFS += vserver
371 bootstrapfs-MODULES := BootstrapFS build
372 bootstrapfs-SPEC := bootstrapfs.spec
373 bootstrapfs-RPMBUILD := sudo bash ./rpmbuild.sh
374 bootstrapfs-DEPEND-PACKAGES := $(IN_BOOTSTRAPFS)
375 bootstrapfs-DEPEND-FILES := RPMS/yumgroups.xml
376 bootstrapfs-RPMDATE := yes
378 IN_MYPLC += bootstrapfs
383 # all rpms resulting from packages marked as being in bootstrapfs and vserver
384 NODEREPO_RPMS = $(foreach package,$(IN_BOOTSTRAPFS) $(IN_VSERVER),$($(package).rpms))
385 # replace space with +++ (specvars cannot deal with spaces)
387 NODEREPO_RPMS_3PLUS = $(subst $(SPACE),+++,$(NODEREPO_RPMS))
389 noderepo-MODULES := BootstrapFS
390 noderepo-SPEC := noderepo.spec
391 noderepo-RPMBUILD := sudo bash ./rpmbuild.sh
392 # package requires all regular packages
393 noderepo-DEPEND-PACKAGES := $(IN_BOOTSTRAPFS) $(IN_VSERVER)
394 noderepo-DEPEND-FILES := RPMS/yumgroups.xml
395 #export rpm list to the specfile
396 noderepo-SPECVARS = node_rpms_plus=$(NODEREPO_RPMS_3PLUS)
397 noderepo-RPMDATE := yes
402 # MyPLC : lightweight packaging, dependencies are yum-installed in a vserver
404 myplc-MODULES := MyPLC build
405 myplc-SPEC := myplc.spec
406 myplc-DEPEND-FILES := myplc-release RPMS/yumgroups.xml
409 # myplc-docs only contains docs for PLCAPI and NMAPI, but
410 # we still need to pull MyPLC, as it is where the specfile lies,
411 # together with the utility script docbook2drupal.sh
412 myplc-docs-MODULES := MyPLC PLCAPI NodeManager Monitor
413 myplc-docs-SPEC := myplc-docs.spec
416 # using some other name than myplc-release, as this is a make target already
417 release-MODULES := MyPLC
418 release-SPEC := myplc-release.spec
419 release-RPMDATE := yes