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)
45 kernels-clean: $(foreach package,$(KERNELS),$(package)-clean)
48 # this is to mark on which image a given rpm is supposed to go
49 IN_BOOTCD += $(KERNELS)
50 IN_VSERVER += $(KERNELS)
51 IN_BOOTSTRAPFS += $(KERNELS)
52 # turns out myplc installs kernel-vserver
53 IN_MYPLC += $(KERNELS)
59 ifeq "$(PLDISTROTAGS)" "planetlab-k32-tags.mk"
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 util-vserver-MODULES := util-vserver
77 util-vserver-SPEC := util-vserver.spec
78 util-vserver-BUILD-FROM-SRPM := yes
79 util-vserver-RPMFLAGS:= --without dietlibc --without doc
81 IN_BOOTSTRAPFS += util-vserver
84 # libnl - local import
85 # we need either 1.1 or at least 1.0.pre6
86 # rebuild this on centos5 - see kexcludes in build.common
89 ifeq "$(DISTRONAME)" "centos5"
93 ifeq "$(local_libnl)" "true"
94 libnl-MODULES := libnl
95 libnl-SPEC := libnl.spec
96 libnl-BUILD-FROM-SRPM := yes
97 # this sounds like the thing to do, but in fact linux/if_vlan.h comes with kernel-headers
98 libnl-DEPEND-DEVEL-RPMS += kernel-devel kernel-headers
100 IN_BOOTSTRAPFS += libnl
106 util-vserver-pl-MODULES := util-vserver-pl
107 util-vserver-pl-SPEC := util-vserver-pl.spec
108 util-vserver-pl-DEPEND-DEVEL-RPMS += util-vserver-lib util-vserver-devel util-vserver-core
109 ifeq "$(local_libnl)" "true"
110 util-vserver-pl-DEPEND-DEVEL-RPMS += libnl libnl-devel
112 ALL += util-vserver-pl
113 IN_BOOTSTRAPFS += util-vserver-pl
118 nodeupdate-MODULES := nodeupdate
119 nodeupdate-SPEC := NodeUpdate.spec
121 IN_BOOTSTRAPFS += nodeupdate
126 ipod-MODULES := PingOfDeath
127 ipod-SPEC := ipod.spec
129 IN_BOOTSTRAPFS += ipod
134 nodemanager-MODULES := nodemanager
135 nodemanager-SPEC := NodeManager.spec
137 IN_BOOTSTRAPFS += nodemanager
142 sshd-MODULES := pl_sshd
143 sshd-SPEC := pl_sshd.spec
145 IN_BOOTSTRAPFS += sshd
148 # codemux: Port 80 demux
150 codemux-MODULES := codemux
151 codemux-SPEC := codemux.spec
153 IN_BOOTSTRAPFS += codemux
158 fprobe-ulog-MODULES := fprobe-ulog
159 fprobe-ulog-SPEC := fprobe-ulog.spec
161 IN_BOOTSTRAPFS += fprobe-ulog
164 # DistributedRateLimiting
166 DistributedRateLimiting-MODULES := DistributedRateLimiting
167 DistributedRateLimiting-SPEC := DistributedRateLimiting.spec
168 ALL += DistributedRateLimiting
169 IN_NODEREPO += DistributedRateLimiting
174 pf2slice-MODULES := pf2slice
175 pf2slice-SPEC := pf2slice.spec
179 # PlanetLab Mom: Cleans up your mess
182 mom-SPEC := pl_mom.spec
184 IN_BOOTSTRAPFS += mom
189 iptables-MODULES := iptables
190 iptables-SPEC := iptables.spec
191 iptables-BUILD-FROM-SRPM := yes
192 iptables-DEPEND-DEVEL-RPMS += kernel-devel kernel-headers
194 IN_BOOTSTRAPFS += iptables
199 iproute-MODULES := iproute2
200 iproute-SPEC := iproute.spec
201 iproute-BUILD-FROM-SRPM := yes
203 IN_BOOTSTRAPFS += iproute
204 IN_VSERVER += iproute
208 # inotify-tools - local import
209 # rebuild this on centos5 (not found) - see kexcludes in build.common
211 local_inotify_tools=false
212 ifeq "$(DISTRONAME)" "centos5"
213 local_inotify_tools=true
216 ifeq "$(DISTRONAME)" "sl6"
217 local_inotify_tools=true
220 ifeq "$(local_inotify_tools)" "true"
221 inotify-tools-MODULES := inotify-tools
222 inotify-tools-SPEC := inotify-tools.spec
223 inotify-tools-BUILD-FROM-SRPM := yes
224 IN_BOOTSTRAPFS += inotify-tools
231 openvswitch-MODULES := openvswitch
232 openvswitch-SPEC := openvswitch.spec
233 openvswitch-DEPEND-DEVEL-RPMS += kernel-devel
234 IN_BOOTSTRAPFS += openvswitch
241 vsys-SPEC := vsys.spec
242 # ocaml-docs is not needed anymore but keep it on a tmp basis as some tags may still have it
243 vsys-DEVEL-RPMS += ocaml-ocamldoc ocaml-docs
244 ifeq "$(local_inotify_tools)" "true"
245 vsys-DEPEND-DEVEL-RPMS += inotify-tools inotify-tools-devel
247 IN_BOOTSTRAPFS += vsys
253 vsys-scripts-MODULES := vsys-scripts
254 vsys-scripts-SPEC := vsys-scripts.spec
255 IN_BOOTSTRAPFS += vsys-scripts
261 plcapi-MODULES := plcapi
262 plcapi-SPEC := PLCAPI.spec
269 drupal-MODULES := drupal
270 drupal-SPEC := drupal.spec
271 drupal-BUILD-FROM-SRPM := yes
276 # use the plewww module instead
278 plewww-MODULES := plewww
279 plewww-SPEC := plewww.spec
284 # www-register-wizard
286 www-register-wizard-MODULES := www-register-wizard
287 www-register-wizard-SPEC := www-register-wizard.spec
288 ALL += www-register-wizard
289 IN_MYPLC += www-register-wizard
294 pcucontrol-MODULES := pcucontrol
295 pcucontrol-SPEC := pcucontrol.spec
301 monitor-MODULES := monitor
302 monitor-SPEC := Monitor.spec
303 monitor-DEVEL-RPMS += net-snmp net-snmp-devel
305 IN_BOOTSTRAPFS += monitor
310 plcrt-MODULES := PLCRT
311 plcrt-SPEC := plcrt.spec
317 pyopenssl-MODULES := pyopenssl
318 pyopenssl-SPEC := pyOpenSSL.spec
319 pyopenssl-BUILD-FROM-SRPM := yes
326 pyaspects-MODULES := pyaspects
327 pyaspects-SPEC := pyaspects.spec
328 pyaspects-BUILD-FROM-SRPM := yes
334 ejabberd-MODULES := ejabberd
335 ejabberd-SPEC := ejabberd.spec
336 ejabberd-BUILD-FROM-SRPM := yes
337 ejabberd-DEVEL-RPMS += erlang pam-devel hevea
338 # not needed anymore on f12 and above, that come with 2.1.5, and we had 2.1.3
339 # so, this is relevant on f8 and centos5 only
340 ifeq "$(DISTRONAME)" "$(filter $(DISTRONAME),f8 centos5)"
344 # sfa now uses the with statement that's not supported on python-2.4 - not even through __future__
346 ifeq "$(DISTRONAME)" "centos5"
350 ifeq "$(build_sfa)" "true"
352 # sfa - Slice Facility Architecture
359 sface-MODULES := sface
360 sface-SPEC := sface.spec
366 # xxx needed when upgrading to 5.0
367 #nodeconfig-MODULES := nodeconfig
368 nodeconfig-MODULES := nodeconfig
369 nodeconfig-SPEC := nodeconfig.spec
371 IN_MYPLC += nodeconfig
376 bootmanager-MODULES := bootmanager
377 bootmanager-SPEC := bootmanager.spec
379 IN_MYPLC += bootmanager
382 # pypcilib : used in bootcd
384 pypcilib-MODULES := pypcilib
385 pypcilib-SPEC := pypcilib.spec
387 IN_BOOTCD += pypcilib
392 pyplnet-MODULES := pyplnet
393 pyplnet-SPEC := pyplnet.spec
395 IN_BOOTSTRAPFS += pyplnet
401 # OMF resource controller
403 omf-resctl-MODULES := omf
404 omf-resctl-SPEC := omf-resctl.spec
406 IN_VSERVER += omf-resctl
411 omf-expctl-MODULES := omf
412 omf-expctl-SPEC := omf-expctl.spec
419 bootcd-MODULES := bootcd build
420 bootcd-SPEC := bootcd.spec
421 bootcd-DEPEND-PACKAGES := $(IN_BOOTCD)
422 bootcd-DEPEND-FILES := RPMS/yumgroups.xml
423 bootcd-RPMDATE := yes
428 # vserver : reference image for slices
430 vserver-MODULES := vserver-reference build
431 vserver-SPEC := vserver-reference.spec
432 vserver-DEPEND-PACKAGES := $(IN_VSERVER)
433 vserver-DEPEND-FILES := RPMS/yumgroups.xml
434 vserver-RPMDATE := yes
436 IN_BOOTSTRAPFS += vserver
441 bootstrapfs-MODULES := bootstrapfs build
442 bootstrapfs-SPEC := bootstrapfs.spec
443 bootstrapfs-DEPEND-PACKAGES := $(IN_BOOTSTRAPFS)
444 bootstrapfs-DEPEND-FILES := RPMS/yumgroups.xml
445 bootstrapfs-RPMDATE := yes
447 IN_MYPLC += bootstrapfs
452 # all rpms resulting from packages marked as being in bootstrapfs and vserver
453 NODEREPO_RPMS = $(foreach package,$(IN_BOOTSTRAPFS) $(IN_NODEREPO) $(IN_VSERVER),$($(package).rpms))
454 # replace space with +++ (specvars cannot deal with spaces)
456 NODEREPO_RPMS_3PLUS = $(subst $(SPACE),+++,$(NODEREPO_RPMS))
458 noderepo-MODULES := bootstrapfs
459 noderepo-SPEC := noderepo.spec
460 # package requires all regular packages
461 noderepo-DEPEND-PACKAGES := $(IN_BOOTSTRAPFS) $(IN_NODEREPO) $(IN_VSERVER)
462 noderepo-DEPEND-FILES := RPMS/yumgroups.xml
463 #export rpm list to the specfile
464 noderepo-SPECVARS = node_rpms_plus=$(NODEREPO_RPMS_3PLUS)
465 noderepo-RPMDATE := yes
470 # MyPLC : lightweight packaging, dependencies are yum-installed in a vserver
472 myplc-MODULES := myplc
473 myplc-SPEC := myplc.spec
474 myplc-DEPEND-FILES := myplc-release RPMS/yumgroups.xml
477 # myplc-docs only contains docs for PLCAPI and NMAPI, but
478 # we still need to pull MyPLC, as it is where the specfile lies,
479 # together with the utility script docbook2drupal.sh
480 myplc-docs-MODULES := myplc plcapi nodemanager monitor
481 myplc-docs-SPEC := myplc-docs.spec
484 # using some other name than myplc-release, as this is a make target already
485 release-MODULES := myplc
486 release-SPEC := myplc-release.spec
487 release-RPMDATE := yes