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
14 # use a package name with srpm in it:
15 # so the source rpm is created by running make srpm in the codebase
18 kernel-MODULES := linux-2.6
19 kernel-SPEC := kernel-2.6.spec
20 kernel-BUILD-FROM-SRPM := yes
21 ifeq "$(HOSTARCH)" "i386"
22 kernel-RPMFLAGS:= --target i686
24 kernel-RPMFLAGS:= --target $(HOSTARCH)
26 kernel-SPECVARS += kernelconfig=planetlab
29 kernel-STOCK-DEVEL-RPMS += elfutils-libelf-devel
30 # help out spec2make on f8 and centos5, due to a bug in rpm
31 # ditto on f16 for spec2make.py - tmp hopefully
32 ifeq "$(DISTRONAME)" "$(filter $(DISTRONAME),f8 f16 centos5)"
33 kernel-WHITELIST-RPMS := kernel-devel,kernel-headers
37 kernels-clean: $(foreach package,$(KERNELS),$(package)-clean)
40 # this is to mark on which image a given rpm is supposed to go
41 IN_BOOTCD += $(KERNELS)
42 #IN_SLICEIMAGE += $(KERNELS)
43 IN_NODEIMAGE += $(KERNELS)
46 # ipfw: root context module, and slice companion
48 ipfwroot-MODULES := ipfw
49 ipfwroot-SPEC := planetlab/ipfwroot.spec
50 ipfwroot-LOCAL-DEVEL-RPMS += kernel-devel
51 ipfwroot-SPECVARS = kernel_version=$(kernel.rpm-version) \
52 kernel_release=$(kernel.rpm-release) \
53 kernel_arch=$(kernel.rpm-arch)
55 IN_NODEIMAGE += ipfwroot
57 ipfwslice-MODULES := ipfw
58 ipfwslice-SPEC := planetlab/ipfwslice.spec
64 # skip this with k32/f8
65 ifneq "" "$(findstring k32,$(PLDISTROTAGS))"
66 ifneq "$(DISTRONAME)" "f8"
67 madwifi-MODULES := madwifi
68 madwifi-SPEC := madwifi.spec
69 madwifi-BUILD-FROM-SRPM := yes
70 madwifi-LOCAL-DEVEL-RPMS += kernel-devel
71 madwifi-SPECVARS = kernel_version=$(kernel.rpm-version) \
72 kernel_release=$(kernel.rpm-release) \
73 kernel_arch=$(kernel.rpm-arch)
75 IN_NODEIMAGE += madwifi
82 comgt-MODULES := comgt
83 comgt-SPEC := comgt.spec
88 # umts: root context stuff
90 umts-backend-MODULES := planetlab-umts-tools
91 umts-backend-SPEC := backend.spec
92 IN_NODEIMAGE += umts-backend
98 umts-frontend-MODULES := planetlab-umts-tools
99 umts-frontend-SPEC := frontend.spec
100 IN_SLICEIMAGE += umts-frontend
106 iptables-MODULES := iptables
107 iptables-SPEC := iptables.spec
108 iptables-BUILD-FROM-SRPM := yes
109 iptables-LOCAL-DEVEL-RPMS += kernel-devel kernel-headers
111 IN_NODEIMAGE += iptables
114 # we use the stock iproute2 with 2.6.32, since our gre patch is not needed anymore with that kernel
115 # note that this should be consistently reflected in nodeyumexclude
119 # iproute-MODULES := iproute2
120 # iproute-SPEC := iproute.spec
121 # iproute-BUILD-FROM-SRPM := yes
123 # IN_NODEIMAGE += iproute
124 # IN_SLICEIMAGE += iproute
125 # IN_BOOTCD += iproute
130 util-vserver-MODULES := util-vserver
131 util-vserver-SPEC := util-vserver.spec
133 util-vserver-BUILD-FROM-SRPM := yes
134 util-vserver-RPMFLAGS:= --without dietlibc --without doc
136 IN_NODEIMAGE += util-vserver
139 # libnl - local import
140 # we need either 1.1 or at least 1.0.pre6
141 # rebuild this on centos5 - see yumexclude
144 ifeq "$(DISTRONAME)" "centos5"
148 ifeq "$(local_libnl)" "true"
149 libnl-MODULES := libnl
150 libnl-SPEC := libnl.spec
151 libnl-BUILD-FROM-SRPM := yes
152 # this sounds like the thing to do, but in fact linux/if_vlan.h comes with kernel-headers
153 libnl-LOCAL-DEVEL-RPMS += kernel-devel kernel-headers
155 IN_NODEIMAGE += libnl
161 util-vserver-pl-MODULES := util-vserver-pl
162 util-vserver-pl-SPEC := util-vserver-pl.spec
163 util-vserver-pl-LOCAL-DEVEL-RPMS += util-vserver-lib util-vserver-devel util-vserver-core
164 ifeq "$(local_libnl)" "true"
165 util-vserver-pl-LOCAL-DEVEL-RPMS += libnl libnl-devel
167 ALL += util-vserver-pl
168 IN_NODEIMAGE += util-vserver-pl
173 nodeupdate-MODULES := nodeupdate
174 nodeupdate-SPEC := NodeUpdate.spec
176 IN_NODEIMAGE += nodeupdate
181 ipod-MODULES := PingOfDeath
182 ipod-SPEC := ipod.spec
189 plnode-utils-MODULES := plnode-utils
190 plnode-utils-SPEC := plnode-utils-vs.spec
192 IN_NODEIMAGE += plnode-utils
197 nodemanager-lib-MODULES := nodemanager
198 nodemanager-lib-SPEC := nodemanager-lib.spec
199 ALL += nodemanager-lib
200 IN_NODEIMAGE += nodemanager-lib
202 nodemanager-vs-MODULES := nodemanager
203 nodemanager-vs-SPEC := nodemanager-vs.spec
204 ALL += nodemanager-vs
205 IN_NODEIMAGE += nodemanager-vs
210 sshd-MODULES := pl_sshd
211 sshd-SPEC := pl_sshd.spec
216 # codemux: Port 80 demux
218 codemux-MODULES := codemux
219 codemux-SPEC := codemux.spec
221 IN_NODEIMAGE += codemux
226 fprobe-ulog-MODULES := fprobe-ulog
227 fprobe-ulog-SPEC := fprobe-ulog.spec
229 IN_NODEIMAGE += fprobe-ulog
232 # DistributedRateLimiting
234 # on f16 somehow configure screws up and defines LDFLAGS=-Wl,-z,relro which ld does not like..
235 ifneq "$(DISTRONAME)" "f16"
236 DistributedRateLimiting-MODULES := DistributedRateLimiting
237 DistributedRateLimiting-SPEC := DistributedRateLimiting.spec
238 ALL += DistributedRateLimiting
239 IN_NODEREPO += DistributedRateLimiting
245 pf2slice-MODULES := pf2slice
246 pf2slice-SPEC := pf2slice.spec
250 # PlanetLab Mom: Cleans up your mess
253 mom-SPEC := pl_mom.spec
258 # inotify-tools - local import
259 # rebuild this on centos5 (not found) - see yumexclude
261 local_inotify_tools=false
262 ifeq "$(DISTRONAME)" "centos5"
263 local_inotify_tools=true
266 ifeq "$(DISTRONAME)" "sl6"
267 local_inotify_tools=true
270 ifeq "$(local_inotify_tools)" "true"
271 inotify-tools-MODULES := inotify-tools
272 inotify-tools-SPEC := inotify-tools.spec
273 inotify-tools-BUILD-FROM-SRPM := yes
274 IN_NODEIMAGE += inotify-tools
281 # openvswitch-MODULES := openvswitch
282 # openvswitch-SPEC := openvswitch.spec
283 # openvswitch-LOCAL-DEVEL-RPMS += kernel-devel
285 # ifeq "$(DISTRONAME)" "$(filter $(DISTRONAME),f14 f15 f16)"
286 # IN_NODEIMAGE += openvswitch
294 vsys-SPEC := vsys.spec
295 # ocaml-docs is not needed anymore but keep it on a tmp basis as some tags may still have it
296 vsys-STOCK-DEVEL-RPMS += ocaml-ocamldoc ocaml-docs
297 ifeq "$(local_inotify_tools)" "true"
298 vsys-LOCAL-DEVEL-RPMS += inotify-tools inotify-tools-devel
304 # vsyssh : installed in slivers
306 vsyssh-MODULES := vsys
307 vsyssh-SPEC := vsyssh.spec
308 IN_SLICEIMAGE += vsyssh
314 vsys-scripts-MODULES := vsys-scripts
315 vsys-scripts-SPEC := root-context/vsys-scripts.spec
316 IN_NODEIMAGE += vsys-scripts
319 vsys-wrapper-MODULES := vsys-scripts
320 vsys-wrapper-SPEC := slice-context/vsys-wrapper.spec
321 IN_SLICEIMAGE += vsys-wrapper
324 # openvswitch requires an autoconf more recent than what f12 has
325 ifeq "$(DISTRONAME)" "f12"
326 autoconf-MODULES := autoconf
327 autoconf-SPEC := autoconf.spec
328 autoconf-BUILD-FROM-SRPM := yes
335 bind_public-MODULES := bind_public
336 bind_public-SPEC := bind_public.spec
337 IN_SLICEIMAGE += bind_public
343 sliver-openvswitch-MODULES := sliver-openvswitch
344 sliver-openvswitch-SPEC := sliver-openvswitch.spec
345 ifeq "$(DISTRONAME)" "f12"
346 sliver-openvswitch-LOCAL-DEVEL-RPMS-CRUCIAL := autoconf
348 IN_SLICEIMAGE += sliver-openvswitch
349 ALL += sliver-openvswitch
354 plcapi-MODULES := plcapi
355 plcapi-SPEC := plcapi.spec
362 drupal-MODULES := drupal
363 drupal-SPEC := drupal.spec
364 drupal-BUILD-FROM-SRPM := yes
369 # use the plewww module instead
371 plewww-MODULES := plewww
372 plewww-SPEC := plewww.spec
377 # www-register-wizard
379 www-register-wizard-MODULES := www-register-wizard
380 www-register-wizard-SPEC := www-register-wizard.spec
381 ALL += www-register-wizard
382 IN_MYPLC += www-register-wizard
387 pcucontrol-MODULES := pcucontrol
388 pcucontrol-SPEC := pcucontrol.spec
394 monitor-MODULES := monitor
395 monitor-SPEC := Monitor.spec
396 monitor-STOCK-DEVEL-RPMS += net-snmp net-snmp-devel
398 IN_NODEIMAGE += monitor
403 plcrt-MODULES := PLCRT
404 plcrt-SPEC := plcrt.spec
407 # f12 has 0.9-1 already
408 ifeq "$(DISTRONAME)" "$(filter $(DISTRONAME),f8 centos5)"
412 pyopenssl-MODULES := pyopenssl
413 pyopenssl-SPEC := pyOpenSSL.spec
414 pyopenssl-BUILD-FROM-SRPM := yes
421 pyaspects-MODULES := pyaspects
422 pyaspects-SPEC := pyaspects.spec
423 pyaspects-BUILD-FROM-SRPM := yes
429 nodeconfig-MODULES := nodeconfig
430 nodeconfig-SPEC := nodeconfig.spec
432 IN_MYPLC += nodeconfig
437 bootmanager-MODULES := bootmanager
438 bootmanager-SPEC := bootmanager.spec
440 IN_MYPLC += bootmanager
443 # pypcilib : used in bootcd
445 pypcilib-MODULES := pypcilib
446 pypcilib-SPEC := pypcilib.spec
448 IN_BOOTCD += pypcilib
453 pyplnet-MODULES := pyplnet
454 pyplnet-SPEC := pyplnet.spec
456 IN_NODEIMAGE += pyplnet
461 # for OMF resource controller as a gem : rvm-ruby has right version of ruby and related gem stuff
463 rvm-ruby-MODULES := rvm-ruby
464 rvm-ruby-SPEC := rpm/rvm-ruby.spec
465 rvm-ruby-STOCK-DEVEL-RPMS := chrpath libyaml-devel libffi-devel libxslt-devel
469 # OML measurement library
472 oml-STOCK-DEVEL-RPMS += sqlite-devel
473 oml-SPEC := liboml.spec
479 bootcd-MODULES := bootcd build
480 bootcd-SPEC := bootcd.spec
481 bootcd-DEPEND-PACKAGES := $(IN_BOOTCD)
482 bootcd-DEPEND-FILES := RPMS/yumgroups.xml
483 bootcd-RPMDATE := yes
490 sliceimage-MODULES := sliceimage build
491 sliceimage-SPEC := sliceimage.spec
492 sliceimage-DEPEND-PACKAGES := $(IN_SLICEIMAGE)
493 sliceimage-DEPEND-FILES := RPMS/yumgroups.xml
494 sliceimage-RPMDATE := yes
496 IN_NODEIMAGE += sliceimage
499 # vserver-specific sliceimage initialization
501 vserver-sliceimage-MODULES := sliceimage
502 vserver-sliceimage-SPEC := vserver-sliceimage.spec
503 vserver-sliceimage-RPMDATE := yes
504 ALL += vserver-sliceimage
505 IN_NODEIMAGE += vserver-sliceimage
510 nodeimage-MODULES := nodeimage build
511 nodeimage-SPEC := nodeimage.spec
512 nodeimage-DEPEND-PACKAGES := $(IN_NODEIMAGE)
513 nodeimage-DEPEND-FILES := RPMS/yumgroups.xml
514 nodeimage-RPMDATE := yes
516 IN_MYPLC += nodeimage
521 # all rpms resulting from packages marked as being in nodeimage and sliceimage
522 NODEREPO_RPMS = $(foreach package,$(IN_NODEIMAGE) $(IN_NODEREPO) $(IN_SLICEIMAGE),$($(package).rpms))
523 # replace space with +++ (specvars cannot deal with spaces)
525 NODEREPO_RPMS_3PLUS = $(subst $(SPACE),+++,$(NODEREPO_RPMS))
527 noderepo-MODULES := nodeimage
528 noderepo-SPEC := noderepo.spec
529 # package requires all embedded packages
530 noderepo-DEPEND-PACKAGES := $(IN_NODEIMAGE) $(IN_NODEREPO) $(IN_SLICEIMAGE)
531 noderepo-DEPEND-FILES := RPMS/yumgroups.xml
532 #export rpm list to the specfile
533 noderepo-SPECVARS = node_rpms_plus=$(NODEREPO_RPMS_3PLUS)
534 noderepo-RPMDATE := yes
541 # all rpms resulting from packages marked as being in vserver
542 SLICEREPO_RPMS = $(foreach package,$(IN_SLICEIMAGE),$($(package).rpms))
543 # replace space with +++ (specvars cannot deal with spaces)
545 SLICEREPO_RPMS_3PLUS = $(subst $(SPACE),+++,$(SLICEREPO_RPMS))
547 slicerepo-MODULES := nodeimage
548 slicerepo-SPEC := slicerepo.spec
549 # package requires all embedded packages
550 slicerepo-DEPEND-PACKAGES := $(IN_SLICEIMAGE)
551 slicerepo-DEPEND-FILES := RPMS/yumgroups.xml
552 #export rpm list to the specfile
553 slicerepo-SPECVARS = slice_rpms_plus=$(SLICEREPO_RPMS_3PLUS)
554 slicerepo-RPMDATE := yes
558 # MyPLC : lightweight packaging, dependencies are yum-installed in a vserver
560 myplc-MODULES := myplc
561 myplc-SPEC := myplc.spec
562 myplc-DEPEND-FILES := myplc-release RPMS/yumgroups.xml
565 # myplc-docs only contains docs for PLCAPI and NMAPI, but
566 # we still need to pull MyPLC, as it is where the specfile lies,
567 # together with the utility script docbook2drupal.sh
568 myplc-docs-MODULES := myplc plcapi nodemanager monitor
569 myplc-docs-SPEC := myplc-docs.spec
572 # using some other name than myplc-release, as this is a make target already
573 release-MODULES := myplc
574 release-SPEC := myplc-release.spec
575 release-RPMDATE := yes
578 ##############################
579 # sfa requires python-2.7
581 ifeq "$(DISTRONAME)" "$(filter $(DISTRONAME),f8 f12 centos5)"
585 ifeq "$(build_sfa)" "true"
587 # sfa - Slice Facility Architecture
593 #sface-MODULES := sface
594 #sface-SPEC := sface.spec
598 ##############################
599 # don't build these by default, we have separate builds for that
600 myslice-MODULES := myslice
601 myslice-SPEC := myslice.spec
602 myslice-STOCK-DEVEL-RPMS := python-django
603 myslice-STOCK-DEVEL-DEBS := python-django python-django-south
606 manifold-MODULES := manifold
607 manifold-SPEC := manifold.spec