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-3
35 kernel-DEVEL-RPMS += gettext elfutils-devel
36 kernel-SPEC := kernel.spec
37 kernel-BUILD-FROM-SRPM := yes
38 ifeq "$(HOSTARCH)" "i386"
39 kernel-RPMFLAGS:= --target i686 --without tools --without debug --without debuginfo
41 kernel-RPMFLAGS:= --target $(HOSTARCH) --without tools --without debug --without debuginfo
43 kernel-SPECVARS += kernelconfig=planetlab
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)
58 # skip this with k32/f8
59 ifneq "" "$(findstring k32,$(PLDISTROTAGS))"
60 ifneq "$(DISTRONAME)" "f8"
61 madwifi-MODULES := madwifi
62 madwifi-SPEC := madwifi.spec
63 madwifi-BUILD-FROM-SRPM := yes
64 madwifi-DEPEND-DEVEL-RPMS += kernel-devel
65 madwifi-SPECVARS = kernel_version=$(kernel.rpm-version) \
66 kernel_release=$(kernel.rpm-release) \
67 kernel_arch=$(kernel.rpm-arch)
69 IN_BOOTSTRAPFS += madwifi
76 iptables-MODULES := iptables
77 iptables-SPEC := iptables.spec
78 iptables-BUILD-FROM-SRPM := yes
79 iptables-DEPEND-DEVEL-RPMS += kernel-devel kernel-headers
81 IN_BOOTSTRAPFS += iptables
86 iproute-MODULES := iproute2
87 iproute-SPEC := iproute.spec
88 iproute-BUILD-FROM-SRPM := yes
90 IN_BOOTSTRAPFS += iproute
97 util-vserver-MODULES := util-vserver
98 util-vserver-SPEC := util-vserver.spec
100 util-vserver-BUILD-FROM-SRPM := yes
101 util-vserver-RPMFLAGS:= --without dietlibc --without doc
103 IN_BOOTSTRAPFS += util-vserver
106 # libnl - local import
107 # we need either 1.1 or at least 1.0.pre6
108 # rebuild this on centos5 - see kexcludes in build.common
111 ifeq "$(DISTRONAME)" "centos5"
115 ifeq "$(local_libnl)" "true"
116 libnl-MODULES := libnl
117 libnl-SPEC := libnl.spec
118 libnl-BUILD-FROM-SRPM := yes
119 # this sounds like the thing to do, but in fact linux/if_vlan.h comes with kernel-headers
120 libnl-DEPEND-DEVEL-RPMS += kernel-devel kernel-headers
122 IN_BOOTSTRAPFS += libnl
128 util-vserver-pl-MODULES := util-vserver-pl
129 util-vserver-pl-SPEC := util-vserver-pl.spec
130 util-vserver-pl-DEPEND-DEVEL-RPMS += util-vserver-lib util-vserver-devel util-vserver-core
131 ifeq "$(local_libnl)" "true"
132 util-vserver-pl-DEPEND-DEVEL-RPMS += libnl libnl-devel
134 ALL += util-vserver-pl
135 IN_BOOTSTRAPFS += util-vserver-pl
140 nodeupdate-MODULES := nodeupdate
141 nodeupdate-SPEC := NodeUpdate.spec
143 IN_BOOTSTRAPFS += nodeupdate
148 ipod-MODULES := PingOfDeath
149 ipod-SPEC := ipod.spec
151 IN_BOOTSTRAPFS += ipod
156 nodemanager-MODULES := nodemanager
157 nodemanager-SPEC := NodeManager.spec
159 IN_BOOTSTRAPFS += nodemanager
164 sshd-MODULES := pl_sshd
165 sshd-SPEC := pl_sshd.spec
167 IN_BOOTSTRAPFS += sshd
170 # codemux: Port 80 demux
172 codemux-MODULES := codemux
173 codemux-SPEC := codemux.spec
175 IN_BOOTSTRAPFS += codemux
180 fprobe-ulog-MODULES := fprobe-ulog
181 fprobe-ulog-SPEC := fprobe-ulog.spec
183 IN_BOOTSTRAPFS += fprobe-ulog
188 libvirt-MODULES := libvirt
189 libvirt-SPEC := libvirt.spec
190 libvirt-BUILD-FROM-SRPM := yes
191 libvirt-DEVEL-RPMS += libxml2-devel gnutls-devel device-mapper-devel yajl-devel gettext
192 libvirt-DEVEL-RPMS += python-devel libcap-ng-devel libpciaccess-devel radvd numactl-devel
193 libvirt-DEVEL-RPMS += xhtml1-dtds libxslt libtasn1-devel systemtap-sdt-devel iptables-ipv6 augeas
194 libvirt-RPMFLAGS := --without storage-disk --without storage-iscsi --without storage-scsi \
195 --without storage-fs --without storage-lvm \
196 --without polkit --without sasl --without audit --with capng --with udev \
197 --without netcf --without avahi --without sanlock \
198 --without xen --without qemu --without hyperv --without phyp --without esx \
199 --define 'packager PlanetLab'
201 IN_NODEREPO += libvirt
202 IN_BOOTSTRAPFS += libvirt
205 # DistributedRateLimiting
207 DistributedRateLimiting-MODULES := DistributedRateLimiting
208 DistributedRateLimiting-SPEC := DistributedRateLimiting.spec
209 ALL += DistributedRateLimiting
210 IN_NODEREPO += DistributedRateLimiting
215 pf2slice-MODULES := pf2slice
216 pf2slice-SPEC := pf2slice.spec
220 # PlanetLab Mom: Cleans up your mess
223 mom-SPEC := pl_mom.spec
225 IN_BOOTSTRAPFS += mom
228 # inotify-tools - local import
229 # rebuild this on centos5 (not found) - see kexcludes in build.common
231 local_inotify_tools=false
232 ifeq "$(DISTRONAME)" "centos5"
233 local_inotify_tools=true
236 ifeq "$(DISTRONAME)" "sl6"
237 local_inotify_tools=true
240 ifeq "$(local_inotify_tools)" "true"
241 inotify-tools-MODULES := inotify-tools
242 inotify-tools-SPEC := inotify-tools.spec
243 inotify-tools-BUILD-FROM-SRPM := yes
244 IN_BOOTSTRAPFS += inotify-tools
251 openvswitch-MODULES := openvswitch
252 openvswitch-SPEC := openvswitch.spec
253 openvswitch-DEPEND-DEVEL-RPMS += kernel-devel
254 IN_BOOTSTRAPFS += openvswitch
261 vsys-SPEC := vsys.spec
262 # ocaml-docs is not needed anymore but keep it on a tmp basis as some tags may still have it
263 vsys-DEVEL-RPMS += ocaml-ocamldoc ocaml-docs
264 ifeq "$(local_inotify_tools)" "true"
265 vsys-DEPEND-DEVEL-RPMS += inotify-tools inotify-tools-devel
267 IN_BOOTSTRAPFS += vsys
271 # vsyssh : installed in slivers
273 vsyssh-MODULES := vsys
274 vsyssh-SPEC := vsyssh.spec
281 vsys-scripts-MODULES := vsys-scripts
282 vsys-scripts-SPEC := vsys-scripts.spec
283 IN_BOOTSTRAPFS += vsys-scripts
289 plcapi-MODULES := plcapi
290 plcapi-SPEC := PLCAPI.spec
297 drupal-MODULES := drupal
298 drupal-SPEC := drupal.spec
299 drupal-BUILD-FROM-SRPM := yes
304 # use the plewww module instead
306 plewww-MODULES := plewww
307 plewww-SPEC := plewww.spec
312 # www-register-wizard
314 www-register-wizard-MODULES := www-register-wizard
315 www-register-wizard-SPEC := www-register-wizard.spec
316 ALL += www-register-wizard
317 IN_MYPLC += www-register-wizard
322 pcucontrol-MODULES := pcucontrol
323 pcucontrol-SPEC := pcucontrol.spec
329 monitor-MODULES := monitor
330 monitor-SPEC := Monitor.spec
331 monitor-DEVEL-RPMS += net-snmp net-snmp-devel
333 IN_BOOTSTRAPFS += monitor
338 plcrt-MODULES := PLCRT
339 plcrt-SPEC := plcrt.spec
342 # f12 has 0.9-1 already
343 ifeq "$(DISTRONAME)" "$(filter $(DISTRONAME),f8 centos5)"
347 pyopenssl-MODULES := pyopenssl
348 pyopenssl-SPEC := pyOpenSSL.spec
349 pyopenssl-BUILD-FROM-SRPM := yes
356 pyaspects-MODULES := pyaspects
357 pyaspects-SPEC := pyaspects.spec
358 pyaspects-BUILD-FROM-SRPM := yes
364 ejabberd-MODULES := ejabberd
365 ejabberd-SPEC := ejabberd.spec
366 ejabberd-BUILD-FROM-SRPM := yes
367 ejabberd-DEVEL-RPMS += erlang pam-devel hevea
368 # not needed anymore on f12 and above, that come with 2.1.5, and we had 2.1.3
369 # so, this is relevant on f8 and centos5 only
370 ifeq "$(DISTRONAME)" "$(filter $(DISTRONAME),f8 centos5)"
374 # sfa now uses the with statement that's not supported on python-2.4 - not even through __future__
376 ifeq "$(DISTRONAME)" "centos5"
380 ifeq "$(build_sfa)" "true"
382 # sfa - Slice Facility Architecture
389 sface-MODULES := sface
390 sface-SPEC := sface.spec
396 nodeconfig-MODULES := nodeconfig
397 nodeconfig-SPEC := nodeconfig.spec
399 IN_MYPLC += nodeconfig
404 bootmanager-MODULES := bootmanager
405 bootmanager-SPEC := bootmanager.spec
407 IN_MYPLC += bootmanager
410 # pypcilib : used in bootcd
412 pypcilib-MODULES := pypcilib
413 pypcilib-SPEC := pypcilib.spec
415 IN_BOOTCD += pypcilib
420 pyplnet-MODULES := pyplnet
421 pyplnet-SPEC := pyplnet.spec
423 IN_BOOTSTRAPFS += pyplnet
428 # OMF resource controller
430 omf-resctl-MODULES := omf
431 omf-resctl-SPEC := omf-resctl.spec
433 IN_VSERVER += omf-resctl
438 omf-expctl-MODULES := omf
439 omf-expctl-SPEC := omf-expctl.spec
445 bootcd-MODULES := bootcd build
446 bootcd-SPEC := bootcd.spec
447 bootcd-DEPEND-PACKAGES := $(IN_BOOTCD)
448 bootcd-DEPEND-FILES := RPMS/yumgroups.xml
449 bootcd-RPMDATE := yes
454 # vserver : reference image for slices
456 vserver-MODULES := vserver-reference build
457 vserver-SPEC := vserver-reference.spec
458 vserver-DEPEND-PACKAGES := $(IN_VSERVER)
459 vserver-DEPEND-FILES := RPMS/yumgroups.xml
460 vserver-RPMDATE := yes
462 IN_BOOTSTRAPFS += vserver
465 # LXC reference images
467 lxcref-MODULES := lxc-reference
468 lxcref-SPEC := lxc-reference.spec
470 IN_BOOTSTRAPFS += lxcref
475 bootstrapfs-MODULES := bootstrapfs build
476 bootstrapfs-SPEC := bootstrapfs.spec
477 bootstrapfs-DEPEND-PACKAGES := $(IN_BOOTSTRAPFS)
478 bootstrapfs-DEPEND-FILES := RPMS/yumgroups.xml
479 bootstrapfs-RPMDATE := yes
481 IN_MYPLC += bootstrapfs
486 # all rpms resulting from packages marked as being in bootstrapfs and vserver
487 NODEREPO_RPMS = $(foreach package,$(IN_BOOTSTRAPFS) $(IN_NODEREPO) $(IN_VSERVER),$($(package).rpms))
488 # replace space with +++ (specvars cannot deal with spaces)
490 NODEREPO_RPMS_3PLUS = $(subst $(SPACE),+++,$(NODEREPO_RPMS))
492 noderepo-MODULES := bootstrapfs
493 noderepo-SPEC := noderepo.spec
494 # package requires all embedded packages
495 noderepo-DEPEND-PACKAGES := $(IN_BOOTSTRAPFS) $(IN_NODEREPO) $(IN_VSERVER)
496 noderepo-DEPEND-FILES := RPMS/yumgroups.xml
497 #export rpm list to the specfile
498 noderepo-SPECVARS = node_rpms_plus=$(NODEREPO_RPMS_3PLUS)
499 noderepo-RPMDATE := yes
506 # all rpms resulting from packages marked as being in vserver
507 SLICEREPO_RPMS = $(foreach package,$(IN_VSERVER),$($(package).rpms))
508 # replace space with +++ (specvars cannot deal with spaces)
510 SLICEREPO_RPMS_3PLUS = $(subst $(SPACE),+++,$(SLICEREPO_RPMS))
512 slicerepo-MODULES := bootstrapfs
513 slicerepo-SPEC := slicerepo.spec
514 # package requires all embedded packages
515 slicerepo-DEPEND-PACKAGES := $(IN_VSERVER)
516 slicerepo-DEPEND-FILES := RPMS/yumgroups.xml
517 #export rpm list to the specfile
518 slicerepo-SPECVARS = slice_rpms_plus=$(SLICEREPO_RPMS_3PLUS)
519 slicerepo-RPMDATE := yes
523 # MyPLC : lightweight packaging, dependencies are yum-installed in a vserver
525 myplc-MODULES := myplc
526 myplc-SPEC := myplc.spec
527 myplc-DEPEND-FILES := myplc-release RPMS/yumgroups.xml
530 # myplc-docs only contains docs for PLCAPI and NMAPI, but
531 # we still need to pull MyPLC, as it is where the specfile lies,
532 # together with the utility script docbook2drupal.sh
533 myplc-docs-MODULES := myplc plcapi nodemanager monitor
534 myplc-docs-SPEC := myplc-docs.spec
537 # using some other name than myplc-release, as this is a make target already
538 release-MODULES := myplc
539 release-SPEC := myplc-release.spec
540 release-RPMDATE := yes