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
11 ### the madwifi drivers ahip with fedora16's kernel rpm
14 # lxctools: scripts for entering containers
16 lxctools-MODULES := lxctools
17 lxctools-SPEC := lxctools.spec
19 IN_NODEIMAGE += lxctools
22 # lxcsu: root context module for entering namespaces
24 lxcsu-MODULES := lxcsu
25 lxcsu-SPEC := lxcsu.spec
31 # transforward: root context module for transparent port forwarding
33 transforward-MODULES := transforward
34 transforward-SPEC := transforward.spec
36 IN_NODEIMAGE += transforward
39 # procprotect: root context module for protecting against weaknesses in /proc
41 procprotect-MODULES := procprotect
42 procprotect-SPEC := procprotect.spec
44 IN_NODEIMAGE += procprotect
47 # ipfw: root context module, and slice companion
49 ipfwroot-MODULES := ipfw
50 ipfwroot-SPEC := planetlab/ipfwroot.spec
52 IN_NODEIMAGE += ipfwroot
54 ipfwslice-MODULES := ipfw
55 ipfwslice-SPEC := planetlab/ipfwslice.spec
61 nodeupdate-MODULES := nodeupdate
62 nodeupdate-SPEC := NodeUpdate.spec
64 IN_NODEIMAGE += nodeupdate
69 ipod-MODULES := PingOfDeath
70 ipod-SPEC := ipod.spec
77 plnode-utils-MODULES := plnode-utils
78 plnode-utils-SPEC := plnode-utils-lxc.spec
80 IN_NODEIMAGE += plnode-utils
85 nodemanager-lib-MODULES := nodemanager
86 nodemanager-lib-SPEC := nodemanager-lib.spec
87 ALL += nodemanager-lib
88 IN_NODEIMAGE += nodemanager-lib
90 nodemanager-lxc-MODULES := nodemanager
91 nodemanager-lxc-SPEC := nodemanager-lxc.spec
92 ALL += nodemanager-lxc
93 IN_NODEIMAGE += nodemanager-lxc
98 sshd-MODULES := pl_sshd
99 sshd-SPEC := pl_sshd.spec
104 # codemux: Port 80 demux
106 codemux-MODULES := codemux
107 codemux-SPEC := codemux.spec
109 IN_NODEIMAGE += codemux
114 fprobe-ulog-MODULES := fprobe-ulog
115 fprobe-ulog-SPEC := fprobe-ulog.spec
117 IN_NODEIMAGE += fprobe-ulog
119 #################### using our own libvirt on all distros for now
121 #ifeq "$(DISTRONAME)" "f16"
125 ifeq "$(local_libvirt)" "true"
129 libvirt-MODULES := libvirt
130 libvirt-SPEC := libvirt.spec
131 libvirt-BUILD-FROM-SRPM := yes
132 # The --without options are breaking spec2make : hard-wired in the specfile instead
133 libvirt-DEVEL-RPMS += xhtml1-dtds gettext gettext-devel libtasn1-devel gnutls-devel
134 libvirt-DEVEL-RPMS += libattr-devel augeas libpciaccess-devel yajl-devel
135 libvirt-DEVEL-RPMS += libpcap-devel radvd ebtables device-mapper-devel
136 libvirt-DEVEL-RPMS += ceph-devel numactl-devel libcap-ng-devel scrub
137 ifeq "$(DISTRONAME)" "f16"
138 libvirt-DEVEL-RPMS += libnl-devel libudev-devel
140 ifeq "$(DISTRONAME)" "f18"
141 libvirt-DEVEL-RPMS += fuse-devel libssh2-devel dbus-devel numad
142 libvirt-DEVEL-RPMS += systemd-devel libnl3-devel iptables-ipv6
144 libvirt-RPMFLAGS := --define 'packager PlanetLab'
146 IN_NODEREPO += libvirt
147 IN_NODEIMAGE += libvirt
151 # DistributedRateLimiting
153 #DistributedRateLimiting-MODULES := DistributedRateLimiting
154 #DistributedRateLimiting-SPEC := DistributedRateLimiting.spec
155 #ALL += DistributedRateLimiting
156 #IN_NODEREPO += DistributedRateLimiting
161 pf2slice-MODULES := pf2slice
162 pf2slice-SPEC := pf2slice.spec
166 ## PlanetLab Mom: Cleans up your mess
169 #mom-SPEC := pl_mom.spec
174 # inotify-tools - local import
175 # rebuild this on centos5 (not found) - see yumexclude
177 local_inotify_tools=false
178 ifeq "$(DISTRONAME)" "centos5"
179 local_inotify_tools=true
182 ifeq "$(DISTRONAME)" "sl6"
183 local_inotify_tools=true
186 ifeq "$(local_inotify_tools)" "true"
187 inotify-tools-MODULES := inotify-tools
188 inotify-tools-SPEC := inotify-tools.spec
189 inotify-tools-BUILD-FROM-SRPM := yes
190 IN_NODEIMAGE += inotify-tools
197 # openvswitch-MODULES := openvswitch
198 # openvswitch-SPEC := openvswitch.spec
199 # openvswitch-DEPEND-DEVEL-RPMS += kernel-devel
200 # IN_NODEIMAGE += openvswitch
201 # # build only on f14 as f16 has this natively
202 # ifeq "$(DISTRONAME)" "$(filter $(DISTRONAME),f14)"
210 vsys-SPEC := vsys.spec
211 # ocaml-docs is not needed anymore but keep it on a tmp basis as some tags may still have it
212 vsys-DEVEL-RPMS += ocaml-ocamldoc ocaml-docs
213 ifeq "$(local_inotify_tools)" "true"
214 vsys-DEPEND-DEVEL-RPMS += inotify-tools inotify-tools-devel
220 # vsyssh : installed in slivers
222 vsyssh-MODULES := vsys
223 vsyssh-SPEC := vsyssh.spec
224 IN_SLICEIMAGE += vsyssh
230 vsys-scripts-MODULES := vsys-scripts
231 vsys-scripts-SPEC := root-context/vsys-scripts.spec
232 IN_NODEIMAGE += vsys-scripts
238 bind_public-MODULES := bind_public
239 bind_public-SPEC := bind_public.spec
240 IN_SLICEIMAGE += bind_public
246 plcapi-MODULES := plcapi
247 plcapi-SPEC := plcapi.spec
254 drupal-MODULES := drupal
255 drupal-SPEC := drupal.spec
256 drupal-BUILD-FROM-SRPM := yes
261 # use the plewww module instead
263 plewww-MODULES := plewww
264 plewww-SPEC := plewww.spec
269 # www-register-wizard
271 www-register-wizard-MODULES := www-register-wizard
272 www-register-wizard-SPEC := www-register-wizard.spec
273 ALL += www-register-wizard
274 IN_MYPLC += www-register-wizard
279 pcucontrol-MODULES := pcucontrol
280 pcucontrol-SPEC := pcucontrol.spec
286 #monitor-MODULES := monitor
287 #monitor-SPEC := Monitor.spec
288 #monitor-DEVEL-RPMS += net-snmp net-snmp-devel
290 #IN_NODEIMAGE += monitor
295 plcrt-MODULES := PLCRT
296 plcrt-SPEC := plcrt.spec
299 # f12 has 0.9-1 already
300 ifeq "$(DISTRONAME)" "$(filter $(DISTRONAME),f8 centos5)"
304 pyopenssl-MODULES := pyopenssl
305 pyopenssl-SPEC := pyOpenSSL.spec
306 pyopenssl-BUILD-FROM-SRPM := yes
313 pyaspects-MODULES := pyaspects
314 pyaspects-SPEC := pyaspects.spec
315 pyaspects-BUILD-FROM-SRPM := yes
318 # sfa now uses the with statement that's not supported on python-2.4 - not even through __future__
319 # In addition we now use sqlalchemy and 0.5 as per f12 is not compatible with our model
321 ifeq "$(DISTRONAME)" "$(filter $(DISTRONAME),f8 f12 centos5)"
325 ifeq "$(build_sfa)" "true"
327 # sfa - Slice Facility Architecture
333 sface-MODULES := sface
334 sface-SPEC := sface.spec
341 nodeconfig-MODULES := nodeconfig
342 nodeconfig-SPEC := nodeconfig.spec
344 IN_MYPLC += nodeconfig
349 bootmanager-MODULES := bootmanager
350 bootmanager-SPEC := bootmanager.spec
352 IN_MYPLC += bootmanager
355 # pypcilib : used in bootcd
357 pypcilib-MODULES := pypcilib
358 pypcilib-SPEC := pypcilib.spec
360 IN_BOOTCD += pypcilib
365 pyplnet-MODULES := pyplnet
366 pyplnet-SPEC := pyplnet.spec
368 IN_NODEIMAGE += pyplnet
373 # OMF resource controller
375 omf-resctl-MODULES := omf
376 omf-resctl-SPEC := omf-resctl.spec
378 IN_SLICEIMAGE += omf-resctl
383 omf-expctl-MODULES := omf
384 omf-expctl-SPEC := omf-expctl.spec
390 bootcd-MODULES := bootcd build
391 bootcd-SPEC := bootcd.spec
392 bootcd-DEPEND-PACKAGES := $(IN_BOOTCD)
393 bootcd-DEPEND-FILES := RPMS/yumgroups.xml
394 bootcd-RPMDATE := yes
401 sliceimage-MODULES := sliceimage build
402 sliceimage-SPEC := sliceimage.spec
403 sliceimage-DEPEND-PACKAGES := $(IN_SLICEIMAGE)
404 sliceimage-DEPEND-FILES := RPMS/yumgroups.xml
405 sliceimage-RPMDATE := yes
407 IN_NODEIMAGE += sliceimage
410 # lxc-specific sliceimage initialization
412 lxc-sliceimage-MODULES := sliceimage
413 lxc-sliceimage-SPEC := lxc-sliceimage.spec
414 lxc-sliceimage-RPMDATE := yes
415 ALL += lxc-sliceimage
416 IN_NODEIMAGE += lxc-sliceimage
421 nodeimage-MODULES := nodeimage build
422 nodeimage-SPEC := nodeimage.spec
423 nodeimage-DEPEND-PACKAGES := $(IN_NODEIMAGE)
424 nodeimage-DEPEND-FILES := RPMS/yumgroups.xml
425 nodeimage-RPMDATE := yes
427 IN_MYPLC += nodeimage
432 # all rpms resulting from packages marked as being in nodeimage and sliceimage
433 NODEREPO_RPMS = $(foreach package,$(IN_NODEIMAGE) $(IN_NODEREPO) $(IN_SLICEIMAGE),$($(package).rpms))
434 # replace space with +++ (specvars cannot deal with spaces)
436 NODEREPO_RPMS_3PLUS = $(subst $(SPACE),+++,$(NODEREPO_RPMS))
438 noderepo-MODULES := nodeimage
439 noderepo-SPEC := noderepo.spec
440 # package requires all embedded packages
441 noderepo-DEPEND-PACKAGES := $(IN_NODEIMAGE) $(IN_NODEREPO) $(IN_SLICEIMAGE)
442 noderepo-DEPEND-FILES := RPMS/yumgroups.xml
443 #export rpm list to the specfile
444 noderepo-SPECVARS = node_rpms_plus=$(NODEREPO_RPMS_3PLUS)
445 noderepo-RPMDATE := yes
452 # all rpms resulting from packages marked as being in vserver
453 SLICEREPO_RPMS = $(foreach package,$(IN_SLICEIMAGE),$($(package).rpms))
454 # replace space with +++ (specvars cannot deal with spaces)
456 SLICEREPO_RPMS_3PLUS = $(subst $(SPACE),+++,$(SLICEREPO_RPMS))
458 slicerepo-MODULES := nodeimage
459 slicerepo-SPEC := slicerepo.spec
460 # package requires all embedded packages
461 slicerepo-DEPEND-PACKAGES := $(IN_SLICEIMAGE)
462 slicerepo-DEPEND-FILES := RPMS/yumgroups.xml
463 #export rpm list to the specfile
464 slicerepo-SPECVARS = slice_rpms_plus=$(SLICEREPO_RPMS_3PLUS)
465 slicerepo-RPMDATE := yes
469 # MyPLC : lightweight packaging, dependencies are yum-installed in a vserver
471 myplc-MODULES := myplc
472 myplc-SPEC := myplc.spec
473 myplc-DEPEND-FILES := myplc-release RPMS/yumgroups.xml
476 # myplc-docs only contains docs for PLCAPI and NMAPI, but
477 # we still need to pull MyPLC, as it is where the specfile lies,
478 # together with the utility script docbook2drupal.sh
479 myplc-docs-MODULES := myplc plcapi nodemanager monitor
480 myplc-docs-SPEC := myplc-docs.spec
483 # using some other name than myplc-release, as this is a make target already
484 release-MODULES := myplc
485 release-SPEC := myplc-release.spec
486 release-RPMDATE := yes