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
13 ifeq "$(PLDISTROTAGS)" "planetlab-k32-tags.mk"
14 ifeq "$(DISTRONAME)" "centos5"
15 mkinitrd-MODULES := mkinitrd
16 mkinitrd-SPEC := mkinitrd.spec
17 mkinitrd-BUILD-FROM-SRPM := yes
18 mkinitrd-DEVEL-RPMS += parted-devel glib2-devel libdhcp4client-devel libdhcp6client-devel libdhcp-devel
19 mkinitrd-DEVEL-RPMS += device-mapper libselinux-devel libsepol-devel libnl-devel
22 IN_VSERVER += mkinitrd
23 IN_BOOTSTRAPFS += mkinitrd
30 # use a package name with srpm in it:
31 # so the source rpm is created by running make srpm in the codebase
34 kernel-MODULES := linux-2.6
35 kernel-SPEC := kernel-2.6.spec
36 kernel-BUILD-FROM-SRPM := yes
37 ifeq "$(HOSTARCH)" "i386"
38 kernel-RPMFLAGS:= --target i686
40 kernel-RPMFLAGS:= --target $(HOSTARCH)
42 kernel-SPECVARS += kernelconfig=planetlab
46 kernels-clean: $(foreach package,$(KERNELS),$(package)-clean)
49 # this is to mark on which image a given rpm is supposed to go
50 IN_BOOTCD += $(KERNELS)
51 IN_VSERVER += $(KERNELS)
52 IN_BOOTSTRAPFS += $(KERNELS)
57 # skip this with k32/f8
58 ifneq "" "$(findstring k32,$(PLDISTROTAGS))"
59 ifneq "$(DISTRONAME)" "f8"
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
75 iptables-MODULES := iptables
76 iptables-SPEC := iptables.spec
77 iptables-BUILD-FROM-SRPM := yes
78 iptables-DEPEND-DEVEL-RPMS += kernel-devel kernel-headers
80 IN_BOOTSTRAPFS += iptables
85 iproute-MODULES := iproute2
86 iproute-SPEC := iproute.spec
87 iproute-BUILD-FROM-SRPM := yes
89 IN_BOOTSTRAPFS += iproute
96 util-vserver-MODULES := util-vserver
97 util-vserver-SPEC := util-vserver.spec
99 util-vserver-BUILD-FROM-SRPM := yes
100 util-vserver-RPMFLAGS:= --without dietlibc --without doc
102 IN_BOOTSTRAPFS += util-vserver
105 # libnl - local import
106 # we need either 1.1 or at least 1.0.pre6
107 # rebuild this on centos5 - see kexcludes in build.common
110 ifeq "$(DISTRONAME)" "centos5"
114 ifeq "$(local_libnl)" "true"
115 libnl-MODULES := libnl
116 libnl-SPEC := libnl.spec
117 libnl-BUILD-FROM-SRPM := yes
118 # this sounds like the thing to do, but in fact linux/if_vlan.h comes with kernel-headers
119 libnl-DEPEND-DEVEL-RPMS += kernel-devel kernel-headers
121 IN_BOOTSTRAPFS += libnl
127 util-vserver-pl-MODULES := util-vserver-pl
128 util-vserver-pl-SPEC := util-vserver-pl.spec
129 util-vserver-pl-DEPEND-DEVEL-RPMS += util-vserver-lib util-vserver-devel util-vserver-core
130 ifeq "$(local_libnl)" "true"
131 util-vserver-pl-DEPEND-DEVEL-RPMS += libnl libnl-devel
133 ALL += util-vserver-pl
134 IN_BOOTSTRAPFS += util-vserver-pl
139 nodeupdate-MODULES := nodeupdate
140 nodeupdate-SPEC := NodeUpdate.spec
142 IN_BOOTSTRAPFS += nodeupdate
147 ipod-MODULES := PingOfDeath
148 ipod-SPEC := ipod.spec
150 IN_BOOTSTRAPFS += ipod
155 nodemanager-MODULES := nodemanager
156 nodemanager-SPEC := NodeManager.spec
158 IN_BOOTSTRAPFS += nodemanager
163 sshd-MODULES := pl_sshd
164 sshd-SPEC := pl_sshd.spec
166 IN_BOOTSTRAPFS += sshd
169 # codemux: Port 80 demux
171 codemux-MODULES := codemux
172 codemux-SPEC := codemux.spec
174 IN_BOOTSTRAPFS += codemux
179 fprobe-ulog-MODULES := fprobe-ulog
180 fprobe-ulog-SPEC := fprobe-ulog.spec
182 IN_BOOTSTRAPFS += fprobe-ulog
187 libvirt-MODULES := libvirt
188 libvirt-SPEC := libvirt.spec
189 libvirt-BUILD-FROM-SRPM := yes
190 libvirt-DEVEL-RPMS += libxml2-devel gnutls-devel device-mapper-devel yajl-devel gettext
191 libvirt-DEVEL-RPMS += python-devel libcap-ng-devel libpciaccess-devel radvd numactl-devel
192 libvirt-DEVEL-RPMS += xhtml1-dtds libxslt libtasn1-devel systemtap-sdt-devel iptables-ipv6 augeas
193 libvirt-RPMFLAGS := --without storage-disk --without storage-iscsi --without storage-scsi \
194 --without storage-fs --without storage-lvm \
195 --without polkit --without sasl --without audit --with capng --with udev \
196 --without netcf --without avahi --without sanlock \
197 --without xen --without qemu --without hyperv --without phyp --without esx \
198 --define 'packager PlanetLab'
200 IN_NODEREPO += libvirt
201 IN_BOOTSTRAPFS += libvirt
204 # DistributedRateLimiting
206 DistributedRateLimiting-MODULES := DistributedRateLimiting
207 DistributedRateLimiting-SPEC := DistributedRateLimiting.spec
208 ALL += DistributedRateLimiting
209 IN_NODEREPO += DistributedRateLimiting
214 pf2slice-MODULES := pf2slice
215 pf2slice-SPEC := pf2slice.spec
219 # PlanetLab Mom: Cleans up your mess
222 mom-SPEC := pl_mom.spec
224 IN_BOOTSTRAPFS += mom
227 # inotify-tools - local import
228 # rebuild this on centos5 (not found) - see kexcludes in build.common
230 local_inotify_tools=false
231 ifeq "$(DISTRONAME)" "centos5"
232 local_inotify_tools=true
235 ifeq "$(DISTRONAME)" "sl6"
236 local_inotify_tools=true
239 ifeq "$(local_inotify_tools)" "true"
240 inotify-tools-MODULES := inotify-tools
241 inotify-tools-SPEC := inotify-tools.spec
242 inotify-tools-BUILD-FROM-SRPM := yes
243 IN_BOOTSTRAPFS += inotify-tools
250 openvswitch-MODULES := openvswitch
251 openvswitch-SPEC := openvswitch.spec
252 openvswitch-DEPEND-DEVEL-RPMS += kernel-devel
253 IN_BOOTSTRAPFS += openvswitch
260 vsys-SPEC := vsys.spec
261 # ocaml-docs is not needed anymore but keep it on a tmp basis as some tags may still have it
262 vsys-DEVEL-RPMS += ocaml-ocamldoc ocaml-docs
263 ifeq "$(local_inotify_tools)" "true"
264 vsys-DEPEND-DEVEL-RPMS += inotify-tools inotify-tools-devel
266 IN_BOOTSTRAPFS += vsys
270 # vsyssh : installed in slivers
272 vsyssh-MODULES := vsys
273 vsyssh-SPEC := vsyssh.spec
280 vsys-scripts-MODULES := vsys-scripts
281 vsys-scripts-SPEC := vsys-scripts.spec
282 IN_BOOTSTRAPFS += vsys-scripts
288 plcapi-MODULES := plcapi
289 plcapi-SPEC := PLCAPI.spec
296 drupal-MODULES := drupal
297 drupal-SPEC := drupal.spec
298 drupal-BUILD-FROM-SRPM := yes
303 # use the plewww module instead
305 plewww-MODULES := plewww
306 plewww-SPEC := plewww.spec
311 # www-register-wizard
313 www-register-wizard-MODULES := www-register-wizard
314 www-register-wizard-SPEC := www-register-wizard.spec
315 ALL += www-register-wizard
316 IN_MYPLC += www-register-wizard
321 pcucontrol-MODULES := pcucontrol
322 pcucontrol-SPEC := pcucontrol.spec
328 monitor-MODULES := monitor
329 monitor-SPEC := Monitor.spec
330 monitor-DEVEL-RPMS += net-snmp net-snmp-devel
332 IN_BOOTSTRAPFS += monitor
337 plcrt-MODULES := PLCRT
338 plcrt-SPEC := plcrt.spec
341 # f12 has 0.9-1 already
342 ifeq "$(DISTRONAME)" "$(filter $(DISTRONAME),f8 centos5)"
346 pyopenssl-MODULES := pyopenssl
347 pyopenssl-SPEC := pyOpenSSL.spec
348 pyopenssl-BUILD-FROM-SRPM := yes
355 pyaspects-MODULES := pyaspects
356 pyaspects-SPEC := pyaspects.spec
357 pyaspects-BUILD-FROM-SRPM := yes
363 ejabberd-MODULES := ejabberd
364 ejabberd-SPEC := ejabberd.spec
365 ejabberd-BUILD-FROM-SRPM := yes
366 ejabberd-DEVEL-RPMS += erlang pam-devel hevea
367 # not needed anymore on f12 and above, that come with 2.1.5, and we had 2.1.3
368 # so, this is relevant on f8 and centos5 only
369 ifeq "$(DISTRONAME)" "$(filter $(DISTRONAME),f8 centos5)"
373 # sfa now uses the with statement that's not supported on python-2.4 - not even through __future__
375 ifeq "$(DISTRONAME)" "centos5"
379 ifeq "$(build_sfa)" "true"
381 # sfa - Slice Facility Architecture
388 sface-MODULES := sface
389 sface-SPEC := sface.spec
395 nodeconfig-MODULES := nodeconfig
396 nodeconfig-SPEC := nodeconfig.spec
398 IN_MYPLC += nodeconfig
403 bootmanager-MODULES := bootmanager
404 bootmanager-SPEC := bootmanager.spec
406 IN_MYPLC += bootmanager
409 # pypcilib : used in bootcd
411 pypcilib-MODULES := pypcilib
412 pypcilib-SPEC := pypcilib.spec
414 IN_BOOTCD += pypcilib
419 pyplnet-MODULES := pyplnet
420 pyplnet-SPEC := pyplnet.spec
422 IN_BOOTSTRAPFS += pyplnet
427 # OMF resource controller
429 omf-resctl-MODULES := omf
430 omf-resctl-SPEC := omf-resctl.spec
432 IN_VSERVER += omf-resctl
437 omf-expctl-MODULES := omf
438 omf-expctl-SPEC := omf-expctl.spec
444 bootcd-MODULES := bootcd build
445 bootcd-SPEC := bootcd.spec
446 bootcd-DEPEND-PACKAGES := $(IN_BOOTCD)
447 bootcd-DEPEND-FILES := RPMS/yumgroups.xml
448 bootcd-RPMDATE := yes
453 # vserver : reference image for slices
455 vserver-MODULES := vserver-reference build
456 vserver-SPEC := vserver-reference.spec
457 vserver-DEPEND-PACKAGES := $(IN_VSERVER)
458 vserver-DEPEND-FILES := RPMS/yumgroups.xml
459 vserver-RPMDATE := yes
461 IN_BOOTSTRAPFS += vserver
464 # LXC reference images
466 lxcref-MODULES := lxc-reference
467 lxcref-SPEC := lxc-reference.spec
469 IN_BOOTSTRAPFS += lxcref
474 bootstrapfs-MODULES := bootstrapfs build
475 bootstrapfs-SPEC := bootstrapfs.spec
476 bootstrapfs-DEPEND-PACKAGES := $(IN_BOOTSTRAPFS)
477 bootstrapfs-DEPEND-FILES := RPMS/yumgroups.xml
478 bootstrapfs-RPMDATE := yes
480 IN_MYPLC += bootstrapfs
485 # all rpms resulting from packages marked as being in bootstrapfs and vserver
486 NODEREPO_RPMS = $(foreach package,$(IN_BOOTSTRAPFS) $(IN_NODEREPO) $(IN_VSERVER),$($(package).rpms))
487 # replace space with +++ (specvars cannot deal with spaces)
489 NODEREPO_RPMS_3PLUS = $(subst $(SPACE),+++,$(NODEREPO_RPMS))
491 noderepo-MODULES := bootstrapfs
492 noderepo-SPEC := noderepo.spec
493 # package requires all embedded packages
494 noderepo-DEPEND-PACKAGES := $(IN_BOOTSTRAPFS) $(IN_NODEREPO) $(IN_VSERVER)
495 noderepo-DEPEND-FILES := RPMS/yumgroups.xml
496 #export rpm list to the specfile
497 noderepo-SPECVARS = node_rpms_plus=$(NODEREPO_RPMS_3PLUS)
498 noderepo-RPMDATE := yes
505 # all rpms resulting from packages marked as being in vserver
506 SLICEREPO_RPMS = $(foreach package,$(IN_VSERVER),$($(package).rpms))
507 # replace space with +++ (specvars cannot deal with spaces)
509 SLICEREPO_RPMS_3PLUS = $(subst $(SPACE),+++,$(SLICEREPO_RPMS))
511 slicerepo-MODULES := bootstrapfs
512 slicerepo-SPEC := slicerepo.spec
513 # package requires all embedded packages
514 slicerepo-DEPEND-PACKAGES := $(IN_VSERVER)
515 slicerepo-DEPEND-FILES := RPMS/yumgroups.xml
516 #export rpm list to the specfile
517 slicerepo-SPECVARS = slice_rpms_plus=$(SLICEREPO_RPMS_3PLUS)
518 slicerepo-RPMDATE := yes
522 # MyPLC : lightweight packaging, dependencies are yum-installed in a vserver
524 myplc-MODULES := myplc
525 myplc-SPEC := myplc.spec
526 myplc-DEPEND-FILES := myplc-release RPMS/yumgroups.xml
529 # myplc-docs only contains docs for PLCAPI and NMAPI, but
530 # we still need to pull MyPLC, as it is where the specfile lies,
531 # together with the utility script docbook2drupal.sh
532 myplc-docs-MODULES := myplc plcapi nodemanager monitor
533 myplc-docs-SPEC := myplc-docs.spec
536 # using some other name than myplc-release, as this is a make target already
537 release-MODULES := myplc
538 release-SPEC := myplc-release.spec
539 release-RPMDATE := yes