4 # declare the packages to be built and their dependencies
5 # initial version from Mark Huang
6 # Mark Huang <mlhuang@cs.princeton.edu>
7 # Copyright (C) 2003-2006 The Trustees of Princeton University
8 # rewritten by Thierry Parmentelat - INRIA Sophia Antipolis
16 # use a package name with srpm in it:
17 # so the source rpm is created by running make srpm in the codebase
20 kernel-MODULES := linux-2.6
21 kernel-SPEC := kernel-2.6.spec
22 kernel-BUILD-FROM-SRPM := yes
23 ifeq "$(HOSTARCH)" "i386"
24 kernel-RPMFLAGS:= --target i686
26 kernel-RPMFLAGS:= --target $(HOSTARCH)
28 # this is useful for 2.6.22 but will not be needed anymore with 2.6.27
29 kernel-SPECVARS += iwlwifi=1
30 kernel-SPECVARS += kernelconfig=planetlab
34 kernels-clean: $(foreach package,$(KERNELS),$(package)-clean)
37 # this is to mark on which image a given rpm is supposed to go
38 IN_BOOTCD += $(KERNELS)
39 IN_VSERVER += $(KERNELS)
40 IN_BOOTSTRAPFS += $(KERNELS)
43 # ipfw: root context module, and slice companion
45 ipfwroot-MODULES := ipfwsrc
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)
53 ipfwslice-MODULES := ipfwsrc
54 ipfwslice-SPEC := planetlab/ipfwslice.spec
55 ipfwslice-SPECVARS = kernel_version=$(kernel.rpm-version) \
56 kernel_release=$(kernel.rpm-release) \
57 kernel_arch=$(kernel.rpm-arch)
60 # this doesn't build on f12 - weird all right - I suspect gcc to be smarter but that needs investigation
61 # is madwifi still current anyway ? should we move to ath5k instead ?
62 #ifneq "$(DISTRONAME)" "f12"
66 madwifi-MODULES := madwifi
67 madwifi-SPEC := madwifi.spec
68 madwifi-BUILD-FROM-SRPM := yes
69 madwifi-DEPEND-DEVEL-RPMS := kernel-devel
70 madwifi-SPECVARS = kernel_version=$(kernel.rpm-version) \
71 kernel_release=$(kernel.rpm-release) \
72 kernel_arch=$(kernel.rpm-arch)
74 IN_BOOTSTRAPFS += madwifi
80 nozomi-MODULES := nozomi
81 nozomi-SPEC := nozomi.spec
82 nozomi-DEPEND-DEVEL-RPMS := kernel-devel
83 nozomi-SPECVARS = kernel_version=$(kernel.rpm-version) \
84 kernel_release=$(kernel.rpm-release) \
85 kernel_arch=$(kernel.rpm-arch)
86 IN_BOOTSTRAPFS += nozomi
92 comgt-MODULES := comgt
93 comgt-SPEC := comgt.spec
94 IN_BOOTSTRAPFS += comgt
98 # umts: root context stuff
100 umts-backend-MODULES := planetlab-umts-tools
101 umts-backend-SPEC := backend.spec
102 IN_BOOTSTRAPFS += umts-backend
108 umts-frontend-MODULES := planetlab-umts-tools
109 umts-frontend-SPEC := frontend.spec
110 IN_VSERVER += umts-frontend
116 iptables-MODULES := iptables
117 iptables-SPEC := iptables.spec
118 iptables-DEPEND-DEVEL-RPMS := kernel-devel kernel-headers
120 IN_BOOTSTRAPFS += iptables
125 iproute-MODULES := iproute2
126 iproute-SPEC := iproute.spec
128 IN_BOOTSTRAPFS += iproute
129 IN_VSERVER += iproute
135 util-vserver-MODULES := util-vserver
136 util-vserver-SPEC := util-vserver.spec
137 util-vserver-RPMFLAGS:= --without dietlibc
139 IN_BOOTSTRAPFS += util-vserver
142 # libnl - local import
143 # we need either 1.1 or at least 1.0.pre6
144 # rebuild this on centos5 - see kexcludes in build.common
147 ifeq "$(DISTRONAME)" "centos5"
151 ifeq "$(local_libnl)" "true"
152 libnl-MODULES := libnl
153 libnl-SPEC := libnl.spec
154 libnl-BUILD-FROM-SRPM := yes
155 # this sounds like the thing to do, but in fact linux/if_vlan.h comes with kernel-headers
156 libnl-DEPEND-DEVEL-RPMS := kernel-devel kernel-headers
158 IN_BOOTSTRAPFS += libnl
164 util-vserver-pl-MODULES := util-vserver-pl
165 util-vserver-pl-SPEC := util-vserver-pl.spec
166 util-vserver-pl-DEPEND-DEVEL-RPMS := util-vserver-lib util-vserver-devel util-vserver-core
167 ifeq "$(local_libnl)" "true"
168 util-vserver-pl-DEPEND-DEVEL-RPMS += libnl libnl-devel
170 ALL += util-vserver-pl
171 IN_BOOTSTRAPFS += util-vserver-pl
176 nodeupdate-MODULES := NodeUpdate
177 nodeupdate-SPEC := NodeUpdate.spec
179 IN_BOOTSTRAPFS += nodeupdate
184 ipod-MODULES := PingOfDeath
185 ipod-SPEC := ipod.spec
187 IN_BOOTSTRAPFS += ipod
192 nodemanager-MODULES := NodeManager
193 nodemanager-SPEC := NodeManager.spec
195 IN_BOOTSTRAPFS += nodemanager
200 sshd-MODULES := pl_sshd
201 sshd-SPEC := pl_sshd.spec
203 IN_BOOTSTRAPFS += sshd
206 # codemux: Port 80 demux
208 codemux-MODULES := CoDemux
209 codemux-SPEC := codemux.spec
210 #codemux-RPMBUILD := bash ./rpmbuild.sh
212 IN_BOOTSTRAPFS += codemux
217 fprobe-ulog-MODULES := fprobe-ulog
218 fprobe-ulog-SPEC := fprobe-ulog.spec
220 IN_BOOTSTRAPFS += fprobe-ulog
225 pf2slice-MODULES := pf2slice
226 pf2slice-SPEC := pf2slice.spec
230 # PlanetLab Mom: Cleans up your mess
233 mom-SPEC := pl_mom.spec
235 IN_BOOTSTRAPFS += mom
238 # inotify-tools - local import
239 # rebuild this on centos5 (not found) - see kexcludes in build.common
241 local_inotify_tools=false
242 ifeq "$(DISTRONAME)" "centos5"
243 local_inotify_tools=true
246 ifeq "$(local_inotify_tools)" "true"
247 inotify-tools-MODULES := inotify-tools
248 inotify-tools-SPEC := inotify-tools.spec
249 inotify-tools-BUILD-FROM-SRPM := yes
250 IN_BOOTSTRAPFS += inotify-tools
258 vsys-SPEC := vsys.spec
259 ifeq "$(local_inotify_tools)" "true"
260 vsys-DEPEND-DEVEL-RPMS := inotify-tools inotify-tools-devel
262 IN_BOOTSTRAPFS += vsys
268 vsys-scripts-MODULES := vsys-scripts
269 vsys-scripts-SPEC := vsys-scripts.spec
270 IN_BOOTSTRAPFS += vsys-scripts
276 plcapi-MODULES := PLCAPI
277 plcapi-SPEC := PLCAPI.spec
283 drupal-MODULES := drupal
284 drupal-SPEC := drupal.spec
285 drupal-BUILD-FROM-SRPM := yes
289 # use the plewww module instead
291 plewww-MODULES := PLEWWW
292 plewww-SPEC := plewww.spec
296 # www-register-wizard
298 www-register-wizard-MODULES := www-register-wizard
299 www-register-wizard-SPEC := www-register-wizard.spec
300 ALL += www-register-wizard
305 pcucontrol-MODULES := pcucontrol
306 pcucontrol-SPEC := pcucontrol.spec
312 monitor-MODULES := Monitor
313 monitor-SPEC := Monitor.spec
315 IN_BOOTSTRAPFS += monitor
320 zabbix-MODULES := Monitor
321 zabbix-SPEC := zabbix.spec
322 zabbix-BUILD-FROM-SRPM := yes
328 plcrt-MODULES := PLCRT
329 plcrt-SPEC := plcrt.spec
335 pyopenssl-MODULES := pyopenssl
336 pyopenssl-SPEC := pyOpenSSL.spec
337 pyopenssl-BUILD-FROM-SRPM := yes
343 pyaspects-MODULES := pyaspects
344 pyaspects-SPEC := pyaspects.spec
345 pyaspects-BUILD-FROM-SRPM := yes
351 ejabberd-MODULES := ejabberd
352 ejabberd-SPEC := ejabberd.spec
353 ejabberd-BUILD-FROM-SRPM := yes
357 # sfa - Slice Facility Architecture
366 nodeconfig-MODULES := nodeconfig
367 nodeconfig-SPEC := nodeconfig.spec
373 bootmanager-MODULES := BootManager
374 bootmanager-SPEC := bootmanager.spec
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
395 # OMF resource controller
397 omf-resctl-MODULES := omf
398 omf-resctl-SPEC := omf-resctl.spec
400 IN_VSERVER += omf-resctl
405 bootcd-MODULES := BootCD build
406 bootcd-SPEC := bootcd.spec
407 bootcd-RPMBUILD := bash ./rpmbuild.sh
408 bootcd-DEPEND-PACKAGES := $(IN_BOOTCD)
409 bootcd-DEPEND-FILES := RPMS/yumgroups.xml
410 bootcd-RPMDATE := yes
414 # vserver : reference image for slices
416 vserver-MODULES := VserverReference build
417 vserver-SPEC := vserver-reference.spec
418 vserver-DEPEND-PACKAGES := $(IN_VSERVER)
419 vserver-DEPEND-FILES := RPMS/yumgroups.xml
420 vserver-RPMDATE := yes
422 IN_BOOTSTRAPFS += vserver
427 bootstrapfs-MODULES := BootstrapFS build
428 bootstrapfs-SPEC := bootstrapfs.spec
429 bootstrapfs-RPMBUILD := bash ./rpmbuild.sh
430 bootstrapfs-DEPEND-PACKAGES := $(IN_BOOTSTRAPFS)
431 bootstrapfs-DEPEND-FILES := RPMS/yumgroups.xml
432 bootstrapfs-RPMDATE := yes
438 # all rpms resulting from packages marked as being in bootstrapfs and vserver
439 NODEREPO_RPMS = $(foreach package,$(IN_BOOTSTRAPFS) $(IN_VSERVER),$($(package).rpms))
440 # replace space with +++ (specvars cannot deal with spaces)
442 NODEREPO_RPMS_3PLUS = $(subst $(SPACE),+++,$(NODEREPO_RPMS))
444 noderepo-MODULES := BootstrapFS
445 noderepo-SPEC := noderepo.spec
446 noderepo-RPMBUILD := bash ./rpmbuild.sh
447 # package requires all embedded packages
448 noderepo-DEPEND-PACKAGES := $(IN_BOOTSTRAPFS) $(IN_VSERVER)
449 noderepo-DEPEND-FILES := RPMS/yumgroups.xml
450 #export rpm list to the specfile
451 noderepo-SPECVARS = node_rpms_plus=$(NODEREPO_RPMS_3PLUS)
452 noderepo-RPMDATE := yes
458 # all rpms resulting from packages marked as being in vserver
459 SLICEREPO_RPMS = $(foreach package,$(IN_VSERVER),$($(package).rpms))
460 # replace space with +++ (specvars cannot deal with spaces)
462 SLICEREPO_RPMS_3PLUS = $(subst $(SPACE),+++,$(SLICEREPO_RPMS))
464 slicerepo-MODULES := BootstrapFS
465 slicerepo-SPEC := slicerepo.spec
466 slicerepo-RPMBUILD := bash ./rpmbuild.sh
467 # package requires all embedded packages
468 slicerepo-DEPEND-PACKAGES := $(IN_VSERVER)
469 slicerepo-DEPEND-FILES := RPMS/yumgroups.xml
470 #export rpm list to the specfile
471 slicerepo-SPECVARS = slice_rpms_plus=$(SLICEREPO_RPMS_3PLUS)
472 slicerepo-RPMDATE := yes
476 # MyPLC : lightweight packaging, dependencies are yum-installed in a vserver
478 myplc-MODULES := MyPLC
479 myplc-SPEC := myplc.spec
480 myplc-DEPEND-FILES := myplc-release RPMS/yumgroups.xml
483 # myplc-docs only contains docs for PLCAPI and NMAPI, but
484 # we still need to pull MyPLC, as it is where the specfile lies,
485 # together with the utility script docbook2drupal.sh
486 myplc-docs-MODULES := MyPLC PLCAPI NodeManager Monitor
487 myplc-docs-SPEC := myplc-docs.spec
490 # using some other name than myplc-release, as this is a make target already
491 release-MODULES := MyPLC
492 release-SPEC := myplc-release.spec
493 release-RPMDATE := yes