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
14 # use a package name with srpm in it:
15 # so the source rpm is created by running make srpm in the codebase
18 # rebuild kernel-3.1 on fedora14 due to instabilities of the stock kernel
19 ifeq "$(DISTRONAME)" "f14"
20 kernel-MODULES := linux-3
21 kernel-SPEC := kernel-3.1.spec
22 kernel-DEVEL-RPMS += gettext elfutils-devel
23 kernel-BUILD-FROM-SRPM := yes
24 ifeq "$(HOSTARCH)" "i386"
25 kernel-RPMFLAGS:= --target i686 --with firmware
27 kernel-RPMFLAGS:= --target $(HOSTARCH) --with firmware
29 kernel-SPECVARS += kernelconfig=planetlab
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_SLICEIMAGE += $(KERNELS)
39 IN_NODEIMAGE += $(KERNELS)
43 # ipfw: root context module, and slice companion
45 ipfwroot-MODULES := ipfw
46 ipfwroot-SPEC := planetlab/ipfwroot.spec
47 #ipfwroot-DEPEND-DEVEL-RPMS += kernel-devel
48 #ipfwroot-SPECVARS = kernel_version=$(kernel.rpm-version) \
49 # kernel_release=$(kernel.rpm-release) \
50 # kernel_arch=$(kernel.rpm-arch)
52 IN_NODEIMAGE += ipfwroot
54 ipfwslice-MODULES := ipfw
55 ipfwslice-SPEC := planetlab/ipfwslice.spec
56 ipfwslice-SPECVARS = kernel_version=$(kernel.rpm-version) \
57 kernel_release=$(kernel.rpm-release) \
58 kernel_arch=$(kernel.rpm-arch)
64 nodeupdate-MODULES := nodeupdate
65 nodeupdate-SPEC := NodeUpdate.spec
67 IN_NODEIMAGE += nodeupdate
72 ipod-MODULES := PingOfDeath
73 ipod-SPEC := ipod.spec
80 nodemanager-MODULES := nodemanager
81 nodemanager-SPEC := NodeManager.spec
83 IN_NODEIMAGE += nodemanager
88 sshd-MODULES := pl_sshd
89 sshd-SPEC := pl_sshd.spec
94 # codemux: Port 80 demux
96 codemux-MODULES := codemux
97 codemux-SPEC := codemux.spec
99 IN_NODEIMAGE += codemux
104 fprobe-ulog-MODULES := fprobe-ulog
105 fprobe-ulog-SPEC := fprobe-ulog.spec
107 IN_NODEIMAGE += fprobe-ulog
112 libvirt-MODULES := libvirt
113 libvirt-SPEC := libvirt.spec
114 libvirt-BUILD-FROM-SRPM := yes
115 libvirt-DEVEL-RPMS += libxml2-devel gnutls-devel device-mapper-devel yajl-devel gettext
116 libvirt-DEVEL-RPMS += python-devel libcap-ng-devel libpciaccess-devel radvd numactl-devel
117 libvirt-DEVEL-RPMS += xhtml1-dtds libxslt libtasn1-devel systemtap-sdt-devel iptables-ipv6 augeas
118 libvirt-DEVEL-RPMS += libudev-devel
119 libvirt-RPMFLAGS := --without storage-disk --without storage-iscsi --without storage-scsi \
120 --without storage-fs --without storage-lvm \
121 --without polkit --without sasl --without audit --with capng --with udev \
122 --without netcf --without avahi --without sanlock \
123 --without xen --without qemu --without hyperv --without phyp --without esx \
125 --define 'packager PlanetLab'
127 IN_NODEREPO += libvirt
128 IN_NODEIMAGE += libvirt
131 # DistributedRateLimiting
133 #DistributedRateLimiting-MODULES := DistributedRateLimiting
134 #DistributedRateLimiting-SPEC := DistributedRateLimiting.spec
135 #ALL += DistributedRateLimiting
136 #IN_NODEREPO += DistributedRateLimiting
141 pf2slice-MODULES := pf2slice
142 pf2slice-SPEC := pf2slice.spec
146 ## PlanetLab Mom: Cleans up your mess
149 #mom-SPEC := pl_mom.spec
154 # inotify-tools - local import
155 # rebuild this on centos5 (not found) - see yumexclude
157 local_inotify_tools=false
158 ifeq "$(DISTRONAME)" "centos5"
159 local_inotify_tools=true
162 ifeq "$(DISTRONAME)" "sl6"
163 local_inotify_tools=true
166 ifeq "$(local_inotify_tools)" "true"
167 inotify-tools-MODULES := inotify-tools
168 inotify-tools-SPEC := inotify-tools.spec
169 inotify-tools-BUILD-FROM-SRPM := yes
170 IN_NODEIMAGE += inotify-tools
177 # openvswitch-MODULES := openvswitch
178 # openvswitch-SPEC := openvswitch.spec
179 # openvswitch-DEPEND-DEVEL-RPMS += kernel-devel
180 # IN_NODEIMAGE += openvswitch
181 # # build only on f14 as f16 has this natively
182 # ifeq "$(DISTRONAME)" "$(filter $(DISTRONAME),f14)"
190 vsys-SPEC := vsys.spec
191 # ocaml-docs is not needed anymore but keep it on a tmp basis as some tags may still have it
192 vsys-DEVEL-RPMS += ocaml-ocamldoc ocaml-docs
193 ifeq "$(local_inotify_tools)" "true"
194 vsys-DEPEND-DEVEL-RPMS += inotify-tools inotify-tools-devel
200 # vsyssh : installed in slivers
202 vsyssh-MODULES := vsys
203 vsyssh-SPEC := vsyssh.spec
204 IN_SLICEIMAGE += vsyssh
210 vsys-scripts-MODULES := vsys-scripts
211 vsys-scripts-SPEC := vsys-scripts.spec
212 IN_NODEIMAGE += vsys-scripts
218 plcapi-MODULES := plcapi
219 plcapi-SPEC := PLCAPI.spec
226 drupal-MODULES := drupal
227 drupal-SPEC := drupal.spec
228 drupal-BUILD-FROM-SRPM := yes
233 # use the plewww module instead
235 plewww-MODULES := plewww
236 plewww-SPEC := plewww.spec
241 # www-register-wizard
243 www-register-wizard-MODULES := www-register-wizard
244 www-register-wizard-SPEC := www-register-wizard.spec
245 ALL += www-register-wizard
246 IN_MYPLC += www-register-wizard
251 pcucontrol-MODULES := pcucontrol
252 pcucontrol-SPEC := pcucontrol.spec
258 #monitor-MODULES := monitor
259 #monitor-SPEC := Monitor.spec
260 #monitor-DEVEL-RPMS += net-snmp net-snmp-devel
262 #IN_NODEIMAGE += monitor
267 plcrt-MODULES := PLCRT
268 plcrt-SPEC := plcrt.spec
271 # f12 has 0.9-1 already
272 ifeq "$(DISTRONAME)" "$(filter $(DISTRONAME),f8 centos5)"
276 pyopenssl-MODULES := pyopenssl
277 pyopenssl-SPEC := pyOpenSSL.spec
278 pyopenssl-BUILD-FROM-SRPM := yes
285 pyaspects-MODULES := pyaspects
286 pyaspects-SPEC := pyaspects.spec
287 pyaspects-BUILD-FROM-SRPM := yes
290 # sfa now uses the with statement that's not supported on python-2.4 - not even through __future__
291 # In addition we now use sqlalchemy and 0.5 as per f12 is not compatible with our model
293 ifeq "$(DISTRONAME)" "$(filter $(DISTRONAME),f8 f12 centos5)"
297 ifeq "$(build_sfa)" "true"
299 # sfa - Slice Facility Architecture
305 sface-MODULES := sface
306 sface-SPEC := sface.spec
313 nodeconfig-MODULES := nodeconfig
314 nodeconfig-SPEC := nodeconfig.spec
316 IN_MYPLC += nodeconfig
321 bootmanager-MODULES := bootmanager
322 bootmanager-SPEC := bootmanager.spec
324 IN_MYPLC += bootmanager
327 # pypcilib : used in bootcd
329 pypcilib-MODULES := pypcilib
330 pypcilib-SPEC := pypcilib.spec
332 IN_BOOTCD += pypcilib
337 pyplnet-MODULES := pyplnet
338 pyplnet-SPEC := pyplnet.spec
340 IN_NODEIMAGE += pyplnet
345 # OMF resource controller
347 omf-resctl-MODULES := omf
348 omf-resctl-SPEC := omf-resctl.spec
350 IN_SLICEIMAGE += omf-resctl
355 omf-expctl-MODULES := omf
356 omf-expctl-SPEC := omf-expctl.spec
362 bootcd-MODULES := bootcd build
363 bootcd-SPEC := bootcd.spec
364 bootcd-DEPEND-PACKAGES := $(IN_BOOTCD)
365 bootcd-DEPEND-FILES := RPMS/yumgroups.xml
366 bootcd-RPMDATE := yes
373 sliceimage-MODULES := sliceimage build
374 sliceimage-SPEC := sliceimage.spec
375 sliceimage-DEPEND-PACKAGES := $(IN_SLICEIMAGE)
376 sliceimage-DEPEND-FILES := RPMS/yumgroups.xml
377 sliceimage-RPMDATE := yes
379 IN_NODEIMAGE += sliceimage
382 # lxc-specific sliceimage initialization
384 lxc-sliceimage-MODULES := sliceimage
385 lxc-sliceimage-SPEC := lxc-sliceimage.spec
386 lxc-sliceimage-RPMDATE := yes
387 ALL += lxc-sliceimage
388 IN_NODEIMAGE += lxc-sliceimage
393 nodeimage-MODULES := nodeimage build
394 nodeimage-SPEC := nodeimage.spec
395 nodeimage-DEPEND-PACKAGES := $(IN_NODEIMAGE)
396 nodeimage-DEPEND-FILES := RPMS/yumgroups.xml
397 nodeimage-RPMDATE := yes
399 IN_MYPLC += nodeimage
404 # all rpms resulting from packages marked as being in nodeimage and sliceimage
405 NODEREPO_RPMS = $(foreach package,$(IN_NODEIMAGE) $(IN_NODEREPO) $(IN_SLICEIMAGE),$($(package).rpms))
406 # replace space with +++ (specvars cannot deal with spaces)
408 NODEREPO_RPMS_3PLUS = $(subst $(SPACE),+++,$(NODEREPO_RPMS))
410 noderepo-MODULES := nodeimage
411 noderepo-SPEC := noderepo.spec
412 # package requires all embedded packages
413 noderepo-DEPEND-PACKAGES := $(IN_NODEIMAGE) $(IN_NODEREPO) $(IN_SLICEIMAGE)
414 noderepo-DEPEND-FILES := RPMS/yumgroups.xml
415 #export rpm list to the specfile
416 noderepo-SPECVARS = node_rpms_plus=$(NODEREPO_RPMS_3PLUS)
417 noderepo-RPMDATE := yes
424 # all rpms resulting from packages marked as being in vserver
425 SLICEREPO_RPMS = $(foreach package,$(IN_SLICEIMAGE),$($(package).rpms))
426 # replace space with +++ (specvars cannot deal with spaces)
428 SLICEREPO_RPMS_3PLUS = $(subst $(SPACE),+++,$(SLICEREPO_RPMS))
430 slicerepo-MODULES := nodeimage
431 slicerepo-SPEC := slicerepo.spec
432 # package requires all embedded packages
433 slicerepo-DEPEND-PACKAGES := $(IN_SLICEIMAGE)
434 slicerepo-DEPEND-FILES := RPMS/yumgroups.xml
435 #export rpm list to the specfile
436 slicerepo-SPECVARS = slice_rpms_plus=$(SLICEREPO_RPMS_3PLUS)
437 slicerepo-RPMDATE := yes
441 # MyPLC : lightweight packaging, dependencies are yum-installed in a vserver
443 myplc-MODULES := myplc
444 myplc-SPEC := myplc.spec
445 myplc-DEPEND-FILES := myplc-release RPMS/yumgroups.xml
448 # myplc-docs only contains docs for PLCAPI and NMAPI, but
449 # we still need to pull MyPLC, as it is where the specfile lies,
450 # together with the utility script docbook2drupal.sh
451 myplc-docs-MODULES := myplc plcapi nodemanager monitor
452 myplc-docs-SPEC := myplc-docs.spec
455 # using some other name than myplc-release, as this is a make target already
456 release-MODULES := myplc
457 release-SPEC := myplc-release.spec
458 release-RPMDATE := yes