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
362 # xxx needed when upgrading to 5.0
363 #nodeconfig-MODULES := nodeconfig
364 nodeconfig-MODULES := nodeconfig
365 nodeconfig-SPEC := nodeconfig.spec
367 IN_MYPLC += nodeconfig
372 bootmanager-MODULES := bootmanager
373 bootmanager-SPEC := bootmanager.spec
375 IN_MYPLC += bootmanager
378 # pypcilib : used in bootcd
380 pypcilib-MODULES := pypcilib
381 pypcilib-SPEC := pypcilib.spec
383 IN_BOOTCD += pypcilib
388 pyplnet-MODULES := pyplnet
389 pyplnet-SPEC := pyplnet.spec
391 IN_BOOTSTRAPFS += pyplnet
397 # OMF resource controller
399 omf-resctl-MODULES := omf
400 omf-resctl-SPEC := omf-resctl.spec
402 IN_VSERVER += omf-resctl
407 omf-expctl-MODULES := omf
408 omf-expctl-SPEC := omf-expctl.spec
415 bootcd-MODULES := bootcd build
416 bootcd-SPEC := bootcd.spec
417 bootcd-DEPEND-PACKAGES := $(IN_BOOTCD)
418 bootcd-DEPEND-FILES := RPMS/yumgroups.xml
419 bootcd-RPMDATE := yes
424 # vserver : reference image for slices
426 vserver-MODULES := vserver-reference build
427 vserver-SPEC := vserver-reference.spec
428 vserver-DEPEND-PACKAGES := $(IN_VSERVER)
429 vserver-DEPEND-FILES := RPMS/yumgroups.xml
430 vserver-RPMDATE := yes
432 IN_BOOTSTRAPFS += vserver
437 bootstrapfs-MODULES := bootstrapfs build
438 bootstrapfs-SPEC := bootstrapfs.spec
439 bootstrapfs-DEPEND-PACKAGES := $(IN_BOOTSTRAPFS)
440 bootstrapfs-DEPEND-FILES := RPMS/yumgroups.xml
441 bootstrapfs-RPMDATE := yes
443 IN_MYPLC += bootstrapfs
448 # all rpms resulting from packages marked as being in bootstrapfs and vserver
449 NODEREPO_RPMS = $(foreach package,$(IN_BOOTSTRAPFS) $(IN_NODEREPO) $(IN_VSERVER),$($(package).rpms))
450 # replace space with +++ (specvars cannot deal with spaces)
452 NODEREPO_RPMS_3PLUS = $(subst $(SPACE),+++,$(NODEREPO_RPMS))
454 noderepo-MODULES := bootstrapfs
455 noderepo-SPEC := noderepo.spec
456 # package requires all regular packages
457 noderepo-DEPEND-PACKAGES := $(IN_BOOTSTRAPFS) $(IN_NODEREPO) $(IN_VSERVER)
458 noderepo-DEPEND-FILES := RPMS/yumgroups.xml
459 #export rpm list to the specfile
460 noderepo-SPECVARS = node_rpms_plus=$(NODEREPO_RPMS_3PLUS)
461 noderepo-RPMDATE := yes
466 # MyPLC : lightweight packaging, dependencies are yum-installed in a vserver
468 myplc-MODULES := myplc
469 myplc-SPEC := myplc.spec
470 myplc-DEPEND-FILES := myplc-release RPMS/yumgroups.xml
473 # myplc-docs only contains docs for PLCAPI and NMAPI, but
474 # we still need to pull MyPLC, as it is where the specfile lies,
475 # together with the utility script docbook2drupal.sh
476 myplc-docs-MODULES := myplc plcapi nodemanager monitor
477 myplc-docs-SPEC := myplc-docs.spec
480 # using some other name than myplc-release, as this is a make target already
481 release-MODULES := myplc
482 release-SPEC := myplc-release.spec
483 release-RPMDATE := yes