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
16 # use a package name with srpm in it:
17 # so the source rpm is created by running make srpm in the codebase
20 kernel-MODULES := linux-2.6
21 kernel-SPEC := kernel-2.6.spec
22 kernel-BUILD-FROM-SRPM := yes
23 ifeq "$(HOSTARCH)" "i386"
24 kernel-RPMFLAGS:= --target i686
26 kernel-RPMFLAGS:= --target $(HOSTARCH)
28 # this is useful for 2.6.22 but will not be needed anymore with 2.6.27
29 kernel-SPECVARS := iwlwifi=1
33 kernels-clean: $(foreach package,$(KERNELS),$(package)-clean)
36 # this is to mark on which image a given rpm is supposed to go
37 IN_BOOTCD += $(KERNELS)
38 IN_VSERVER += $(KERNELS)
39 IN_BOOTSTRAPFS += $(KERNELS)
40 # turns out myplc installs kernel-vserver
41 IN_MYPLC += $(KERNELS)
44 # ipfw: root context module, and slice companion
46 ipfwroot-MODULES := ipfwsrc
47 ipfwroot-SPEC := planetlab/ipfwroot.spec
48 ipfwroot-DEPEND-DEVEL-RPMS := kernel-devel
49 ipfwroot-SPECVARS = kernel_version=$(kernel.rpm-version) \
50 kernel_release=$(kernel.rpm-release) \
51 kernel_arch=$(kernel.rpm-arch)
55 ipfwslice-MODULES := ipfwsrc
56 ipfwslice-SPEC := planetlab/ipfwslice.spec
57 ipfwslice-SPECVARS = kernel_version=$(kernel.rpm-version) \
58 kernel_release=$(kernel.rpm-release) \
59 kernel_arch=$(kernel.rpm-arch)
62 # this doesn't build on f12 - weird all right - I suspect gcc to be smarter but that needs investigation
63 # is madwifi still current anyway ? should we move to ath5k instead ?
64 ifneq "$(DISTRONAME)" "f12"
68 madwifi-MODULES := madwifi
69 madwifi-SPEC := madwifi.spec
70 madwifi-BUILD-FROM-SRPM := yes
71 madwifi-DEPEND-DEVEL-RPMS := kernel-devel
72 madwifi-SPECVARS = kernel_version=$(kernel.rpm-version) \
73 kernel_release=$(kernel.rpm-release) \
74 kernel_arch=$(kernel.rpm-arch)
76 IN_BOOTSTRAPFS += madwifi
82 nozomi-MODULES := nozomi
83 nozomi-SPEC := nozomi.spec
84 nozomi-DEPEND-DEVEL-RPMS := kernel-devel
85 nozomi-SPECVARS = kernel_version=$(kernel.rpm-version) \
86 kernel_release=$(kernel.rpm-release) \
87 kernel_arch=$(kernel.rpm-arch)
88 IN_BOOTSTRAPFS += nozomi
94 comgt-MODULES := comgt
95 comgt-SPEC := comgt.spec
96 IN_BOOTSTRAPFS += comgt
100 # umts: root context stuff
102 umts-backend-MODULES := planetlab-umts-tools
103 umts-backend-SPEC := backend.spec
104 IN_BOOTSTRAPFS += umts-backend
110 umts-frontend-MODULES := planetlab-umts-tools
111 umts-frontend-SPEC := frontend.spec
112 IN_VSERVER += umts-frontend
118 util-vserver-MODULES := util-vserver
119 util-vserver-SPEC := util-vserver.spec
120 util-vserver-RPMFLAGS:= --without dietlibc
122 IN_BOOTSTRAPFS += util-vserver
125 # libnl - local import
126 # we need either 1.1 or at least 1.0.pre6
127 # rebuild this on centos5 - see kexcludes in build.common
130 ifeq "$(DISTRONAME)" "centos5"
134 ifeq "$(local_libnl)" "true"
135 libnl-MODULES := libnl
136 libnl-SPEC := libnl.spec
137 libnl-BUILD-FROM-SRPM := yes
138 # this sounds like the thing to do, but in fact linux/if_vlan.h comes with kernel-headers
139 libnl-DEPEND-DEVEL-RPMS := kernel-devel kernel-headers
141 IN_BOOTSTRAPFS += libnl
147 util-vserver-pl-MODULES := util-vserver-pl
148 util-vserver-pl-SPEC := util-vserver-pl.spec
149 util-vserver-pl-DEPEND-DEVEL-RPMS := util-vserver-lib util-vserver-devel util-vserver-core
150 ifeq "$(local_libnl)" "true"
151 util-vserver-pl-DEPEND-DEVEL-RPMS += libnl libnl-devel
153 ALL += util-vserver-pl
154 IN_BOOTSTRAPFS += util-vserver-pl
159 nodeupdate-MODULES := NodeUpdate
160 nodeupdate-SPEC := NodeUpdate.spec
162 IN_BOOTSTRAPFS += nodeupdate
167 ipod-MODULES := PingOfDeath
168 ipod-SPEC := ipod.spec
170 IN_BOOTSTRAPFS += ipod
175 nodemanager-MODULES := NodeManager
176 nodemanager-SPEC := NodeManager.spec
178 IN_BOOTSTRAPFS += nodemanager
183 sshd-MODULES := pl_sshd
184 sshd-SPEC := pl_sshd.spec
186 IN_BOOTSTRAPFS += sshd
189 # codemux: Port 80 demux
191 codemux-MODULES := CoDemux
192 codemux-SPEC := codemux.spec
193 codemux-RPMBUILD := sudo bash ./rpmbuild.sh
195 IN_BOOTSTRAPFS += codemux
200 fprobe-ulog-MODULES := fprobe-ulog
201 fprobe-ulog-SPEC := fprobe-ulog.spec
203 IN_BOOTSTRAPFS += fprobe-ulog
208 pf2slice-MODULES := pf2slice
209 pf2slice-SPEC := pf2slice.spec
213 # PlanetLab Mom: Cleans up your mess
216 mom-SPEC := pl_mom.spec
218 IN_BOOTSTRAPFS += mom
223 iptables-MODULES := iptables
224 iptables-SPEC := iptables.spec
225 iptables-DEPEND-DEVEL-RPMS := kernel-devel kernel-headers
227 IN_BOOTSTRAPFS += iptables
232 iproute-MODULES := iproute2
233 iproute-SPEC := iproute.spec
235 IN_BOOTSTRAPFS += iproute
236 IN_VSERVER += iproute
240 # inotify-tools - local import
241 # rebuild this on centos5 (not found) - see kexcludes in build.common
243 local_inotify_tools=false
244 ifeq "$(DISTRONAME)" "centos5"
245 local_inotify_tools=true
248 ifeq "$(local_inotify_tools)" "true"
249 inotify-tools-MODULES := inotify-tools
250 inotify-tools-SPEC := inotify-tools.spec
251 inotify-tools-BUILD-FROM-SRPM := yes
252 IN_BOOTSTRAPFS += inotify-tools
260 vsys-SPEC := vsys.spec
261 ifeq "$(local_inotify_tools)" "true"
262 vsys-DEPEND-DEVEL-RPMS := inotify-tools inotify-tools-devel
264 IN_BOOTSTRAPFS += vsys
270 vsys-scripts-MODULES := vsys-scripts
271 vsys-scripts-SPEC := vsys-scripts.spec
272 IN_BOOTSTRAPFS += vsys-scripts
278 dummynet_image-MODULES := dummynet_image
279 dummynet_image-SPEC := dummynet_image.spec
280 IN_MYPLC += dummynet_image
281 ALL += dummynet_image
286 PLCAPI-MODULES := PLCAPI
287 PLCAPI-SPEC := PLCAPI.spec
294 drupal-MODULES := drupal
295 drupal-SPEC := drupal.spec
296 drupal-BUILD-FROM-SRPM := yes
301 # use the plewww module instead
303 plewww-MODULES := PLEWWW
304 plewww-SPEC := plewww.spec
309 # www-register-wizard
311 www-register-wizard-MODULES := www-register-wizard
312 www-register-wizard-SPEC := www-register-wizard.spec
313 ALL += www-register-wizard
314 IN_MYPLC += www-register-wizard
319 monitor-MODULES := Monitor
320 monitor-SPEC := Monitor.spec
322 IN_BOOTSTRAPFS += monitor
327 plcrt-MODULES := PLCRT
328 plcrt-SPEC := plcrt.spec
334 zabbix-MODULES := Monitor
335 zabbix-SPEC := zabbix.spec
336 zabbix-BUILD-FROM-SRPM := yes
342 pyopenssl-MODULES := pyopenssl
343 pyopenssl-SPEC := pyOpenSSL.spec
344 pyopenssl-BUILD-FROM-SRPM := yes
349 # sfa - Slice Facility Architecture
358 nodeconfig-MODULES := nodeconfig build
359 nodeconfig-SPEC := nodeconfig.spec
361 IN_MYPLC += nodeconfig
366 bootmanager-MODULES := BootManager
367 bootmanager-SPEC := bootmanager.spec
369 IN_MYPLC += bootmanager
372 # pypcilib : used in bootcd
374 pypcilib-MODULES := pypcilib
375 pypcilib-SPEC := pypcilib.spec
377 IN_BOOTCD += pypcilib
382 pyplnet-MODULES := pyplnet
383 pyplnet-SPEC := pyplnet.spec
385 IN_BOOTSTRAPFS += pyplnet
392 bootcd-MODULES := BootCD build
393 bootcd-SPEC := bootcd.spec
394 bootcd-RPMBUILD := sudo bash ./rpmbuild.sh
395 bootcd-DEPEND-PACKAGES := $(IN_BOOTCD)
396 bootcd-DEPEND-FILES := RPMS/yumgroups.xml
397 bootcd-RPMDATE := yes
402 # vserver : reference image for slices
404 vserver-MODULES := VserverReference build
405 vserver-SPEC := vserver-reference.spec
406 vserver-DEPEND-PACKAGES := $(IN_VSERVER)
407 vserver-DEPEND-FILES := RPMS/yumgroups.xml
408 vserver-RPMDATE := yes
410 IN_BOOTSTRAPFS += vserver
415 bootstrapfs-MODULES := BootstrapFS build
416 bootstrapfs-SPEC := bootstrapfs.spec
417 bootstrapfs-RPMBUILD := sudo bash ./rpmbuild.sh
418 bootstrapfs-DEPEND-PACKAGES := $(IN_BOOTSTRAPFS)
419 bootstrapfs-DEPEND-FILES := RPMS/yumgroups.xml
420 bootstrapfs-RPMDATE := yes
422 IN_MYPLC += bootstrapfs
427 # all rpms resulting from packages marked as being in bootstrapfs and vserver
428 NODEREPO_RPMS = $(foreach package,$(IN_BOOTSTRAPFS) $(IN_VSERVER),$($(package).rpms))
429 # replace space with +++ (specvars cannot deal with spaces)
431 NODEREPO_RPMS_3PLUS = $(subst $(SPACE),+++,$(NODEREPO_RPMS))
433 noderepo-MODULES := BootstrapFS
434 noderepo-SPEC := noderepo.spec
435 noderepo-RPMBUILD := sudo bash ./rpmbuild.sh
436 # package requires all regular packages
437 noderepo-DEPEND-PACKAGES := $(IN_BOOTSTRAPFS) $(IN_VSERVER)
438 noderepo-DEPEND-FILES := RPMS/yumgroups.xml
439 #export rpm list to the specfile
440 noderepo-SPECVARS = node_rpms_plus=$(NODEREPO_RPMS_3PLUS)
441 noderepo-RPMDATE := yes
446 # MyPLC : lightweight packaging, dependencies are yum-installed in a vserver
448 myplc-MODULES := MyPLC build
449 myplc-SPEC := myplc.spec
450 myplc-DEPEND-FILES := myplc-release RPMS/yumgroups.xml
453 # myplc-docs only contains docs for PLCAPI and NMAPI, but
454 # we still need to pull MyPLC, as it is where the specfile lies,
455 # together with the utility script docbook2drupal.sh
456 myplc-docs-MODULES := MyPLC PLCAPI NodeManager Monitor
457 myplc-docs-SPEC := myplc-docs.spec
460 # using some other name than myplc-release, as this is a make target already
461 release-MODULES := MyPLC
462 release-SPEC := myplc-release.spec
463 release-RPMDATE := yes